Skip to the content
6 layers50 × 50 mmSmartDimmer, the printed circuit board in 3D

AC Dimming using an ESP32 with async Rust

Size
50 × 50 mm
Copper layers
6
Thickness
1.56 mm
Parts
69
Nets
86
Pads
306
Tracks, vias
30, 7
Pours
6
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
21 Mar 2026
Updated
27 Aug 2026

Overview

SmartDimmer is an open-source printed circuit board by Alex3404, from the Alex3404/Wakeup-Light-Dimmer repository on GitHub. It is a 6-layer board of 50 × 50 mm with 69 parts on 86 nets, routed with 30 tracks and 7 vias.

It is built around the ESP32-C6-MINI-1U-H4, IRM-03-5 and R05C1TF05S-R, with the 1EDB7275F, MIC23050-SYML-TR and LTV-354T-A among its other parts. Its parts include 17 capacitors, 13 resistors, 10 ICs, 6 transistors and 5 connectors. It belongs with the ESP32 and RISC-V boards of this library.

Main components

12

README

Readme.md

Light Dimming on ESP32

A custom designed board using the ESP32 SoC, with an AC Dimming module. Before I get into the details I'd like to cover some of the backstory of this project. During my 2026 semester at my universtity, I had very early classes, and since it was till in the winter the sun doesn't come up by the time I need to wake up. I was reading some information online that waking up to a light is more natural way to wake up since it would memic the typical sun rise/sun set that humans evolved in. So I put that to the test, I had this smart light from Eufy and I programmed it to turn on 20-30minutes before I had to wake up. I saw that I woke up less grogy and more energietic in the mornings. However the biggest con with this approch was that there was no fade option. No way to graudually increase the light only pulse effects. So, I decided to fix this problem myself. I saw that I had an over head light in my room, and a light switch that could be dimmable. Why not combine a sunrise alarm clock with a light switch dimmer? So I got to work. This is project is the result of that question.

Fully Async Rust Firmware

I landed on the ESP32 for a few main reasons: its direct support for writing in Rust supporting Embassy, its diverse set of peripherals, and that it has WiFI & Bluetooth Module. This repo has the Rust project in its root directory, I've split a few different operations into packages. A application library for unit testing my code, a binary that loads the appliction library on the ESP32, a supporting async storage-derive for the async app state storage driver using the ESP32 NVS partition, and a crate sequental storage built for writing in the format the ESP32 expects.

Slint UI

My project uses the Slint UI framework for compiling the UI files into the native executable.

Future Direction for this Project

Currently I'm still working on this project as a solo adventure. If you have issues with it or find any bugs open an issue! I'll get to it. Right now I am still working on the PCB design, Ive gone through 4 iterations now on the PCB, with the last two not working at all for trivial reasons. Once I didn't impedence match the USB data traces to 90 ohms, and another time I shorted the VCC and Ground layers ( Facepalm ). I'm working on PCB design that should work, and will incorperate all my plans.

  • Real Time Clock
  • SPI Interface for TFT Display
  • ESP32
  • MOSFET AC Dimming for LCD bulbs
  • LiPo battery backup for RTC with intergrated battery charger

I'm also working on the firmware currently I am striving towards getting WIFI and bluethooth to work, then after that I'd love to focus on an Phone application inorder to configure alarm times, and other options exposed though either WIFI or Bluetooth. I'm leaning towards Bluetooth due to WiFi insecurities relating to IoT devices. Supporting only bluetooth should reduce the attack vector.

Video Showcase

Showcase Video

Parts

