Thursday, October 10, 2013

Revolight - Like Arduino Bike Lighting System


Revolights are revolutionary, but they are REALLY EXPENSIVE!!!

Haven't heard of them...Check them out, then come back here to learn how to make your own!

 I am hoping to provide a means for any DIYer to make a comparable bike lighting system for themselves AND for a fraction of the cost.

This project is completely open sourced, meaning I am not charging for my information, designs, programming code, etc. Why do this you ask?  Simple.  These lights, like Revolights, will save lives and everyone deserves access to this technology. Even if your pockets aren't super deep.

So far I have found an electronic control platform and written programming code for both the front and rear wheels.  Each wheel will need its own independent controller. Each controller is identical. ONLY the programming code uploaded on it will be different. There is code for the front wheel that is different from the back wheel code.  (see code links below).

I chose the Atmel 328p bootloaded with Arduino for the "through hole" dip chip option OR the attiny167 for the "surface mount" option. Both of these integrated circuits share the same physical pinout and the code I wrote for both the front and back wheels will work flawlessly with either IC chip you choose.

Here is my YouTube video to catch you up to speed on what I'm making:
Keep in mind that this is just a crude mock up and not a refined build. Yet.



If your looking for my Arduino Code then look no further:

Front wheel code

Rear wheel code

The programming code calls for the LEDS to be distributed around a bike wheel in a specific sequence. Here is a picture of how the lights need to be ordered for the programming to light them properly for the intended effect:



* please read the code comments.  They explain where the hall effect sensor (wheel rotation sensor) and sensor magnet (ordinary magnet) need to be placed in relation to the numbered LEDs seen in the picture above.  If not placed correctly (hall sensor OR magnet, then the system will not operate as intended. 


Next I will be making a schematic followed by a circuit board specifically for this build.  I could simply just use the Arduino Uno board as I did in the video above, although this would be too heavy and bulky in a bike wheel.  To avoid heavy and bulky electronics I'm designing my own circuit board with the attiny167.  This board will be very small and light allowing for a sleeker appearance.  I simply used the Arduino Uno to test and refine my programming.

I recently learned how to make my own circuit boards at home using the photo transfer method.  I am very pleased with the quality this technique allows for.  I'll post pictures of my boards when they are made.

I'll also be posting my schematics and eagle board layout for the build as soon as I finish them, know they don't have errors, and test them.  

Just a quick update everyone.   I'm working out my board layout on eagle and test fitting my circuit components.  Everything looks good.  I'll share the files when I know these work.





    In this picture you can see the printed circuit board I'm making for the bike lights.  The quarter is there for size reference.  Crazy small.  Awesome!!!!


I'll be printing this board on photo transfer paper and etching it soon after the holiday.

- Kevin B.
 "Build it, mod it, hack it. Do it."