

Headlamp
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
8ATTINY841-SSU
SOIC-14-40℃~+85℃ 1.7V~5.5V 10bit 12 16MHz 512Byte 512Byte 8 Bit 8KB AVR Built-in FLASH SOIC-14 Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)TSV912AID
SOIC-8-40℃~+125℃ 0.05pA 1.5mV 18nV/√Hz@1kHz 1pA 2 2.5V~5.5V 4.5V/us 500nV/℃ 50mA 550uA 87dB 8MHz ESD protection、EMI filtering/RF suppression Rail-to-Rail Input, Rail-to-Rail Output SOIC-8 Operational Amplifier ROHSTexas InstrumentsOperational AmplifierZXGD3001E6TA
SOT-23-6-55℃~+150℃ 1 11ns 12V 4.2A 50nA 7.3ns 9A IGBT、MOSFET Low Side SOT-23-6 Gate Drivers ROHSDiodes IncorporatedGate DriversMCP6567M/TR
SOP-8-40℃~+85℃ 1.4V~5.5V 325nA 4.7mV 4pA 500uV 6pA 76dB Built-in hysteresis、Complementary bipolar input stage、Built-in reference source Rail-to-Rail Input, Rail-to-Rail Output SOP-8 Comparators ROHSHGSEMIComparatorsBAT60AE6327HTSA1
SOD-323SOD-323 Schottky Diodes ROHSInfineon TechnologiesSchottky DiodesDMP2035U
SOT-23-55℃~+150℃ 1 P-Channel 1.61nF 145pF 15.4nC@4.5V 157pF 20V 23mΩ@4.5V、30mΩ@2.5V、41mΩ@1.8V 3.6A 700mV 810mW SOT-23 MOSFETs ROHSDiodes IncorporatedMOSFETsNX2301P
SOT-23-55℃~+150℃ 1 P-Channel 1.1V 115pF 120mΩ@4.5V 20V 2A 380pF 400mW 6nC@4.5V P-Channel SOT-23 MOSFETs ROHSNexperiaMOSFETsVEMT3700-GS08
PLCC-2(2.8x3)-40℃~+100℃ 0.3V@0.1mA 100mW 200nA 500uA 60° 70V 830nm NPN PLCC-2(2.8x3) Phototransistors ROHSVishay IntertechnologyPhototransistors
README
README.mdDarkStar 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!

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.

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)

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| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 10k | Resistors_SMD:R_0603 | R2, R3, R6, R8, R9, R12, R13 |
| 5 | 1u | Capacitors_SMD:C_0603 | C2, C4, C6, C7, C8 |
| 4 | 1k | Resistors_SMD:R_0603 | R16, R17, R24, R25 |
| 3 | 10n | Capacitors_SMD:C_0603 | C5, C9, C10 |
| 3 | 220 | Resistors_SMD:R_0603 | R4, R10, R11 |
| 2 | 0R056 | Resistors_SMD:R_1206 | R14, R15 |
| 2 | 10u | Inductors:Inductor_Bourns-SRU8043 | L1, L2 |
| 2 | 12k | Resistors_SMD:R_0603 | R20, R21 |
| 2 | 18k | Resistors_SMD:R_0603 | R18, R19 |
| 2 | 270k | Resistors_SMD:R_0603 | R22, R23 |
| 2 | 8k2 | Resistors_SMD:R_0603 | R1, R7 |
| 2 | BAT60AE6327HTSA1 | Diodes_SMD:SOD-323 | D4, D5 |
| 2 | DMP2035U | TO_SOT_Packages_SMD:SOT-23 | Q3, Q4 |
| 2 | LED | custom:Custom_Conn_2_Big | D6, D7 |
| 2 | ZXGD3001E6 | TO_SOT_Packages_SMD:SOT-23-6 | U1, U2 |
| 1 | 100k | Resistors_SMD:R_0603 | R5 |
| 1 | 10u | Capacitors_SMD:C_0603 | C1 |
| 1 | 33 | Resistors_SMD:R_0603 | R26 |
| 1 | ATTINY841-SSU | Housings_SOIC:SOIC-14_3.9x8.7mm_Pitch1.27mm | IC1 |
| 1 | BT1 | Buttons_Switches_SMD:SW_SPST_FSMSM | SW2 |
| 1 | BT2 | Buttons_Switches_SMD:SW_SPST_FSMSM | SW1 |
| 1 | ISP | TO_SOT_Packages_SMD:SOT-23-6 | P3 |
| 1 | MCP6567 | Housings_SSOP:MSOP-8_3x3mm_Pitch0.65mm | U4 |
| 1 | NX2301P | TO_SOT_Packages_SMD:SOT-23 | Q2 |
| 1 | POWER | custom:Custom_Conn_2_Big | P1 |
| 1 | RED | LEDs:LED_PLCC-2 | D2 |
| 1 | SERIAL | Connectors:GS3 | P2 |
| 1 | TSV912 | Housings_SSOP:MSOP-8_3x3mm_Pitch0.65mm | U3 |
| 1 | VEMT3700-GS08 | LEDs:LED_PLCC-2 | Q1 |
| 1 | WHITE | LEDs:LED_PLCC-2 | D3 |
The 57 most common of 60 parts.
More from kajusK/Darkstar-Mk.II
1- 2 layers25.1 × 5.6 mm

Similar boards
- 2 layers108 × 41.6 mm

- 2 layers96 × 48 mm

- 2 layers100 × 100 mm

- 4 layers34 × 79.2 mm

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 mm

- 2 layers91.5 × 53.2 mm

- 2 layers70 × 38 mm

- 2 layers

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.