Indian Cyclists Network

I wanted to start experimenting with microcontrollers, and thanks to a great instructible by Justin Shaw, came across this project for a Arduino based Bicycle Brake Light. Group riding would probably be safer, without having to shout out “stopping” or “slowing” to the person behind you. Putting a Brake Light on a cycle usually involved fixing a sensor or switch coupled to either the brake levers or brake pads. With different brake and brake lever types, getting it installed right could turn out to be a task.

Justin's original design was for the lights to be mounted at the ends of the drop handle bars (bar end) on a road bike. I had a hard tail. Also, I figured a more obvious mounting position would be under the seat post. So, here's a Brake light that you just plug in to its mounting bracket on the seat post (just like a regular rear light), and that's it. Why did I build it - if people always “bought” what they wanted, the word DIY would never have made it to the dictionary !

So, here's how it turned out. First, some brief specifications :

+> Atmel ATMega 328P microcontroller based design – this controller has it all – 32k Flash program memory, 1k EEPROM, 2k internal SRAM, timers, counters, six PWM channels, A-to-D ports, Digital IOs, Serial interface etc etc.
+> The microcontroller is loaded with the Arduino environment, with a built in Bootloader (so, basically, this Brake Light has to “boot up”, when you switch it on :-) - takes less than a second though).
+> A three axis Accelerometer sensor, to detect deceleration (braking) – so no wires or cabling required.
+> Plug and Play – just fix it to the mounting bracket, and its ready to go - the power switch is also the mounting bracket.
+> Adjustable sensitivity – from 1.5g for the slow folks to 6g for the speed demons.
+> Works on three AAA cells.
+> One Blinky flashing LED in the center to act as tail light (attention getter).
+> Four red LED's to indicate Braking.
+> Saddle post mounting.

I modified Justin's schematic, as well as the software (The Arduino environment is open-source), and went about designing the PCB. This turned out quite well, even though I was using KiCAD for the first time. Emailed the gerber plots to the PCB Fab house, and a week later, I got back 10 brake light PCB's. Justin's version was made from regular prototyping board.

The assembly took less than an hour, 'cause there are just a few parts, apart from the microcontroller, the sensor breakout board, and the LED's.

Programming and calibration was a jiffy, thanks the the USB port that I managed to build in, coupled to a Arduino Duemilanove development board.

The tough part was the mechanical assembly. After some bit of hunting, I managed to get a suitable plastic housing.

Then, I had to fabricate a battery holder for the 3xAAA – using a thick piece of bakelite, some laminated copper board, and the milling machine, I managed to carve out a decent battery holder.

Milled another slot in the plastic case for the LED's to stick out (my mistake though – should have drilled five independent openings for the LEDs).

Next step, power switch and mounting. I couldn't find any small switch lying around, and kept the project aside for a whole day, before I got a flash of imagination. I found a couple of 4mm jacks lying around, so these were used to hold the plastic housing closed, and were also wired up to the two terminals for the switch. So, I now have the box complete, with the two 4mm jacks sticking out. Just short these two, and the unit is turned On.

Then I had to get the mounting bracket done. I rummaged around, and found the right size of 10mm thick aluminum slabs lying around in my workshop. Three separate pieces, with lots of cutting, milling, drilling, and some lathe work to bore out the big hole for the seat post, and I had the mounting bracket ready. Phew !

So, all in all, a DIY project successfully completed. I didn't have anyone around to help me video this, so I just put the camera on the work bench and did the best I could. (Video uploaded separately on

 video :

Nest step, I'm colloborating with Justin to build another version that will have a Gyro sensor added to it, and the unit will be helmet mounted. Basically, measure acceleration and rotation simultaneously to detect braking from any head angle. This would be mighty useful to all those riding peloton. We're calling it the Sharkfin.


Views: 1162


You need to be a member of Indian Cyclists Network to add comments!

Join Indian Cyclists Network

Comment by Anool J M on July 19, 2013 at 9:58am

Vivian, sorry I couldn't reply earlier. I'm swamped, getting ready for the Open Hardware Summit. Won't be able to take on any new projects until the end of September. What SW do you use to design boards?

Comment by vivian on July 1, 2013 at 8:55am

If cow can please see the parts list in the link, as to if these parts SMD would be available in Lamington Road-Especially the SuperCaps-If we can source the parts, then I can go ahead and make the PCBs.Then we can assemble it and build it, I plan to offer the extra PCBs at cost price to fellow cyclists  to build.
 Seems a good safety project for those who ride at night or do long distances. 

Comment by Anool J M on June 29, 2013 at 2:13pm

Vivian, sure, let me know what you have in mind. Send me a mail, and we'll see how to take it forward.

Comment by vivian on June 26, 2013 at 3:13pm

Dear Anool,

This link looks like a good light to build.

We can do this together, I am into electronics too



Comment by Anool J M on June 9, 2013 at 2:12pm

From WIntech in Marol, Andheri East (Google it up). Although I wasn't happy with their quality and service. Now, I usually use or seeedstudio.

You can try out EPS PCB Technologies (

or PCB Power in Ahmedabad (

Comment by vivian on June 9, 2013 at 10:28am

Hey Anool, can you give me the details of where you got the PCB made? I have another front light lED project I would like to build. What were the charges of 10 pcbs, please?

Comment by Pritam... on May 24, 2011 at 3:40pm
Comment by Anool J M on May 24, 2011 at 1:37pm

umm, Cost is inversely proportional to quantity :-)

But then, considering the parts that go into it, I think it may just about break the INR 2000 barrier, not much lower than that. I've never looked at the large scale economics of it.

And yeah, it can be used for hazard warning on almost any moving object - Robots, People, Vehicles !!!

Comment by Sunil Gandhi on May 24, 2011 at 1:01pm
Man that was Great !!!  Now u got to work to bring down the cost and that piece would sell like hot Cake !  Just imagine, Brake light without any  Switch.  and U can use it anywhere I guess, why restrict it to Cycles. U have Mobikes, Cars and what not !
Comment by Vinamra Singh on May 24, 2011 at 12:38pm
Wow man!


  • Add Photos
  • View All



© 2019   Created by Amit Bhowmik.   Powered by

Badges  |  Report an Issue  |  Terms of Service