Skip to the content
2 layers133 × 106 mm8-channel relay, the printed circuit board in 3D

ESP32-based 8-channel smart switch PCB for wireless control of multiple electrical loads, featuring relay interfaces and a compact PCB design.

Size
133 × 106 mm
Copper layers
2
Thickness
1.6 mm
Parts
86
Nets
104
Pads
304
Tracks, vias
567, 51
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
28 Oct 2026
Updated
28 Oct 2026

Overview

8-channel relay is an open-source printed circuit board by akashh218, from the akashh218/ESP32-8-Channel-Smart-Switch-PCB repository on GitHub. It is a 2-layer board of 133 × 106 mm with 86 parts on 104 nets, routed with 567 tracks and 51 vias.

It is built around the CH340C, ESP32-WROOM-32D and HLK-10M05, with the AMS1117-3.3, ULN2803A and SRD-05VDC-SL-C among its other parts. Its parts include 21 resistors, 16 connectors, 10 diodes, 8 capacitors and 8 switches. It belongs with the home automation and IoT boards and the ESP32 boards of this library.

Main components

8

README

README.md

ESP32 8-Channel Smart Switch PCB

A custom ESP32-based 8-channel smart switch PCB designed in KiCad, focusing on relay interfacing, compact PCB layout, power distribution, grounding, and practical embedded hardware development.

Overview

This project involves the design of an ESP32-based smart switching board, covering schematic design, component selection, PCB component placement, routing, and design-rule verification.

The board is designed to provide control of up to eight switching channels, enabling multiple electrical loads to be controlled through an ESP32-based system.

Key Features

  • ESP32-based control architecture
  • 8-channel relay switching interface
  • Multi-load switching capability
  • Wireless control capability through ESP32 connectivity
  • Dedicated power distribution for the control circuitry
  • Ground plane and grounding optimization
  • PCB component placement and routing
  • Design-rule checking (DRC)
  • Compact PCB layout for automation applications

PCB Design Approach

The PCB design focuses on:

  • Component placement and functional grouping
  • ESP32 pin assignment and signal routing
  • Relay control signal routing
  • Power supply distribution
  • Grounding and return-current paths
  • Decoupling capacitor placement
  • Trace width selection based on current requirements
  • Clearance between control circuitry and switched-load connections
  • Manufacturing clearances and footprint verification
  • PCB design-rule checking

GPIO assignments and component placement were planned to simplify routing and improve the overall organization of the board.

Design Challenges

Some of the main design considerations include:

  • Routing eight independent relay control signals
  • Managing power distribution across multiple switching channels
  • Optimizing ESP32 placement and GPIO connectivity
  • Maintaining suitable trace widths and clearances
  • Organizing relay connectors for convenient wiring
  • Balancing PCB size with component accessibility
  • Resolving design-rule and footprint issues

Tools

  • KiCad – Schematic capture and PCB layout
  • KiCad DRC – Design-rule verification

Repository Contents

This repository contains the design files associated with the project, including:

  • Schematic files
  • PCB layout files
  • Footprints and libraries used by the design
  • Design documentation
  • Gerber files and manufacturing outputs, if included

Project Status

PCB Design in Progress / Completed

The project status will be updated as the design progresses through PCB fabrication, component assembly, power-up verification, relay switching tests, and functional validation.

Learning Outcomes

This project focuses on developing practical skills in:

  • PCB schematic design and layout
  • ESP32 hardware integration
  • Relay interfacing
  • Power distribution and grounding
  • GPIO planning and signal routing
  • Component and footprint selection
  • PCB design-rule verification
  • Hardware debugging and testing
  • Design for manufacturability

Designed in KiCad | ESP32 | 8-Channel Smart Switch PCB

Parts

