Skip to the content
2 layers95 × 55 mmSmarthome v0.1, the printed circuit board in 3D

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

9

README

README.md

Smart 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 view 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 J3 lets me plug in external wall switches.
  • I2C Header: 4-pin header J4 for extra I2C sensors if needed later.

Pin Map

ESP32 PinConnected ToWhat It Does
GPIO 25Relay 1 + LED D6Relay 1 Output
GPIO 23Relay 2 + LED D7Relay 2 Output
GPIO 19Relay 3 + LED D8Relay 3 Output
GPIO 18Relay 4 + LED D9Relay 4 Output
GPIO 13Terminal J3 Pin 1Wall Switch 1 Input
GPIO 12Terminal J3 Pin 2Wall Switch 2 Input
GPIO 27Terminal J3 Pin 3Wall Switch 3 Input
GPIO 14Terminal J3 Pin 4Wall Switch 4 Input
GPIO 21Header J4 Pin 3I2C SDA
GPIO 22Header J4 Pin 4I2C SCL
GPIO 2LED D5Status LED
GPIO 0Button SW2Boot button
ENButton SW1Reset button

Board Pictures

Schematic

Schematic KiCad schematic

PCB

PCB Layout PCB layout

Details

LEDs Status LEDs and passives

ESP32 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:

  1. Open firmware/ in VS Code with PlatformIO.
  2. Plug in the board over USB-C.
  3. Run pio run -t upload.

BOM & Cost

Full component list with purchase links is in BOM.csv. Total cost is around $9.36.

PartQtyLink
ESP32-WROOM-321LCSC C82899
HF46F 5V Relays4LCSC C38573
ULN2003A Driver1LCSC C14881
HLK-PM01 AC-DC1LCSC C209743
CH340C Serial1LCSC C84681
USB-C Connector1LCSC C165948
Screw Terminals2LCSC 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 PS1 and terminal J2. Keep it in an insulated case.

Parts

63
QtyValueFootprintReferences
62K2Resistor_SMD:R_0603_1608MetricR4, R5, R6, R7, R8, R17
6LEDLED_SMD:LED_0603_1608MetricD5, D6, D7, D8, D9, D14
510KResistor_SMD:R_0603_1608MetricR13, R15, R16, R18, R19
5SS34Diode_SMD:D_SMAD3, D10, D11, D12, D13
40.1ufCapacitor_SMD:C_0603_1608MetricC9, C10, C11, C12
4HF46F_005-HS1HF46F_005-HS1:RELAY_HF46F_005-HS1K1, K2, K3, K4
30.1uFCapacitor_SMD:C_0603_1608MetricC1, C3, C8
30EResistor_SMD:R_0603_1608MetricR1, R9, R12
310kResistor_SMD:R_0603_1608MetricR10, R11, R14
310uFCapacitor_SMD:C_1206_3216MetricC2, C5, C7
3LESD5D5.0CT1GLESD5D5.0CT1G:TVS_LESD5D5.0CT1GD1, D2, D4
25.1KResistor_SMD:R_0603_1608MetricR2, R3
2SS8050Package_TO_SOT_SMD:SOT-23Q1, Q2
2SW_PushButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKSW1, SW2
2Screw_Terminal_01x06TerminalBlock:TerminalBlock_bornier-6_P5.08mmJ2, J3
110nfCapacitor_SMD:C_1206_3216MetricC6
110uF/25VCapacitor_SMD:C_0603_1608MetricC4
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU2
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1ESP32-WROOM-32RF_Module:ESP32-WROOM-32U4
1HLK-PM01Converter_ACDC:Converter_ACDC_Hi-Link_HLK-PMxxPS1
1ULN2003APackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01AJ1

The 62 most common of 63 parts.

Similar boards

  • 4 layers152.5 × 161.6 mmMB PCB ControladorESP32, the printed circuit board in 3D

    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 mmAir quality monitor, the printed circuit board in 3D

    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 mmESPCARproject, the printed circuit board in 3D

    ESPCARproject

    Sumya99/RobotCarPCB

    NAND сургалтын төвийн сурагчдад зориулсан робот машины PCB төсөл

    92 parts
  • 4 layers100.8 × 65 mmESP32 SLAM PCB DESIGN, the printed circuit board in 3D

    ESP32 SLAM PCB DESIGN

    zaidh-mech/PROJECTS

    Engineering, robotics, embedded systems, CAD, and PCB projects

    60 parts
  • 2 layers260 × 440 mmMultical, the printed circuit board in 3D

    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 mmModule ESP32 minimum, the printed circuit board in 3D

    Module ESP32 minimum

    digitalforger73/ESP32-modules-kicad

    Kicad projects based on ESP32

    37 parts
  • 2 layers30.5 × 69.8 mmESP32-S3-2, the printed circuit board in 3D

    ESP32-S3-2

    wangga03/PCB

    31 parts

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.