Brilliant auto-off feature for a bike light


If you’re going to use your bicycle as transportation at night you really must have a head and tail light in hopes that the crazy drivers don’t hit you. For good reason, these lights don’t turn themselves off. But [Miceuz] kept forgetting to shut it down upon arrival and always ended up with dead batteries. His quest for an auto-off feature that actually worked ended in a brilliant and simple add-on circuit.

He first thought about using an accelerometer, but couldn’t find one that fit the bill without also adding a microcontroller. He came up with an even simpler circuit, which can be seen at the base of the black plastic housing. It’s a bit of copper clad board with a small spring attached. The spring completes an RC timer circuit which drives a MOSFET. When that circuit is charged, the MOSFET connects power to the bike light. When the cap runs out the MOSFET threshold cuts power and everything turns off. Since the spring jiggles while he rides it provides the momentary connection necessary to charge the capacitor. Stay stationary for about 30 seconds and the auto-off kicks in.

Adding auto-off to a cheap multimeter

[Florin] picked up a cheap multimeter in order to make multiple measurements at one time. Unfortunately, he wasn’t very good at remembering to turn it off when he was finished so he burned through some batteries. Why an auto-off feature wasn’t the first thing coded into the firmware we’ll never know, but [Florin] developed his own hardware-based auto-off circuit.

It sounds like he had all of the components necessary for this on hand already. He grabbed an AVR ATtiny25 in a surface mount package. To keep the board small, he didn’t include an ISP header, but instead made long pads that could have wires soldered to them for flashing the firmware. The microcontroller drives an NPN transistor that can cut off the ground path between the multimeter and its battery. A tactile switch is connected to one of the external interrupt pins and, when pressed, gives you 15 minutes of time to use the meter. After that, the chip kills the power and goes into sleep mode. Simple, and small enough to fit inside the case.

[via Dangerous Prototypes]