PCB
Pegoku·Smart-desk-lamp·PCB/PCB.kicad_pcb
About the PCB
PCB is an open source ESP32 PCB design by Pegoku, published on GitHub under the GPL-3.0 license. It is a 2-layer board measuring 70 × 104.5 mm, with 46 components from 22 distinct parts.
Its main chip is the ESP32-C3-WROOM-02, from the ESP32 family. Other key parts include the IQS7222A001QNR, IRM-20-24 and AP63203WU. By type, the board carries 19 resistors, 14 capacitors, 5 connectors, 4 ICs, 2 switches and 1 inductor.
It belongs with the iot & wireless and sensors designs in this gallery.
From the project
Smart esp32-powered desk lamp
This is a home assistant controlled CWWW desk lamp with capacitive touch buttons, made with ESPHome and ESP32-C3.
I made this project as I wanted to learn more about capacitive touch sensors and how to use them with ESPHome. I also wanted to make a simple desk lamp that could be controlled with Home Assistant.
- Capacitive touch buttons to control the brightness and color temperature of the LEDs. - Home Assistant integration.

Main components on the PCB
PCB bill of materials (BOM)
46 components, 22 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | IQS7222A001QNR | WQFN-20_L3.0-W3.0-P0.40-BL-EP1.7 | U1 |
| 1 | IRM-20-24 | PWRM-TH_IRM-20-24 | U2 |
| 1 | AP63203WU | TSOT-23-6 | U6 |
| 1 | ESP32-C3-WROOM-02 | ESP32-C3-WROOM-02 | U7 |
| 1 | CONN_01X04_PIN Conn_01x04_Pin | PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | CONN_01X01 Conn_01x01 | PinHeader_1x01_P2.54mm_Vertical | J2 |
| 1 | CONN_01X08 Conn_01x08 | TouchSlider-8_50x20mm | J3 |
| 1 | 703W-00_53 | QUALTEK_703W-00_53 | J4 |
| 1 | CONN_01X04 Conn_01x04 | JST_XH_B4B-XH-AM_1x04_P2.50mm_Vertical | J6 |
| 1 | R_Potentiometer | PinHeader_1x03_P2.54mm_Horizontal | RV1 |
| 2 | PTS815SJM250SMTRLFS | KEY-SMD_4P-L4.2-W3.25-P2.15-TL | SW1, SW2 |
| 1 | 3.9UH 3.9uH | IND-SMD_L5.8-W5.8 | L1 |
| 2 | 100NF 100nF | C_0603_1608Metric | C1, C10 |
| 3 | 100PF 100pF | C_0603_1608Metric | C2, C5, C7 |
| 2 | 2.2UF 2.2uF | C_0603_1608Metric | C3, C6 |
| 1 | 4.7UF 4.7uF | C_0603_1608Metric | C4 |
| 2 | 0.1UF 0.1uF | C_0603_1608Metric | C8, C9 |
| 4 | 22UF 22uF | C_0603_1608Metric | C11, C12, C13, C14 |
| 8 | 470 | R_0603_1608Metric | R1, R2, R3, R4, R5, R6, R7, R8 |
| 5 | 4.7K 4.7k | R_0603_1608Metric | R10, R11, R12, R16, R17 |
Show 2 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 4 | 1k | R_0603_1608Metric | R18, R19, R20, R21 |
| 2 | 10K 10k | R_0603_1608Metric | R22, R23 |
PCB design files
The KiCad project lives in the Pegoku/Smart-desk-lamp repository on GitHub; these links point at the commit this page was built from.
- LayoutPCB/PCB.kicad_pcb
- SchematicPCB/PCB.kicad_sch
- BOMPCB/production/bom.csv
PCB: common questions
What microcontroller does the PCB use?
The PCB is built around the ESP32-C3-WROOM-02, from the ESP32 family.
How big is the PCB?
The PCB measures 70 × 104.5 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the PCB?
46 components, from 22 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 PCB design files?
From the Pegoku/Smart-desk-lamp 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 PCB design in my own project?
Yes, under the terms of its GPL-3.0 license, which Pegoku chose for the repository.
Can I test firmware for the PCB 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.
More boards in Smart-desk-lamp
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