
ZAP-010A
lalithk06/Esp32_Smart_Plug
Hardware reference design for an ESP32-S3 smart plug with mains power conversion, relay switching, RTC support, USB connectivity, and protection components.

ESP32-S3 mains smart plug: HLK-5M05 isolated supply, SRD-05VDC relay, DS3231M RTC. 2-layer KiCad design.
ViRa V1.0 is an open-source printed circuit board by VikramR3, from the VikramR3/ViRa_Ai_plug repository on GitHub, published under the MIT licence. It is a 2-layer board of 105 × 58 mm with 80 parts on 69 nets, routed with 651 tracks and 102 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 5 ICs. It belongs with the home automation and IoT boards and the ESP32 boards of this library.
A 2-layer ESP32-S3 mains smart plug: an HLK-5M05 isolated module drops 230 V AC to 5 V, an AMS1117 supplies the ESP32-S3-WROOM-1, and an SRD-05VDC relay switches the outlet through a low-side AO3400A MOSFET with a flyback diode and status LED. A DS3231M with a CR1220 backup cell keeps time for scheduled switching, with six buttons and a buzzer for local control and USB-C for programming. Designed in KiCad 10.

This board carries 230 V AC. The mains and low-voltage sections are separated by a documented barrier — 6.78 mm of creepage in the open board area, enforced by ViRa_V1.0.kicad_dru. However the tightest mains-to-low-voltage gap is 2.10 mm, at the relay's mains common pad, which is below the 2.5 mm functional minimum and needs the relay or the power module re-placed to fix. It has not been fabricated or tested. Do not connect it to mains.
Circuit topology follows the open-source Zeen-AI-Plug smart plug.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 11 | 10K | Resistor_SMD:R_0603_1608Metric | R3, R9, R13, R14, R15, R16, R17, R18, R21, R22, R25 |
| 10 | 0.1uF | Capacitor_SMD:C_0603_1608Metric | C4, C6, C8, C9, C10, C11, C12, C13, C14, C15 |
| 6 | 0R | Resistor_SMD:R_0603_1608Metric | R6, R7, R19, R20, R23, R24 |
| 6 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1, SW2, SW3, SW4, SW5, SW6 |
| 5 | 1K | Resistor_SMD:R_0603_1608Metric | R8, R10, R11, R12, R26 |
| 3 | 10uF | Capacitor_SMD:C_0805_2012Metric | C3, C5, C7 |
| 3 | Fiducial | Fiducial:Fiducial_0.75mm_Mask1.5mm | FID1, FID2, FID3 |
| 2 | 1N4148W | Diode_SMD:D_SOD-123 | D3, D7 |
| 2 | 5K1 | Resistor_SMD:R_0603_1608Metric | R4, R5 |
| 2 | AO3400A | Package_TO_SOT_SMD:SOT-23 | Q1, Q2 |
| 1 | 0.1uF | Capacitor_THT:C_Rect_L13.0mm_W6.0mm_P10.00mm_FKS3_FKP3_MKS4 | C1 |
| 1 | 10D56K | Varistor:RV_Disc_D12mm_W5mm_P7.5mm | RV1 |
| 1 | 1M | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |
| 1 | 2.2uF | Capacitor_SMD:C_0805_2012Metric | C16 |
| 1 | 220uF | Capacitor_SMD:CP_Elec_8x10 | C2 |
| 1 | 3V3 | TestPoint:TestPoint_Pad_D1.5mm | TP3 |
| 1 | 4K7 | Resistor_SMD:R_0603_1608Metric | R2 |
| 1 | 500mA 250V | Fuse:Fuse_Littelfuse_395Series | F1 |
| 1 | 5V | TestPoint:TestPoint_Pad_D1.5mm | TP4 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U2 |
| 1 | BOOT | TestPoint:TestPoint_Pad_D1.5mm | TP6 |
| 1 | CH291-1220LF | CH291-1220LF:BAT_CH291-1220LF | BT1 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | DS3231M | Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm | U5 |
| 1 | EN | TestPoint:TestPoint_Pad_D1.5mm | TP5 |
| 1 | ESP32-S3-WROOM-1 | RF_Module:ESP32-S3-WROOM-1 | U3 |
| 1 | GND | TestPoint:TestPoint_Pad_D1.5mm | TP7 |
| 1 | GREEN | LED_THT:LED_D3.0mm | D5 |
| 1 | HLK-5M05 | Converter_ACDC:Converter_ACDC_Hi-Link_HLK-5Mxx | U1 |
| 1 | MBR0520 | Diode_SMD:D_SOD-123 | D2 |
| 1 | MLT-8530 | footprints:MLT-8530_JHE | LS1 |
| 1 | RED | LED_SMD:LED_0603_1608Metric | D4 |
| 1 | RED | LED_THT:LED_D3.0mm | D1 |
| 1 | RXD0 | TestPoint:TestPoint_Pad_D1.5mm | TP2 |
| 1 | SANYOU_SRD_Form_C | Relay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C | K2 |
| 1 | Screw_Terminal_01x04 | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-04P_1x04_P5.00mm | J1 |
| 1 | TXD0 | TestPoint:TestPoint_Pad_D1.5mm | TP1 |
| 1 | USBLC6-2P6 | Package_TO_SOT_SMD:SOT-666 | U4 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01A | J2 |
| 1 | YELLOW | LED_THT:LED_D3.0mm | D6 |

lalithk06/Esp32_Smart_Plug
Hardware reference design for an ESP32-S3 smart plug with mains power conversion, relay switching, RTC support, USB connectivity, and protection components.

ponrajleo/AI-Hardware-ESP32S3-
This project is part of a complete open-source hardware design course on YouTube:

lalithk06/PCB_Designs
This repository contains various PCB design projects made using KiCad

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.

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

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.


It measures 105 × 58 mm and has 2 copper layers, 1.6 mm thick.
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.
From the VikramR3/ViRa_Ai_plug repository on GitHub, at the commit this page was made from: the board is Hardware/ViRa_V1.0/ViRa_V1.0.kicad_pcb and its schematic Hardware/ViRa_V1.0/ViRa_V1.0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).