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

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

Size
105 × 58 mm
Copper layers
2
Thickness
1.6 mm
Parts
80
Nets
69
Pads
277
Tracks, vias
651, 102
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Sep 2026
Updated
24 Sep 2026

Overview

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.

Main components

10

README

README.md

ViRa AI Plug

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.

Board

Warning — mains voltage

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.

Parts

80
QtyValueFootprintReferences
1110KResistor_SMD:R_0603_1608MetricR3, R9, R13, R14, R15, R16, R17, R18, R21, R22, R25
100.1uFCapacitor_SMD:C_0603_1608MetricC4, C6, C8, C9, C10, C11, C12, C13, C14, C15
60RResistor_SMD:R_0603_1608MetricR6, R7, R19, R20, R23, R24
6SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2, SW3, SW4, SW5, SW6
51KResistor_SMD:R_0603_1608MetricR8, R10, R11, R12, R26
310uFCapacitor_SMD:C_0805_2012MetricC3, C5, C7
3FiducialFiducial:Fiducial_0.75mm_Mask1.5mmFID1, FID2, FID3
21N4148WDiode_SMD:D_SOD-123D3, D7
25K1Resistor_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_W5mm_P7.5mmRV1
11MResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
12.2uFCapacitor_SMD:C_0805_2012MetricC16
1220uFCapacitor_SMD:CP_Elec_8x10C2
13V3TestPoint:TestPoint_Pad_D1.5mmTP3
14K7Resistor_SMD:R_0603_1608MetricR2
1500mA 250VFuse:Fuse_Littelfuse_395SeriesF1
15VTestPoint:TestPoint_Pad_D1.5mmTP4
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1BOOTTestPoint:TestPoint_Pad_D1.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.27mmU5
1ENTestPoint:TestPoint_Pad_D1.5mmTP5
1ESP32-S3-WROOM-1RF_Module:ESP32-S3-WROOM-1U3
1GNDTestPoint:TestPoint_Pad_D1.5mmTP7
1GREENLED_THT:LED_D3.0mmD5
1HLK-5M05Converter_ACDC:Converter_ACDC_Hi-Link_HLK-5MxxU1
1MBR0520Diode_SMD:D_SOD-123D2
1MLT-8530footprints:MLT-8530_JHELS1
1REDLED_SMD:LED_0603_1608MetricD4
1REDLED_THT:LED_D3.0mmD1
1RXD0TestPoint:TestPoint_Pad_D1.5mmTP2
1SANYOU_SRD_Form_CRelay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_CK2
1Screw_Terminal_01x04TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-04P_1x04_P5.00mmJ1
1TXD0TestPoint:TestPoint_Pad_D1.5mmTP1
1USBLC6-2P6Package_TO_SOT_SMD:SOT-666U4
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01AJ2
1YELLOWLED_THT:LED_D3.0mmD6

Similar boards

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

    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.

    80 parts
  • 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 ViRa V1.0 PCB?

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

What parts does the ViRa V1.0 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 ViRa V1.0 KiCad files?

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.

Can I use the ViRa V1.0 design in my own project?

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