Arduino Integration
Is there any way to integrate code from Arduino IDE into convex? Or somehow code to the arduino?
4 Replies
Can you say more about what you’re trying to do? I’m not super familiar with Arduino / Arduino IDE but will try my best to answer
Through the website developed using Convex, we will press a button to start the arduino program. This will prompt a short reaction time test with LEDs and buttons (all arduino controlled) that users press, after which the reaction time data is sent back to the website to be stored and analyzed.
So sounds like you could either have a Convex function that talks to your Arduino and tells it to run your program and potentially waits for the response (I’d search for JavaScript or HTTP examples). If you want to write data to convex from your Arduino the easiest thing is probably to use our HTTP API to call your function (assuming you can fetch in Arduino? Idk) https://docs.convex.dev/http-api/#functions-api
Convex HTTP API | Convex Developer Hub
Connecting to Convex directly with HTTP
I'll try it, thanks!