Light sw controller
VladimirV01·light-sw-controller
About the Light sw controller PCB
Light sw controller is an open source ESP32 PCB design by VladimirV01, published on GitHub. It is a 2-layer board measuring 61.2 × 67.3 mm, with 53 components from 25 distinct parts.
Its main chip is the ESP32-WROOM-32, from the ESP32 family. Other key parts include the AMS1117-3.3. By type, the board carries 19 resistors, 9 diodes, 9 capacitors, 5 connectors, 5 switches and 4 transistors.
It belongs with the iot & wireless and sensors designs in this gallery.
From the project
This repository covers the controller plate for popular TUYA in-wall switches.
If you want to build one, before commiting please SEE OPEN ISSUES.
There is an interactive BOM HTML file here, and a CSV BOM here. The light-sw-controller.zip file can be used to order parts from JLCPCB (this is what I used). For other PCB manufacturers you might need to generate the production files yourself.
I have also added an example of ESPHome code I use for this device here. You absolutely do not need to complicate it as much as I did, you can go as simple as a sensor for the button and an output for the relay. I made it more complex because, apparently, I love to make my life…

Main components on the Light sw controller
Light sw controller bill of materials (BOM)
53 components, 25 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | ESP32-WROOM-32 | ESP32-WROOM-32 | U1 |
| 1 | AMS1117-3.3 | SOT-223-3_TabPin2 | U2 |
| 3 | IRLML2502 | IRLML2502 | Q1, Q2, Q3 |
| 1 | IRLML5203 | SOT-23W_Handsoldering | Q5 |
| 1 | HLK-LD2410B | PinHeader_1x05_P1.27mm_Vertical | J1 |
| 1 | Prog | PinHeader_1x05_P2.54mm_Vertical | J2 |
| 1 | Board Connector | PinHeader_1x05_P2.54mm_Vertical | J3 |
| 1 | HLK-LD2410B | PinSocket_2x05_P1.27mm_Vertical_SMD | J4 |
| 1 | Board Connector | PinSocket_1x05_P2.54mm_Vertical_SMD_Pin1Right | J5 |
| 1 | RST | Tactile_Switch_4x3x2 | S1 |
| 1 | BOOT | Tactile_Switch_4x3x2 | S2 |
| 1 | Left Switch | SW_TS35-6-15-BK-260-JSMT-TR | S3 |
| 1 | Middle Switch | SW_TS35-6-15-BK-260-JSMT-TR | S4 |
| 1 | Right Switch | SW_TS35-6-15-BK-260-JSMT-TR | S5 |
| 3 | 1N5819WS | D_SOD-323_HandSoldering | D1, D2, D3 |
| 3 | RED LED | LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D4, D6, D8 |
| 3 | BLUE LED | LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D5, D7, D9 |
| 1 | 22UF 22uF | CP_EIA-3528-21_Kemet-B_Pad1.50x2.35mm_HandSolder | C1 |
| 6 | 0.1UF 0.1uF | C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2, C3, C4, C7, C8, C9 |
| 1 | 10UF 10uF | CP_EIA-3528-21_Kemet-B_Pad1.50x2.35mm_HandSolder | C5 |
Show 5 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | 22UF 22uF | CP_EIA-3216-18_Kemet-A_Pad1.58x1.35mm_HandSolder | C6 |
| 5 | 10K | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1, R2, R15, R18, R21 |
| 4 | 100 | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R3, R5, R7, R10 |
| 4 | 100K 100k | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R4, R6, R8, R12 |
| 6 | 220 | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R13, R14, R16, R17, R19, R20 |
Light sw controller design files
The KiCad project lives in the VladimirV01/light-sw-controller repository on GitHub; these links point at the commit this page was built from.
Light sw controller: common questions
What microcontroller does the Light sw controller use?
The Light sw controller is built around the ESP32-WROOM-32, from the ESP32 family.
How big is the Light sw controller PCB?
The Light sw controller measures 61.2 × 67.3 mm, has 2 copper layers and is 1 mm thick.
How many components are on the Light sw controller?
53 components, from 25 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Light sw controller design files?
From the VladimirV01/light-sw-controller repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Light sw controller design in my own project?
The repository has no license, so all rights stay with VladimirV01. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the Light sw controller without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug ESP32 firmware against it before you order a PCB.
Similar boards
ESP32
Open Book Abridged Edition
joeycastillo
85 × 115 mm65 parts2LCC-BY-SA-4.08.1kESP32
Badge
atopile
56.3 × 39 mm239 parts4LMIT4.0kESP32
Esp32 minimal
atopile
36.2 × 26.8 mm20 parts2LMIT4.0kESP32
Racer
StuckAtPrototype
36 × 50.2 mm70 parts4LApache-2.03.8kESP32
Controller
StuckAtPrototype
29 × 74 mm58 parts4LApache-2.03.8kESP32
Bitaxe
skot
56.5 × 99.8 mm86 parts4LCERN-OHL-S-2.01.4k