However, it must be said that it is unfortunately not possible to simultaneously play sounds via the Raspberry Pi onboard sound card and control the strip. This is because the Raspberry Pi is not a real-time system like the Arduino or ESP8266 is. For the sound reproduction PWM is used, which is also needed to control the WS2812 on the Raspberry Pi. Using both at the same time is not possible, which is why someone who relies on the sound reproduction should just take the WS2801. https://tutorials-raspberrypi.com/conne ... ed-strips/
Also here pwm , dma is mentioned https://learn.adafruit.com/neopixels-on-raspberry-pi for the library i was thinking to use (adafruit neopixel python module)
Is there only one pwm pin available? Even arduino seems to have several.
Some possible solutions.
- 1. As mentioned it seems the ws2801 led strip can be run without using the pwm/dma, but a good amt of 2812 leds have already been placed.
2. I really don't want to run an arduino and raspi both ...
3. run the ws2812 at low speed ? I dont know if this is possible , but i only need abt. 10 hz of addressing speed for the leds, can the timing reqs. on waveform for 2812 be satisfied by non-pwm gpio pins in this case?
4. Would a raspi 4 solve it?
5. Maybe some shield for timed bit-banging?