r/FastLED • u/wile1411 • Feb 04 '25
Support Query about data line resistors
I'm building a 600mm sign project and so far I've using the following:
- ESP8266 with a dev board - (using PINs 12,13,14,4) 3.3V
- adafruit bss138 - 4 channel logic level convertor
- (both of the below are connected via 3pin header connection. The polarised connectors are crimp and soldered)
- 2 strips of 10x RGB 5V LEDs (WS2812B-5050) (60ma per RGB LED)
- 2 strips of 40x RGB 5V LEDs (WS2812C-2020) (15ma per RGB LED)
- 5V 3A power supply with everything tied to a single ground point.
- Project would only run at 50% brightness to ensure I'm well below my 3A cap.
- I've also got a 16v 1000uF cap shoved into the back of the barrel jack connector so the MCU and strips can all pull from that when there is sudden shift to white.
I'm still getting the odd flicker here and there for the 2812C channels and fiture I have something up with my data line.
The longest data line run is 30cm using 22AWG wire. (power and ground use 20AWG) I've checked my connections / grounds points and all seems to be solid - poking the wiring gives not effect or change to the intermittent flickering so I figure I've got a data issue.
Test code just alternates between a beat8 rainbow march wave and a cycling pattern through fill_solid R,G,B to ensure all LEDS light. Testing is being done at brightness 10.
What's the general advise for adding 10K pulldown resistors between each of the data lines and ground to ensure a clean signal? (after the logic convertor) There's been the occasional post where this was the answer for them to ensure the signal gets pulled to ground on a 0.
I'm still troubleshooting and looking for other options for cleaning up what I've done so far.
Also, is there any benefit adding additional 470uF caps on the POs/GND of each strip line or is that not required / overkill due to the single 1000uF at the power entry point?
6
u/sutaburosu [stavros] Feb 04 '25
I think it would be useful to determine the cause of the flickering: hardware or software? Try rolling back the ESP8266 core to v2.7.4. If the flickering stops, it's a software problem.
This is a workaround for a problem on ESP32 caused by ESP-IDF's led_strip library.
Generally when folks talk about resistors on the data lines, they are in-line not tied to GND. This slows the slew rate of the data signal, reduces overshoot, and damps ringing on the data lines. See the "signal quality" section of this article.
2
u/snowtax Feb 04 '25
Whatever you discover, please report back. We want to know!
2
u/saratoga3 Feb 15 '25
There is not typically a reason to put a pull down on a data line. The only time it could float is when the controller is unpowered, and usually this is ok since you power everything together. It definitely will not clean anything so not going to help here.
You do need a series resistor however. Usually the logic level converter provides that, but not always. Make sure your source impedance (driver and resistor) is about 100 ohms, especially if your lines are more then a foot or two. If you're unterminated then you will get glitching with lines more than a few feet long (depending on rise time of your level shifter).
The electrolytic capacitor on the strip is pointless. Lots of guides say to add it but it won't do anything for data so doesn't matter what you do there.
5
u/chemdoc77 Feb 04 '25
Hi u/wile1411- Your problem might be this logic level shifter: adafruit bss138 - 4 channel logic level convertor. I would highly recommend either of these logic level shifters: 74LVC245 or the 74AHCT125.
2
u/Tiny_Structure_7 Feb 05 '25
I followed the design of OctoWS2811 adapter boards, and made my own buffer with 74HCT125s. They use only 100 ohm resistors at the outputs of the buffer, in series with RJ45 connector. I haven't used pulldown resistors on my LED connections. Are there series resistors built into your ESP buffer circuit?
Did you check all the connectors between the LED strips and buffer circuit for clean contact?