Skip to the content
2 layers125 × 100 mmESP Edgedevice, the printed circuit board in 3D

ESP Edgedevice

sarinsanyal/pcb-shems

This Smart Edge Node is an industrial/home energy monitoring and switching board that bridges high-voltage AC mains power with low-voltage microcontroller logic.

Size
125 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
68
Nets
50
Pads
191
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 10.0 (file 20260206)
Created
23 Aug 2026
Updated
10 Oct 2026

Overview

ESP Edgedevice is an open-source printed circuit board by sarinsanyal, from the sarinsanyal/pcb-shems repository on GitHub. It is a 2-layer board of 125 × 100 mm with 68 parts on 50 nets.

It is built around the HLK-5M05, AMC1200SDUBR and MCP3202-CI/P, with the AMS1117-5.0, PC817X3NSZ1B and HB9500-9.5-3P among its other parts. Its parts include 20 capacitors, 19 resistors, 10 ICs, 5 diodes and 4 connectors. It belongs with the ESP32 and RISC-V boards of this library.

Main components

8

README

README.md

Industrial IoT Smart Edge Device & Isolated Energy Controller

A robust, mixed-signal hardware platform designed for AC mains energy monitoring, power conversion, and isolated load control. Engineered with high-voltage clearance, discrete signal shifting, and inductive load protection.


📖 Overview

This Smart Edge Node is an industrial/home energy monitoring and switching board that bridges high-voltage AC mains power with low-voltage microcontroller logic. Designed with a focus on analog hardware reliability, power distribution, and galvanic isolation, the design integrates on-board AC-DC regulated conversion, discrete MOSFET level translation, and an optoisolated transistor relay driver with flyback suppression.

The system utilizes an ESP8266 (Lolin) for edge processing and software-driven UART communication with a PZEM-004T metering module, enabling real-time telemetry publication over Wi-Fi (MQTT/HTTP) while safely controlling heavy AC electrical loads.


📸 Visuals

3D PCB RenderPCB Layout & RoutingHardware Schematic
3D RenderPCB LayoutSchematic
KiCad 3D Ray-traced Board View2-Layer Trace & High-Voltage ClearanceSystem Schematic Architecture

⚡ Hardware & Analog Engineering Highlights

1. Power Management & Bulk Decoupling

  • Integrated AC-DC Conversion: Employs an on-board Hi-Link HLK-5M05 module to convert $230\text{V AC}$ mains input directly down to a regulated $5\text{V DC}$ supply rail.
  • Transient Suppression & Ripple Filtering: Features a high-capacity $470\ \mu\text{F}$ bulk electrolytic capacitor ($C1$) across the $5\text{V}$ rail to absorb voltage dips, suppress power supply ripple, and maintain rail stability during high instantaneous relay coil pull-in current.

2. Level Translation & Signal Integrity

  • Bi-Directional MOSFET Level Shifting: Incorporates a discrete BSS138 N-channel MOSFET Logic Level Converter ($U4$) to bridge the $3.3\text{V CMOS}$ GPIO output of the ESP8266 ($D1$) to the $5\text{V TTL}$ driver logic without overdriving MCU input pins.
  • Isolated UART Interface: Software Serial UART interface ($D6/D7$) connecting to the PZEM-004T energy metering frontend for accurate RMS Voltage, Current, Active Power, Frequency, and Power Factor acquisition.

3. Optoisolated Load Control & Inductive Suppression

  • Galvanic Isolation Drive Stage: High-voltage AC switching is completely isolated from low-voltage digital control using a PC817 Optocoupler and an S8050 NPN transistor driver stage.
  • Back-EMF Inductive Protection: A 1N4007 flyback suppression diode ($D1$) is placed across the SLA-05VDC relay coil to clamp high-voltage inductive spikes generated during coil de-energization, protecting switching silicon from overshoot breakdown.
  • Visual Diagnostics: Integrated LED indicator with current-limiting resistor ($1\text{ k}\Omega$) for visual relay status feedback.

4. High-Voltage PCB Layout & Safety Design

  • Creepage & Clearance: Wide physical clearance and routing separation between the $230\text{V}$ AC mains region (Live/Neutral) and low-voltage $5\text{V}/3.3\text{V}$ DC signal planes to prevent electrical arcing.
  • Current-Handling Traces: Heavy trace widths utilized on AC Live/Neutral routing and high-current relay switching paths to minimize trace impedance, drop, and thermal rise under heavy electrical load.

🛠 Subsystem Breakdown

SubsystemCircuitry / ComponentsFunction
Power SupplyHLK-5M05 + $470\ \mu\text{F}$ CapacitorAC-DC Step-down ($230\text{V AC} \to 5\text{V DC}$) & Rail Filtering
MicrocontrollerESP8266 (Lolin V3 Footprint)Wireless Telemetry, MQTT, SoftSerial UART, GPIO Control
Logic Level ConversionBSS138 MOSFET Level Shifter ($U4$)$3.3\text{V} \leftrightarrow 5\text{V}$ Logic Level Translation
Relay DriverPC817 Optocoupler + S8050 NPN + 1N4007 DiodeIsolated coil energization & Back-EMF suppression
AC Load ControlSLA-05VDC High-Power RelayHeavy AC Load ON/OFF Disconnect
Energy MeasurementPZEM-004T AC SensorHigh-accuracy RMS Voltage, Current, & Power Telemetry

👨‍💻 Authors

  • Suvam Seth Power Engineering Student | PCB Design | Analog Electronics & Systems Design

  • Sarin Sanyal Power Engineering Student | Analog & Mixed-Signal Circuit Design | Embedded Hardware | AI

Parts

