Skip to the content
PCBKitNew board
2 layers13.7 × 7.5 mmLed driver, the printed circuit board in 3D

Small, lightweight and waterproof headlamp with two Cree XP-G2 leds.

Size
13.7 × 7.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
40
Nets
26
Pads
124
Tracks, vias
428, 0
Pours
2
Routed
Yes
KiCad
KiCad 4
Created
16 Feb 2016
Updated
25 Nov 2018

Overview

Led driver is an open-source printed circuit board by kajusK, from the kajusK/DarkStar repository on GitHub. It is a 2-layer board of 13.7 × 7.5 mm with 40 parts on 26 nets, routed with 428 tracks and 0 vias.

It is built around the BAT60A and DMP2305U. Its parts include 17 resistors, 6 capacitors, 6 diodes, 2 transistors and 2 connectors. It belongs with the PIC boards of this library.

Main components

2

README

README.md

New version!

There's a whole new version with mutch more features and power: https://github.com/kajusK/Darkstar-Mk.II/

DarkStar headlamp

Small, lightweight and waterproof LED headlamp with two Cree XP-G2 leds. Can be used in biking, caving, mine exploration, hiking... But always carry a backup light source.

Top side

Features

  • Waterproof aluminium lamp body
  • Lightweight - whole headlamp, including two 18650 batteries, weights 220 grams
  • Two 5W Cree XP-G2 LEDs with independently controlled brightness
  • Always on LED with wide (115 degrees) beam to illuminate surroundings
  • One narrow beam (10 degrees) LED to illuminate long tunnels, big caves, etc.
  • Real Lab-measured light output is over 200lm (ebay value, based only on LED datasheet, would be over 600lm), see Measurement for more details
  • Small red status LED (can be replaced by UV LED, etc.)
  • Controlled by PIC 16F616 MCU (source code included)
  • Low power off current (3,2 uA), no need to unplug battery during power off state
  • Low power mode when battery is almost dead (single LED on lowest power, ~40mA)
  • Long run time (up to 110 hours on lowest power (~40mA), over 24 hours on reasonable walking power (~150mA))
  • 3D printed waterproof battery box for two 18650 Li-Ion cells

Top side

Weight

  • Lamp head: 80g
  • Battery box: 45g
  • 2x18650 battery pack: 96g

Controls

  • Connect headlamp to battery, LEDs will flash and device goes to sleep
  • Press and hold up button for about 2 seconds, first LED turns on
  • Use up/down buttons to increase/decrease LEDs intensity
  • Press and hold down button for about 2 seconds to turn on/off second LED
  • When the second LED is on, use up/down buttons to control its intensity
  • Press and hold up button for about 2 seconds to turn the lamp off

Helmet

Warning

Li-Ion cells can catch fire or explode if not handled properly. The hardware design was NOT extensively tested, the headlamp could die any time, don't rely on it as a single source of light.

The headlamp body can get quite hot if both LEDs are running on full power, there's no thermal protection, you have been warned.

Body

License

This headlamp is provided under open source license WITHOUT ANY WARRANTY, see LICENSE for more details.

HowTo

Directories

  • cad headlamp body and battery box design (FreeCad)
  • pcb contains all kicad files including BillOfMaterials for electronics, please note plated vias under Cree LEDs are mandatory to move heat from LED to heatsink (body). Gerber files for manufacturing are included.
  • pic contains assembly source code for the headlamp MCU

Electronics & software

For overview how the hardware works, check microchip application note and source code README.

To reduce manufacturing costs, the heat from CREE LEDs is transferred to aluminium body using several plated vias under the LED itself thus avoiding the need for aluminium PCB or big star heat sink for each LED. For some math background, check the Cree thermal management guide.

Power wires are soldered directly to the PCB. To program the MCU, solder wires to ICSP pins or build some kind of pin-touch interface. Use make in pic directory to compile the sources (assuming you are running Linux), you can use make burn to upload the firmware using pickit2.

Lenses

