Skip to the content
2 layers75 × 73.5 mmHeart pcb v1, the printed circuit board in 3D

Custom ATtiny85-based heart PCB with 24 LEDs, transistor-switched lighting groups, button-controlled animation modes, and non-blocking firmware.

Size
75 × 73.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
61
Nets
42
Pads
137
Tracks, vias
397, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
3 Oct 2026
Updated
8 Oct 2026

Overview

Heart pcb v1 is an open-source printed circuit board by johnanddd, from the johnanddd/ATtiny85-Heart-PCB repository on GitHub. It is a 2-layer board of 75 × 73.5 mm with 61 parts on 42 nets, routed with 397 tracks and 0 vias.

It is built around the ATTINY85-20PU and PN2222ATA. Its parts include 24 resistors, 24 diodes, 4 transistors, 2 switches and 1 capacitor. It belongs with the lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

ATtiny85 Heart PCB

A custom heart-shaped PCB built around an ATtiny85 microcontroller with 24 red LEDs, four transistor-switched lighting groups, a pushbutton for changing animation modes, and non-blocking embedded firmware.

Finished ATtiny85 Heart PCB

Demo

Watch the LED animation demo on YouTube

The MODE button cycles through five lighting patterns:

  1. All LEDs continuously on
  2. Slow heartbeat — 500 ms on / 500 ms off
  3. Fast heartbeat — 250 ms on / 250 ms off
  4. Circular group sequence — Q1 → Q2 → Q4 → Q3
  5. Alternating opposite groups — Q1 + Q4 ↔ Q2 + Q3

Hardware

  • ATtiny85 microcontroller
  • 24 × 5 mm red LEDs
  • 24 × 1 kΩ LED current-limiting resistors
  • 4 × PN2222A NPN transistors
  • 4 × 2 kΩ transistor base resistors
  • MODE pushbutton
  • ON/OFF slide switch
  • 100 nF decoupling capacitor
  • 3 × AA battery supply
  • Custom 2-layer heart-shaped PCB

The 24 LEDs are split into four groups. Each group is switched by an NPN transistor controlled by one ATtiny85 GPIO pin.

Schematic

Schematic

PB0 is connected to the MODE button using the ATtiny85's internal pull-up resistor. PB1–PB4 control the four transistor-switched LED groups.

PCB Design

The board was designed in KiCad as a custom 2-layer heart-shaped PCB with a red solder mask and white silkscreen.

PCB Layout

PCB 3D View

Firmware

The firmware is written in Arduino C/C++ for the ATtiny85 and is available in firmware/attiny85_heartpcb_v1.ino.

The MODE button uses the ATtiny85's PB0 pin-change interrupt. The ISR only sets a flag, while the main loop handles debouncing and mode changes.

All animation timing is non-blocking and uses millis() rather than delay(). Each animation keeps track of its own state so the board can respond to button presses while an animation is running.

The ATtiny85 is configured to use its internal 1 MHz clock.

Finished Board

Front

Front of finished PCB

Back

Back of finished PCB

Manufacturing and Assembly

The PCB was fabricated by JLCPCB. The surface-mount resistors were populated through PCBA, while the through-hole LEDs, transistors, ATtiny85 socket, switch, pushbutton, capacitor, and battery wiring were assembled by hand.

The repository also includes the KiCad project files:

  • hardware/heart_pcb_v1.kicad_pro
  • hardware/heart_pcb_v1.kicad_sch
  • hardware/heart_pcb_v1.kicad_pcb

What I Learned

This project covered the full workflow from circuit design through a working physical board:

  • Schematic capture and PCB layout in KiCad
  • Component placement and routing
  • Transistor switching for grouped LED loads
  • PCB fabrication and PCBA workflow
  • Through-hole and SMD assembly
  • ATtiny85 register configuration and pin-change interrupts
  • Software button debouncing
  • Non-blocking timing with millis()
  • State-machine based LED animations
  • Hardware debugging and continuity testing

