loading

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:

-Solar powered

-about 3 hour battery life

-backpack mountable

-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!

Step 1: Parts

You'll need these parts:

-attiny85 (or attiny45)

-4 LEDs

-4 100 ohm resistors

-1 SPST button

-SUNNAN LED lamp

You'll need these tools:

-Soldering iron (with rosin)

-Hot glue gun

-Dremel

-Wire strippers

-Optional: Multimeter

<p>Cool way to make such a portable bike light. Well done i just voted for your project.</p><p>Thanks for sharing your project with us.</p>
<p>This would be a great idea for a disaster kit I'm making. Could you write the code to blink S.O.S?</p><p>Just a thought.</p>
<p>Absolutely! Could you describe exactly what the S.O.S. blink should look like? Thanks for your comment</p>
<p>Here is a link that shows the light flashes for S.O.S.</p><p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/MKZ6rlqu-pg" width="500"></iframe></p>
<p>After a little googling I actually found someone who got an &quot;S.O.S.&quot; blink working on his arduino. Here is a link: <a href="http://www.instructables.com/id/SOS-signal-with-an-arduino/." rel="nofollow">http://www.instructables.com/id/SOS-signal-with-an...</a> </p><p>All you have to do is write a new function named &quot;sosFlash(){ }&quot; or something similar. And between the curly braces, add the code from the instructable I linked you to. </p><p>Thanks for the comment!</p>
<p>I like this :D Very neat.</p>
<p>Thanks so much! If you get around to making your own, please attach a picture!</p>
I will. I could probably go as far as turning it into a phone charger as well.
<p>Someone had the idea for this as a reply on my Sunnan-hack. Really cool that you actually did it. <a href="http://www.instructables.com/id/Easy-IKEA-SUNNAN-hack-non-destructive/" rel="nofollow">http://www.instructables.com/id/Easy-IKEA-SUNNAN-hack-non-destructive/</a></p>
<p>Thanks a lot! And yeah I actually saw that comment after I wrote this instructable but It's funny that we both had the same idea! </p>
<p>The Sunnan battery life is actually not that great, so it might be an idea to change the batteries. </p>
<p>Arrrrgggggh my PET HATE - LED bicycle lights that have any more than 3 functions - ON + SLOW blink + FAST blink or OFF......</p><p>Honestly - I hate the rear red lights that have a multitude of RED LEDS, that blink, from right to left, left to right, random, the cha-chha, the rhumba, etc., etc., etc., etc., </p><p>Turning it on - slow blink - fine... OK with that.</p><p>But trying to turn it off, and having to press those idiotically small one function buttons, like 10 times, to cycle through to the OFF setting - through all of these idiot lighting and flashing patterns.....</p><p>It drives me absolutely spastic with rage.......</p><p>I just want ON or OFF...... as in ON, Slow Flash, Fast Flash, OFF.</p><p>Seriously - 8 different animations? </p><p>I want to be seen on the road at night, and I can quite happily live without putting on a match boxed sized light show, with 10 plus LED's - for people who really don't care for it either. </p><p>If I was afflicted with such an act of genius, - another bicycle tail light with anything other than the bare essentials &quot;ON - Slow Flash - Fast Flash - OFF&quot; - I'd be smashing it with a hammer...</p><p>Because I have no time for pissing around with idiot designs that require me to press the same little button like 10 times, just to turn it off.</p>
<p>Very cool idea. Completely repurposing that lamp was very innovative. Good job.</p>
<p>Thank you so much! And if you are interested, I took all these pictures with my smart phone (an HTC ONE) instead of my usual cannon t3i. So you too could take pictures like this in expensively. It's all about editing! Thanks again for looking </p>

About This Instructable

30,795 views

186 favorites

License:

Bio: I'm a student at UW-Milwaukee studying computer science with a passion for electronics. I'm always working on a project or thinking of new ... More »
More by bergerab: Flame Controlled MIDI Controller SOLO Cup Speaker Backpack Anti-Theft Alarm
Add instructable to: