6.3 KiB
+++ categories = ["build"] tags = ["bicycle"] date = 2025-08-12T12:15:00-05:00 description = "" draft = false slug = "bicycle-headlamp" title = "🔦 Bicycle Battery Box and Headlamp" author = "nicholas" +++
Nighttime bicycle rides in the summer are ideal:
- 🧊 cool temperatures
- 🚘 little traffic
- 🦝 nocturnal wildlife
But it is not easy to see in the dark, so I bring a headlamp and okay, fine, this works. With my current headlamp I can see and be seen just fine. But there are some limitations. I see wonderfully directly ahead of me in the narrow cone of light provided, but at the edges of this light cone I see practically nothing at all, as though I am looking through a paper towel roll. The beam pattern is optimized for riding in a straight line, with little regard for what lies in the periphery. I would like a greater field of view, so I will need a lamp with a wide beam pattern.
🔦 Headlamp
I start by selecting the headlamp. This is the most important component, and everything will revolve around it. My selection criteria is simple. The light must have these features:
- 🔆 Ultra-bright
- ↔️ Ultra-wide beam pattern
- 🛠️ Mountable on handlebars
- ❌ No integrated battery housing
- 🌧️ Weatherproof
- 💲 Inexpensive
I could not find a single bicycle headlamp that met these criteria. To get mostly everything I wanted, I had to look at headlamps marketed as 'motorcycle headlamp' and other such non-bike categories. Many things in life are like this for me.
I had to settle for the OPL5 Motorcycle LED Headlamp:
| Specification | Details |
|---|---|
| Power | 48 W |
| Brightness | 3000 lm |
| Color Temperature | 6500K (Cool White) |
{{< image src="images/opl5-motorcycle-led-headlamp.png" >}}
{{< image src="images/beam-pattern.JPG" caption="OPL5 Beam against the wall" >}}
Notice the sharp beam cutoff at the top. This is what allows me to have a very bright headlamp while also not blinding oncoming traffic. Also, the beam gradient at the bottom transitions from very bright to very dim, in a manner that maximizes usable light. It concentrates maximum light near the upper cutoff where it will disperse across a large surface area at long distances, while minimizing output in the near and mid field, where the illuminated surface area should be relatively small.
✅ This will do.
🧰 Case
I selected a cheap weatherproof case from Harbor Freight Tools. It will be large enough to accommodate many sizes of batteries, since battery packs of the nature I seek are almost always composed of a bunch of even smaller batteries, typically the 18650 type batteries. The dimensions of this battery type are also its namesake: 18 mm dia. × 65 mm l.
I mention all of this because the height dimension of the battery packs are almost always around the same height of the 18650 battery. Battery packs are assembled with the batteries standing up on end, making their height never more than 30 or so mm taller than the length of the battery, to account for the BMS, terminals, plastic enclosure, etc.
The internal dimensions of this case are 206 mm L × 95 mm × 143 mm.
✅ This will work.
{{< image src="images/apache-1800-case.png" >}}
🔋 Battery
Since the headlamp consumes 48 W, I need a battery that can sustain this load for a couple of hours without totally draining the battery. I can see how long a given battery will endure.
t= run time (hr)E_\text{battery}= battery energy (Wh)P_\text{load}= LED headlamp power (W)
t = \frac{12.8 \text{ V} \cdot 16 \text{ Ah}}{48 \text{ W}} = 4.27 \text{ hr}
I selected a cheap, unremarkable 12 V battery with a capacity of 16Ah.
{{< image src="images/nermak-12v-16Ah-LiFePO4.png" >}}
✅ This will work. It is a comfortable, if not excessive, amount of energy for the headlamp.
🔌 Switches and Ports
I splurged on a nice weatherproof SPST switch and mounting bracket.
{{< image src="images/bss-contura-iii-spst.png" >}} {{< image src="images/bss-contura-iii-mounting-bracket.png" >}}
The port that will feed power to the headlamp power is some kind of 'SAE' connector, which as far as I can tell do not actually comply with any official standard. They are used for a lot of things in weird cheap Chinese electronics, and I could have selected a better connector. I selected this mostly because it matches the connector on my battery charger and it is cheap and ubiquitous. It will be adequate.
{{< image src="images/SAE-connector-socket.jpg" >}}
🔩 Parts List
| Part |
|---|
| NERMAK 12 V 16 Ah LiFePO4 Battery |
| APACHE 1800 Weatherproof Protective Case |
| OPL5 Universal Motorcycle LED Headlights |
| SAE Power Socket Port |
| Inline Blade Fuse Holder + 5 A Fuse |
| Blue Sea Systems Contura III OFF-ON SPST Switch + Mounting Panel |
| Double-sided adhesive tape |
| Spade connectors |
| Shrink tube |
🛠️ Assembly
Now for final assembly. This is all very simple and I ran into no issues.
- Applied double-sided adhesive tape to fasten the battery enclosure to the box
- Soldered on spade connectors to wires between switch and battery
- Installed inline fuse
- Sealed the power port and switch mounting holes with silicone
- Removed the battery enclosure lid since the battery terminals were ≈ 1 mm proud of the battery box lid. The battery box would still close, but it was straining the plastic and the weather sealing would be compromised.
{{< image src="images/battery-box-open.JPG" caption="Battery box inside" >}}
Here is a wiring diagram of the circuit.
{{< image src="images/bicycle-headlamp-wiring-diagram.svg" >}}
| Component | Specification |
|---|---|
| BAT1 | 12.8 V 16 Ah |
| F1 | 5A Fuse |
| SW1 | SPST Switch |
| LED1 | 48 W |
{{< image src="images/battery-box-power-port.JPG" caption="Battery box power port" >}}
{{< image src="images/battery-box-switch.JPG" caption="Battery box switch" >}}
{{< image src="images/battery-box-mounted.JPG" caption="Battery box fastened to the rear cargo rack with hook and loop straps" >}}
{{< image src="images/headlamp-mounted.JPG" caption="Headlamp on handlebars" >}}
🚴 Test Drive
All that remains is the test drive.
{{< image src="images/headlamp-night-test-drive.jpg" caption="Wide beam width" >}}
🎉 It works!
✅ Done.