Skip to the content
2 layers105 × 58 mmZAP-010A, the printed circuit board in 3D

Hardware reference design for an ESP32-S3 smart plug with mains power conversion, relay switching, RTC support, USB connectivity, and protection components. Built to explore real-world embedded hardware and power electronics design. The design is recreated for educational purposes to understand mains-powered embedded hardware.

Size
105 × 58 mm
Copper layers
2
Thickness
1.6 mm
Parts
80
Nets
69
Pads
275
Tracks, vias
400, 24
Pours
4
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
2 Feb 2026
Updated
15 Apr 2026

Overview

ZAP-010A is an open-source printed circuit board by lalithk06, from the lalithk06/Esp32_Smart_Plug repository on GitHub. It is a 2-layer board of 105 × 58 mm with 80 parts on 69 nets, routed with 400 tracks and 24 vias.

It is built around the ESP32-S3-WROOM-1-N8, HLK-5M05 and AMS1117-3.3, with the DS3231MZ+, USBLC6-2P6 and 1N4148W among its other parts. Its parts include 26 resistors, 16 capacitors, 7 diodes, 7 switches and 4 ICs. It belongs with the home automation and IoT boards and the ESP32 boards of this library.

Main components

10

README

README.md

⚡ ESP32 Smart Plug — Hardware Reference Design

A compact and efficient smart plug built around the ESP32-S3 for intelligent power control, protection, and connectivity.

This project presents the schematic and PCB design of a smart plug capable of switching AC loads while supporting modern embedded features such as USB connectivity, RTC support, and protection circuitry. Designed to explore real-world embedded hardware development and PCB design practices.

📺 This project was developed by following a YouTube playlist by Ampnics, with additional learning and implementation.


⚙ Working Principle

  • The system uses an ESP32-S3 microcontroller as the core processing unit.
  • AC mains input is stepped down and regulated to provide safe DC power for the controller.
  • A relay switching circuit enables the ESP32 to control connected appliances.
  • Protection components safeguard the device against voltage spikes and electrical faults.
  • USB connectivity allows programming and debugging.
  • RTC support enables future time-based automation features.

📌 Objective

To design and develop a reliable hardware platform for a smart plug that demonstrates safe mains power handling, embedded control, and scalable architecture for future IoT-based automation.


⚙ Components Used

No.ComponentsSpecifications / Role
1.ESP32-S3 ModuleMain microcontroller with Wi-Fi & BLE
2.RelayAC load switching
3.AC-DC Power ModuleConverts mains to regulated DC
4.Voltage RegulatorsStable voltage supply
5.Protection CircuitryFuse, MOV, flyback diode, etc.
6.USB InterfaceProgramming & debugging
7.Capacitors & ResistorsFiltering and biasing
8.RTC (Optional)Time-based control support

📷 Preview

🖼 Schematic Diagram

📐 PCB Layout

🧊 3D View


🧠 Design Highlights

  • Proper isolation between AC mains and low-voltage sections
  • Dedicated power zoning for noise reduction
  • Flyback protection for relay reliability
  • USB interface for easy firmware flashing

⚠ Safety Considerations

  • Isolation maintained between high-voltage and low-voltage domains
  • Proper creepage and clearance followed
  • Fuse and MOV used for protection
  • Designed for educational and prototyping purposes only

📊 Specifications

ParameterValue
Input Voltage230V AC
Output ControlRelay-based switching
MCUESP32-S3
CommunicationWi-Fi, BLE

🚀 Key Highlights

✅ Designed with real-world electrical safety considerations
✅ Suitable for home automation applications
✅ Expandable for IoT integration
✅ Compact PCB layout
✅ Industry-relevant hardware design workflow


🔄 Future Improvements

  • Energy monitoring (current & voltage sensing)
  • Mobile app / cloud integration
  • Overload and thermal protection
  • Smart scheduling and automation
  • Voice assistant compatibility
  • Custom enclosure design
  • Power consumption optimization

⭐ This project is part of my learning journey in hardware design and PCB development.

Parts

