Skip to the content
PCBKitNew board
4 layers44.5 × 44.5 mmFlashlight, the printed circuit board in 3D

This repository contains design files for the development board for a flashlight boost driver. The test firmware can be found in the firmware repository.

Size
44.5 × 44.5 mm
Copper layers
4
Thickness
1.6 mm
Parts
73
Nets
51
Pads
226
Tracks, vias
367, 131
Pours
242
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
14 Mar 2024
Updated
13 Apr 2025

Overview

Flashlight is an open-source printed circuit board by engineerbo, from the engineerbo/flashlight-dev-hw repository on GitHub, published under the MIT licence. It is a 4-layer board of 44.5 × 44.5 mm with 73 parts on 51 nets, routed with 367 tracks and 131 vias.

It is built around the ATTINY1616-MN, MP3432GL-Z and 2N7002K, with the 3310C-001-104L, DMC2400UV and ISZ065N03L5SATMA1 among its other parts. Its parts include 24 resistors, 18 capacitors, 5 connectors, 4 ICs and 4 transistors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

6

README

README.md

Flashlight Dev Board Hardware

Dev board layout, rev. B Dev board render, rev. B

Introduction

This repository contains design files for the development board for a flashlight boost driver. The test firmware can be found in the firmware repository.

Also included in the scripts subdirectory are Python scripts used to calculate component values during the design process, as well as generate the look-up table for brightness settings.

For a detailed explanation of this project, check out the video series on the Engineer Bo YouTube channel.

Features

The development board is designed in KiCad, and features the following:

  • ATtiny1616 microcontroller
  • MP3432 boost converter
  • LED current regulation
    • 1R and 10mR current sense resistances, selectable for high dynamic range (HDR)
    • ATtiny1616 DAC controlled current setpoint
    • Current regulation using TLV333/OPA333 op-amp and MP3432 feedback pin
  • Power switch multi-click counting
  • Temperature sensing
    • NTC thermistor
    • ATtiny1616 internal temperature sensor
  • Battery voltage sensing with low current leakage
  • Optional potentiometer for current setpoint (highly experimental)
  • Test probe hooks
  • Headers for all ATtiny1616 pins
  • Many jumpers for testing different configurations

Usage

This development board is meant to serve as a reference for anybody interested in learning about flashlight boost drivers. It's possible to build these boards, but assembly requires reasonable skill and involves less-than-friendly components e.g. DFN, QFN and many 0402 passives.

Instead, I recommend having a look at the schematics, and leave me a comment on YouTube if you have any questions.

Hardware Revisions

Revision A

This is the original design built for testing, and includes a couple of issues:

  • GPIO driven P-channel MOSFET for HDR MOSFET gate drive
  • MP3432 UVLO not configured
  • Wrong footprint for NTC thermistor

These issues and their fixes are explained in detail in the video series.

Revision B

Revision B fixes the issues in Revision A:

  • GPIO driven N-channel MOSFET for HDR MOSFET gate drive
  • Added MP3432 UVLO

Parts

73
QtyValueFootprintReferences
810kResistor_SMD:R_0402_1005MetricR1, R3, R4, R5, R7, R8, R13, TH1
8TestPoint_ProbeTestPoint:TestPoint_Keystone_5000-5004_MiniatureTP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8
7Jumper_3_Bridged12Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP1, JP2, JP3, JP4, JP5, JP6, JP7
622uFCapacitor_SMD:C_0805_2012MetricC8, C9, C10, C16, C17, C18
4100nFCapacitor_SMD:C_0402_1005MetricC4, C6, C13, C15
44.7uFCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C11
2130kResistor_SMD:R_0402_1005MetricR19, R24
220kResistor_SMD:R_0402_1005MetricR2, R17
22N7002KPackage_TO_SOT_SMD:SOT-23Q2, Q4
2750kResistor_SMD:R_0402_1005MetricR6, R23
2Conn_01x10_PinConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ4, J5
2Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ1, J2
1150kResistor_SMD:R_0402_1005MetricR9
11RResistor_SMD:R_0805_2012MetricR14
12.2uHInductor_SMD:L_Coilcraft_XAL7070-XXXL1
122kResistor_SMD:R_0402_1005MetricR20
122nFCapacitor_SMD:C_0402_1005MetricC12
124kResistor_SMD:R_0402_1005MetricR18
127kResistor_SMD:R_0402_1005MetricR21
13.3nFCapacitor_SMD:C_0402_1005MetricC5
13310C-001-104Lfootprints:3310C001503LVR1
13k3Resistor_SMD:R_0402_1005MetricR10
1430kResistor_SMD:R_0402_1005MetricR16
15mRResistor_SMD:R_0805_2012MetricR12
16.8nFCapacitor_SMD:C_0402_1005MetricC14
16k8Resistor_SMD:R_0402_1005MetricR22
1ATtiny1616-MPackage_DFN_QFN:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mmU2
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1DMC2400UVPackage_TO_SOT_SMD_AKL:SOT-563Q1
1DNPResistor_SMD:R_0402_1005MetricR15
1DNPCapacitor_SMD:C_0402_1005MetricC7
1ISZ065N03L5SATMA1Package_SON_AKL:Infineon_PG_TSDSON-8_FLQ3
1LOGOEngineer_Bo_Logo:logo_6mmLOGO1
1MP3432GL-Zfootprints:QFN-13_MP3431_MNPU4
1NCP114AMX250TCGPackage_DFN_QFN:OnSemi_XDFN4-1EP_1.0x1.0mm_EP0.52x0.52mmU1
1TLV333/OPA333Package_TO_SOT_SMD:SOT-353_SC-70-5U3

Questions

How big is the Flashlight PCB?

It measures 44.5 × 44.5 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Flashlight use?

73 parts, built around the ATTINY1616-MN, MP3432GL-Z, 2N7002K and 3310C-001-104L. 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 Flashlight KiCad files?

From the engineerbo/flashlight-dev-hw repository on GitHub, at the commit this page was made from: the board is rev_b/flashlight.kicad_pcb and its schematic rev_a/attiny1616.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Flashlight design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers55.6 × 71.2 mmBYTE PANELkicad pcb, the printed circuit board in 3D

    BYTE PANELkicad pcb

    oneohm/BYTE

    The BYTE hands free interface

    78 parts11GPL-3.0
  • 4 layers38.7 × 24.7 mmNordic PCB, the printed circuit board in 3D

    Nordic PCB

    arnaudcazale/nanomade_BLE_Touch_Screen_PCB

    77 parts
  • 4 layers62.1 × 83.8 mmSs main board, the printed circuit board in 3D

    Ss main board

    loopj/short-stack

    World's Smallest Nintendo Wii, using a trimmed motherboard and custom stacked PCBs

    69 parts804
  • 2 layers80 × 50 mmSiliCa, the printed circuit board in 3D

    SiliCa

    19AJ137/SiliCa

    FeliCa®互換カード「SiliCa」

    14 parts47Unlicense
  • 4 layers100 × 68 mmDevKit, the printed circuit board in 3D

    DevKit

    kaminaris/GigaESC

    209 parts47
  • 2 layers56.9 × 23.6 mmHexagon, the printed circuit board in 3D

    Hexagon

    kieraneglin/hexagon-art

    A passive breakout board: two lever-terminal inputs, three JST XH outputs, all six conductors (RX bus, two spares, +12V, GND, +5V) paralleled straight across. No active components, no regulation, nothing to configure.

    24 parts19