69
QtyValueFootprintReferences
7TestPointTestPoint:TestPoint_Pad_D1.0mm5V_ISO1, 5V4, 5V5, FET_GATE1, GND_ISO1, GND2, LAMP1
6100nFCapacitor_SMD:C_0402_1005MetricC14, C16, C17, C20, C22, C23
510uFCapacitor_SMD:C_0805_2012MetricC1, C11, C15, C18, C19
4SSF2320YPackage_TO_SOT_SMD:SOT-523Q5, Q6, Q7, Q8
33.3kResistor_SMD:R_0402_1005MetricR11, R17, R22
3Conn_01x01Footprints:Solder_Conn_01x01J4, J5, J6
3PUSB3AB4ZSamacsys:SON50P100X250X50-10ND4, D5, D6
2100Ω 1WResistor_SMD:R_1206_3216MetricR6, R21
21uFCapacitor_SMD:C_0402_1005MetricC4, C6
22/3W 47kΩResistor_SMD:R_1206_3216MetricR1, R2
25.1kResistor_SMD:R_0402_1005MetricR3, R4
2IPN70R600P7SATMA1Samacsys:IPN70R600P7SATMA1Q1, Q2
2TL3365AF180QGSamacsys:TL3365AF180QGSW5, SW6
1100Resistor_SMD:R_0402_1005MetricR13
110kResistor_SMD:R_0402_1005MetricR15
11EDB7275FSamacsys:SOIC127P600X175-8NIC4
12.2uHInductor_SMD:L_1008_2520MetricL1
120kResistor_SMD:R_0402_1005MetricR9
122uFCapacitor_SMD:C_0805_2012MetricC10
14.7uFCapacitor_SMD:C_0402_1005MetricC2
1520pFCapacitor_SMD:C_0402_1005MetricC9
168KResistor_SMD:R_0402_1005MetricR7
1B32921C3104M000Capacitor_THT:C_Rect_L13.0mm_W6.0mm_P10.00mm_FKS3_FKP3_MKS4C21
1B72210S2271K101Varistor:RV_Disc_D12mm_W5.4mm_P7.5mmMOV3
1BATTERYConnector_JST:JST_SH_BM02B-SRSS-TB_1x02-1MP_P1.00mm_VerticalJ7
1Crystal_SmallCrystal:Crystal_SMD_MicroCrystal_CM9V-T1A-2Pin_1.6x1.0mmY2
1ESP32-C6-MINI-1U-H4Samacsys:ESP32C6MINI1UH4IC3
1FuseFootprints:3561KTR_SMD_FUSE_CLIPF5
1IRM-03-5Converter_ACDC:Converter_ACDC_MeanWell_IRM-03-xx_THTU2
1LTV-354T-APackage_SO:SO-4_4.4x3.6mm_P2.54mmU3
1MAIN_PWR_STDiode_SMD:D_0603_1608MetricD14
1MCP73831-2-MCPackage_DFN_QFN:DFN-8-1EP_3x2mm_P0.5mm_EP1.7x1.4mmU7
1MIC23050-SYML-TRSnapeda:MLF-8_ML_MCH-LU1
1NC7WZ14P6XPackage_TO_SOT_SMD:SOT-363_SC-70-6U8
1NCV68261Package_DFN_QFN:DFN-6-1EP_2x2mm_P0.65mm_EP1.01x1.7mmU5
1NUF2221W1T2GSamacsys:SOT65P210X110-6NIC1
1PCF85063ATLPackage_DFN_QFN:DFN-10-1EP_2.6x2.6mm_P0.5mm_EP1.3x2.2mmU6
1R05C1TF05S-RSnapeda:CONV_R05C1TF05S-RPS2
1USB-C-16PinConnector_USB:USB_C_Receptacle_GCT_USB4110J2

Similar boards

  • 2 layers119 × 79 mmHome Ambient, the printed circuit board in 3D

    Home Ambient

    abrahanlp/Home-Ambient

    2-wire home thermostat with temperature, humidity, pressure and air quality measures.

    62 partsAGPL-3.0
  • 2 layers138 × 53 mmNixie alarm main board, the printed circuit board in 3D

    Nixie alarm main board

    wojciechpaderewski/Nixie_alarm_clock

    Home assistant integrated

    124 parts
  • 2 layers121 × 73 mmPonictron, the printed circuit board in 3D

    Ponictron

    bbokser/ponictron

    75 partsMIT
  • 2 layers100 × 66 mmEsp av, the printed circuit board in 3D

    Esp av

    smkent/pcb

    PCB designs

    160 partsCC-BY-SA-4.0
  • 2 layers29.5 × 11.2 mmI2C Isolator, the printed circuit board in 3D

    I2C Isolator

    pellematrose/I2C-Isolator

    Smallest IC2 Isolating PCB with Power

    11 parts2MIT
  • 2 layers40 × 43 mmPMA5-123-3W DC V1.0, the printed circuit board in 3D

    PMA5-123-3W DC V1.0

    PA0MHE/PMA5-123-3W-DC-Bias

    DC bias PCB for PMA5-123-3W MMIC 3W 10GHz

    44 parts
  • 2 layers74 × 72 mmIso usb2pwrd panel, the printed circuit board in 3D

    Iso usb2pwrd panel

    qfreiman/iso-usb2pwrd

    compact USB-C 2.0 Isolator with 1W Power Passthrough

    204 parts
  • 4 layers71.5 × 71.5 mmElixir, the printed circuit board in 3D

    Elixir

    golioth/elixir-hw

    An open source hardware device that has cellular, wifi, bluetooth, GPS, and more!

    249 parts36CERN-OHL-P-2.0

Questions

How big is the SmartDimmer PCB?

It measures 50 × 50 mm and has 6 copper layers, 1.56 mm thick.

What parts does the SmartDimmer use?

69 parts, built around the ESP32-C6-MINI-1U-H4, IRM-03-5, R05C1TF05S-R and 1EDB7275F. 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 SmartDimmer KiCad files?

From the Alex3404/Wakeup-Light-Dimmer repository on GitHub, at the commit this page was made from: the board is board/SmartDimmer.kicad_pcb and its schematic board/AC_DC_Power.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SmartDimmer design in my own project?

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