Skip to the content
2 layers116.6 × 74.5 mmSmart switch 3x, the printed circuit board in 3D

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

Size
116.6 × 74.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
52
Nets
19
Pads
169
Tracks, vias
1, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
17 Aug 2026
Updated
3 Nov 2026

Overview

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.

Main components

8

README

hardware/kicad/smart_switch_3x/README.md

EH Home — KiCad 7 / 8 Production Hardware Project

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


1. Project Files

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

2. Universal Schematic Netlist & Pin Connections

Below is the complete machine-readable netlist and pin-to-pin wiring map:

Subsystem 1: Mains AC Input & Surge Protection

ComponentDesignatorPin 1Pin 2Pin 3 / 4 / 5Notes
Screw Terminal (AC IN)J1MAINS_LIVEMAINS_NEUTRALEARTH_GND5.08mm pitch, 16A rated
Fuse 2A 250VF1MAINS_LIVEFUSE_OUT—Micro TR5 / Radial
Varistor (MOV) 14D561KMOV1FUSE_OUTMAINS_NEUTRAL—Clamps surges $\ge 350\text{VAC}$ / 560V
NTC Thermistor 10D-9NTC1FUSE_OUTAC_L_FILTERED—Limits inrush current
Safety Cap 0.1µF 275VACCX1AC_L_FILTEREDMAINS_NEUTRAL—Class-X2 EMI Suppression
Isolated SMPS (HLK-PM01)U2Pin 1: AC_L_FILTEREDPin 2: MAINS_NEUTRALPin 3: +5V, Pin 4: GND3kV Isolation AC $\to$ 5V DC

Subsystem 2: Low-Voltage Power Regulation (5V $\to$ 3.3V)

ComponentDesignatorPin 1Pin 2Pin 3Pin 4Pin 5
LDO Regulator (AP2112K-3.3)U3+5V (VIN)GND+5V (EN)NC+3V3 (VOUT)
Bulk Filter CapacitorC1+5VGND——470µF 16V Low-ESR
LDO Output CapacitorC2+3V3GND——100µF 10V Tantalum/Alum
Decoupling CapacitorsC3, C4+3V3GND——0.1µF 50V X7R (0603)

Subsystem 3: Microcontroller (ESP32-C6-WROOM-1-N4)

Pin NameESP32-C6 PinConnected NetDescription / Function
3V3Pin 1, 2+3V3Main 3.3V Power Rail
GNDPin 3, 14, 29GNDSystem Digital Ground
EN / CHIP_PUPin 4MCU_EN10kΩ pull-up to 3.3V + 1µF cap to GND
GPIO 4Pin 5SW_IN_1Channel 1 Wall Switch Input (RC Filtered)
GPIO 5Pin 6SW_IN_2Channel 2 Wall Switch Input (RC Filtered)
GPIO 6Pin 7SW_IN_3Channel 3 Wall Switch Input (RC Filtered)
GPIO 7Pin 8BL0942_TX_OUTBL0942 UART1 Data In (4800 baud)
GPIO 8Pin 9STATUS_LED_DRIVE1kΩ Resistor $\to$ Blue Status LED $\to$ GND
GPIO 9Pin 10BOOT_SWTactile Button to GND (10s Hold = Reset)
GPIO 16Pin 17FACTORY_TXFactory Programming UART0 TX (Pogo Pad 3)
GPIO 17Pin 18FACTORY_RXFactory Programming UART0 RX (Pogo Pad 4)
GPIO 18Pin 19RELAY_DRV_11kΩ Resistor $\to$ Q1 MOSFET Gate
GPIO 19Pin 20RELAY_DRV_21kΩ Resistor $\to$ Q2 MOSFET Gate
GPIO 20Pin 21RELAY_DRV_31kΩ Resistor $\to$ Q3 MOSFET Gate

Subsystem 4: Relay Actuation & Snubber (Channels 1, 2, 3)

ComponentChannel 1Channel 2Channel 3Connections
N-MOSFET DriverQ1 (AO3400A)Q2 (AO3400A)Q3 (AO3400A)Gate: 1kΩ from GPIO, 10kΩ to GND; Source: GND; Drain: Relay Coil Pin 2
Flyback DiodeD1 (SS14)D2 (SS14)D3 (SS14)Cathode: +5V; Anode: MOSFET Drain
10A Power RelayK1 (HF32F-G)K2 (HF32F-G)K3 (HF32F-G)Coil 1: +5V; Coil 2: MOSFET Drain; COM: MAINS_LIVE; NO: LOAD_OUT_CHx
Snubber ResistorRS1 (100Ω 1W)RS2 (100Ω 1W)RS3 (100Ω 1W)In series with Snubber Cap across COM & NO
Snubber CapacitorCS1 (100nF 630V)CS2 (100nF 630V)CS3 (100nF 630V)In series with Snubber Resistor across COM & NO

Subsystem 5: Wall Switch Noise & ESD Filter (Channels 1, 2, 3)

ComponentChannel 1Channel 2Channel 3Connections
Pull-Up ResistorR_PU1 (10kΩ)R_PU2 (10kΩ)R_PU3 (10kΩ)Connected between +3V3 and Switch Terminal Pin
Series ResistorR_S1 (1kΩ)R_S2 (1kΩ)R_S3 (1kΩ)In series between Switch Terminal and ESP32 GPIO
TVS Clamp DiodeD_TVS1 (ESD5Z3.3)D_TVS2 (ESD5Z3.3)D_TVS3 (ESD5Z3.3)Connected between GPIO Line and GND
Filter CapacitorC_SW1 (100nF)C_SW2 (100nF)C_SW3 (100nF)Connected between GPIO Line and GND

