So I'm still continuing to name my DIY stuff as Chevalier. The previous Chevalier was an autonomous feeder for my fish tank. The story of my lights is far fetched. When I came to know that I'd soon be riding in the dark, I went to Pedals n Wheels and bought myself a Sigma Illux safety light. I had no clue about what a safety light was. When it proved to be of no use, I bought two cheap BSA headlights, which hardly lasted 3 hours. I got marooned on a night ride on Tumkur road with them.
Since then, I was on a lookout for lights. My crash in october kept me out of action long enough that I founded a Robotics Club in IISc and restarted my erstwhile hobby. Purchasing a headlight worth thousands of rupees is simply preposterous now! This
link by Gokul reminded me that a headlight was pending. His was a more temporary-style setup and without any weatherproofing or any solid clamp to his bike.
I began by asking him a demo of his light, which he gladly gave. He filed off the lens to fit a square aluminum tube, which created an amoeba-shaped light beam. Also, I didn't want any focussed light beam. I just want light. Lots of it. It should all be lit. The ground, the trees, everything! And it should hurt motorists the way their high beams hurt us! I'm ready to compensate for the energy consumption with D cells.
Gokul said he used a 555-based timer for doing pulse width modulation to control the current in the circuit. This has a fundamental flaw: versatility. The astable multivibrator made with a 555 can generate only a limited range of duty cycles and frequencies using a single potentiometer. And the number of modes he can have in his light is very limited. And if he desires something extra, he needs to add circuitry. I got a normal 1/4 watt LED working with a 555 based oscillator but soon abandoned the scheme.
I substituted all this circuitry with a time-tested and reliable companion: Arduino UNO. It's already a part of my bike and I had already made a weatherproof mount for it on my handlebar. So I hooked up a pin of the Arduino to a driver IC and connected the driver to the 3 watt LED. It consumed about 70 milli amps at around 30% duty cycle and about 300 milli amps at around 80% duty cycle.
I mounted the LED onto a heatsink and fixed it to a circular lens. The result: A bright light that scatters everywhere. Just the way I wanted it! I drilled a nice circular hole in the cap of an old film cannister using the dremel and fixed the lens to it with Araldite. The battery holder could not be fixed anywhere. A screw through it was dislodging the batteries. So I wrapped it in bubblewrap and put it in the Arduino box. Neither is it fixed, nor is it movable!
Final step: weatherproofing. I poured generous amounts of hot glue on every hole that exists. As a final check, I immersed my light into my fish tank.
The blinding 3 watt LED!
Let there be light! Lighting up the S-Block hostel
Up close and personal!
The beamshot. The distance between two consecutive white blobs is 2 meters.