Strip Flashing White

Sorry to keep asking questions here, but I’m almost done with this big build and I have one more question.

My build has 8 different LED strips connected to 8 different pins on the ESP board. Most of them are working fine, but 2 are flickering/flashing white every few seconds. (See video)

https://youtu.be/c9dYuik_MMg?si=Ls-b9Tw_n_q_E7Ym

All the strips are fed with the same power supply and have a common ground. There is about 3’ of cable between the ESP board and the strips.

What causes a flickering like that? Thank you so much for all your help.

data corruption / noise on data line. need a clean wiring with no ground loops and the proper level shifter circuit. Wiring Guides - WLED Project

1 Like

I thought it might just be a signal issue.

I originally had the ESP board inside the sphere, and thus had less connection points, then I ran into heat issues so I moved the ESP board outside the sphere and added about 3 feet of wire. I’m guessing I have a bad connection somewhere in there.

I don’t think cable length or gauge is an issue because most of the strips are fine. I must just have a bad connection point on those two. Currently it goes through 2 soldered connections as well as the header pin on the ESP and a JST connector at the strip. The 2 soldered connections were added when I moved the ESP board out of the sphere.

100% corrupt data. Add levelshifter and resistor. You Might get away with just a resistor on the data line. I would try 33R

I’ve tried redoing all the connections and I’m still getting intermittent flickering. Time for a level shifter.

You’ll have to excuse my inexperience. Looking at level shifters on Amazon I found this one that can do 8 channels, which is exactly what I need.

https://a.co/d/04WgbL0G

I’m assuming the 8 data connections from WLED go to A1-A8 and B1-B8 go to a resistor and then on to the LEDs, right? I would also send 5v to VB and ground to GND. Do I need to connect VA and OE?

Use a resistor like this?

Thank you in advance for all your help!

This shifter would be a better choice: 10PCS SN74HCT245N SN74HCT245 74HCT245 DIP-20 Octal Bus Transceivers with 3-State Outputs: Amazon.com: Industrial & Scientific

The TXS0108E does not work as well and people have had issues using them.

Your resistor link just brings me to a search page for resistors. Try this: California JOS 100pcs 33 ohm Resistor 1/2w (0.5Watt) ±1% Tolerance Metal Film Fixed Resistor, Multiple Values of Resistance Optional(33 ohm, 33 R, 33 Ω): Amazon.com: Industrial & Scientific

Or you could buy one of the kits that come with several different values. Note: Many don’t include 33ohm so check specs if you decide to get a kit of resistors.

You would also need the .1uF (100nF) ceramic capacitor as shown in the pic: Cermant 100pcs 100nf Ceramic Disc Capacitor,0.1uf DIP Electronic Components,104,Ceramic Chip Capacitor (100nf 0.1uf): Amazon.com: Industrial & Scientific

1 Like

Awesome Thank You!! All of those pieces can pop into a bread board for testing right?

yes, but be mindful that breadboards very often make poor connections and you may still see problems. Just a little wiggle is enough to make things flicker when using them.

1 Like

Ok I also got a socket and a perfboard so I can solder it all when I know it’s all working.

1 Like

Yes. I definitely recommend using a socket. That way if the chip ever dies it’s simple to change.

The 100nF cap should be placed close to the vcc and ground of the shifter. Easiest way is like in my pic:

1 Like

Sounds good. Thank you for the pic, that definitely helps.

You can also buy similar level shifters, although built with generic clone parts instead of real AHCTs: https://www.aliexpress.us/item/3256808439774099.html

They’re not quite as good (note the 4v peak amplitude), but for 3-wire LED cable they’ll do >15m easily:

But fine for DIY purposes.

1 Like

Is my diagram correct? Data comes in from the 8 data pins on the left and goes out through screw terminals on the right. The power is distributed around the edges of this board. Rows A-E and F-J are bridged on the back of the board but I would cut the traces where the resistors are. Is where I’m placing the capacitor correct?

Looks good. If you can keep your Esp close to the shifter that would be ideal. By that I mean within a few inches and not wires running like a foot or something lol.

1 Like

The bypass cap is meant to bypass the ground and power traces on the PCB by connecting directly between VCC and GND pins on the chip. If you connect the ground end of the cap through the ground traces like that then it no longer bypasses them and is a lot less effective. A better way to put it would be between F10 and E10 and then run short jumper wires to the VCC/GND pins on the chip.

Oh ya the ESP will be right next to the level shifter. If I can find 8 outputs in a row I’ll just put a socket on the board and pop the ESP board right into that.

That was the part I was the most confused about.

So the capacitor goes between E10 and F10.

E10 jumpers to E20, F10 jumpers to F11.

Does voltage and ground still connect to the perimeter of the board in the upper right? And does ground still and voltage still connect to connect to all the same places I have it on my diagram in addition to the capacitor jumpers?

I’m just not used to connecting ground and voltage, usually that results in :collision:

Yes, voltage and ground still connect to the power supply normally. The capacitor “bypasses” these at high frequencies by storing charge locally that can be provided near-instantly when the level shifter switches from low to high. Without it, additional charge must travel from the power supply and so voltage will dip during switching, distorting the output signal. The key part though is that the charge is stored locally, and ideally very locally, so you put the capacitor as directly between the chip VCC and GND as possible.

Addressable strips are fairly forgiving, so bad capacitor placement is usually well tolerated, but its not hard to do correctly so I always recommend doing it right.

1 Like

Sounds good. Thank you for the explanation too!

Sorry to keep posting, I’m just on a trip and away from my project so all I can do is plan for when I get home. I think this updated drawing is correct based on what you recommended. Can you take a look @saratoga? Thank You!