Skip to the content
2 layers46.5 × 66 mmRemote, the printed circuit board in 3D

ESP32-based wireless phase-angle AC dimmer. Two PCBs linked over ESP-NOW: a mains-side dimmer board that switches a TRIAC, and a battery-powered remote with three buttons.

Size
46.5 × 66 mm
Copper layers
2
Thickness
1.6 mm
Parts
17
Nets
35
Pads
77
Tracks, vias
71, 3
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
6 Jul 2026
Updated
17 Sep 2026

Overview

Remote is an open-source printed circuit board by harshverma27, from the harshverma27/IoT-AC-Dimmer repository on GitHub. It is a 2-layer board of 46.5 × 66 mm with 17 parts on 35 nets, routed with 71 tracks and 3 vias.

It is built around the ME6211C33M5G-N. Its parts include 7 capacitors, 3 resistors, 3 ICs and 3 switches. It belongs with the ESP32 boards of this library.

Main components

1

README

README.md

IoT AC Dimmer

ESP32-based wireless phase-angle AC dimmer. Two PCBs linked over ESP-NOW: a mains-side dimmer board that switches a TRIAC, and a battery-powered remote with three buttons. Source spec: IoT AC Dimmer Project.docx (v2.0, March 2026).

What's in this repo

  • Dimmer board (hardware/dimmer/) — 230V mains input, zero-cross detection, phase-angle TRIAC control (up to ~2000W / 12A), ESP32 DevKit V1 running ESP-NOW RX + WiFi.
  • Remote board (hardware/remote/) — LiPo-powered, 3 tactile buttons (UP / DOWN / ON-OFF), ESP32 DevKit V1 in deep sleep, ESP-NOW TX only.
  • Generator scripts (hardware/tools/) — Python scripts (on top of kiutils) that bootstrapped the schematic captures for both boards, so the design is reproducible and diffable.

Both boards are designed in KiCad 10. Schematics for both boards are captured and validated against a kicad-cli-exported netlist. PCB layout is in progress (remote board has a first-pass placement + routing; dimmer board layout is next).

Repo layout

text
hardware/
  dimmer/     KiCad project — mains dimmer board (schematic + PCB)
  remote/     KiCad project — battery remote board (schematic + PCB)
  tools/      Python scripts that generated the schematic captures
IoT AC Dimmer Project.docx   Design spec (source of truth for requirements)
CLAUDE.md                    Detailed design notes, GPIO maps, part list

See hardware/README.md, hardware/tools/README.md, and CLAUDE.md for full detail — part lists, GPIO pin maps, and design rationale.

⚠️ Safety notice

The dimmer board connects directly to 230V AC mains. It uses an opto-isolated zero-cross detector (TLP281-4) and an opto-isolated TRIAC driver (MOC3021) to keep mains-side and logic-side circuitry galvanically isolated, with a routed FR4 isolation slot under both optoisolators. Do not bridge that isolation slot with copper or traces, and do not power the dimmer board from mains and USB at the same time. If you build this, treat it as a mains-voltage project: use proper enclosures, creepage/clearance spacing, and fusing, and follow your local electrical code. Build and use at your own risk.

Hardware overview

Dimmer board

BlockPartNotes
MCUESP32 DevKit V1 (30-pin plug-in module)Core 0: phase timing ISR. Core 1: WiFi/ESP-NOW/MQTT
PSUHLK-PM03Isolated 230V→3.3V/900mA, feeds DevKit 3V3 directly (no LDO)
AC in/outMKDSN 5.08mm screw terminalsLive + Neutral
Zero-cross detectTLP281-4 opto + 1N4007 + resistors3.3V pulses into GPIO34
Gate driveMOC3021 opto + resistorDrives TRIAC gate from GPIO25
Power switchBT138-600 TRIAC + gate resistor + RC snubber~2000W max (12A)
ProgrammingOnboard CP2102 + micro-USB on the DevKit itselfNo separate USB circuitry on the carrier board

Remote board

BlockPartNotes
BatteryLiPo 500mAh 3.7V, JST-PHRechargeable
ChargerTP4056 charge/protect module (USB-C)Handles charging, protection, and status LEDs
LDOME6211 3.3V SOT-23-5Regulates battery voltage down to clean 3.3V
MCUESP32 DevKit V1 (30-pin plug-in module)ext1 button wakeup, ESP-NOW TX, deep sleep between presses
Buttons3× 6×6mm tactile THT, pull-up + debounce RCUP / DOWN / ON-OFF

Full GPIO maps, exact part numbers, and design rationale (including the plug-in-DevKit battery-life tradeoff on the remote) live in CLAUDE.md.

Getting started

Requires KiCad 10.

bash
kicad hardware/dimmer/dimmer.kicad_pro
kicad hardware/remote/remote.kicad_pro

