
EH SmartSocket 3X
pavan-firmware/EH-Master-Repo
This directory contains the KiCad Schematic and PCB Design Project for the EH Smart Switch (3X / 4X Channel with BL0942 Metering).

This directory contains the KiCad Schematic and PCB Design Project for the EH Smart Switch (3X / 4X Channel with BL0942 Metering).
Smart switch 3x is an open-source printed circuit board by pavan-firmware, from the pavan-firmware/EH-Master-Repo repository on GitHub. It is a 2-layer board of 116.6 × 74.5 mm with 52 parts on 19 nets, routed with 1 track and 0 vias.
It is built around the ESP32-C6-WROOM-1-N8, AP2112K-3.3 and AO3400A, with the ESD5Z3.3, SS14 and 100UF 10V among its other parts. Its parts include 4 ICs, 4 diodes, 3 transistors, 3 switches and 2 capacitors. It belongs with the ESP32 and RISC-V boards of this library.
This directory contains the KiCad Schematic and PCB Design Project for the EH Smart Switch (3X / 4X Channel with BL0942 Metering).
smart_switch_3x.kicad_pro: KiCad Project File.smart_switch_3x.kicad_sch: KiCad Schematic Source.netlist_smart_switch_3x.net: Universal Netlist (can be imported into KiCad, EasyEDA, Altium, or OrCAD).Below is the complete machine-readable netlist and pin-to-pin wiring map:
| Component | Designator | Pin 1 | Pin 2 | Pin 3 / 4 / 5 | Notes |
|---|---|---|---|---|---|
| Screw Terminal (AC IN) | J1 | MAINS_LIVE | MAINS_NEUTRAL | EARTH_GND | 5.08mm pitch, 16A rated |
| Fuse 2A 250V | F1 | MAINS_LIVE | FUSE_OUT | — | Micro TR5 / Radial |
| Varistor (MOV) 14D561K | MOV1 | FUSE_OUT | MAINS_NEUTRAL | — | Clamps surges $\ge 350\text{VAC}$ / 560V |
| NTC Thermistor 10D-9 | NTC1 | FUSE_OUT | AC_L_FILTERED | — | Limits inrush current |
| Safety Cap 0.1µF 275VAC | CX1 | AC_L_FILTERED | MAINS_NEUTRAL | — | Class-X2 EMI Suppression |
| Isolated SMPS (HLK-PM01) | U2 | Pin 1: AC_L_FILTERED | Pin 2: MAINS_NEUTRAL | Pin 3: +5V, Pin 4: GND | 3kV Isolation AC $\to$ 5V DC |
| Component | Designator | Pin 1 | Pin 2 | Pin 3 | Pin 4 | Pin 5 |
|---|---|---|---|---|---|---|
| LDO Regulator (AP2112K-3.3) | U3 | +5V (VIN) | GND | +5V (EN) | NC | +3V3 (VOUT) |
| Bulk Filter Capacitor | C1 | +5V | GND | — | — | 470µF 16V Low-ESR |
| LDO Output Capacitor | C2 | +3V3 | GND | — | — | 100µF 10V Tantalum/Alum |
| Decoupling Capacitors | C3, C4 | +3V3 | GND | — | — | 0.1µF 50V X7R (0603) |
| Pin Name | ESP32-C6 Pin | Connected Net | Description / Function |
|---|---|---|---|
3V3 | Pin 1, 2 | +3V3 | Main 3.3V Power Rail |
GND | Pin 3, 14, 29 | GND | System Digital Ground |
EN / CHIP_PU | Pin 4 | MCU_EN | 10kΩ pull-up to 3.3V + 1µF cap to GND |
GPIO 4 | Pin 5 | SW_IN_1 | Channel 1 Wall Switch Input (RC Filtered) |
GPIO 5 | Pin 6 | SW_IN_2 | Channel 2 Wall Switch Input (RC Filtered) |
GPIO 6 | Pin 7 | SW_IN_3 | Channel 3 Wall Switch Input (RC Filtered) |
GPIO 7 | Pin 8 | BL0942_TX_OUT | BL0942 UART1 Data In (4800 baud) |
GPIO 8 | Pin 9 | STATUS_LED_DRIVE | 1kΩ Resistor $\to$ Blue Status LED $\to$ GND |
GPIO 9 | Pin 10 | BOOT_SW | Tactile Button to GND (10s Hold = Reset) |
GPIO 16 | Pin 17 | FACTORY_TX | Factory Programming UART0 TX (Pogo Pad 3) |
GPIO 17 | Pin 18 | FACTORY_RX | Factory Programming UART0 RX (Pogo Pad 4) |
GPIO 18 | Pin 19 | RELAY_DRV_1 | 1kΩ Resistor $\to$ Q1 MOSFET Gate |
GPIO 19 | Pin 20 | RELAY_DRV_2 | 1kΩ Resistor $\to$ Q2 MOSFET Gate |
GPIO 20 | Pin 21 | RELAY_DRV_3 | 1kΩ Resistor $\to$ Q3 MOSFET Gate |
| Component | Channel 1 | Channel 2 | Channel 3 | Connections |
|---|---|---|---|---|
| N-MOSFET Driver | Q1 (AO3400A) | Q2 (AO3400A) | Q3 (AO3400A) | Gate: 1kΩ from GPIO, 10kΩ to GND; Source: GND; Drain: Relay Coil Pin 2 |
| Flyback Diode | D1 (SS14) | D2 (SS14) | D3 (SS14) | Cathode: +5V; Anode: MOSFET Drain |
| 10A Power Relay | K1 (HF32F-G) | K2 (HF32F-G) | K3 (HF32F-G) | Coil 1: +5V; Coil 2: MOSFET Drain; COM: MAINS_LIVE; NO: LOAD_OUT_CHx |
| Snubber Resistor | RS1 (100Ω 1W) | RS2 (100Ω 1W) | RS3 (100Ω 1W) | In series with Snubber Cap across COM & NO |
| Snubber Capacitor | CS1 (100nF 630V) | CS2 (100nF 630V) | CS3 (100nF 630V) | In series with Snubber Resistor across COM & NO |
| Component | Channel 1 | Channel 2 | Channel 3 | Connections |
|---|---|---|---|---|
| Pull-Up Resistor | R_PU1 (10kΩ) | R_PU2 (10kΩ) | R_PU3 (10kΩ) | Connected between +3V3 and Switch Terminal Pin |
| Series Resistor | R_S1 (1kΩ) | R_S2 (1kΩ) | R_S3 (1kΩ) | In series between Switch Terminal and ESP32 GPIO |
| TVS Clamp Diode | D_TVS1 (ESD5Z3.3) | D_TVS2 (ESD5Z3.3) | D_TVS3 (ESD5Z3.3) | Connected between GPIO Line and GND |
| Filter Capacitor | C_SW1 (100nF) | C_SW2 (100nF) | C_SW3 (100nF) | Connected between GPIO Line and GND |
| BL0942 Pin | Pin Name | Connected To | Circuit Components |
|---|---|---|---|
| Pin 1 | VDD | +3V3 | 0.1µF + 10µF bypass capacitors to GND |
| Pin 2 | IP | Positive Current Sense | 33Ω series resistor $\to$ Shunt Resistor (High Side) + 10nF to GND |
| Pin 3 | IN | Negative Current Sense | 33Ω series resistor $\to$ Shunt Resistor (Low Side) + 10nF to GND |
| Pin 4 | VP | Voltage Sense | 33Ω series resistor $\to$ (4x 240kΩ Divider tap) + 10nF to GND |
| Pin 5 | GND | GND | Direct to digital ground polygon |
| Pin 11 | TX | GPIO 7 (ESP32-C6) | Direct UART connection at 4800 baud |
smart_switch_3x.kicad_pro.[F8] (Update PCB from Schematic) to auto-place footprints and begin routing with 2oz copper and isolation slots.| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 10k | Resistor_SMD:R_0603_1608Metric | R_EN, RPD1, RPD2, RPD3, RPU1, RPU2, RPU3 |
| 7 | 1k | Resistor_SMD:R_0603_1608Metric | R_LED, RG1, RG2, RG3, RSW1, RSW2, RSW3 |
| 4 | M3 | MountingHole:MountingHole_3.2mm_M3 | MH**, MH**, MH**, MH** |
| 3 | 100nF | Capacitor_SMD:C_0603_1608Metric | CSW1, CSW2, CSW3 |
| 3 | AO3400A | Package_TO_SOT_SMD:SOT-23 | Q1, Q2, Q3 |
| 3 | ESD5Z3.3 | Diode_SMD:D_SOD-523 | TVS1, TVS2, TVS3 |
| 3 | HF32F-G_10A | Relay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C | K1, K2, K3 |
| 3 | SS14 | Diode_SMD:D_SOD-123 | D1, D2, D3 |
| 1 | 0.1uF_275V | Capacitor_THT:C_Rect_L13.0mm_W4.0mm_P10.00mm_FKS3_FKP3_MKS4 | CX1 |
| 1 | 100uF_10V | Capacitor_SMD:CP_Elec_6.3x5.8 | C2 |
| 1 | 10D-9 | Resistor_THT:R_Radial_Power_L11.0mm_W7.0mm_P5.00mm | NTC1 |
| 1 | 14D561K | Varistor:RV_Disc_D12mm_W4.2mm_P7.5mm | MOV1 |
| 1 | 1mOhm_2W | Resistor_SMD:R_2512_6332Metric | R_SHUNT |
| 1 | 1uF | Capacitor_SMD:C_0603_1608Metric | C_EN |
| 1 | 2A_250V | Fuse:Fuseholder_TR5_Littelfuse_No560_No460 | F1 |
| 1 | 470uF_16V | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C1 |
| 1 | 960k_HV | Resistor_SMD:R_1206_3216Metric | RHV1 |
| 1 | AP2112K-3.3 | Package_TO_SOT_SMD:SOT-23-5 | U3 |
| 1 | BL0942_SOP14 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U4 |
| 1 | BLUE_0603 | LED_SMD:LED_0603_1608Metric | LED1 |
| 1 | ESP32-C6-WROOM-1 | RF_Module:ESP32-C3-WROOM-02 | U1 |
| 1 | HLK-PM01_5V | Converter_ACDC:Converter_ACDC_Hi-Link_HLK-PMxx | U2 |
| 1 | LOAD_OUTPUTS | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_Horizontal | J2 |
| 1 | MAINS_IN | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_Horizontal | J1 |
| 1 | WALL_SW_1 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | J_SW1 |
| 1 | WALL_SW_2 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | J_SW2 |
| 1 | WALL_SW_3 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | J_SW3 |