86
QtyValueFootprintReferences
9LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD5, D6, D7, D8, D9, D10, D11, D12, IO
81kResistor_SMD:R_0805_2012MetricR13, R14, R15, R16, R17, R18, R19, R20
8SRD-05VDC-SL-Crelay:RELAY_SRD-05VDC-SL-CK1, K2, K3, K4, K5, K6, K7, K8
610KResistor_SMD:R_0805_2012MetricR3, R4, R7, R8, R9, R10
4, , ,
310µFCapacitor_SMD:C_1206_3216MetricC4, C5, C10
20.1µFCapacitor_SMD:C_0805_2012MetricC9, C11
2330ΩResistor_SMD:R_0805_2012MetricR11, R12
2470ΩResistor_SMD:R_0805_2012MetricR5, R6
25.1KResistor_SMD:R_0805_2012MetricR1, R2
2NPNPackage_TO_SOT_SMD:SOT-23Q1, Q3
2SW_PushButton_Switch_SMD:SW_SPST_B3U-1000PBOOT, EN
10.1µFCapacitor_SMD:C_1206_3216MetricC8
10EResistor_SMD:R_0805_2012MetricR21
1100nFCapacitor_SMD:C_0805_2012MetricC1
14628fuse:FUSE_4628FUSE
1470µFCapacitor_SMD:CP_Elec_10x10.5C6
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU2
1D_SchottkyDiode_SMD:D_SMAD1
1ES1screwterminal:PHOENIX_1888687J12
1ES2screwterminal:PHOENIX_1888687J13
1ES3screwterminal:PHOENIX_1888687J14
1ES4screwterminal:PHOENIX_1888687J15
1ES5screwterminal:PHOENIX_1888687J16
1ES6screwterminal:PHOENIX_1888687J17
1ES7screwterminal:PHOENIX_1888687J18
1ES8screwterminal:PHOENIX_1888687J19
1ESP32-WROOM-32DRF_Module:ESP32-WROOM-32DU1
1HLK-10M05Converter_ACDC:Converter_ACDC_Hi-Link_HLK-10MxxU5
1I/P ACscrewterminal:PHOENIX_1888687AC I/P
1MOV-14D471Kvaristor:MOV14D471KRV1
1PWRLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderPWR
1S1screwterminal:PHOENIX_1888687J3
1S2screwterminal:PHOENIX_1888687J4
1S3screwterminal:PHOENIX_1888687J5
1S4screwterminal:PHOENIX_1888687J6
1S5screwterminal:PHOENIX_1888687J7
1S6screwterminal:PHOENIX_1888687J8
1S7screwterminal:PHOENIX_1888687J9
1S8screwterminal:PHOENIX_1888687J10
1ULN2803APackage_DIP:DIP-18_W7.62mmU4
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12USB C
1VOICEConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalVOICE

The 82 most common of 86 parts.

Similar boards

  • 2 layers160 × 110 mmPumpengruppe rs485, the printed circuit board in 3D

    Pumpengruppe rs485

    freezweb/de.freezweb.heizungssteuerung

    Dieses Verzeichnis enthaelt den KiCad-Startentwurf fuer die dezentrale Pumpengruppen-Platine:

    123 parts
  • 2 layers232 × 110 mmRelay8, the printed circuit board in 3D

    Relay8

    YORROY123/kicad-scripted-pcb

    Three KiCad 10 PCBs designed entirely as Python code with layered verification

    65 parts1MIT
  • 2 layers90 × 100 mmOlivia control, the printed circuit board in 3D

    Olivia control

    AlterMundi-MonitoreoyControl/Proyecto-Incubadora

    Is an innovative project aimed at enhancing the efficiency and productivity of poultry incubators in family farming.

    51 parts4LGPL-2.1
  • 2 layers44.5 × 37.9 mmPetPull v3, the printed circuit board in 3D

    PetPull v3

    Fremen72/MiniPetPull

    Recycler PET plastic bottles into filament for 3D printer

    14 partsGPL-3.0
  • 2 layers99.1 × 68.9 mmINSIGHT, the printed circuit board in 3D

    INSIGHT

    InsightNCSU/PCB

    22 parts
  • 2 layers160 × 100 mmWAVEFORM PROCESSOR, the printed circuit board in 3D

    WAVEFORM PROCESSOR

    Desval27/FormantKO

    Knock-off of the Elektor Formant Synthesizer project with the initial goal of being quasi-authentic and secondary goal undecided. Probably tweaks of some kind.

    52 partsMIT
  • 2 layers124.8 × 68 mmESP-32-RELAY CONTROLLER, the printed circuit board in 3D

    ESP-32-RELAY CONTROLLER

    pasachan/ESP-32-RELAY-CONTROLLER

    An 8-channel relay controller with Wi-Fi, an RS-485 field bus, and a 12 V power rail for downstream nodes. Designed as the master board for a small home-automation network: this board switches loads directly, talks to…

    106 parts1CERN-OHL-P-2.0

Questions

How big is the 8-channel relay PCB?

It measures 133 × 106 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 8-channel relay use?

86 parts, built around the CH340C, ESP32-WROOM-32D, HLK-10M05 and AMS1117-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 8-channel relay KiCad files?

From the akashh218/ESP32-8-Channel-Smart-Switch-PCB repository on GitHub, at the commit this page was made from: the board is 8-channel_relay/8-channel_relay.kicad_pcb and its schematic 8-channel_relay/8-channel_relay.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the 8-channel relay design in my own project?

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