0
\$\begingroup\$

Ihave a problem. i need to solve is as fast as possible. Maybe someone here has an idea what to do.
I have WS2812 LEDs. Beetween each pixel is 30cm cable.
I have to drive about 150 pixels of them with one controller.

The Problem there now is that there is a flickering and random color change sometimes. But we have only connected 8 pixels yet. And the issue appears after 2 to 3 pixels.
I think its problem with Data but i dont know how to solve it. Im using an ESP32. Is there anybody here who can help?
I hope to find the solution asap. Thanks in advance enter image description here

Here a picture of the wiring. Its an old picture. Ive rewired it a bit better, but same pricipal.

\$\endgroup\$
36
  • 2
    \$\begingroup\$ perhaps you may think about including all available information \$\endgroup\$ – jsotola Mar 5 at 22:10
  • 2
    \$\begingroup\$ Is there anybody here who can help? is not a technical question about electronic design ... you have not asked any specific, answerable questions \$\endgroup\$ – jsotola Mar 5 at 22:11
  • 2
    \$\begingroup\$ Do you have a scope? Have you scoped the data at the strip? \$\endgroup\$ – Mattman944 Mar 5 at 22:45
  • 2
    \$\begingroup\$ @mrchaos1234 it seems that you are not thinking clearly about what you are doing ... otherwise, I believe, you would have included a description of the power supply and the wiring connections ... perhaps you have been fighting the problem for too long and it is time for a well deserved break \$\endgroup\$ – jsotola Mar 5 at 22:51
  • 2
    \$\begingroup\$ WS2812 on header, WS2811 on main text. What do you really have? \$\endgroup\$ – user263983 Mar 5 at 23:50
1
\$\begingroup\$

Source Data Out CMOS drivers are about 50 Ohms similar you any 5V uC logic or 25 Ohms for <3.6V logic so adding 100 to 150 Ohms at the source is necessary to dampen twisted pair impedance of around 220 Ohms . The datasheet shows how to decouple the Vdd LED noise current with an RC filter, so the signal is clean until the next IC which operates as a repeater.

You cannot simple use loose wire from the controller with Vdd, 0V and self-clocked data as a controlled impedance.

The heavy wire you show has capacitance to ground (0V) and is inductive with ~ 1uH / m and this causes a high frequency RINGING from a series low R-LC resonant frequency. In order for data to have good signal integrity over wires, the signal impedance must be kept low for the rapid rise time and have a series impedance to match. Since the CMOS DI input is high impedance, there is no attenuation of voltage. Thus after each chip there is LED PWM noise current added to cause ground shift voltage noise from the inductance V=LdI/dt.

Successive additive noise reduction with the RC filter per IC and twisted pairs is necessary. Very long lines near other EMI sources will need more care.
e.g. 150 Ohm series R from Driver, perhaps shielded cable, Baluns , etc.

This is what the datasheet shows.

enter image description here

Below is my model of your photo wires with CMOS data to the chips, You want a flat spectrum up and no peaks up to 20 MHz.

With loose wires , this is your data transmission line with CMOS input capacitance and 1uH /m per wire (DO+Gnd//Vdd)

The 1st leg I guestimated with 6m of wiring. then 60 cm after that. (30cm x2)

enter image description here

300 Ohms almost flattens the response. A different cable requires a different dampening R. 1 twist per inch, a bit more is lower impedance for 220 Ohms.

enter image description here

The switch is just my simulation ease of demo.

\$\endgroup\$
1
  • \$\begingroup\$ what do you mean with Source Clk ? \$\endgroup\$ – mrchaos1234 Mar 6 at 19:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.