Skip to the content
PCBKitNew board
4 layers23.2 × 29 mmAttiny microcontroller, the printed circuit board in 3D

Attiny microcontroller

moizZM/PCB-Design-Work
Size
23.2 × 29 mm
Copper layers
4
Thickness
1.6 mm
Parts
46
Nets
77
Pads
292
Tracks, vias
818, 88
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
14 Oct 2025
Updated
8 Jul 2026

Overview

Attiny microcontroller is an open-source printed circuit board by moizZM, from the moizZM/PCB-Design-Work repository on GitHub. It is a 4-layer board of 23.2 × 29 mm with 46 parts on 77 nets, routed with 818 tracks and 88 vias.

It is built around the ATTINY1616-SN, CH330N and ESP32-C3-MINI-1-N4, with the AP2112K-3.3 and USBLC6-2SC6 among its other parts. Its parts include 17 resistors, 16 capacitors, 5 ICs, 3 connectors and 1 diode. It belongs with the ESP32, AVR (ATmega, ATtiny) and RISC-V boards of this library.

Main components

5

README

USB-C Power Supply/README.md

USB-C Power Supply

3D viwe

Layout

USB-C Power Supply

Overview

This project demonstrates the complete design and development of a USB-C Power Supply circuit.
The goal was to create a small PCB that outputs 5 V through a USB Type-C connector using correct CC (Configuration Channel) resistors.
The board includes a power indicator LED, decoupling capacitors, and is fully ready for JLCPCB manufacturing.


What Was Done

  • Designed a schematic in KiCad 8.0 for a 5 V USB-C power source.
  • Implemented CC1 and CC2 pull-down resistors (5.1 kΩ) for correct USB-C negotiation.
  • Added 100 nF decoupling capacitor for voltage stability.
  • Added LED indicator with 1 kΩ resistor for power-on status.
  • Created and annotated all symbols and footprints in KiCad.
  • Designed a two-layer PCB layout following JLCPCB design rules.
  • Defined board outline, silkscreen labels, mounting holes, and reference text.
  • Generated Gerber, Drill, BOM, and Pick-and-Place files for fabrication.
  • Verified schematic (ERC) and layout (DRC) before manufacturing.
  • Prepared files for JLCPCB assembly and optional 3D-printed enclosure.

Hardware Details

ParameterDescription
InputUSB-C Receptacle (VBUS = 5 V)
Output2-Pin Header (5 V / GND)
Resistors5.1 kΩ × 2 (CC1/CC2), 1 kΩ × 1 (LED)
Capacitors100 nF (Decoupling)
IndicatorPower LED
Board Layers2
Power5 V @ up to 3 A
Mounting4 × M2 holes

Project Files

  • USB-C Power Supply.kicad_pro – KiCad project file
  • USB-C Power Supply.kicad_sch – Schematic
  • USB-C Power Supply.kicad_pcb – PCB layout
  • SCH.pdf – Printable schematic reference

Manufacturing and Assembly

  1. Export Gerber and Drill files from KiCad.
  2. Upload the ZIP archive to JLCPCB.
  3. Choose desired solder-mask and silkscreen colors.
  4. (Optional) Add logo or image for silkscreen layer.
  5. Order boards (with or without assembly) and test after delivery.

Testing

  • Connected a USB-C cable from a 5 V adapter.
  • Verified 5 V output at the terminal header.
  • Observed LED indicator ON confirming active power.
  • Ensured no short circuits or trace issues.

Results

The PCB provides a stable 5 V output, compact design, and clear labeling.
It can serve as a reference or base module for USB-powered embedded projects or sensor systems that need a simple regulated power supply.


Tools Used

  • KiCad 8.0 – Schematic capture and PCB layout
  • JLCPCB – PCB manufacturing and assembly
  • Fusion 360 (optional) – Enclosure and 3D model design

Author

Moiz Zaheer Malik
Hochschule Hamm-Lippstadt (HSHL)
October 2025

Parts

