
PROJECT6 30A Home Automation with ESP32
adarshnarwariya12/PCB_Design
A collection of PCB design projects developed using KiCad.

A custom PCB-based home automation system designed around the ESP32 microcontroller. The project is designed to control high-current AC loads using relay switching while providing a compact and organized PCB for the…
Home automation with ESP32 is an open-source printed circuit board by Manideep136, from the Manideep136/Home-Automation-pcb-with-ESP32 repository on GitHub. It is a 2-layer board of 85 × 77 mm with 32 parts on 52 nets, routed with 233 tracks and 25 vias.
It is built around the ESP32-WROOM-32, HLK-PM01 and AMS1117-3.3, with the S8050 and PR13-5V-450-1C among its other parts. Its parts include 8 resistors, 5 ICs, 4 diodes, 4 switches and 3 connectors. It belongs with the home automation and IoT boards and the ESP32 boards of this library.
A custom PCB-based home automation system designed around the ESP32 microcontroller. The project is designed to control high-current AC loads using relay switching while providing a compact and organized PCB for the control electronics.
This project focuses on designing a dedicated home automation PCB using an ESP32 as the main controller.
The PCB is designed to interface with a high-current relay for controlling electrical loads. The design was created using KiCad, including the schematic, PCB layout, custom footprint, and 3D model integration.
The main goal of this project is to develop a practical and customizable hardware platform for ESP32-based home automation applications.
| Component | Description |
|---|---|
| ESP32 | Main microcontroller |
| 30A Relay | High-current load switching |
| Power Supply | Provides required DC power |
| Screw Terminals | Load and power connections |
| PCB | Custom KiCad-designed board |
The PCB uses a PR13-5V-450-1C 5V relay footprint.
The relay footprint was integrated into KiCad using a custom .kicad_mod footprint.
Important: The actual safe switching current depends on the relay's datasheet, PCB design, connector rating, wire size, enclosure, and the type of load. Do not assume that every 30A load is safe simply because the relay is labeled 30A.
The PCB was designed using KiCad 10. KiCad Files Schematic
The schematic contains the electrical connections between the ESP32, relay, power connections, and other components.
Home automation with ESP32.kicad_sch PCB
The PCB layout contains the physical board design, component placement, copper tracks, board outline, and routing.
Home automation with ESP32.kicad_pcb Project
The main KiCad project file is:
Home automation with ESP32.kicad_pro Custom Footprint
A custom footprint was added for the relay:
PR13-5V-450-1C.pretty/ └── RELAY_PR13-5V-450-1C.kicad_mod
A STEP model is also included for 3D visualization:
PR13-5V-450-1C.step Working Principle
The basic operating concept is:
ESP32
│
│ Control Signal
▼
Relay Driver
│
▼
5V Relay Coil
│
▼
Relay Contacts
│
▼
AC LoadThe ESP32 provides the control signal to operate the relay. The relay electrically switches the connected load.
Additional sensors and IoT functionality can be integrated into the ESP32 firmware depending on the application.
PCB Design Considerations
Because the PCB is intended for high-current switching, special attention should be given to:
PCB trace width Copper thickness Clearance between high-voltage and low-voltage sections Creepage distance Connector current rating Relay contact rating Wire gauge Fuse/protection Thermal considerations Enclosure and insulation
The PCB should be reviewed against the applicable electrical safety requirements before being connected to mains power.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 1K | Resistor_SMD:R_0805_2012Metric | R2, R4, R5, R6 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_2.7mm_M2.5_Pad_Via | H1, H2, H3, H4 |
| 4 | R | Resistor_SMD:R_0805_2012Metric | R1, R3, R7, R8 |
| 2 | 1N4148 | Diode_THT:D_DO-35_SOD27_P7.62mm_Horizontal | D3, D4 |
| 2 | C | Capacitor_SMD:C_0805_2012Metric | C1, C2 |
| 2 | LED | LED_SMD:LED_0805_2012Metric | D1, D2 |
| 2 | PC817 | Package_DIP:DIP-4_W7.62mm | U2, U3 |
| 2 | S8050 | Package_TO_SOT_THT:TO-92_Inline | Q1, Q2 |
| 2 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1, SW2 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U4 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | ESP32-WROOM-32 | RF_Module:ESP32-WROOM-32 | U1 |
| 1 | HLK-PM01 | Converter_ACDC:Converter_ACDC_Hi-Link_HLK-PMxx | U5 |
| 1 | PR13-5V-450-1C | PR13-5V-450-1C:RELAY_PR13-5V-450-1C | K3 |
| 1 | RAYEX-L90AS | Relay_THT:Relay_SPST_RAYEX-L90AS | K1 |
| 1 | Screw_Terminal_01x03 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3_1x03_P5.00mm_Horizontal | J2 |
| 1 | Screw_Terminal_01x04 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-4_1x04_P5.00mm_Horizontal | J3 |

adarshnarwariya12/PCB_Design
A collection of PCB design projects developed using KiCad.

dibyashreesahu/Kicad-Projects
This repository contains a PCB designed using KiCad, an open-source electronic design automation (EDA) software.




VikramR3/5A_Home_Automation
ESP32-WROOM-32 mains relay controller for lighting and a pump: HLK-PM01 supply, opto-isolated relay drivers. 2-layer KiCad design, 5 A trace rating.

brandmaharaj12-cmyk/ESP32-Home-Automation-PCB
ESP32 based 30A Home Automation PCB designed using KiCad.

hammadurrehman2006/kicad_lab
A collection of KiCad PCB designs developed during my Electronic Engineering degree (2024-28). Includes university projects, personal experiments, and custom components—featuring schematics, layouts, Gerber files, and…
It measures 85 × 77 mm and has 2 copper layers, 1.6 mm thick.
32 parts, built around the ESP32-WROOM-32, HLK-PM01, AMS1117-3.3 and S8050. 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.
From the Manideep136/Home-Automation-pcb-with-ESP32 repository on GitHub, at the commit this page was made from: the board is Home automation with ESP32/Home automation with ESP32.kicad_pcb and its schematic Home automation with ESP32/Home automation with ESP32.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask Manideep136 before reusing the design.