Skip to the content
2 layers50.1 × 35.2 mmKiCad PocketLight, the printed circuit board in 3D

A small pocket flashlight built around the ATtiny412.

Size
50.1 × 35.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
9
Pads
27
Tracks, vias
31, 0
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
16 Jul 2026
Updated
21 Jul 2026

Overview

KiCad PocketLight is an open-source printed circuit board by yansha2903-bot, from the yansha2903-bot/PocketLight repository on GitHub, published under the MIT licence. It is a 2-layer board of 50.1 × 35.2 mm with 9 parts on 9 nets, routed with 31 tracks and 0 vias.

It is built around the ATTINY412-SSN. Its parts include 3 resistors, 2 switches, 1 capacitor, 1 IC and 1 diode. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

Pocket Flashlight

A small pocket flashlight built around the ATtiny412.

This project started as a way to learn PCB design in KiCad and get more comfortable with embedded electronics. Instead of making something complicated, I wanted to build a simple device that I could actually understand from start to finish.

Features

  • ATtiny412 microcontroller
  • Push button to turn the light on
  • Automatic brightness adjustment using a photoresistor
  • Low component count
  • Compact PCB design

Components

  • ATtiny412-SS
  • White LED
  • 100 Ω resistor
  • 10 kΩ resistor
  • Photoresistor (LDR)
  • Push button
  • Power switch
  • 100 nF capacitor
  • Coin cell battery

Files

  • PocketLight.kicad_sch — schematic
  • PocketLight.kicad_pcb — PCB layout
  • pocketlightlight.ino — Arduino firmware
  • BOM.csv — bill of materials
  • gerbers.zip — manufacturing files

What I learned

This project helped me understand:

  • generating Gerber files
  • working with the ATtiny412
  • reading input from a photoresistor
  • controlling an LED with a microcontroller 2026-07-16_12-31-07

Parts

9
QtyValueFootprintReferences
110 kΩResistor_SMD:R_0603_1608MetricR3
1100 nFCapacitor_SMD:C_0603_1608MetricC1
1100 ΩResistor_SMD:R_0603_1608MetricR1
1ATtiny412-SSPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1Battery_CellBattery:BatteryHolder_Keystone_3034_1x20mmBT1
1LEDLED_SMD:LED_0603_1608MetricD1
1R_PhotoResistor_SMD:R_0603_1608MetricR2
1SW_PushButton_Switch_SMD:SW_SPST_TL3342SW1
1SW_SPSTButton_Switch_SMD:SW_SPST_CK_RS282G05A3SW2

Similar boards

  • 2 layers24 × 17 mmPower atiny v2, the printed circuit board in 3D

    Power atiny v2

    fijam/md-lpm

    This project consists of hardware files and software for a coin-battery operated laser tester that fits in a MiniDisk case.

    17 parts14
  • 2 layers100 × 22 mmPCBv2, the printed circuit board in 3D

    PCBv2

    adaand00/TINYLED

    Light-up sign with an attiny10 and three ws2812b RGB LEDs.

    20 parts5GPL-3.0
  • 2 layers26.1 × 31.4 mmQC Hack wPins, the printed circuit board in 3D

    QC Hack wPins

    Fab-Lab-Island/fli-bootcamp-2025

    About Fab Lab ísland bootcamp Húsavík 2025. Kíkið á síðuna fyrir neðan!

    15 parts2
  • 2 layersPcb actionneur ventouse, the printed circuit board in 3D

    Pcb actionneur ventouse

    Brasseur2robot/Les-brasseurs-d-idees

    Codebase de l'équipe légende des brasseurs d'idées concourant à la coupe de France de robotique. Vous pouvez y retrouver les différents fichiers utilisés pour la création et le fonctionnement de notre robot principal et…

    25 parts1GPL-3.0
  • 4 layers98 × 98 mmIGEM melty, the printed circuit board in 3D

    IGEM melty

    SreeniEadara/Hopkins-iGEM-2022-electrical

    Schematics and PCB designs for Hopkins iGEM 2022

    64 parts1
  • 2 layers58 × 29.5 mmAttiny412 addressable, the printed circuit board in 3D

    Attiny412 addressable

    user-will/cursedPCB

    A quick start guide and related files for the Cursed PCB by Reil Industrial

    35 parts1
  • 2 layers24.2 × 24.1 mmVPC, the printed circuit board in 3D

    VPC

    Archfx/evie

    Camaro6 tweaks

    27 parts
  • 2 layers175 × 85 mmGain box psu pcb, the printed circuit board in 3D

    Gain box psu pcb

    carmisergio/denon-preout-mod

    PCB designs and firmware for the Denon AVR-X1300W Pre-out mod

    80 parts

Questions

How big is the KiCad PocketLight PCB?

It measures 50.1 × 35.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the KiCad PocketLight use?

9 parts, built around the ATTINY412-SSN. 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 KiCad PocketLight KiCad files?

From the yansha2903-bot/PocketLight repository on GitHub, at the commit this page was made from: the board is KiCad PocketLight/KiCad PocketLight.kicad_pcb and its schematic KiCad PocketLight/KiCad PocketLight.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the KiCad PocketLight 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).