

Smarthome v0.1
I wanted to control lights and appliances in my room over Wi-Fi without having loose relay modules, breadboards, and 220V AC wires floating around my desk.
- Size
- 95 × 55 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 63
- Nets
- 82
- Pads
- 254
- Tracks, vias
- 547, 57
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 17 Aug 2026
- Updated
- 18 Aug 2026
Overview
Smarthome v0.1 is an open-source printed circuit board by whysixmift, from the whysixmift/smarthome_v0.1 repository on GitHub. It is a 2-layer board of 95 × 55 mm with 63 parts on 82 nets, routed with 547 tracks and 57 vias.
It is built around the CH340C, ESP32-WROOM-32 and HLK-PM01, with the AMS1117-3.3, ULN2003A and SS34 among its other parts. Its parts include 19 resistors, 14 diodes, 12 capacitors, 6 switches and 4 ICs. It belongs with the home automation and IoT boards and the ESP32 boards of this library.
Main components
9CH340C
SOP-16-20℃~+70℃ 2Mbps 3.3V、5V 50uA 7mA Transceiver USB 2.0 SOP-16 USB Converters ROHSWCH (Nanjing Qinheng Microelectronics)USB ConvertersESP32-WROOM-32
SMD,18x25.5mm-40℃~+85℃ -98dBm 2.4GHz 2.7V~3.6V 20dBm Bluetooth4.2 ESP32-DOWDQ6 UART、SDIO、SPI、I2C、GPIO、PWM、ADC、DAC SMD,25.5x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesHLK-PM01
DIP,34x24mm0.1W 100mVp-p 15mm 20mm 34mm 3W 3kV 5V 700mA 73% 85VAC~265VAC AC-DC Short Circuit Protection、Over Current Protection、Fault self-recovery ±0.2% 插件,34x20mm AC-DC Power Modules ROHSHI-LINKAC-DC Power ModulesAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsULN2003A
SOP-16-40℃~+85℃ 0.93mA 100uA 15pF 20uA 30V 50V Seven channels SOP-16 Darlington Transistor Arrays ROHSUMWDarlington Transistor ArraysSS34
SMA(DO-214AC)-55℃~+125℃ 3A 40V 500uA@40V 550mV@3A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky DiodesHF46F/005-HS1T
插件,20.5x7mm-40℃~+85℃ 1 Set Normally Open: 1A (SPST NO) 100mΩ 10ms 10ms 125Ω 200mW 30V@DC、277V@AC 4 5A 5A@30VDC、5A@250VAC 5V AgSnO2 Non-Polarized - Single Coil 插件,20.5x7mm Power Relays ROHSHFPower RelaysLESD5D5.0CT1G
SOD-523-55℃~+150℃ 100W 12pF 16V 1uA 5V 7A 7V Bidirectional ESD IEC 61000-4-2 SOD-523 ESD and Surge Protection (TVS/ESD) ROHSGOODWORKUncategorisedSS8050
SOT-323-55℃~+150℃ 1 NPN 1.5A 100MHz 100nA 200 25V 300mW 500mV 5V NPN SOT-23 Bipolar (BJT) ROHSJiangsu Changjing Electronics Technology (CJ)Bipolar (BJT)
README
README.mdSmart Home ESP32 Board
I wanted to control lights and appliances in my room over Wi-Fi without having loose relay modules, breadboards, and 220V AC wires floating around my desk. Wiring loose AC mains on a breadboard felt super unsafe, so I designed this 4-channel relay board in KiCad.
3D render of the board in KiCad
Features
- ESP32-WROOM-32: Main microcontroller for Wi-Fi control.
- 4 Relays: Switches 4 separate AC/DC loads (5V 5A relays driven by a ULN2003A driver chip).
- Onboard Power: Hi-Link HLK-PM01 takes 100-240V AC input and outputs 5V DC, so I don't need an external power adapter. An AMS1117-3.3 steps it down to 3.3V for the ESP32.
- USB-C Flashing: Built-in CH340C serial chip with auto-reset circuit so code uploads straight over USB-C.
- Wall Switch Inputs: Screw terminal
J3lets me plug in external wall switches. - I2C Header: 4-pin header
J4for extra I2C sensors if needed later.
Pin Map
| ESP32 Pin | Connected To | What It Does |
|---|---|---|
| GPIO 25 | Relay 1 + LED D6 | Relay 1 Output |
| GPIO 23 | Relay 2 + LED D7 | Relay 2 Output |
| GPIO 19 | Relay 3 + LED D8 | Relay 3 Output |
| GPIO 18 | Relay 4 + LED D9 | Relay 4 Output |
| GPIO 13 | Terminal J3 Pin 1 | Wall Switch 1 Input |
| GPIO 12 | Terminal J3 Pin 2 | Wall Switch 2 Input |
| GPIO 27 | Terminal J3 Pin 3 | Wall Switch 3 Input |
| GPIO 14 | Terminal J3 Pin 4 | Wall Switch 4 Input |
| GPIO 21 | Header J4 Pin 3 | I2C SDA |
| GPIO 22 | Header J4 Pin 4 | I2C SCL |
| GPIO 2 | LED D5 | Status LED |
| GPIO 0 | Button SW2 | Boot button |
| EN | Button SW1 | Reset button |
Board Pictures
Schematic
KiCad schematic
PCB
PCB layout
Details
Status LEDs and passives
ESP32 and USB-C section
Firmware
Firmware is inside the firmware/ folder. It uses PlatformIO with Arduino framework and simple FreeRTOS tasks to read the wall switches and toggle relays.
To flash:
- Open
firmware/in VS Code with PlatformIO. - Plug in the board over USB-C.
- Run
pio run -t upload.
BOM & Cost
Full component list with purchase links is in BOM.csv. Total cost is around $9.36.
| Part | Qty | Link |
|---|---|---|
| ESP32-WROOM-32 | 1 | LCSC C82899 |
| HF46F 5V Relays | 4 | LCSC C38573 |
| ULN2003A Driver | 1 | LCSC C14881 |
| HLK-PM01 AC-DC | 1 | LCSC C209743 |
| CH340C Serial | 1 | LCSC C84681 |
| USB-C Connector | 1 | LCSC C165948 |
| Screw Terminals | 2 | LCSC C8456 |
Notes / Honest Status
- All ERC and DRC checks in KiCad pass without errors, and firmware builds fine with
pio run. - I haven't tested the firmware on the physical PCB yet since the board hasn't arrived.
- Be careful with AC mains (100-240V) near
PS1and terminalJ2. Keep it in an insulated case.
Parts
63| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | 2K2 | Resistor_SMD:R_0603_1608Metric | R4, R5, R6, R7, R8, R17 |
| 6 | LED | LED_SMD:LED_0603_1608Metric | D5, D6, D7, D8, D9, D14 |
| 5 | 10K | Resistor_SMD:R_0603_1608Metric | R13, R15, R16, R18, R19 |
| 5 | SS34 | Diode_SMD:D_SMA | D3, D10, D11, D12, D13 |
| 4 | 0.1uf | Capacitor_SMD:C_0603_1608Metric | C9, C10, C11, C12 |
| 4 | HF46F_005-HS1 | HF46F_005-HS1:RELAY_HF46F_005-HS1 | K1, K2, K3, K4 |
| 3 | 0.1uF | Capacitor_SMD:C_0603_1608Metric | C1, C3, C8 |
| 3 | 0E | Resistor_SMD:R_0603_1608Metric | R1, R9, R12 |
| 3 | 10k | Resistor_SMD:R_0603_1608Metric | R10, R11, R14 |
| 3 | 10uF | Capacitor_SMD:C_1206_3216Metric | C2, C5, C7 |
| 3 | LESD5D5.0CT1G | LESD5D5.0CT1G:TVS_LESD5D5.0CT1G | D1, D2, D4 |
| 2 | 5.1K | Resistor_SMD:R_0603_1608Metric | R2, R3 |
| 2 | SS8050 | Package_TO_SOT_SMD:SOT-23 | Q1, Q2 |
| 2 | SW_Push | Button_Switch_SMD:SW_Push_SPST_NO_Alps_SKRK | SW1, SW2 |
| 2 | Screw_Terminal_01x06 | TerminalBlock:TerminalBlock_bornier-6_P5.08mm | J2, J3 |
| 1 | 10nf | Capacitor_SMD:C_1206_3216Metric | C6 |
| 1 | 10uF/25V | Capacitor_SMD:C_0603_1608Metric | C4 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | CH340C | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U2 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J4 |
| 1 | ESP32-WROOM-32 | RF_Module:ESP32-WROOM-32 | U4 |
| 1 | HLK-PM01 | Converter_ACDC:Converter_ACDC_Hi-Link_HLK-PMxx | PS1 |
| 1 | ULN2003A | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U1 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01A | J1 |
The 62 most common of 63 parts.
Similar boards
- 2 layers