80
QtyValueFootprintReferences
100.1uFCapacitor_SMD:C_0603_1608MetricC4, C6, C8, C9, C10, C11, C12, C13, C14, C15
1010KResistor_SMD:R_0603_1608MetricR9, R13, R14, R15, R16, R17, R18, R21, R22, R25
60RResistor_SMD:R_0603_1608MetricR6, R7, R19, R20, R23, R24
51KResistor_SMD:R_0603_1608MetricR8, R10, R11, R12, R26
5SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW3, SW4, SW5, SW6
310uFCapacitor_SMD:C_0805_2012MetricC3, C5, C7
3FiducialFiducial:Fiducial_0.75mm_Mask1.5mmFID1, FID2, FID3
3RED_LEDLED_THT:LED_D3.0mmD1, D5, D6
21N4148WDiode_SMD:D_SOD-123D3, D7
25kResistor_SMD:R_0603_1608MetricR4, R5
2AO3400APackage_TO_SOT_SMD:SOT-23Q1, Q2
10.1uFCapacitor_THT:C_Rect_L13.0mm_W6.0mm_P10.00mm_FKS3_FKP3_MKS4C1
110D56KVaristor:RV_Disc_D12mm_W5.8mm_P7.5mmRV1
110kResistor_SMD:R_0603_1608MetricR3
11MResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalR1
12.2uFCapacitor_SMD:C_0805_2012MetricC16
1220uFCapacitor_SMD:CP_Elec_8x10C2
13V3Test Point:TestPoint_Pad_D2.5mmTP3
14kResistor_SMD:R_0603_1608MetricR2
1500mA 250VFuse:Fuse_Littelfuse_395SeriesF1
15VTest Point:TestPoint_Pad_D2.5mmTP4
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1BOOTTest Point:TestPoint_Pad_D2.5mmTP6
1CH291-1220LFCH291-1220LF:BAT_CH291-1220LFBT1
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1DS3231MPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU4
1ENTest Point:TestPoint_Pad_D2.5mmTP5
1ESP32-S3-WROOM-1RF_Module:ESP32-S3-WROOM-1U2
1GNDTest Point:TestPoint_Pad_D2.5mmTP7
1HLK-5M05Converter_ACDC:Converter_ACDC_Hi-Link_HLK-5MxxPS1
1MBR0520Diode_SMD:D_SOD-123D2
1MLT-8530footprints:MLT-8530_JHELS1
1RED_LEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD4
1RXD0Test Point:TestPoint_Pad_D2.5mmTP2
1Relay_SPDTRelay_THT:Relay_SPDT_Hongfa_HF3F-L-xx-1ZL1TK1
1SW_PushButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKSW2
1Screw_Terminal_01x04TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-04P_1x04_P5.00mmJ1
1TXD0Test Point:TestPoint_Pad_D2.5mmTP1
1USBLC6-2P6Package_TO_SOT_SMD:SOT-666U3
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01AJ2

Similar boards

  • 2 layers105 × 58 mmViRa V1.0, the printed circuit board in 3D

    ViRa V1.0

    VikramR3/ViRa_Ai_plug

    ESP32-S3 mains smart plug: HLK-5M05 isolated supply, SRD-05VDC relay, DS3231M RTC. 2-layer KiCad design.

    80 partsMIT
  • 2 layers105 × 58 mmZAP-01A, the printed circuit board in 3D

    ZAP-01A

    ponrajleo/AI-Hardware-ESP32S3-

    This project is part of a complete open-source hardware design course on YouTube:

    103 parts
  • 4 layers72.9 × 62.9 mmIEQ Monitor, the printed circuit board in 3D

    IEQ Monitor

    lalithk06/PCB_Designs

    This repository contains various PCB design projects made using KiCad

    88 parts
  • 2 layers50 × 100 mmAirtap, the printed circuit board in 3D

    Airtap

    ajkumar-1907/POWER-ELECTRONICS-LIB

    Open-source library of power electronics converter topologies — KiCad schematics, working principles, use cases, and design notes for DC-DC, AC-DC, DC-AC, and AC-AC converters. Free to use, modify, and build on.

    62 parts1MIT
  • 2 layers42 × 66 mmWafflehw rev0.1, the printed circuit board in 3D

    Wafflehw rev0.1

    Jankyneering/Waffle_hw

    Hardware designs for Waffle, a compact Pager and general RF multitool.

    42 parts2GPL-3.0
  • 2 layers80 × 54 mmBis zone, the printed circuit board in 3D

    Bis zone

    tsmiltonAgents/pl60c-dmx-wakeup

    A small ESP32-S3 board that drives the wired DMX512 input of a Neewer PL60C panel light so the light can be ramped up slowly in the morning (sunrise alarm). Rev A, 2026-09-02.

    39 parts
  • 4 layers35 × 50 mmTama, the printed circuit board in 3D

    Tama

    rough-rat/tama

    74 parts

Questions

How big is the ZAP-010A PCB?

It measures 105 × 58 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ZAP-010A use?

80 parts, built around the ESP32-S3-WROOM-1-N8, HLK-5M05, AMS1117-3.3 and DS3231MZ+. 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 ZAP-010A KiCad files?

From the lalithk06/Esp32_Smart_Plug repository on GitHub, at the commit this page was made from: the board is Hardware/Hardware Design/ZAP-010A.kicad_pcb and its schematic Hardware/Hardware Design/ZAP-010A.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ZAP-010A design in my own project?

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