toblum / McLighting

The ESP8266 based multi-client lighting gadget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Multiple LED strips/data outputs

girlpunk opened this issue · comments

Would be useful if a single NodeMCU could be used to run multiple LED strips on different pins. They would need to be able to use different configurations as well to be useful (i.e. one strip on red, one on green)

That's pushing ESP8266 too hard, may not be stable. I haven't tried it, but it can be done by defining multiple WS28xx strips via WS2812FX.

Another way to approach this is to use only one pin, create segments and daisy chain all your WS28xx strips. McLighting currently doesnt support segments (but the framework of segments are present in WS2812FX or NeoAnimationFX (beta) that is used by McLighting), but may come in later. Maybe as a separate branch.

Since these chips cost <$3, why not use one for every strip. If you want them coordinated, you can let them subscribe to same MQTT topic. This can be done by giving same hostnames and use different MQTT hostname IDs.

Only potential issue with segments would be that the data cabling needs to go from the end of one strip to the start of another. Downside to using multiple ESPs would be that any external components required to run them (e.g. 12v to 5v micro USB adapter) would need to be duplicated, pushing the cost price up further.

If this is a processing power limitation on the ESP8266, there's not much that can be done about it. I'll see if I can do some testing with the strips I've already got and check how the ESP responds.

I've put the on the list for possible enhancements. But as @debsahu already said: this is limited by the capabilities of the ESP8266.
Maybe I could find at least a way to control multiple McLightings from one webinterface.

I think controlling multiple instances from one interface is already handled by MQTT

Yes, I use it also this way, but not everyone has a homeserver running.