- 4 layers152.5 × 161.6 mm

MB PCB ControladorESP32
Miguel-Barcelos/Electronics-Projects
Este repositório contém projetos de eletrônica, incluindo circuitos eletrônicos, simulações e design de PCBs.
203 parts - 2 layers68 × 47.4 mm

Air quality monitor
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.
59 parts1MIT - 2 layers78 × 92 mm

ESPCARproject
Sumya99/RobotCarPCB
NAND сургалтын төвийн сурагчдад зориулсан робот машины PCB төсөл
92 parts - 4 layers100.8 × 65 mm

ESP32 SLAM PCB DESIGN
zaidh-mech/PROJECTS
Engineering, robotics, embedded systems, CAD, and PCB projects
60 parts - 2 layers260 × 440 mm

Multical
Samuelmathe/TFC-Multicanal-Goma
TFC ULPGL Goma - Systeme IoT multicanal de sous-comptage energetique (ESP32, KiCad, Flutter)
67 parts - 4 layers80.5 × 28.2 mm

- 2 layers30.5 × 69.8 mm

Questions
How big is the Smarthome v0.1 PCB?
It measures 95 × 55 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Smarthome v0.1 use?
63 parts, built around the CH340C, ESP32-WROOM-32, HLK-PM01 and AMS1117-3.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 Smarthome v0.1 KiCad files?
From the whysixmift/smarthome_v0.1 repository on GitHub, at the commit this page was made from: the board is smarthome_v0.1.kicad_pcb and its schematic smarthome_v0.1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Smarthome v0.1 design in my own project?
Its repository states no licence, so its author keeps all rights: ask whysixmift before reusing the design.