Skip to the content
2 layers85 × 77 mmHome automation with ESP32, the printed circuit board in 3D

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…

Size
85 × 77 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
52
Pads
174
Tracks, vias
233, 25
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
19 Sep 2026
Updated
28 Sep 2026

Overview

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.

Main components

5

README

README.md

Home-Automation-pcb-with-ESP32

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.

Project Overview

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.

Features

  • ESP32-based control system
  • High-current relay switching
  • Designed for loads up to 30A (relay/load rating dependent)
  • Custom PCB designed in KiCad
  • Screw terminal connections for external wiring
  • Dedicated relay footprint
  • Compact PCB layout
  • Custom relay footprint and 3D model
  • Designed with PCB routing and clearance considerations
  • Suitable as a base platform for IoT and home automation projects

Hardware

Main Components

ComponentDescription
ESP32Main microcontroller
30A RelayHigh-current load switching
Power SupplyProvides required DC power
Screw TerminalsLoad and power connections
PCBCustom KiCad-designed board

Relay

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.

PCB Design

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:

text
      ESP32
        │
        │ Control Signal
        ▼
   Relay Driver
        │
        ▼
   5V Relay Coil
        │
        ▼
 Relay Contacts
        │
        ▼
   AC Load

The 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.

Parts

32
QtyValueFootprintReferences
41KResistor_SMD:R_0805_2012MetricR2, R4, R5, R6
4MountingHole_PadMountingHole:MountingHole_2.7mm_M2.5_Pad_ViaH1, H2, H3, H4
4RResistor_SMD:R_0805_2012MetricR1, R3, R7, R8
21N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD3, D4
2CCapacitor_SMD:C_0805_2012MetricC1, C2
2LEDLED_SMD:LED_0805_2012MetricD1, D2
2PC817Package_DIP:DIP-4_W7.62mmU2, U3
2S8050Package_TO_SOT_THT:TO-92_InlineQ1, Q2
2SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U4
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1ESP32-WROOM-32RF_Module:ESP32-WROOM-32U1
1HLK-PM01Converter_ACDC:Converter_ACDC_Hi-Link_HLK-PMxxU5
1PR13-5V-450-1CPR13-5V-450-1C:RELAY_PR13-5V-450-1CK3
1RAYEX-L90ASRelay_THT:Relay_SPST_RAYEX-L90ASK1
1Screw_Terminal_01x03TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3_1x03_P5.00mm_HorizontalJ2
1Screw_Terminal_01x04TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-4_1x04_P5.00mm_HorizontalJ3

Similar boards

  • 2 layers80.5 × 75.5 mm30A HOME AUTOMATION WITH ESP32, the printed circuit board in 3D

    30A HOME AUTOMATION WITH ESP32

    dibyashreesahu/Kicad-Projects

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

    33 parts
  • 2 layers114 × 83 mm30 amp home automation, the printed circuit board in 3D

    30 amp home automation

    Dip-Halder/ESP32_based_30amo_home_automation_pcb_in_ki-cad

    33 parts
  • 2 layers95.2 × 80 mmBOM 30AHA, the printed circuit board in 3D

    BOM 30AHA

    sandraseenulalk11d-gif/KiCad_PCB_designs

    32 parts
  • 2 layers88.5 × 74.5 mmHomeAutomation, the printed circuit board in 3D

    HomeAutomation

    the-adeel/home-automation-esp32

    32 parts
  • 2 layers89.5 × 75.4 mm5A Home Automation, the printed circuit board in 3D

    5A Home Automation

    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.

    34 partsMIT
  • 2 layers85.7 × 78.8 mmESP32-Home Automation PCB, the printed circuit board in 3D

    ESP32-Home Automation PCB

    brandmaharaj12-cmyk/ESP32-Home-Automation-PCB

    ESP32 based 30A Home Automation PCB designed using KiCad.

    33 parts
  • 2 layers80.8 × 73.1 mm30A home automation using esp32, the printed circuit board in 3D

    30A home automation using esp32

    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…

    33 parts1

Questions

How big is the Home automation with ESP32 PCB?

It measures 85 × 77 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Home automation with ESP32 use?

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.

Where can I download the Home automation with ESP32 KiCad files?

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.

Can I use the Home automation with ESP32 design in my own project?

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