I would like to reduce the amount of lines for a string of WS2812B RGB LEDs for a project. In my understanding two lines should be sufficient, since we can modulate the signal onto the DC line.
Similiar questions have been asked and answered on this platform: "How to couple a signal on to a DC line", "Injecting a communication signal over DC power supply lines" and proably more.
So I went ahead and simulated an according circuit in LTSpice. Below you find my circuit and the simulation result.
(All plot curves are voltages; Red curve is the input signal, blue is the dc+signal mix, green is the demodulated signal and turquoise is the demodulated DC. C4 symbolizes the 15pF input impedance as per datasheet and D1 approximated the power consumption by the RGB LED. ws2812.txt contains a random 5x24 bit signal modulated as per datasheet for the WS2812B).
As you can see, the modulation and demodulation seem to be working just fine, except for the huge overall oscilation/swing.
My guess is, that that comes from the effective LC-Circuit formed by C1, L1, C2 and L2. I played around with this circuit for hours to get rid of it, but was never really successful. My best attempt can be seen below: I added one 5V-zener-diode for the demodulated signal branch. (Please note the different colors for the voltage plots.) (All plot curves are voltages; Green curve is the input signal, blue is the dc+signal mix, red is the demodulated signal and turquoise is the demodulated DC).
According to the WS2812 datasheet the resulting signal should be ok, except for the continued swing on the signal line after the actual signal ended. I was wondering if I was doing anything wrong and/or if there was a better solution.
One thing to keep in mind, is that there should never be any voltage dropping element in series with the dc part of the line, since we want to add several of these circuits in series and each needs a dc component of 5V.