The wide beam LED can be used without lenses, the beam is wide enough for my needs, for the narrow beam LED you can buy any compatible lens (it will require some modifications due to limited space on PCB though). I used [17mm 10deg lens] (http://www.aliexpress.com/item/Free-shipping-cree-xp-g-lens-Diameter-17mm-Smooth-surface-with-stand-Condenser-lenses-10-deg/777222733.html)

Body

Body

The body is made from a piece of aluminium 6082 T6 using a small lathe. The top cover is made from plexiglass taken from old diving goggles. Waterproofness is ensured by big O-ring between body and glass and two small O-rings on the control knob. The body works also as a heat sink for LEDs, therefore it cannot be made from plastic (e.g. on 3D printer).

The battery box is printed on 3D printer from ABS (I would rather use aluminium, but I don't have access to milling machine).

See Bill of Materials.

Headlamp body

Parts

40
QtyValueFootprintReferences
410kResistors_SMD:R_0805R2, R10, R11, R14
31uCapacitors_SMD:C_0805C2, C4, C8
20,1RResistors_SMD:R_1206R5, R17
210kResistors_SMD:R_1206R13, R15
2180kResistors_SMD:R_0805R3, R6
21nCapacitors_SMD:C_0805C5, C6
222uHChoke_SMD:Choke_SMD_Wuerth-WE-PD2-Typ-MSL1, L2
22k2Resistors_SMD:R_0805R8, R18
25k6Resistors_SMD:R_0805R4, R7
282RResistors_SMD:R_0805R1, R12
2BAT60ADiodes_SMD:SOD-323D1, D4
2DMP2305UHousings_SOT-23_SOT-143_TSOT-6:SOT-23_HandsolderingQ1, Q2
1470RResistors_SMD:R_0805R19
1470nCapacitors_SMD:C_0805C1
1DOWNButtons_Switches_SMD:SW_SPST_FSMSMSW2
1ICSPHousings_SOT-23_SOT-143_TSOT-6:SOT-143P2
1LEDLEDs:LED-0805D7
1LED1LEDs:LED-XP-G_CREED2
1LED2LEDs:LED-XP-G_CREED5
1LL103Diodes_SMD:Diode-MiniMELF_StandardD6
1PIC16(L)F616-I/STHousings_SSOP:TSSOP-14_4.4x5mm_Pitch0.65mmU1
1POWERConnect:GS2P1
1UPButtons_Switches_SMD:SW_SPST_FSMSMSW1

The 38 most common of 40 parts.

Questions

How big is the Led driver PCB?

It measures 13.7 × 7.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Led driver use?

40 parts, built around the BAT60A and DMP2305U. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Led driver KiCad files?

From the kajusK/DarkStar repository on GitHub, at the commit this page was made from: the board is pcb/led_driver.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Led driver design in my own project?

Its repository states no licence, so its author keeps all rights: ask kajusK before reusing the design.

Similar boards

  • 4 layers17 × 22.1 mmFirefly, the printed circuit board in 3D

    Firefly

    sjacksonhodum/firefly

    pico balloon pcb

    39 parts
  • 2 layers80 × 100 mmTbot-8bit, the printed circuit board in 3D

    Tbot-8bit

    tronixio/robot-tbot

    92 parts
  • 2 layers80 × 140 mmMotors, the printed circuit board in 3D

    Motors

    tronixio/robot-tcar

    155 parts
  • 4 layers100 × 83 mmModule17-Mainboard, the printed circuit board in 3D

    Module17-Mainboard

    M17-Project/Module_17

    M17 modem board for 9600-baud capable radios

    209 parts129CERN-OHL-W-2.0
  • 4 layers41.4 × 108 mmM17 3310, the printed circuit board in 3D

    M17 3310

    M17-Project/M17_3310

    Mainboard replacement for Nokia 3310

    124 parts68
  • 4 layers99.6 × 43.7 mmMini17, the printed circuit board in 3D

    Mini17

    M17-Project/Mini17

    Mini17 - QRP M17 handheld

    209 parts41
  • 4 layers132 × 84.5 mmHamodule, the printed circuit board in 3D

    Hamodule

    crgarcia12/electronics-homeassistant-lightscontroll

    A smart lighting controller PCB that integrates seamlessly with ESPHome and Home Assistant while maintaining full compatibility with traditional mechanical switches.

    207 parts28
  • 4 layers41.4 × 108 mmMesh3310, the printed circuit board in 3D

    Mesh3310

    JLTelectronics/The-Mesh3310-Project

    Make the worlds strongest Node

    223 parts26MIT