Brilliant auto-off feature for a bike light

auto-off-bike-light-switch

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.

Comments

  1. Jeroen says:

    In the Netherlands it’s a pretty common feature on bicycle lights, but still its a great hack. :)

  2. Robot says:

    This feature is known as a “stand light” and is used for dynamo powered lights. 30 seconds is far too short for sitting at a traffic light. I know, a cyclist at a stop light, crazy talk!

    Otherwise it is a good hack.

  3. andar_b says:

    The spring should still vibrate enough if he’s still physically touching the bike, even while stationary. For that matter, someone bumping the bike rack will probably turn it on. :p

  4. Jon says:

    This is a very cool hack!

  5. treymd says:

    I think oxidation will become a problem eventually.

  6. vonskippy says:

    Is it that hard to remember to turn off the light via the switch?

    Maybe those dorky bike helmets are just a tad too tight.

  7. Natalie says:

    I’d be tempted to use a hall sensor and a magnet on the spring to get rid of the contact oxidizing issue. But I like the raid the junk box and make it work approach too…

  8. bunedoggle says:

    Awesome hack, this is going in my memory back for later. I know I’ll use this type of mechanical one-shot eventually.

  9. kay says:

    Simple, clever, cheap, Just Works. Just the sort of thing I look for on hackaday! Awesome job Miceuz.

  10. Bobby O says:

    I had another project very similar. I used a vibration sensor but same concept.

    http://www.mouser.com/ds/2/261/LDT_Series-10899.pdf

  11. rasz says:

    why not a switch inside a seat?

    • HC says:

      Exactly what I thought, Rasz. A dozen different kinds of sensors and switches would fit inside the seat and work better (and safer) than an improvised vibration switch with a thirty second timer. A flex sensor in the seat. Or, hell, one of the makeshift tilt switches HaD recently featured calibrated to activate when the bike is straight up and down, as opposed to leaning on its kickstand. A thermistor in the seat connected so it flips a transistor when his butt warms it up.

      • Yes, dozens of sensors would work better. I’ve considered switch in a seat approach, but I wanted to avoid running wires thru bike, wanted it to be one contained unit – that’s why this bulky light, wanted the circuit to draw ZERO power when off and wanted to finish the build here and now. This switch looks like what I need exactly: http://www.fuji-piezo.com/smdtilt.htm but it’s impossible to source.

        • HC says:

          There’s no practical difference between “zero power when off” and “less power than the batteries would lose even if left alone,” though a tilt switch would fulfill your zero power requirement.

  12. hboy007 says:

    >He first thought about using an accelerometer, but couldn’t find one that fit the bill without also adding a microcontroller.

    A Bosch BMA250 has an SPI / I2C interface and can be initialized to operate in stand-alone mode. I really like the BMA2XX series but the LGA12 package (2x2mm footprint, no-lead with 250µm pitch) is a pain.

  13. Bill Gander says:

    I like it :) The spring switch is a nice touch.
    I ended up doing things a little differently and cheated and used a demo timer circuit from an old keyboard and a boat pushbutton under the seat. I did get pretty lucky that everything just kind of worked and thankfully there were even wire jumpers to cut instead of traces. It was one of those lucky messes that rarely happen :) My buddy still has it and loves it all these years later.

  14. Hattori Hanzo says:

    At about 2002 I had an after market wireless door lock control system in my car. It worked by locking the doors once no signal was received.
    The transmitter in the keyring remote worked exactly this way. A long, flimsy spring that charged a small capacitor.

    This hack is actually way older and I’d call it one of the primitives of electrical engineering. Still, getting that idea yourself is worth something :)

  15. Eirinn says:

    Go with fastened magnetically powered bike lights.

    They fasten to the chassis and the wheel and every revolution adds a current spike to the electronics which makes the lamp light up. If you stop the bicycle the power is automatically cut since you’re not pedalling.

    They are bright, requires no batteries and are near impossible to break.

    AFAIK it’s a patented Danish invention, I’ve had two kinds and they’re amazing :)

  16. echodelta says:

    Dirty ,water admitting power switch or jiggle and ride w/sealed insides. Only with a winter layover will the spring stop working due to corrosion. Spider’s webs maybe.
    Worth using in a scaled up multi-watt led and lithium power pack. If you want the best safety and notice without the put-off of a led-strobe light, this is the way to go. Join the rest of the flock with the same lighting. The street ain’t a disco.

  17. rue_mohr says:

    To +1 stupid improvements: use an accelerometer hooked up to a rasberry pi, when it detects movement it turns the led on for 30 seconds!

    The simplicity and practicality (for its application) of the hack is its elegance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 94,102 other followers