-->
Page 1 of 2

Platform choice for controlling rgb leds through multi ESP

PostPosted: Tue Nov 24, 2015 9:44 am
by zebu
Hello,

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

Re: Platform choice for controlling rgb leds through multi E

PostPosted: Tue Nov 24, 2015 2:28 pm
by Barnabybear
Hi, have a look at this project it might be not far off what you want.
http://forkineye.com/ESPixelStick/
The development was discussed on DIY Christmas in this thread.
http://doityourselfchristmas.com/forums ... ht=esp8266
I'm not sure you needed all the components on the daughter board, but it was designed for a group buy. I've driven the data line on 5V 2812s directly from an ESP8266-01 GPIO.
http://www.esp8266.com/viewtopic.php?f=6&t=6332&p=33999#p33999
Another great pixel project.

Re: Platform choice for controlling rgb leds through multi E

PostPosted: Tue Nov 24, 2015 3:18 pm
by bbx10node

Re: Platform choice for controlling rgb leds through multi E

PostPosted: Wed Nov 25, 2015 4:50 am
by zebu
Barnabybear wrote:Hi, have a look at this project it might be not far off what you want.


bbx10node wrote:Here is one more ws281x project.


Thank you for links.

I'm still searching for good practices to achieve simultaneous control of multiple ESP.

Thanks.