Relay8
YORROY123·kicad-scripted-pcb·boards/relay8/relay8.kicad_pcb
About the Relay8 PCB
Relay8 is an open source ESP32 PCB design by YORROY123, published on GitHub under the MIT license. It is a 2-layer board measuring 232 × 110 mm, with 65 components from 36 distinct parts.
Its main chip is the ESP32-C3-WROOM-02-N4, from the ESP32 family. Other key parts include the LP38693MP-3.3 and ULN2803A. By type, the board carries 16 resistors, 12 diodes, 11 connectors, 8 relays, 8 capacitors and 3 ICs.
From the project
Three KiCad 10 PCBs designed entirely as Python code with layered verification
Three KiCad 10 boards designed entirely as code: Python scripts produce the schematic, the PCB placement, the routing (via freerouting) and the copper pours, and each board rebuilds from scratch with one command. The KiCad GUI is never opened.
The point is verification. Every build runs several independent checks, because each one is blind to errors the others catch. Some of those errors turned up while these boards were being built and are listed below.

Main components on the Relay8
Relay8 bill of materials (BOM)
65 components, 36 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | ESP32-C3-WROOM-02-N4 | ESP32-C3-WROOM-02 | U1 |
| 1 | LP38693MP-3.3 | SOT-223-5 | U2 |
| 1 | ULN2803A | SOIC-18W_7.5x11.6mm_P1.27mm | U3 |
| 1 | AO3401A | SOT-23 | Q1 |
| 1 | USB-C | USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J1 |
| 1 | UART | PinHeader_1x04_P2.54mm_Vertical | J2 |
| 1 | CH1 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J11 |
| 1 | CH2 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J12 |
| 1 | CH3 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J13 |
| 1 | CH4 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J14 |
| 1 | CH5 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J15 |
| 1 | CH6 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J16 |
| 1 | CH7 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J17 |
| 1 | CH8 | TerminalBlock_MetzConnect_Type171_RT13703HBWC_1x03_P7.50mm_Horizontal | J18 |
| 1 | MAINS IN | TerminalBlock_MetzConnect_Type171_RT13702HBWC_1x02_P7.50mm_Horizontal | J20 |
| 1 | T8A 250V | Fuseholder_Clip-5x20mm_Keystone_3517_Inline_P23.11x6.76mm_D1.70mm_Horizontal | F1 |
| 1 | T1A 250V | Fuseholder_TR5_Littelfuse_No560_No460 | F2 |
| 8 | SRD-05VDC-SL-C | Relay_SPDT_SANYOU_SRD_Series_Form_C | K1, K2, K3, K4, K5, K6, K7, K8 |
| 1 | HLK-10M05 | Converter_ACDC_Hi-Link_HLK-10Mxx | PS1 |
| 1 | 14D431K | RV_Disc_D15.5mm_W4.4mm_P7.5mm | RV1 |
Show 16 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | RESET | SW_Push_1P1T_NO_CK_KMR2 | SW1 |
| 1 | BOOT | SW_Push_1P1T_NO_CK_KMR2 | SW2 |
| 1 | USBLC6-2SC6 | SOT-23-6 | D1 |
| 1 | GREEN | LED_0805_2012Metric | D3 |
| 2 | SS34 | D_SMA | D4, D5 |
| 8 | RED | LED_0805_2012Metric | D11, D12, D13, D14, D15, D16, D17, D18 |
| 3 | 1uF | C_0402_1005Metric | C1, C4, C8 |
| 1 | 10uF | C_0805_2012Metric | C2 |
| 2 | 100nF | C_0402_1005Metric | C3, C6 |
| 1 | 100uF | CP_Elec_6.3x7.7 | C5 |
| 1 | 10nF | C_0402_1005Metric | C7 |
| 2 | 5.1k | R_0402_1005Metric | R1, R2 |
| 4 | 10k | R_0402_1005Metric | R3, R4, R5, R6 |
| 1 | 220 | R_0402_1005Metric | R8 |
| 1 | 100k | R_0402_1005Metric | R9 |
| 8 | 1k | R_0402_1005Metric | R11, R12, R13, R14, R15, R16, R17, R18 |
Relay8 design files
The KiCad project lives in the YORROY123/kicad-scripted-pcb repository on GitHub; these links point at the commit this page was built from.
- Layoutboards/relay8/relay8.kicad_pcb
- Schematicboards/relay8/relay8.kicad_sch
Relay8: common questions
What microcontroller does the Relay8 use?
The Relay8 is built around the ESP32-C3-WROOM-02-N4, from the ESP32 family.
How big is the Relay8 PCB?
The Relay8 measures 232 × 110 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Relay8?
65 components, from 36 distinct parts. The full bill of materials is listed on this page.
Where can I download the Relay8 design files?
From the YORROY123/kicad-scripted-pcb repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the Relay8 design in my own project?
Yes, under the terms of its MIT license, which YORROY123 chose for the repository.
Can I test firmware for the Relay8 without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug ESP32 firmware against it before you order a PCB.
More boards in kicad-scripted-pcb
Similar boards
ESP32
OSO-BOOK-B1
joeycastillo
85 × 115 mm65 parts2LCC-BY-SA-4.08.1kESP32
Powertrain
byrantech
64 × 45.4 mm171 parts4LMIT4.3kESP32
Esp32 minimal
atopile
36.2 × 26.8 mm20 parts2LMIT4.0kESP32
Badge
atopile
56.3 × 39 mm239 parts4LMIT4.0kESP32
Racer
StuckAtPrototype
36 × 50.2 mm70 parts4LApache-2.03.8kESP32
Controller
StuckAtPrototype
29 × 74 mm58 parts4LApache-2.03.8k