Skip to the content
2 layersHeadlamp, the printed circuit board in 3D

High-power bomb-proof headlamp for caving

Copper layers
2
Thickness
1.6 mm
Parts
60
Nets
37
Pads
156
Tracks, vias
658, 25
Pours
1
Routed
Yes
KiCad
KiCad 4
Created
21 May 2017
Updated
24 Jun 2018

Overview

Headlamp is an open-source printed circuit board by kajusK, from the kajusK/Darkstar-Mk.II repository on GitHub. It is a 2-layer board with 60 parts on 37 nets, routed with 658 tracks and 25 vias.

It is built around the ATTINY841-SSU, TSV912AID and ZXGD3001E6TA, with the MCP6567M/TR, BAT60AE6327HTSA1 and DMP2035U among its other parts. Its parts include 26 resistors, 9 capacitors, 6 diodes, 5 ICs and 4 transistors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

8

README

README.md

DarkStar Mk.II

Small lightweight, water/mud/shock/bomb proof headlamp with bat roasting light output and Scurion like body for 1/8 of the price. If you are caver, mine explorer, biker, etc. with hacker soul, this is a way to go!

Darkstar Mk.II

Features

  • Two high power high efficiency XP-L2 LEDs and two low power (e.g. red + UV).
  • Up to 869 ANSI lumens (with 80 CRI 4000 K LEDs).
  • Anodized aluminium alloy body.
  • 3D printed battery box.
  • Waterproof up to 2 (tested) meters (IPx8).
  • 2 meter drop resistance tested
  • Works in wide temperature range - minus 20 °C to plus 60 °C
  • Custom high efficiency LED drivers - up to 96 %.
  • Up to 2 Amps per LED.
  • Runs on single Li-Ion cell, two are recommended for higher run times.
  • Thoroughly tested - see Measurements for more details.
  • Simple API for writing custom user modes.
  • Temperature and voltage limits to avoid sudden power off or overheating.
  • Long run time (over 30 days on lowest mode, over 1,5 hour on full power - for two 3400 mAh cells).
  • Low power off current (27 uA), no need to unplug battery after use.
  • Easily replaceable LEDs.
  • Weights only 277 grams with two 18650 cells.
  • Automated light control based on amount of reflected light (EXPERIMENTAL).
  • Custom li-ion protection circuit - up to 7 Amps.

Submerged

Weight

  • Lamp: 92 g
  • Battery box: 50 g
  • 2x18650 battery pack: 97 g
  • Head strap: 38 g

HowTo

Directories

  • avr Source code and hex files for AVR
  • pcb circuit diagrams, PCBs, gerber files and BOM for electrical parts
  • mechanical Mechanical BOM, drawings, STLs

Electronics

The LED drivers were custom designed from elementary components, no integrated LED solution was used. It's based on hystersis driven buck converter with current feedback.

The current is sensed by 0,056 ohm resistor, voltage across this resistor is amplified by opamp and fed to the comparator. The comparator is a brain of the driver. When the measured voltage is higher than reference voltage generated by MCU, comparator turns the MOSFET off, current drops below hystersis, MOSFET is turned on and the cycle repeats. Nothing fancy, but quite simple and cheap. Only few parts are required and measured efficiency is reaching 96 %. Over 90 % for currents over 0,5 A for whole supply voltage range allowed. Check Measurement for more details. The maximal current allowed is 2 Amps. It should be possible to get much higher currents by choosing better (bigger and more expensice) inductors and transistors.

Disadvantage of such design is a limited lowest possible current, it can't go below half of the hystersis current. For this reason 10-100 % output is constant current driven, 0-10 % is controlled by additional PWM.

Software

The brain of the lamp is Attiny 841, it handles key presses, reference voltage generating, etc. To make it simpler to program I use optiboot arduino compatible bootloader though there is no arduino code included in the project except the bootloader itself.

To make it simpler to write your own control modes, most of the code is just a library controlling the hardware and providing few quite low level functions to user. It takes care of reading buttons, generating reference voltages for LED drivers, etc.

It also contains automated light control (PI regulator). The light is measured by phototransistor and the difference between the measured value and value required is run through the PI regulator. Result is the applied to reference voltage generator. This feature is quite EXPERIMENTAL and doesn't work well for caving when the lamps gets covered in mud.

The rest is the user mode. Check simple mode to see how simple it can get. All relevant header are included. See HowTo for more details on programming and stuff.

The caving mode controls are described in User guide.

Mechanical

The body is machined on a lathe from 6063 aluminium alloy. No fancy expensive tools except lathe and drill press are required to make the lamp.

Top cover is made from polycarbonate sheet, cable and control rods bushings are made from brass. The whole thing is sealed with O-rings. See the BOM for more details.