68
QtyValueFootprintReferences
12100nFCapacitor_SMD:C_1206_3216MetricC9, C9, C10, C10, C11, C11, C12, C13, C13, C14, C15, C16
41kResistor_SMD:R_1206_3216MetricR2, R12, R15, R18
4MountingHoleMountingHole:MountingHole_2.1mmH1, H2, H3, H4
310kResistor_SMD:R_1206_3216MetricR13, R14, R16
31KResistor_SMD:R_1206_3216MetricR1, R3, R11
3OPA333xxDBVPackage_TO_SOT_SMD:SOT-23-5U5, U6, U6
2100KResistor_SMD:R_1206_3216MetricR8, R9
210uFCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC6, C7
21MResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6, R7
21N4007Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD2, D4
2AMC1200SDUBRAMC1200SDUBR:DUB0008A-IPC_AU4, U8
2MCP3202Package_SO:TSSOP-8_4.4x3mm_P0.65mmU7, U7
10.1uFCapacitor_SMD:C_1206_3216MetricC8
10.33 Ω, 1206Resistor_SMD:R_1206_3216MetricR12
1100RResistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_HorizontalR17
1100nF X2, 275 V ACCapacitor_THT:C_Rect_L18.0mm_W5.0mm_P15.00mm_FKS3_FKP3C17
110uFCapacitor_SMD:C_1206_3216MetricC5
11A,250V ACFuse:Fuseholder_Cylinder-5x20mm_Schurter_0031_8201_Horizontal_OpenF1
1220KResistor_SMD:R_1206_3216MetricR10
1220R 1WResistor_THT:R_Axial_DIN0414_L11.9mm_D4.5mm_P15.24mm_HorizontalR4
125A Slow-BlowFuse:Fuseholder_Cylinder-6.3x32mm_Schurter_0031-8002_Horizontal_OpenF2
1470kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5
1470nF X2Capacitor_THT:C_Rect_L26.5mm_W8.5mm_P22.50mm_MKS4C3
1470uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1
1470uFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC4
17.5Diode_SMD:D_MiniMELFD3
1AMS1117-5.0Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1Barrier TerminalConnector_Phoenix_MSTB:PhoenixContact_MSTBA_2,5_2-G_1x02_P5.00mm_HorizontalJ1
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3
1D_TVSDiode_SMD:Nexperia_DSN0603-2_0.6x0.3mm_P0.4mmD5
1HB9500-9.5-3Pmyparts:HB9500_9.5-3PJ2
1HLK-5M05Converter_ACDC:Converter_ACDC_Hi-Link_HLK-5MxxPS1
1LEDLED_THT:LED_D3.0mmD1
1PC817X3NSZ1BPackage_DIP:DIP-4_W7.62mmU2
1S8050Package_TO_SOT_THT:TO-92_Inline_WideQ1
1SLA-05VDC-SL-CSLA-05VDC-SL-C:RELAY-TH_SLA-XXVDC-XX-CK1
1VaristorVaristor:RV_Disc_D12mm_W4.2mm_P7.5mmRV1
1XIAO ESP32C3myparts:XIAO_Socket_W15.24U1

More from sarinsanyal/pcb-shems

1
  • 2 layers128.6 × 76.7 mmESP Edgedevice, the printed circuit board in 3D

    ESP Edgedevice

    sarinsanyal/pcb-shems

    This Smart Edge Node is an industrial/home energy monitoring and switching board that bridges high-voltage AC mains power with low-voltage microcontroller logic.

    22 parts

Similar boards

  • 2 layers65 × 56 mmPrinter HAT, the printed circuit board in 3D

    Printer HAT

    mikenorgate/3d-printer-power-hat

    A Raspberry PI HAT for controlling power to your 3D printer

    38 parts10
  • 4 layers78.4 × 93.5 mmLLC GaN Protoboard, the printed circuit board in 3D

    LLC GaN Protoboard

    btanqy/LLC-GaN-Protoboard

    This board will be a prototype GaN based LLC converter, with a target rating of 80W with 24V input to 400V output, ideally for renewable power conversion and high voltage applications in plasma generation.

    64 parts
  • 2 layers99.4 × 60.2 mmTeslaBMBCheck, the printed circuit board in 3D

    TeslaBMBCheck

    svpetry/TeslaBMBCheck

    Simple device that reads the voltage levels and temperatures from a Tesla Model S BMB board.

    42 parts1
  • 2 layers106.7 × 123.2 mm12VSupport, the printed circuit board in 3D

    12VSupport

    svpetry/12VSupport

    System to support a vehicle 12V electrical system with a LiIon battery to prevent the lead battery from depletion.

    97 parts
  • 2 layers162.8 × 99.9 mmPSU, the printed circuit board in 3D

    PSU

    Sakib-Ansari/Linear_Programmable_Power_Supply

    This repository contains the complete KiCad project for a multi-board linear programmable bench power supply. The design is organized into separate PCBs, including the Power Board, Control Board, Front Panel, Output…

    133 partsMIT
  • 2 layers72 × 97 mmIOTV, the printed circuit board in 3D

    IOTV

    verbkinm/IOTV_PCB

    47 parts
  • 2 layers107 × 62 mmZero crossing, the printed circuit board in 3D

    Zero crossing

    machadoleonardo94/Brewers_control_panel

    73 parts

Questions

How big is the ESP Edgedevice PCB?

It measures 125 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP Edgedevice use?

68 parts, built around the HLK-5M05, AMC1200SDUBR, MCP3202-CI/P and AMS1117-5.0. 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 ESP Edgedevice KiCad files?

From the sarinsanyal/pcb-shems repository on GitHub, at the commit this page was made from: the board is PCB_SHEMS/ESP_Edgedevice/ESP_Edgedevice.kicad_pcb and its schematic PCB_SHEMS/ESP_Edgedevice/ESP_Edgedevice.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP Edgedevice design in my own project?

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