The .kicad_sch files are KiCad-7 format; KiCad 10 opens and upgrades them automatically. Don't hand-edit the format version token — see hardware/tools/README.md for why.

To regenerate a schematic capture from the Python generators:

bash
cd hardware/tools
pip install kiutils
python3 gen_dimmer.py
python3 gen_remote.py
python3 validate.py ../dimmer/dimmer.kicad_sch ../remote/remote.kicad_sch

Status

  • Schematics: captured and validated for both boards.
  • PCB layout: remote board has first-pass placement/routing; dimmer board layout not yet started.
  • Firmware: not yet in this repo.

Firmware plan (not yet implemented)

  • Dimmer: hardware timer ISR on Core 0 sets TRIAC fire delay after each zero crossing (phase-angle dimming). Networking (WiFi/ESP-NOW/MQTT) stays on Core 1.
  • Remote: wake on button press (ext1), send an ESP-NOW packet, go back to deep sleep.
  • Future: MQTT + OTA on the dimmer; BLE + display on the remote.

Parts

17
QtyValueFootprintReferences
4100nFC_0805_2012MetricC5, C6, C7, C8
3100kR_0805_2012MetricR4, R5, R6
21uFC_0805_2012MetricC2, C3
110uFC_1206_3216MetricC4
1DOWNSW_PUSH_6mmSW2
1ESP32-DevKitC-30IoT_AC_Dimmer:ESP32-DevKitC-30U3
1LiPo_500mAhJST_PH_S2B-PH-SM4-TB_1x02-1MP_P2.00mm_HorizontalBT1
1ME6211C33M5GSOT-23-5U2
1ON/OFFSW_PUSH_6mmSW3
1TP4056-ModulePinHeader_1x06_P2.54mm_VerticalU1
1UPSW_PUSH_6mmSW1

More from harshverma27/IoT-AC-Dimmer

1
  • 2 layers59 × 67 mmNew dimmer, the printed circuit board in 3D

    New dimmer

    harshverma27/IoT-AC-Dimmer

    ESP32-based wireless phase-angle AC dimmer. Two PCBs linked over ESP-NOW: a mains-side dimmer board that switches a TRIAC, and a battery-powered remote with three buttons.

    19 parts

Similar boards

  • 2 layers87.8 × 59.8 mmFreeDeck SMD 2020-02, the printed circuit board in 3D

    FreeDeck SMD 2020-02

    FreeYourStream/freedeck-hardware

    all the stuff you need to build your own FreeDeck

    37 parts772
  • 2 layers83.2 × 40 mmSmartdisplay, the printed circuit board in 3D

    Smartdisplay

    BearLaboratory/smartdisplay-hardware

    2.9寸墨水屏个人显示终端硬件显示

    46 parts175GPL-3.0
  • 2 layers35.4 × 27 mmWifiaudio, the printed circuit board in 3D

    Wifiaudio

    BearLaboratory/wifiaudio-tx-hardware

    WiFi无线麦克风硬件pcb设计

    29 parts110GPL-3.0
  • 4 layers50 × 50 mmHSCanT, the printed circuit board in 3D

    HSCanT

    cherry-embedded/HSCanT-hardware

    HSCanT is a USB to 4-channel CAN FD tool designed based on the HPM5321 chip.

    130 parts52Apache-2.0
  • 4 layers72.4 × 44.4 mmBtmdpcb v04 eval, the printed circuit board in 3D

    Btmdpcb v04 eval

    17o2/bluetooth-minidisc

    Adding built-in bluetooth connectivity to a 20-year-old Mindisc player

    115 parts45
  • 2 layers69.8 × 40.4 mmT Piece Kicad, the printed circuit board in 3D

    T Piece Kicad

    calebmarting/os2026-badge

    Schematics and firmware for the Open Sauce 2026 Badge and SAOs

    82 parts23MIT
  • 2 layers76.6 × 141.1 mmOniondao badge, the printed circuit board in 3D

    Oniondao badge

    OnionDAO-git/oniondao-badge

    An open-source, hacker-conference-style electronic badge built around the ESP32-S3-WROOM-1-N8R8 (8 MB flash + 8 MB Octal PSRAM), with swappable RF / audio / storage modules, an e-paper (or TFT) display socket, a secure…

    190 parts17
  • 2 layers95.1 × 30 mmUINIO DAPLink, the printed circuit board in 3D

    UINIO DAPLink

    uinika/UINIO-DAPLink

    the PCB board design for ARM Mbed DAP Link.

    55 parts17

Questions

How big is the Remote PCB?

It measures 46.5 × 66 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Remote use?

17 parts, built around the ME6211C33M5G-N. 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 Remote KiCad files?

From the harshverma27/IoT-AC-Dimmer repository on GitHub, at the commit this page was made from: the board is hardware/remote/remote.kicad_pcb and its schematic hardware/dimmer/new_dimmer/new_dimmer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Remote design in my own project?

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