In school this year, I have a pretty late schedule. Sometimes i'll be coming home from class after
sundown and with a bike that can be dangerous. Before purchasing a commercial bike light, I decided to see if I could make one myself. Using an IKEA lamp I found at goodwill (for $2) I figured I could make a pretty unique, environmentally friendly bike light. The lamp that I will show in this instructable can be found here. It uses a solar panel and re-chargable batteries which provides 3.6 volts to light several LEDs. The solar panel takes about 9 hours to charge and can provide 3 hours of light. I thought those specs were perfect for embedding a microcontroller (such as an attiny) to make a stylish bike light. Here are some features of the complete bike light:
-about 3 hour battery life
-extra bright with 4 LEDs
-8 different LED animations (selectable via a push button)
This project is great for students, bikers, makers, and anyone who enjoys tinkering with electronics! And best of all it is not expensive to make. The parts list won't set you back more than $3 (assuming you already own the lamp). However, before we begin here are some warnings I want everyone to acknowledge before continuing:
WARNING!: GREEN LIGHT IS NOT AN ACCEPTABLE COLOR FOR BIKING. I USED GREEN LEDS FOR STYLE. WHEN I USE THIS WITH A BIKE, I WILL NEED TO USE EITHER WHITE OR RED!
DISCLAIMER: I AM NOT RESPONSIBLE FOR ANY HARM DUE TO THE MAKING/USE OF THIS BIKE LIGHT.
Once you have acknowledged these warnings, lets begin gathering our parts for this project!
You'll need these parts:
-attiny85 (or attiny45)
-4 100 ohm resistors
-1 SPST button
You'll need these tools:
-Soldering iron (with rosin)
-Hot glue gun