Control Arduino over the Internet with minimal latency

I have an Arduino board in location and a web server.
I also have a website that should control Arduino. Which method will allow users to take control of the Arduino board with the least latency?

I have Node.js , socketserver , Jabber in my mind to experiment, but is this the right direction?

+4
source share
2 answers

You should take a look at Socket.IO to implement WebSockets on the server and client side.

There is a great project called duino to access Arduino using Node.js, you only need to skip all the WebSockets.

Update:. In the meantime, I published a framework for sending commands to Arduino using Node.JS, JavaScript, and WebSockets. Be sure to check out Noduino !

+4
source

I was fortunate enough to use node-serialport to talk to Arduino. Using a serial port results in very low latency, and I used it to create photo paper. The code is on GitHub if you want to test it, although it is very poorly organized, because I was in a hurry to do it for my wedding and well ... the corners were cut.

+1
source

Source: https://habr.com/ru/post/1382385/


All Articles