The battery box is designed to be printed on any 3D printer. I would suggest using ABS and painting the resulting print with ABS juice to get is as waterproof as possible.

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 that fits inside the body. 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)

Cave usage

License

The source code is licenced under GNU GPL v2. The mechanical and electrical design is licensed under CERN OHL v.1.2.

Parts

60
QtyValueFootprintReferences
710kResistors_SMD:R_0603R2, R3, R6, R8, R9, R12, R13
51uCapacitors_SMD:C_0603C2, C4, C6, C7, C8
41kResistors_SMD:R_0603R16, R17, R24, R25
310nCapacitors_SMD:C_0603C5, C9, C10
3220Resistors_SMD:R_0603R4, R10, R11
20R056Resistors_SMD:R_1206R14, R15
210uInductors:Inductor_Bourns-SRU8043L1, L2
212kResistors_SMD:R_0603R20, R21
218kResistors_SMD:R_0603R18, R19
2270kResistors_SMD:R_0603R22, R23
28k2Resistors_SMD:R_0603R1, R7
2BAT60AE6327HTSA1Diodes_SMD:SOD-323D4, D5
2DMP2035UTO_SOT_Packages_SMD:SOT-23Q3, Q4
2LEDcustom:Custom_Conn_2_BigD6, D7
2ZXGD3001E6TO_SOT_Packages_SMD:SOT-23-6U1, U2
1100kResistors_SMD:R_0603R5
110uCapacitors_SMD:C_0603C1
133Resistors_SMD:R_0603R26
1ATTINY841-SSUHousings_SOIC:SOIC-14_3.9x8.7mm_Pitch1.27mmIC1
1BT1Buttons_Switches_SMD:SW_SPST_FSMSMSW2
1BT2Buttons_Switches_SMD:SW_SPST_FSMSMSW1
1ISPTO_SOT_Packages_SMD:SOT-23-6P3
1MCP6567Housings_SSOP:MSOP-8_3x3mm_Pitch0.65mmU4
1NX2301PTO_SOT_Packages_SMD:SOT-23Q2
1POWERcustom:Custom_Conn_2_BigP1
1REDLEDs:LED_PLCC-2D2
1SERIALConnectors:GS3P2
1TSV912Housings_SSOP:MSOP-8_3x3mm_Pitch0.65mmU3
1VEMT3700-GS08LEDs:LED_PLCC-2Q1
1WHITELEDs:LED_PLCC-2D3

The 57 most common of 60 parts.

More from kajusK/Darkstar-Mk.II

1
  • 2 layers25.1 × 5.6 mmLiion protection, the printed circuit board in 3D

    Liion protection

    kajusK/Darkstar-Mk.II

    High-power bomb-proof headlamp for caving

    12 parts7

Similar boards

  • 2 layers108 × 41.6 mmPitchfork 205 lqfp64, the printed circuit board in 3D

    Pitchfork 205 lqfp64

    pfork/hardware

    Hardware kicad files for PITCHFORK

    100 parts1
  • 2 layers96 × 48 mmDriver1, the printed circuit board in 3D

    Driver1

    salocin2662/tesla-coil

    Tesla coil design project

    91 parts
  • 2 layers100 × 100 mmWifi PB panel, the printed circuit board in 3D

    Wifi PB panel

    AntonioMR/Wifi-Play-Board

    Placa de experimentacion para el ESP12F (ESP8266)

    416 parts29
  • 4 layers34 × 79.2 mmSensor epaper, the printed circuit board in 3D

    Sensor epaper

    Miceuz/paper-wifi

    Low power E-paper display devboard with WiFi and BLE connectivity. Open source hardware.

    92 parts28
  • 2 layers57.3 × 41.2 mmDatakeyboard, the printed circuit board in 3D

    Datakeyboard

    greengravity/Datakey

    Datakey

    49 parts2
  • 2 layers91.5 × 53.2 mmNodeMCU Metriful, the printed circuit board in 3D

    NodeMCU Metriful

    axello/kicad

    Hodge podge of small electronic designs

    23 parts1
  • 2 layers70 × 38 mmEsp8266-probe, the printed circuit board in 3D

    Esp8266-probe

    mgottschlag/esp8266-probe

    JTAG probe using the ESP8266

    63 parts
  • 2 layersControl, the printed circuit board in 3D

    Control

    pbrook/10lol

    10mm lol board

    49 parts

Questions

What parts does the Headlamp use?

60 parts, built around the ATTINY841-SSU, TSV912AID, ZXGD3001E6TA and MCP6567M/TR. 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 Headlamp KiCad files?

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

Can I use the Headlamp design in my own project?

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