
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.

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.
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.
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).
hardware/dimmer/) — 230V mains input, zero-cross
detection, phase-angle TRIAC control (up to ~2000W / 12A), ESP32 DevKit V1
running ESP-NOW RX + WiFi.hardware/remote/) — LiPo-powered, 3 tactile buttons
(UP / DOWN / ON-OFF), ESP32 DevKit V1 in deep sleep, ESP-NOW TX only.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).
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 listSee hardware/README.md, hardware/tools/README.md, and CLAUDE.md for
full detail — part lists, GPIO pin maps, and design rationale.
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.
| Block | Part | Notes |
|---|---|---|
| MCU | ESP32 DevKit V1 (30-pin plug-in module) | Core 0: phase timing ISR. Core 1: WiFi/ESP-NOW/MQTT |
| PSU | HLK-PM03 | Isolated 230V→3.3V/900mA, feeds DevKit 3V3 directly (no LDO) |
| AC in/out | MKDSN 5.08mm screw terminals | Live + Neutral |
| Zero-cross detect | TLP281-4 opto + 1N4007 + resistors | 3.3V pulses into GPIO34 |
| Gate drive | MOC3021 opto + resistor | Drives TRIAC gate from GPIO25 |
| Power switch | BT138-600 TRIAC + gate resistor + RC snubber | ~2000W max (12A) |
| Programming | Onboard CP2102 + micro-USB on the DevKit itself | No separate USB circuitry on the carrier board |
| Block | Part | Notes |
|---|---|---|
| Battery | LiPo 500mAh 3.7V, JST-PH | Rechargeable |
| Charger | TP4056 charge/protect module (USB-C) | Handles charging, protection, and status LEDs |
| LDO | ME6211 3.3V SOT-23-5 | Regulates battery voltage down to clean 3.3V |
| MCU | ESP32 DevKit V1 (30-pin plug-in module) | ext1 button wakeup, ESP-NOW TX, deep sleep between presses |
| Buttons | 3× 6×6mm tactile THT, pull-up + debounce RC | UP / 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.
Requires KiCad 10.
kicad hardware/dimmer/dimmer.kicad_pro
kicad hardware/remote/remote.kicad_proThe .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:
cd hardware/tools
pip install kiutils
python3 gen_dimmer.py
python3 gen_remote.py
python3 validate.py ../dimmer/dimmer.kicad_sch ../remote/remote.kicad_schext1), send an ESP-NOW packet, go back
to deep sleep.| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100nF | C_0805_2012Metric | C5, C6, C7, C8 |
| 3 | 100k | R_0805_2012Metric | R4, R5, R6 |
| 2 | 1uF | C_0805_2012Metric | C2, C3 |
| 1 | 10uF | C_1206_3216Metric | C4 |
| 1 | DOWN | SW_PUSH_6mm | SW2 |
| 1 | ESP32-DevKitC-30 | IoT_AC_Dimmer:ESP32-DevKitC-30 | U3 |
| 1 | LiPo_500mAh | JST_PH_S2B-PH-SM4-TB_1x02-1MP_P2.00mm_Horizontal | BT1 |
| 1 | ME6211C33M5G | SOT-23-5 | U2 |
| 1 | ON/OFF | SW_PUSH_6mm | SW3 |
| 1 | TP4056-Module | PinHeader_1x06_P2.54mm_Vertical | U1 |
| 1 | UP | SW_PUSH_6mm | SW1 |

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.

FreeYourStream/freedeck-hardware
all the stuff you need to build your own FreeDeck



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

17o2/bluetooth-minidisc
Adding built-in bluetooth connectivity to a 20-year-old Mindisc player

calebmarting/os2026-badge
Schematics and firmware for the Open Sauce 2026 Badge and SAOs

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…

It measures 46.5 × 66 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask harshverma27 before reusing the design.