Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 led strips not working #183

Open
EL3CTR0B1TCH opened this issue Oct 8, 2022 · 4 comments
Open

2 led strips not working #183

EL3CTR0B1TCH opened this issue Oct 8, 2022 · 4 comments

Comments

@EL3CTR0B1TCH
Copy link

Every time I connect 2 led strips everything works fine for a few mins but then one of the strips just freezes in a certain state and stops working no matter what I do in the gui. Both are configured right and both work independently, no inverter on each one of them and both are getting 5v straight from rpi4.

@TobKra96
Copy link
Owner

TobKra96 commented Oct 9, 2022

Hi,

have you checked our FAQ? https://github.com/TobKra96/music_led_strip_control/wiki/FAQ#issues-with-the-led-strip-driven-by-the-raspberry-pi

If you want to drive 2 different stripes on the Rapberry Pi, you have to use

  • Different direct memory access channel (DMA)
  • Select the PWM channel (0 or 1).
  • Dependent on the channel, you have to select the GPIO pin (Channel 0 - 12, 18 and Channel 1 - 13, 19 (only available on B+ and later))

You can configure them inside MLSC Webinterface on the device settings.

Additionally, you have to disable the system audio, which uses one of the PWM modules that you need. See https://github.com/jgarff/rpi_ws281x#pwm

@toreupfeet
Copy link

toreupfeet commented Oct 23, 2022

Rpi4 8gb here, and I also cannot add a second output without corruption. When both outputs are set to DMA 10, this is actually the best outcome. When I configure the two outputs to separate DMA (as instructed in the FAQ) there is extreme corruption in the data signal; very strange behaviors on both strips. I'm using WS2812B.

When there is only one "Device" with Rpi output, that device is stable, but as soon as I even click Create New Device (immediately after I click that button ...I haven't even saved the device yet) the LEDs in the first output become unstable, and they remain unstable no matter what I try. And the second device can be completely unresponsive, depending on which DMA I select.

@TobKra96 I've spent many days trying to determine the cause of my LED strip data instability (I immediately created two PWM devices in MLSC after I installed it on my Pi so it took me days of trial and error to finally realize that with only one device the signal was in fact stable). What can be done? Perhaps I should post an issue in https://github.com/jgarff/rpi_ws281x? Or is this something MLSC can address?

@toreupfeet
Copy link

By the way @EL3CTR0B1TCH, if I'm interpreting what you wrote correctly, you're driving the LED strips directly from your Pi4 GPIO pins, which are not 5V logic but actually 3.3V. If so you could be straining your Pi4. It's worth passing your data output through a shifter like a 74HC14. I've had luck with a 74HC14 in my brief trials, but others claim only an HCT will do the job. See here:

https://electronics.stackexchange.com/questions/473337/raspberry-pi-with-74hc14-connecting-to-led-strip-ws2812b

@42Willow
Copy link

42Willow commented Jul 2, 2023

Any update? I have the same issue here.

I'm using a logical level converter and separate DMA, channel, and PWM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants