Hi Guys, I’ve been tinkering for a while now with Arduinos and Photons, mostly controlling leds, motion sensors and other small devices. I’ve been running into a very frustrating issue and I don’t know how to solve it.
I am controlling a WS2812B strip of led pixels. Very straightforward to control and I am using the Neopixel library. I am plugging the Photon into a powered USB hub for power and the strip is connected to the VIN and GND headers plus D1 for controlling it. Here is the thing: if I am powering the photon from the Hub and also add a second strip on D2 everything works fine. If I unplug or simply leave off the second strip, the first one starts acting up, flickering, wrong colors, etc. I noticed the exact same behavior when I powered the photon from an iPad usb wall wart (2.1A). Its simply behaves strangely with lights either flickering while fades are done or having wrong colors.
I need to mention that the second strip on D2 is about 30 leds long and the first one is only 4 leds long.
I later tried to port the same code that works on an arduino with the same kind of strip, and the photon exhibited the same wird behavior: flickering while fading and many leds having completely wrong colors.
Please let me know if this is something obvious that I am missing or if not, I can come back with more details including code.