pavan-firmware/EH-Master-Repo
This directory contains the KiCad Schematic and PCB Design Project for the EH Smart Switch (3X / 4X Channel with BL0942 Metering).

sabiinsearch/IoT
Projects related to Internet of Things (IoT)

kushurox/fiddlesticks_pcb
This project is open for learning purposes. Check the LICENSE file for details.

Sid93/levram-biometric-attendance-scanner
ESP32-S3 face-recognition factory attendance terminal — firmware, KiCad PCB, OpenSCAD enclosure, BOM

inventor02/low-cost-mmwave
University of Southampton Group Design Project: Collaborative Robot Perception with mm-Wave Radar

olexsu/inos-rev-a-robotics-controller
INOS Rev A — CAN-based robotic arm controller designed as a real-time motion-control node for NVIDIA Jetson robotics systems.

pushtiujeniya/esp32-c6-environmental-logger
This repository contains an Environmental Sensor Station and Data Logger powered by the ESP32-C6-WROOM-1 microcontroller.

AskAlice/home-automation-pcbs
Daily Kimi-generated home automation PCB designs with KiCad sources, 3D models, and rendered documentation

lizard-electronics/LizardBot1_ProjectFiles
Project Files for LizardBot 1 differential-drive ROS2 robot.
It measures 116.6 × 74.5 mm and has 2 copper layers, 1.6 mm thick.
52 parts, built around the ESP32-C6-WROOM-1-N8, AP2112K-3.3, AO3400A and ESD5Z3.3. 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 pavan-firmware/EH-Master-Repo repository on GitHub, at the commit this page was made from: the board is hardware/kicad/smart_switch_3x/smart_switch_3x.kicad_pcb and its schematic hardware/kicad/EH_SmartSocket_3X/EH_SmartSocket_3X.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask pavan-firmware before reusing the design.