46
QtyValueFootprintReferences
810KResistor_SMD:R_0201_0603MetricR10, R11, R13, R14, R15, R16, R17, R18
60.1uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC1, C5, C6, C10, C14, C15
4TBDCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC12, C16, C17, R12
2100uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC11, C13
210uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC8, C9
21KResistor_SMD:R_0201_0603MetricR3, R5
24.7KResistor_SMD:R_0201_0603MetricR6, R7
25.1KResistor_SMD:R_0201_0603MetricR19, R20
2Conn_01x14_PinConnector_PinHeader_1.00mm:PinHeader_1x14_P1.00mm_VerticalJ1, J2
2RESETButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKAT-Reset, Boot
1100KResistor_SMD:R_0201_0603MetricR8
12.2uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC7
1201Resistor_SMD:R_0201_0603MetricR4
132.768 kHz crystalCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY1
1330Resistor_SMD:R_0201_0603MetricR9
14.7uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC2
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U5
1ATtiny1616-SPackage_SO:SOIC-20W_7.5x12.8mm_P1.27mmU1
1CH330NPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1D_SchottkyDiode_SMD:D_2114_3652MetricD2
1ESP32-C3-MINI-1-N4ESP32_C3_MINI_1_N4:XCVR_ESP32-C3-MINI-1-N4U6
1Polyfusefootprints:FUSE_MF-SM030-2_BRNF2
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U4
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_GCT_USB4110J5

Questions

How big is the Attiny microcontroller PCB?

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

What parts does the Attiny microcontroller use?

46 parts, built around the ATTINY1616-SN, CH330N, ESP32-C3-MINI-1-N4 and AP2112K-3.3. 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 Attiny microcontroller KiCad files?

From the moizZM/PCB-Design-Work repository on GitHub, at the commit this page was made from: the board is ATtiny Microcontroller Board/attiny microcontroller.kicad_pcb and its schematic ATtiny Microcontroller Board/attiny microcontroller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Attiny microcontroller design in my own project?

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

More from moizZM/PCB-Design-Work

2
  • 2 layers24.7 × 24.7 mmTal watch, the printed circuit board in 3D

    Tal watch

    moizZM/PCB-Design-Work

    28 parts

Similar boards

  • 2 layers99.7 × 35 mmPocket lightning detector, the printed circuit board in 3D

    Pocket lightning detector

    Matyas604/Pocket-lightning-detector

    A lightning detector that runs on a battery and fits in your pocket. It records the distance, energy and current time of a lightning strike, and you can then view this data via Bluetooth in mobile app.

    74 parts1GPL-3.0
  • 2 layers44 × 31 mmNoisemeter, the printed circuit board in 3D

    Noisemeter

    CivicTechTO/tRacket-sensor

    Design files and source code for the tRacket noise sensor

    21 parts11
  • 2 layers38.3 × 20.8 mmESP AHT10-Extra, the printed circuit board in 3D

    ESP AHT10-Extra

    c-/ESP-AHT10-Extra

    minimalist ESP-8266 temperature/humidity sensor

    27 parts20
  • 2 layers160 × 100 mm36C3 Badge Hardware, the printed circuit board in 3D

    36C3 Badge Hardware

    CatoLynx/36C3-Badge

    VFD and LED badge fitting the 36C3 design

    159 parts5GPL-3.0
  • 4 layers46 × 74 mmOpenRetroPad, the printed circuit board in 3D

    OpenRetroPad

    OpenRetroPad/OpenRetroPadHW

    Custom PCB for OpenRetroPad

    71 parts2
  • 2 layers64 × 72 mm16seg Controller, the printed circuit board in 3D

    16seg Controller

    CatoLynx/16_Segment_Display_HW_Controller

    ESP32-based controller board for large 16-segmend LED display

    59 parts1
  • 4 layers110 × 80 mmAkkupack ng, the printed circuit board in 3D

    Akkupack ng

    eurovibes/akkupack-ng

    A AKKU-Pack gas gauge

    156 parts