modprobe snd_aloop
pigpiod
systemctl start snapclient.service
- For NeoPixel Strip Rolle
- And any Rasperry pi
- cava: https://github.com/karlstav/cava
- snapclient (optional): https://github.com/badaix/snapcast
- alsa
pip3 install board neopixel readchar
modprobe snd_aloop
systemctl start snapclient.service
python din-led-strips.py
you need a 5V DC power supply with at least 1.5A (4 bars).
Connect the red wires of the strips to the 5V DC, the white wires (black) to GND.
The thorough (DIN) must be looped through from the beginning to the last strip.
This cable is connected to GPIO18 on the Raspberry.
Connect one GND of the Raspberry also with the GND of the 5V DC power supply.
-
define up to where the green range goes (0 - 255)
MAX_GREEN = 140
-
define up to where the orange range goes (0 - 255)
MAX_ORANGE = 210
-
define how many pixels (LED) a bar has
NUMBER_OF_PIXELS_PER_BAR = 60
-
define how many bars you have
NUMBER_OF_BARS = 4
-
Preset the brightness of the LED
BRIGHTNESS = 0.1