Subsystem 6: BL0942 Energy Metering (SOP-14)

BL0942 PinPin NameConnected ToCircuit Components
Pin 1VDD+3V30.1µF + 10µF bypass capacitors to GND
Pin 2IPPositive Current Sense33Ω series resistor $\to$ Shunt Resistor (High Side) + 10nF to GND
Pin 3INNegative Current Sense33Ω series resistor $\to$ Shunt Resistor (Low Side) + 10nF to GND
Pin 4VPVoltage Sense33Ω series resistor $\to$ (4x 240kΩ Divider tap) + 10nF to GND
Pin 5GNDGNDDirect to digital ground polygon
Pin 11TXGPIO 7 (ESP32-C6)Direct UART connection at 4800 baud

3. How to Open & Export in KiCad 7 / 8

  1. Launch KiCad 7 or KiCad 8.
  2. Click File $\longrightarrow$ Open Project and select smart_switch_3x.kicad_pro.
  3. Open the Schematic Editor to view and edit symbols, run Electrical Rules Check (ERC).
  4. Press [F8] (Update PCB from Schematic) to auto-place footprints and begin routing with 2oz copper and isolation slots.

Parts

52
QtyValueFootprintReferences
710kResistor_SMD:R_0603_1608MetricR_EN, RPD1, RPD2, RPD3, RPU1, RPU2, RPU3
71kResistor_SMD:R_0603_1608MetricR_LED, RG1, RG2, RG3, RSW1, RSW2, RSW3
4M3MountingHole:MountingHole_3.2mm_M3MH**, MH**, MH**, MH**
3100nFCapacitor_SMD:C_0603_1608MetricCSW1, CSW2, CSW3
3AO3400APackage_TO_SOT_SMD:SOT-23Q1, Q2, Q3
3ESD5Z3.3Diode_SMD:D_SOD-523TVS1, TVS2, TVS3
3HF32F-G_10ARelay_THT:Relay_SPDT_SANYOU_SRD_Series_Form_CK1, K2, K3
3SS14Diode_SMD:D_SOD-123D1, D2, D3
10.1uF_275VCapacitor_THT:C_Rect_L13.0mm_W4.0mm_P10.00mm_FKS3_FKP3_MKS4CX1
1100uF_10VCapacitor_SMD:CP_Elec_6.3x5.8C2
110D-9Resistor_THT:R_Radial_Power_L11.0mm_W7.0mm_P5.00mmNTC1
114D561KVaristor:RV_Disc_D12mm_W4.2mm_P7.5mmMOV1
11mOhm_2WResistor_SMD:R_2512_6332MetricR_SHUNT
11uFCapacitor_SMD:C_0603_1608MetricC_EN
12A_250VFuse:Fuseholder_TR5_Littelfuse_No560_No460F1
1470uF_16VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1
1960k_HVResistor_SMD:R_1206_3216MetricRHV1
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U3
1BL0942_SOP14Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU4
1BLUE_0603LED_SMD:LED_0603_1608MetricLED1
1ESP32-C6-WROOM-1RF_Module:ESP32-C3-WROOM-02U1
1HLK-PM01_5VConverter_ACDC:Converter_ACDC_Hi-Link_HLK-PMxxU2
1LOAD_OUTPUTSTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_HorizontalJ2
1MAINS_INTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_HorizontalJ1
1WALL_SW_1TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ_SW1
1WALL_SW_2TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ_SW2
1WALL_SW_3TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ_SW3

More from pavan-firmware/EH-Master-Repo

1
  • 2 layers143.5 × 65 mmEH SmartSocket 3X, the printed circuit board in 3D

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

    36 parts

Similar boards

  • 4 layers50 × 50 mmFiddlesticks, the printed circuit board in 3D

    Fiddlesticks

    kushurox/fiddlesticks_pcb

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

    103 partsMIT
  • 2 layers120 × 80 mmBiometric scanner, the printed circuit board in 3D

    Biometric scanner

    Sid93/levram-biometric-attendance-scanner

    ESP32-S3 face-recognition factory attendance terminal — firmware, KiCad PCB, OpenSCAD enclosure, BOM

    45 parts1
  • 6 layers84.6 × 75.9 mmAWR2243RadarBoard, the printed circuit board in 3D

    AWR2243RadarBoard

    inventor02/low-cost-mmwave

    University of Southampton Group Design Project: Collaborative Robot Perception with mm-Wave Radar

    400 parts
  • 4 layers163 × 117 mmTeensy 4.1 + Jetson Nano powered from board, the printed circuit board in 3D

    Teensy 4.1 + Jetson Nano powered from board

    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.

    157 partsMIT
  • 4 layers75 × 56.4 mmEsp32-c6-wroom1 board, the printed circuit board in 3D

    Esp32-c6-wroom1 board

    pushtiujeniya/esp32-c6-environmental-logger

    This repository contains an Environmental Sensor Station and Data Logger powered by the ESP32-C6-WROOM-1 microcontroller.

    59 parts4
  • 2 layers100 × 60 mmGaragepilot c6, the printed circuit board in 3D

    Garagepilot c6

    AskAlice/home-automation-pcbs

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

    35 parts1MIT
  • 4 layers130 × 90 mmLizardBot1 ControlBoard v1, the printed circuit board in 3D

    LizardBot1 ControlBoard v1

    lizard-electronics/LizardBot1_ProjectFiles

    Project Files for LizardBot 1 differential-drive ROS2 robot.

    202 parts1Apache-2.0

Questions

How big is the Smart switch 3x PCB?

It measures 116.6 × 74.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Smart switch 3x use?

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.

Where can I download the Smart switch 3x KiCad files?

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.

Can I use the Smart switch 3x design in my own project?

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