I actually use arduino pro minis (3.3v / 8MHz), embedded in objects with led strips, to color them at night.
The "light path" is hard coded on the arduino and follows color functions (rainbow, strobe...) and number of loop iterations for timing purposes.
I plan to use ESP8266 to add wireless and "real-time" control of object's color.
I'm a bit lost between all the different methods to achieve this simultaneous / low-latency / wireless control.
I saw NodeMCU/Lua firmwares but I'm not used to this technologies
I saw WebServers on ESP with POST / GET method to collect datas and pass them into argument
I saw ESP as a serial/Wifi Bridge (with serial.print and serial.read) sent from telnet session on the computer
I saw MQTT messaging method with online/offline brokers...
But I can't find which is the best (if there is one) for my needs.
My needs are :
- simultaneous/individual control of the objects color (be capable of creating groups in the future) for 6-12 objects
- maximum of two neopixel led strips for each object (so two GPIOs should be sufficient)
- optionnal use of existing Arduinos (pro mini 3.3v with 800mA regulator)
- as "low latency" as possible
- control everything, in the future, from an app or a webpage
The questions I have are :
- With each method how can I control multiple ESP8266 ?
For example, with serial bridge method, is it possible to handle 10 telnet sessions to send commands to 10 ESPs ?
and how to send a command through 10 sessions simultaneously?
- With webserver method on ESP, is it possible to send a POST message (or a Websocket request) to multiple ESP, from an only one webpage/app ?
There is no bad answer, everyone must feel free to suggest a solution.
If you need more details, feel free to ask, I'll do my best to answer.
Thank you