At best they go 'blink blink - look at me! I'm blinking - woohoo' all the time. And they're always red. Very creative. We can do better than that, maybe not much, but still better than just 'blink blink'. I was riding my bike during new year celebrations and people liked it, and not all of them were drunk ;-)
The rest is pretty straight forward: 2x AA cells, boost converter for 5V, some RGB LEDs, the obligatory micro controller, custom printed circuit boards from BatchPCB, perfboard and the usual soldering gear.
Remove these ads by
Signing UpStep 1: Main schematic
In the schematic you'll just find the cpu, the LEDs, a few resistors and capacitors. That's all. There's a few headers too. The boards have an ICSP header for flashing a bootloader and a 6pin header for convenient serial upload. The last 2 headers are mirrored and contain power, I2C and two more GPIO/ADC pins.
3 GPIO pins with 3 current limiting resistors are used to supply current to all 8 anodes of a single color. Individual LEDs are turned on or off using 8 GPIO pins to drive the cathodes. Depending on the type of operation the LEDs are either multiplexed (PWM for more colors) or fully on (higher brightness).
Some info on the packages I used for this board:
- ATmega168-20AU: TQFP32 SMD
- LED: PLCC6 5050 SMD
- Resistors: 0805 SMD
- Capacitors: 0805 SMD, 1206 SMD
rgb_led_toy-schematic.pdf(766x539) 62 KB










































Visit Our Store »
Go Pro Today »



Great 'structable - thanks!
Regarding the Legal vs. Illegal debate: Car versus Car is a fair fight. Car versus Bike is not. Without drinking a drop, a large percentage of drivers currently drive "impaired" - texting, talking on cell phones, Googling movie start times on their iPhones, trying to fish a Big Mac out of a bag on the passenger seat, etc.
When I questioned a Belgian friend of mine living in New York about the massive dual headlight setup on his bike, he said "Drivers don't think about bikes, and consequently end up hitting bicyclists, because they're not perceived as dangerous. When they see me coming, I want them to believe they're looking at the landing lights of a Boeing 747. I want them to FEAR me."
When sharing the road with cars, bicyclists NEED to be noticed to stay alive. If the choice comes down to "living within the law" and "staying alive", I'll always choose the latter. And if the law is forcing you to make that choice, the law needs to be changed.
Cheers.
The more light the better... maybe not blindingly bright, but quite intense nevertheless.
Like driving with rear fog lights on isn't illegal too in every civilized country. :^)
Anyway, since you haven't updated this in ~7mo, you're either dead (bummer!) or distracted, hopefully with interesting things. But if you do get around to that next prototype, just wanted to say, we're still tagged up and lurking.
Who knows? Maybe take a pin off an AVR and interface that mag sensor from your cyclocomputer so that when the bike is moving, it makes all LEDs a boring, ISO-certified vehicle tail light red? Then instead of getting schooled on worldwide laws regarding bike lights the comments would be just about praising your geekness. (shh! keep the secret override switch wiring off the instructable.)
And yes, I'm forced to devote most of my time to other unpleasant things.
BTW, it's the same thing as staring into rear fog lights. You get blinded as well.
Tail lights are not meant to be exiting, they are meant to be safe. For that matter, the same could be said for anything related to driving or riding in traffic.
You have a nice set up with the lights, but you need to take legal codes into consideration.
I am also wondering how well that rides in the snow? Have you found a way to keep it from slipping?
If you want, just pretend you're looking at the front of the bike. But please don't now tell me that it can't be red. As this thing can display many colors, people can choose any permissible color they like.
Not slipping in the snow is tricky. The best thing I know of is using off-road tires with metal spikes. But that's only worth it if you've got snow all year I guess. It also doesn't help if thick layers of snow are covered with a thin sheet of ice. As I hate changing tires, I stick with semi off-road tires all year and switch to biped mode if it gets too dangerous.
I'm thinking of having a small series of the circuit boards made, but that will take some more time. The next prototype is still a several weeks away.
THIS IS GREAT! Good job!! I like the rotating ZOWIE look as an attention grabber. I was sort of yawning until that came on. Could make those counter rotating and then reversing? Are there other patterns available?
If you did away with the multi colors, would that simplify the electronics?
In terms of programming using just a single micro would make things easier. No worries about drifting clock frequencies and the patterns going out of sync. The drifting is due to the fact that I didn't use a crystal (yes, I was lazy and didn't want to route a complex board), but the internal RC oscillators. They are only good to within 10% or so without recalibrating them. And that needs more gear, frequency counter or even better a scope.
The complexity of the electronics stays the same, but it's pretty low anyway. On the programming side it would get easier. Just turn 8 LEDs on or off. Can't be much simpler than that. Creating patterns is just using a bunch of for loops and a bit of thinking. The human eye is slow enough, so you can get away with a lot of tricks to make things look right ;-)
You could even use a smaller micro, but when looking at the price difference between say the ATmega168 and e.g. an ATtiny2313, you may save _one_ € in part cost. If I wanted to sell thousands of these I'd consider it, but that's not the case. Also I'd lose the convenience of using the Arduino IDE for programming it. I could use AVRStudio or a makefile, but the Arduino way is so d**n easy. Never change a running system!
Then all the traffic on the other side of the road had better have red head lights ;-)
So far I've only been temporarily blinded by excessively bright taillights of cars and xenon head lights. The former were so bright that my eyes hurt. All of these are perfectly legal. Compared to them this little LED toy is harmless.
However, I do know I got a lot of attention with my christmas lights: http://www.youtube.com/watch?v=_LazEwufvX4
They were shining downwards so no blinding other people. They got really distracted by it instead =p
White on the front is (obviousy) to give you a better view light. Yellow color is for lateral side and direction segnalations. This color code must be respected, imho, so you can know what is the direction/condition of a far veicle, even in bad view situation. Maybe It's boring, but it's safer.
After this, every idea to catch more attention from drivers maybe a good upgrade. Blinking is a first simple step: here we have the so-called "third eye", a blink red (led) super light in the top central rear glass of the car, that pulse directly in driver's eyes on brake use.
Your light show is a wonderful work, but what if anyone do the same? The road is not a dancehall. Oh... well, ok... new year celebrations excluded. :)
I got pulled over by the police the other week for having blue leds on my bike their reserved for goverment vehicles apparently!
That would be a good "lateral indicator".
Personally I think having reflective tires should be mandatory. As most of the lights/reflectors are mounted pointing along the bike and _not_ sideways, they're pretty useless in a 90° situation. Also reflective inlays in tires don't have the habit of falling off, like all the other spoke attached contraptions do.
The wheels are also reflective, there's just no way for any vehicle with lights to oversee him.
But besides that, it just looks awesome by night :)
I never asked him how much that bike was tho... i dont think i want to know that anyway.
Nice job.
You'r supposed to have a white frontlight and a red backlight. And if the backlight aint always turned on (if you got a dynamo and no "standing light") you need a backreflector too.
Oh and your suposed to have 2 reflectors in each wheel or an equal alternative (like reflecting wheels).
Battery powered light are ok, as long as they battery has enough power ;)
Only situation this would be legal is if you drive backwards but uhm.. yeah i guess its illegal to drive backwards all the time, not to mention pretty hard to do too lol
L
Strictly speaking even my head lights are illegal. Battery powered lights are only permitted here, if you ride a racing bike weighing not more than 11kg. But on the other hand, from my experience police officers are quite happy, as long as you have working lights on your bike. Or they just don't care. Who knows.
L
Here's a link to the gerber layout files if it helps. If you just want to make copies that should work.