One of the biggest lessons from V1 was designing for assembly and reliability. The through-hole TO-92 transistors were difficult to solder and rework because of the tight lead spacing. A future V2 will likely move more of the design to surface-mount parts, including SMD transistors and LEDs, so most of the board can be assembled directly by the manufacturer.

Repository Structure

text
ATtiny85-Heart-PCB/
├── README.md
├── firmware/
│   └── attiny85_heartpcb_v1.ino
├── hardware/
│   ├── heart_pcb_v1.kicad_pro
│   ├── heart_pcb_v1.kicad_sch
│   ├── heart_pcb_v1.kicad_pcb
│   └── heart_pcb_v1.kicad_prl
└── images/
    ├── heart_pcb_front.jpg
    ├── heart_pcb_back.jpg
    ├── pcb_3d.png
    ├── pcb_layout.png
    └── schematic.png

Parts

61
QtyValueFootprintReferences
241k ΩResistor_SMD:R_0805_2012MetricR1, R2, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23 +8
24LEDLED_THT:LED_D5.0mmD1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +8
42k ΩResistor_SMD:R_0805_2012MetricR-Q1, R-Q2, R-Q3, R-Q4
4PN2222ATAPackage_TO_SOT_THT:TO-92_InlineQ1, Q2, Q3, Q4
1100 nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1
1ATTINY85-20PUPackage_DIP:DIP-8_W7.62mmU1
1Conn_01x02Connector_Wire:SolderWire-0.5sqmm_1x02_P4.6mm_D0.9mm_OD2.1mmJ1
1SW_PushButton_Switch_THT:SW_TH_Tactile_Omron_B3F-100xSW2
1SW_SPDTButton_Switch_THT:SW_Slide_SPDT_Straight_CK_OS102011MS2QSW1

Similar boards

  • 2 layers30.7 × 76.1 mmRepeater v2, the printed circuit board in 3D

    Repeater v2

    plusvic/simplebus2-intercom

    General description of the Simplebus2 protocol used by some Comelit's intercoms. Hardware for retransmitting Simplebus2 messages over UART.

    17 parts95CC0-1.0
  • 2 layers101.5 × 54 mmSimkarte, the printed circuit board in 3D

    Simkarte

    osmocom/osmocom-analog

    Software Implementation of analog cellular telephony systems like NMT, TACS, IMTS, A/B/C-Netz; mirror of https://gitea.osmocom.org/cellular-infrastructure/osmocom-analog

    15 parts32GPL-3.0
  • 2 layers76.2 × 50.8 mmJerboa-8, the printed circuit board in 3D

    Jerboa-8

    strickyak/jerboa-attiny85-mod-synth

    Modular Synthesizer using an ATtiny85 chip for each module.

    23 parts31MIT
  • 2 layersCastVolumeKnob, the printed circuit board in 3D

    CastVolumeKnob

    WebmasterTD/CastVolumeKnob

    Hardware Volume Knob for Google Cast devices

    18 parts25
  • 2 layers55.9 × 55.9 mmPrintplaat, the printed circuit board in 3D

    Printplaat

    floriaanpost/wonderfoon

    Een nieuwe implementatie van de wonderfoon

    14 parts24
  • 2 layers71.1 × 40.6 mmTiny blinky, the printed circuit board in 3D

    Tiny blinky

    Hack-a-Day/Remoticon_KiCad_Blender

    support files for the 2020 Remoticon KiCad to Blender > PCB renders workshop

    21 parts22
  • 2 layers242 × 60 mmRoothubs, the printed circuit board in 3D

    Roothubs

    gkiefer/home2l

    The Home2Ls - Smart Tools for a Private Home

    178 parts21

Questions

How big is the Heart pcb v1 PCB?

It measures 75 × 73.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Heart pcb v1 use?

61 parts, built around the ATTINY85-20PU and PN2222ATA. 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 Heart pcb v1 KiCad files?

From the johnanddd/ATtiny85-Heart-PCB repository on GitHub, at the commit this page was made from: the board is hardware/heart_pcb_v1.kicad_pcb and its schematic hardware/heart_pcb_v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Heart pcb v1 design in my own project?

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