Skip to the content
2 layers26.4 × 23.9 mmESPTiny402, the printed circuit board in 3D

ESPTiny402

tomtor/ESPTiny4

KiCad ATtiny84/x14/x02 (SMD) and ESP-01 (ESP 8266) PCB boards

Size
26.4 × 23.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
21
Nets
16
Pads
73
Tracks, vias
304, 25
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
27 Jun 2021
Updated
25 May 2025

Overview

ESPTiny402 is an open-source printed circuit board by tomtor, from the tomtor/ESPTiny repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 26.4 × 23.9 mm with 21 parts on 16 nets, routed with 304 tracks and 25 vias.

It is built around the ATTINY402-SSN and BAT54S. Its parts include 5 resistors, 3 ICs, 3 connectors, 2 capacitors and 2 diodes. It belongs with the ESP32, ESP8266 and AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

ATtiny84/16x4/x02 and ESP-01 (ESP8266) KiCad PCB and example code

Usage

The main function of the ATtiny is acting as a battery friendly low power co-processor for the ESP. A bit like the ULP low power co-processor of the ESP32, except with a lot more IO functions and program memory.

ATtiny and ESP combined use 22uA in sleep mode or even less when the ESP is switched off by the ATtiny with CS.

3D rendering 3D rendering

3D rendering 3D rendering

3D rendering 3D rendering

Usable on breadboard (ATtiny84: 9 rows high, leaves 2 rows empty and ATtiny16x4: 8 rows high) OR stand alone.

3 PCB designs: ATtiny84 or ATtiny16x4 or ATtinyx02

All components / features are optional:

  • ATtiny84 or ATtiny1604 / ATtiny1614 or ATtiny202 / ATtiny402
  • ESP-01 (When not used the connections/space can be used for any other (I2C) device)
  • LED with resistor
  • MCP1700 low quiescent current regulator
  • BAT85 diode for Solar Charging panel (see https://www.thethingsnetwork.org/labs/story/a-cheap-stm32-arduino-node/step/solar-power)
  • Voltage divider for measuring battery voltage
  • Decoupling capacitors
  • I2C communication between ESP and ATtiny (with optional 4k7 pull-up)
  • ATtiny can restart ESP by pulling ESP Reset low

Example code

The ATtiny wakes up the ESP every 10 minutes by pulling RST low and sends a counter and the supply voltage to it.

OTA for the ESP

OTA for ESP program updates is activated for 20s when the I2C communication fails. This can be triggered by resetting the ESP by pulling the RST line low. Because the ATtiny is most of the time sleeping the I2C communication will fail.

There is a small chance that the ATtiny will reset the ESP during upload when the 10 minute interval is completed. You can prevent this by pulling the ATtiny RST low when using OTA, or just upload again.

Schemas

https://github.com/tomtor/ESPTiny/raw/master/ESPTiny.pdf Schema

https://github.com/tomtor/ESPTiny/raw/master/ESPTiny1614.pdf Schema

https://github.com/tomtor/ESPTiny/raw/master/ESPTiny402.pdf Schema

Credits

https://github.com/jdunmire/kicad-ESP8266

Parts

21
QtyValueFootprintReferences
21MResistor_SMD:R_1206_3216MetricR2, R3
21uCapacitor_SMD:C_1206_3216MetricC1, C2
24k7Resistor_SMD:R_1206_3216MetricR4, R5
2Conn_01x10_MaleConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ1, J2
1220Resistor_SMD:R_1206_3216MetricR1
1ATtiny402-SSPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1BAT54SPackage_TO_SOT_SMD:SOT-23D2
1Conn_01x04_MaleConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1ESP-01v090ESP8266:ESP-01U1
1LEDLED_SMD:LED_1206_3216MetricD1
1MCP1700Package_TO_SOT_SMD:SOT-23U3
1SolderJumper_2Jumper:SolderJumper-2_P1.3mm_Bridged_RoundedPad1.0x1.5mmJP1
1SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJP2
1SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm_NumberLabelsJP3

The 18 most common of 21 parts.

More from tomtor/ESPTiny

3
  • 2 layers33 × 23.9 mmESPTiny1614, the printed circuit board in 3D

    ESPTiny1614

    tomtor/ESPTiny

    KiCad ATtiny84/x14/x02 (SMD) and ESP-01 (ESP 8266) PCB boards

    24 parts4GPL-3.0
  • 2 layers33 × 26.4 mmESPTiny, the printed circuit board in 3D

    ESPTiny

    tomtor/ESPTiny

    KiCad ATtiny84/x14/x02 (SMD) and ESP-01 (ESP 8266) PCB boards

    23 parts4GPL-3.0
  • 2 layers26.4 × 23.9 mmESPTiny402-SOT89-shove, the printed circuit board in 3D

    ESPTiny402-SOT89-shove

    tomtor/ESPTiny

    KiCad ATtiny84/x14/x02 (SMD) and ESP-01 (ESP 8266) PCB boards

    20 parts4GPL-3.0

Similar boards

  • 2 layers75.8 × 19.2 mm3S coinCellChargeController, the printed circuit board in 3D

    3S coinCellChargeController

    PocketConcepts/Pocket_PSU

    A variable current & voltage PSU with 3S lipo charging, balancing, and protection circuit using PPS.

    78 parts36
  • 2 layers72 × 47.5 mmPCB avr dx unbricker, the printed circuit board in 3D

    PCB avr dx unbricker

    k-takata/PCB_avr_dx_unbricker

    UPDI High Voltage programmer for AVR Dx/Ex series

    40 parts4
  • 2 layers85 × 53 mmCccamp23 nametag, the printed circuit board in 3D

    Cccamp23 nametag

    HazeCore/Nametag_Hardware

    This is the hardware for out Nametag Badge for Chaos Communication Camp 2023. You can find more information about the Project at https://hazeco.re/cccamp-nametag/.

    34 parts3
  • 2 layers7.4 × 7.3 mmDCC Dekoder Attiny402 1, the printed circuit board in 3D

    DCC Dekoder Attiny402 1

    markusgruen/DccFunctionDecoder

    Open source, Arduino-based DCC function decoder

    17 parts3GPL-3.0
  • 2 layers69.9 × 12.1 mmPeepsy pro, the printed circuit board in 3D

    Peepsy pro

    mirdej/peepsy

    simple continuity tester

    13 parts3GPL-3.0
  • 2 layers100 × 98.6 mmPCB Christmas Tree, the printed circuit board in 3D

    PCB Christmas Tree

    KNEAGHUST/PCB_Christmas_Tree_AGH

    PCB Christmas tree designed for the AGH University of Krakow

    45 parts2MIT
  • 2 layers100 × 90 mmPaneled, the printed circuit board in 3D

    Paneled

    McbeEringi/pcb-stuff

    286 parts2MIT

Questions

How big is the ESPTiny402 PCB?

It measures 26.4 × 23.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESPTiny402 use?

21 parts, built around the ATTINY402-SSN and BAT54S. 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 ESPTiny402 KiCad files?

From the tomtor/ESPTiny repository on GitHub, at the commit this page was made from: the board is ESPTiny402.kicad_pcb and its schematic ESPTiny.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESPTiny402 design in my own project?

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