Control RGB LED bike lights with Raspberry Pi
-
I extended this project with a physical button, and published the code on Github.
This Youtube video shows it working: https://youtu.be/IYHZDfvMqgA
This Github repo has the code I used: https://github.com/rvmey/bike-pi
LED strip: https://www.amazon.com/gp/product/B07BKQ6KCK <- I used 30 LED's, but if you use the full 300 LED strip, change this line in the fancy.py script to 300 to get the rainbow effect throughout all 300 leds.num_pixels = 300
This shows the Raspberry Pi with the button and the 300 LED strip connected.
-