# Dimmable Li-Ion Halogen Bike Light

## Overview

# Dimmable Li-Ion Halogen Bike Light

Biking in the winter, or at night, is dangerous without a front light. A good front-light is essential, not only for being seen, but to see the road. LED lamps will not illuminate the road, and they can be too dim for cars to see you (1W or better LEDs are quite nice as headlamps.) I offer here a simple (but high-quality) design to build your own 5 or 10W halogen lamp, which runs off of a rechargeable 7.2V or 7.4V Lithium Ion battery pack.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/434/medium800/projects_lit.jpg?1396851414)

_Assembled light, with 10W halogen, and 3.5Ah 7.2V lithium ion battery pack (the nice battery holder was custom made for another project)._

## LiIon vs. Other battery types

LiIon are extremely light and small, much lighter/smaller than NiCads, NiMH and for sure Lead Acids. They can handle a couple hundred recharge cycles, are readily available (unlike LiPolymer) and work in cold weather. Another nice thing is their voltage starts at 8V and quickly drops to 7.2V, then stays there for most of the life, before dropping slowly to 6V. This means that overvolting your 6V lamp is really easy. The bad thing is that you may not notice that the lamp is dimming before it abruptly turns off due to the internal undervoltage fuse.

Li-Ions are a little more delicate than most batteries and must not be over or undervoltaged. I use prepackaged batteries with protection circuitry inside. I would hesitate to use bare-back cells, as fires suck. Regardless, Li-Ions dislike giving burst charges, so you can't just connect your lamp to a battery with a resistor (or potentiometer) in series, as halogens will current-spike (5A? 10A?) if voltage controlled. Therefore you must use a current-control scheme as presented here.

