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

    Control RGB LED bike lights with Raspberry Pi

    Raspberry Pi
    raspberry pi
    1
    1
    481
    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.
    • RussR
      Russ
      last edited by Russ

      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
      • RussR Russ referenced this topic on
      • First post
        Last post