Hi all, I’m hoping to get some help with some flashing issues on my 5x5x5 LED cube I’ve been working on. I’m using a NodeMCU esp8266, and for LEDs I am using 125 PL9823s (Supposedly similar to Neopixels? You’ll have to forgive me, I’m fairly new to this). Power is supplied to both the LEDs and the esp8266 by a 5V 60W power supply, and the data signal is being converted from 3.3V to 5V by this thing: https://www.jaycar.com.au/medias/sys_master/images/9071426961438/XC4486-dataSheetMain.pdf (that’s the best datasheet I could find, I know its not great).
The issue I’m getting is, whenever I try to display something even slightly complex, the entire cube will flash brightly every second or so, often multiple times per second. It seems (although I’m not certain) that each LED flashes whatever color it’s meant to be, but at full brightness.
In terms of versions, I’m running version 1.8.5 of the Arduino IDE on Linux, FastLED 3.1.6, and version 2.4.1 of the esp8266 plugin. I’m building for “NodeMCU 1.0 (ESP-12E Module)”.
Here’s a minimal example that I get issues with (see video):
https://gist.github.com/Christopherbikie/847d3b10455dc0202a1e266b49d24c19
The flashes become less frequent when DELAY_INTERVAL is increased.
I have tried adding both of
#define FASTLED_INTERRUPT_RETRY_COUNT 0
#define FASTLED_ALLOW_INTERRUPTS 0
before including FastLED (https://github.com/FastLED/FastLED/issues/367) to no affect.
Interestingly, if I plug in a USB cable into the esp8266 (disconnected at the other end), the flashing becomes significantly less frequent, maybe on average every 5 seconds. The USB cable has a ferrite bead - what that does is beyond my knowledge. Connecting the esp8266’s/LEDs’ ground to power supply casing seems to have the same affect, but I also tried two shorter USB cables without the ferrite bead - this did make any difference.
I should also note that I don’t have the 1000 μF across vcc and ground, mainly because I don’t have one lying around. I don’t think this is the cause, but correct me if I’m wrong.
So, any ideas on the cause of the flashing?
