• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Control RGB LED bike lights with Raspberry Pi

Raspberry Pi
raspberry pi
1
1
540
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Russ
    last edited by Russ Mar 19, 2022, 6:42 PM Oct 23, 2021, 9:28 PM

    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
    

    raspberry pi bike lights

    This shows the Raspberry Pi with the button and the 300 LED strip connected.

    pinout high level

    pinout 1

    pinout 2

    Russell VanderMey

    1 Reply Last reply Reply Quote 0
    • R Russ referenced this topic on Dec 23, 2022, 3:52 PM
    1 out of 1
    • First post
      1/1
      Last post