
PCB.sync conflict-20250618-080703-LCY53NE
Pegoku/Smart-desk-lamp
Smart esp32-powered desk lamp

Smart esp32-powered desk lamp
LED PCB is an open-source printed circuit board by Pegoku, from the Pegoku/Smart-desk-lamp repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 80 × 80 mm with 54 parts on 26 nets, routed with 245 tracks and 0 vias.
Its parts include 16 diodes, 4 resistors, 4 ICs, 2 transistors and 1 connector. It belongs with the lEDs and displays boards of this library.
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.
Final Build:






| Index | Part Number | What the item is for in your project | Description | Pack Quantity | ID | Unit Price | Total Price | Total (incl. VAT shipping, etc) |
|---|---|---|---|---|---|---|---|---|
| 1 | IQS7222A001QNR | Capacitive sensor | 9 CHANNEL MUTUAL / 8 SELF-CAPAC | 2 | 1790-IQS7222A001QNRCT-ND | 0.82 | 1.64 | ~140$ |
| 2 | ESP32-C3-WROOM-02-H4 | MCU | RF TXRX MOD BT WIFI PCB TH SMD | 1 | 1965-ESP32-C3-WROOM-02-H4CT-ND | 3.51 | 3.51 | |
| 3 | IRM-20-24 | PSU | AC/DC CONVERTER 24V 22W | 1 | 1866-3040-ND | 9.20 | 9.20 | |
| 4 | AP63203WU-7 | 3.3V buck | IC REG BUCK 3.3V 2A TSOT23-6 | 2 | AP63203WU-7DICT-ND | 0.71 | 1.42 | |
| 5 | AL5802-7 | Led driver | IC LED DRVR LIN PWM 120MA SOT26 | 5 | AL5802-7DICT-ND | 0.23 | 1.15 | |
| 6 | 2N7002 | mosfet to drive the led drivers | MOSFET N-CH 60V 280MA SOT23-3 | 3 | 4878-2N7002CT-ND | 0.12 | 0.36 | |
| 7 | GW JTLPS1.CM-HNKK-XX510-1-150-R33 | 2200K led | LED DURIS E2835 WHT 2200K 2835 | 10 | 475-GWJTLPS1.CM-HNKK-XX510-1-150-R33CT-ND | 0.067 | 0.67 | |
| 8 | GW JTLPS1.CM-JNKN-XX51-1-150-R33 | 6500K led | LED DURIS E2835 WHITE 6500K 2835 | 10 | 475-GWJTLPS1.CM-JNKN-XX51-1-150-R33CT-ND | 0.067 | 0.67 | |
| 9 | SRR5018-3R9Y | inductor | FIXED IND 3.9UH 2A 55 MOHM SMD | 2 | 118-SRR5018-3R9YCT-ND | 0.64 | 1.28 | |
| 10 | 12mm LED Gooseneck | 12mm LED Gooseneck | 30 cm silver, Outer M10 – Outer M10 | 1 | https://es.aliexpress.com/item/1005007938186623.html | 11.50 | 11.50 | |
| 11 | 703W-00/53 | Power Connector | PWR ENT RCPT IEC320-C14 PNL SLDR | 1 | Q219-ND | 1.54 | 1.54 | |
| 12 | MF72-005D7 | Inrush current limiter | ICL 5 Ω 20% 2A 9 mm | 2 | 317-1148-ND | 0.43 | 0.86 | |
| 13 | M3x30 mm 4762 | M3x30 mm 4762 | M3x30 mm 4762 | 1 | https://www.aliexpress.com/item/1005006453614010.html | 3.105 | 3.105 | |
| 14 | M10 nut | M10 nut | M10 nut | 1 | https://www.aliexpress.com/item/1005007593861199.html | 3.0935 | 3.0935 | |
| 15 | Soldering iron heatset insert tips | Soldering iron heatset insert tips | Soldering iron heatset insert tips | 1 | https://www.aliexpress.com/item/1005008493831823.html | 21.3785 | 21.3785 | |
| 16 | M3x6 mm 4762 | M3x6 mm 4762 | M3x6 mm 4762 | 1 | https://www.aliexpress.com/item/1005006453614010.html | 2.139 | 2.139 | |
| 17 | Wood Filament | Wood Filament | Wood Filament | 0 | https://www.aliexpress.com/item/1005006685394618.html | 38.1685 | 0 | |
| 18 | 30 cm JST XH 4P | 30 cm JST XH 4P | 30 cm JST XH 4P | 1 | https://www.aliexpress.com/item/1005008319201640.html | 2.5645 | 2.5645 | |
| 19 | CL10A104KA8NNNC | Passive | CAP CER 0.1 µF 25 V X5R 0603 | 10 | 1276-1857-1-ND | 0.028 | 0.28 | |
| 20 | CL10A475KQ8NNNC | Passive | CAP CER 4.7 µF 6.3 V X5R 0603 | 10 | 1276-1045-1-ND | 0.008 | 0.08 | |
| 21 | CL10A225KQ8NNNC | Passive | CAP CER 2.2 µF 6.3 V X5R 0603 | 10 | 1276-1183-1-ND | 0.032 | 0.32 | |
| 22 | CL10A226MQ8NRNC | Passive | CAP CER 22 µF 6.3 V X5R 0603 | 5 | 1276-1193-1-ND | 0.22 | 1.10 | |
| 23 | CL10A104KA8NNNC | Passive | CAP CER 0.1 µF 25 V X5R 0603 | 10 | 1276-1857-1-ND | 0.028 | 0.28 | |
| 24 | CL05C101JB5NNNC | Passive | CAP CER 100 pF 50 V C0G/NP0 0402 | 10 | 1276-1025-1-ND | 0.003 | 0.03 | |
| 25 | 61300411121 | Passive | CONN HEADER VERT 4POS 2.54 mm | 2 | 732-5317-ND | 0.17 | 0.34 | |
| 26 | CRCW0603470MJPEAHR | Passive | RES SMD 470 MΩ 5% 1/10 W 0603 | 10 | 541-470MAHCT-ND | 0.151 | 1.51 | |
| 27 | RC0603FR-074K7L | Passive | RES 4.7 KΩ 1% 1/10 W 0603 | 10 | 311-4.70KHRCT-ND | 0.009 | 0.09 | |
| 28 | RC0603FR-071KL | Passive | RES 1 KΩ 1% 1/10 W 0603 | 10 | 311-1.00KHRCT-ND | 0.009 | 0.09 | |
| 29 | RC0603FR-0710KL | Passive | RES 10 KΩ 1% 1/10 W 0603 | 10 | 311-10.0KHRCT-ND | 0.009 | 0.09 | |
| 30 | PTS815SJM250SMTRLFS | Esp32 buttons | SWITCH TACTILE SPST-NO 0.05 A 12 V | 4 | CKN12215-1-ND | 0.22 | 0.88 | |
| 31 | PCB | PCB | PCBs + stencil | 1 | jlcpcb.com | 53.03 | 53.03 | |
| 32 | ERJ-6GEY0R00V | 0 ohm jumper | RES SMD 0 OHM JUMPER 1/8W 0805 | 20 | P0.0ACT-ND | 0.02360 | 0.59 |
Remember to set your secrets in secrets.yaml.
All firmware configuration lives in code.yaml: PS: This configuration is for reference only, The final configuration will be for the ESP32-S2. You'll also have to configure the devices you want to control in Home Assistant.
esphome:
name: desklight
friendly_name: desklight
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret api_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | SolderJumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm | JP1, JP2, JP3, JP4, JP5, JP6, JP7, JP8, JP9, JP10, JP11, JP12, JP13, JP14, JP15, JP16 |
| 9 | R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| 8 | LEDC | LED_SMD:LED_PLCC_2835 | D9, D10, D11, D12, D13, D14, D15, D16 |
| 8 | LEDW | LED_SMD:LED_PLCC_2835 | D1, D2, D3, D4, D5, D6, D7, D8 |
| 4 | 9.1 | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4 |
| 4 | AL5802-7 | easyeda2kicad:SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BR | U1, U2, U3, U4 |
| 2 | 0 | Resistor_SMD:R_0805_2012Metric | 0, 0 |
| 2 | 2N7002 | Package_TO_SOT_SMD:SOT-23 | Q1, Q2 |
| 1 | Conn_01x04 | Connector_JST:JST_XH_B4B-XH-AM_1x04_P2.50mm_Vertical | J1 |

Pegoku/Smart-desk-lamp
Smart esp32-powered desk lamp



MaltWhiskey/Mega-Cube
16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver





brickbots/PiFinder
A plate solving telescope finder based around a Raspberry PI and RPI HQ Camera
It measures 80 × 80 mm and has 2 copper layers, 1.6 mm thick.
54 parts. 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 Pegoku/Smart-desk-lamp repository on GitHub, at the commit this page was made from: the board is LED-PCB/LED-PCB.kicad_pcb and its schematic LED-PCB/LED-PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).