You can buy Sony InfoLithium/Camcorder batteries (such as the NP-F550/F750/F950 formfactor) off of [EBay](http://www.ebay.com/sch/i.html?_nkw=NP-F750&_armrs=1&_from=R8&_ipg=) for cheap, you can connect to them with mini banana plugs. (Or by soldering directly if you are really really quick and have everything pre-tinned, I don't advocate it unless you're safe!)

## Halogens vs. Other lamp types

There isn't really any other reasonably priced options available right now, 5W [luxeons](http://www.philipslumileds.com/) are $50 and the white ones don't last more than a couple hundred hours. They are more efficient than the MR-11's I use, but the best is really to go with an MR-16 10W if possible. I had trouble finding a 6V MR-16 bulb, so I stuck with MR-11. Most 'professional' bike systems use MR-11's because they are small and unobtrusive.

You can overvolt by turning up the pot, for up to 10% overvolting (5% over-current), which will give you 40% more lumens but give you only 1/3 the bulb life. For more information about overvolting see page 8 of the [GE Halogen Guide](http://www.ukrecscuba.org.uk/ukdiver/torch/ge%20halogens%20tech.pdf).

These bulbs are available from [Atlanta Light Bulb](http://www.atlantalightbulb.com/) for $6 each, make sure to get the right voltage, wattage, and with a coverglass.

# Dimmable Li-Ion Halogen Bike Light

## Parts

There are a few parts necessary, but all of them are pretty easy to get.

The rest are electronic components, all available from [DigiKey](http://www.digikey.com/).

_\* If you're using a 10W or less bulb, 1/2W is ok. Otherwise, 1W is best._

# Dimmable Li-Ion Halogen Bike Light

## Circuitry

If you plan to build the housing out of halogen lamp tube (35mm I.D.) I would suggest getting a piece of perfboard, perforated prototyping board and cutting it into a circle that will fit inside the tube, then soldering all the parts. This requires a little bit of foresight, and attention as it's hard to remeber what pin is what.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/438/medium800/projects_circuit1.jpg?1396851540)

_The opamp is in the center, with the sense resistor and FET pointing down, the potentiometer has 5 wires because it has a built in switch._

Download the schematic from the download page. Look at it and place all the pieces _before_ soldering anything! Place the 8-DIP opamp first, about center, then place the FET, on the perimeter so that the heat sink will press against the housing, then place all the resistors. Remember that the 0.1 ohm resistor must be precise in value and 1/2W or 1W (at least) otherwise known as a 'sense resistor.' In the pictures, the white ceramic tablet is the resistor, and the metal sheet is the heatsink for the FET.

Preferably, the potentiometer and on/off switch should be in the same package. Make sure the pot is linear taper, not log/audio taper.

Use solid-core wire when making jumper-wires on the board, and stranded for wires that go to the pot/switch/lamp.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/439/medium800/projects_circuit2.jpg?1396851551)

_The other side of the circuit board, showing the heat sink, and the large sense resistor. Also, the lamp socket is visible in the top lefthand corner._

To connect to the lamp, you can either (carefully) solder directly, or get a socket. The lamp should last a really really long time (1,000hrs at least) so there's nothing particularly wrong with connecting directly to the lamp. Just make sure you can still assemble it (read the housing assembly instructions since a ring needs to go between the board and lamp).

I didn't include a fuse, but you may want to. (A proper LiIon battery is current limited anyways, which is why the whole system is current-controlled.)

Use heat-shrink liberally when necessary, not electrical tape. Electrical tape doesn't hold as well.

Plug in the lamp and give power to the system, verify that it works, there should be a ~150mV drop across the resistor, and a voltage that is 32 times that on pin 7 of the op amp. There should be 5V at pin 2. Turning the pot should dim/brighten the lamp. (Hopefully)

# Dimmable Li-Ion Halogen Bike Light

## Housing & Retainer

Find a thrown-out/broken torchiere halogen lamp, the kind that are 7ft tall and break all the time. This should be trivial, as they are cheaper to replace than repair. Check that the I.D is 35mm (1.4"). Cut a piece that is between 3" and 3.5" long that includes a set of threads. Also take one or two of the interconnect threaded pieces.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/440/medium800/projects_innerthreads.jpg?1396851560)

_One end of the housing should have a full set of threads, the two rings are visible in the background._

Cut the interconnect so that you have two rings with three threads (or one with four and one with two). Debur/file everything. Thread one of the rings in all the way in, then place the lamp in so that the ring holds it and thread the other piece in, verify that they are the correct size.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/441/medium800/projects_innerring_small.jpg?1396851571)

_One of the filed rings inside the housing._

You can put a gasket in if you'd like, to make it more waterproof.

To cap the other end, find a plastic jug cap that is 1.5" diameter. These are surprisingly common, and I got mine off of a thrown out motor oil container. Cut the threads out with a dremel or knife. Drill a hole and mount the potentiometer. Drill another hole to let the two battery connect wires through.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/444/medium800/projects_endcap.jpg?1396851613)

# Dimmable Li-Ion Halogen Bike Light

## Final Assembly

To assemble, push the circuit board in, using the heat sink to hold the board in place (the heat sink presses against the sides of the housing).

![](https://cdn-learn.adafruit.com/assets/assets/000/007/445/medium800/projects_assem1.jpg?1396851624)

Push the cap onto the end of the housing.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/446/medium800/projects_assem2.jpg?1396851635)

Then thread the inner ring, plug the lamp into the socket (or solder it in).

![](https://cdn-learn.adafruit.com/assets/assets/000/007/447/medium800/projects_assem3.jpg?1396851646)

Then thread on the last ring.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/448/medium800/projects_assem4.jpg?1396851657)

If you don't think you'll open it again, you might want to put a drop of threadlock or superglue, to keep it from unscrewing. Ducttape the cap, and hotglue/epoxy the hole where the battery wires emerge.

![](https://cdn-learn.adafruit.com/assets/assets/000/007/449/medium800/projects_assem5.jpg?1396851667)

I soldered on a DC jack onto the end and shrink wrapped it all.

## Schematics

- As an [Eagle](http://www.cadsoftusa.com/) [schematic](http://learn.adafruit.com/system/assets/assets/000/010/215/original/bikelite.sch) file

Or just click on the image below to get the embiggened BMP  

![](https://cdn-learn.adafruit.com/assets/assets/000/007/916/medium800/bikelite_schematic.bmp?1366563161)


## Related Guides

- [Run an X-Carve CNC Machine Wirelessly with a Raspberry Pi](https://learn.adafruit.com/control-an-xcarve-cnc-machine-wirelessly-with-a-raspberry-pi.md)
- [Quadcopter Spray Can Mod](https://learn.adafruit.com/quadcopter-spray-can-mod.md)
- [PlayStation Spinner Controller](https://learn.adafruit.com/playstation-spinner-controller.md)
- [Build your own NeXT with a virtual machine](https://learn.adafruit.com/build-your-own-next-with-a-virtual-machine.md)
- [USB MIDI Host2Host](https://learn.adafruit.com/usb-midi-host2host.md)
- [CircuitPython on the Xteink X4 eReader](https://learn.adafruit.com/circuitpython-on-the-xteink-x4-ereader.md)
- [Vintage computer to HDMI with Feather DVI & CircuitPython](https://learn.adafruit.com/vintage-computer-to-dvi-with-feather-dvi-circuitpython.md)
- [Onion Pi](https://learn.adafruit.com/onion-pi.md)
- [Glowing Skullcandy Headphones Mod](https://learn.adafruit.com/glowing-skullcandy-headphones-mod.md)
- [BLE Sniffer with nRF52840](https://learn.adafruit.com/ble-sniffer-with-nrf52840.md)
- [Android Smart Home Mirror](https://learn.adafruit.com/android-smart-home-mirror.md)
- [Gravatars: What they are and how to add or change one](https://learn.adafruit.com/gravatars-what-they-are-and-how-to-add-or-change-one.md)
- [Data Logging IoT Weight Scale](https://learn.adafruit.com/data-logging-iot-weight-scale.md)
- [Setting up an Open Speech Recording Website](https://learn.adafruit.com/setting-up-an-open-speech-recording-website.md)
- [SNES EZ Key Bluefruit Game Pad](https://learn.adafruit.com/snes-ez-key-bluefruit-game-pad.md)
