Skip to the content
2 layers80 × 80 mmLED PCB, the printed circuit board in 3D

Smart esp32-powered desk lamp

Size
80 × 80 mm
Copper layers
2
Thickness
1.6 mm
Parts
54
Nets
26
Pads
129
Tracks, vias
245, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Jun 2025
Updated
6 Aug 2025

Overview

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.

README

README.md

Smart Desk Lamp

This is a home assistant controlled CWWW desk lamp with capacitive touch buttons, made with ESPHome and ESP32-C3.

Why I made it?

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.

Features

  • Capacitive touch buttons to control the brightness and color temperature of the LEDs.
  • Home Assistant integration.

Images

Final Build:

alt text

Case/Assembly

Final

Main Schematic

schematic

Main PCB

PCB design PCB render

LED Schematic

schematic

LED PCB

PCB design PCB render

BOM

IndexPart NumberWhat the item is for in your projectDescriptionPack QuantityIDUnit PriceTotal PriceTotal (incl. VAT shipping, etc)
1IQS7222A001QNRCapacitive sensor9 CHANNEL MUTUAL / 8 SELF-CAPAC21790-IQS7222A001QNRCT-ND0.821.64~140$
2ESP32-C3-WROOM-02-H4MCURF TXRX MOD BT WIFI PCB TH SMD11965-ESP32-C3-WROOM-02-H4CT-ND3.513.51
3IRM-20-24PSUAC/DC CONVERTER 24V 22W11866-3040-ND9.209.20
4AP63203WU-73.3V buckIC REG BUCK 3.3V 2A TSOT23-62AP63203WU-7DICT-ND0.711.42
5AL5802-7Led driverIC LED DRVR LIN PWM 120MA SOT265AL5802-7DICT-ND0.231.15
62N7002mosfet to drive the led driversMOSFET N-CH 60V 280MA SOT23-334878-2N7002CT-ND0.120.36
7GW JTLPS1.CM-HNKK-XX510-1-150-R332200K ledLED DURIS E2835 WHT 2200K 283510475-GWJTLPS1.CM-HNKK-XX510-1-150-R33CT-ND0.0670.67
8GW JTLPS1.CM-JNKN-XX51-1-150-R336500K ledLED DURIS E2835 WHITE 6500K 283510475-GWJTLPS1.CM-JNKN-XX51-1-150-R33CT-ND0.0670.67
9SRR5018-3R9YinductorFIXED IND 3.9UH 2A 55 MOHM SMD2118-SRR5018-3R9YCT-ND0.641.28
1012mm LED Gooseneck12mm LED Gooseneck30 cm silver, Outer M10 – Outer M101https://es.aliexpress.com/item/1005007938186623.html11.5011.50
11703W-00/53Power ConnectorPWR ENT RCPT IEC320-C14 PNL SLDR1Q219-ND1.541.54
12MF72-005D7Inrush current limiterICL 5 Ω 20% 2A 9 mm2317-1148-ND0.430.86
13M3x30 mm 4762M3x30 mm 4762M3x30 mm 47621https://www.aliexpress.com/item/1005006453614010.html3.1053.105
14M10 nutM10 nutM10 nut1https://www.aliexpress.com/item/1005007593861199.html3.09353.0935
15Soldering iron heatset insert tipsSoldering iron heatset insert tipsSoldering iron heatset insert tips1https://www.aliexpress.com/item/1005008493831823.html21.378521.3785
16M3x6 mm 4762M3x6 mm 4762M3x6 mm 47621https://www.aliexpress.com/item/1005006453614010.html2.1392.139
17Wood FilamentWood FilamentWood Filament0https://www.aliexpress.com/item/1005006685394618.html38.16850
1830 cm JST XH 4P30 cm JST XH 4P30 cm JST XH 4P1https://www.aliexpress.com/item/1005008319201640.html2.56452.5645
19CL10A104KA8NNNCPassiveCAP CER 0.1 µF 25 V X5R 0603101276-1857-1-ND0.0280.28
20CL10A475KQ8NNNCPassiveCAP CER 4.7 µF 6.3 V X5R 0603101276-1045-1-ND0.0080.08
21CL10A225KQ8NNNCPassiveCAP CER 2.2 µF 6.3 V X5R 0603101276-1183-1-ND0.0320.32
22CL10A226MQ8NRNCPassiveCAP CER 22 µF 6.3 V X5R 060351276-1193-1-ND0.221.10
23CL10A104KA8NNNCPassiveCAP CER 0.1 µF 25 V X5R 0603101276-1857-1-ND0.0280.28
24CL05C101JB5NNNCPassiveCAP CER 100 pF 50 V C0G/NP0 0402101276-1025-1-ND0.0030.03
2561300411121PassiveCONN HEADER VERT 4POS 2.54 mm2732-5317-ND0.170.34
26CRCW0603470MJPEAHRPassiveRES SMD 470 MΩ 5% 1/10 W 060310541-470MAHCT-ND0.1511.51
27RC0603FR-074K7LPassiveRES 4.7 KΩ 1% 1/10 W 060310311-4.70KHRCT-ND0.0090.09
28RC0603FR-071KLPassiveRES 1 KΩ 1% 1/10 W 060310311-1.00KHRCT-ND0.0090.09
29RC0603FR-0710KLPassiveRES 10 KΩ 1% 1/10 W 060310311-10.0KHRCT-ND0.0090.09
30PTS815SJM250SMTRLFSEsp32 buttonsSWITCH TACTILE SPST-NO 0.05 A 12 V4CKN12215-1-ND0.220.88
31PCBPCBPCBs + stencil1jlcpcb.com53.0353.03
32ERJ-6GEY0R00V0 ohm jumperRES SMD 0 OHM JUMPER 1/8W 080520P0.0ACT-ND0.023600.59

Configuration

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.

yaml
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

Parts

54
QtyValueFootprintReferences
16SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1, JP2, JP3, JP4, JP5, JP6, JP7, JP8, JP9, JP10, JP11, JP12, JP13, JP14, JP15, JP16
9R_0805_2012Metric_Pad1.20x1.40mm_HandSolderResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder0, 0, 0, 0, 0, 0, 0, 0, 0
8LEDCLED_SMD:LED_PLCC_2835D9, D10, D11, D12, D13, D14, D15, D16
8LEDWLED_SMD:LED_PLCC_2835D1, D2, D3, D4, D5, D6, D7, D8
49.1Resistor_SMD:R_0603_1608MetricR1, R2, R3, R4
4AL5802-7easyeda2kicad:SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BRU1, U2, U3, U4
20Resistor_SMD:R_0805_2012Metric0, 0
22N7002Package_TO_SOT_SMD:SOT-23Q1, Q2
1Conn_01x04Connector_JST:JST_XH_B4B-XH-AM_1x04_P2.50mm_VerticalJ1

More from Pegoku/Smart-desk-lamp

1

Similar boards

  • 2 layers203 × 26.6 mmBlade13, the printed circuit board in 3D

    Blade13

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    54 parts3.7k
  • 2 layers30 × 50 mmModuleV421, the printed circuit board in 3D

    ModuleV421

    stuartpittaway/diyBMSv4

    Version 4 of the diyBMS

    54 parts1.1k
  • 2 layers100.1 × 40 mm32Bit shift register, the printed circuit board in 3D

    32Bit shift register

    MaltWhiskey/Mega-Cube

    16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver

    54 parts766
  • 2 layers100 × 120 mmHubble lens, the printed circuit board in 3D

    Hubble lens

    wntrblm/Castor_and_Pollux

    A Juno-inspired dual oscillator

    54 parts587
  • 2 layersPassword, the printed circuit board in 3D

    Password

    limpkin/mooltipass

    Github repository dedicated to the mooltipass project

    54 parts531
  • 2 layers104.3 × 38.9 mmHYD ISO PANEL, the printed circuit board in 3D

    HYD ISO PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    54 parts431
  • 2 layers93.8 × 64.2 mmPiFinder smt, the printed circuit board in 3D

    PiFinder smt

    brickbots/PiFinder

    A plate solving telescope finder based around a Raspberry PI and RPI HQ Camera

    54 parts257GPL-3.0

Questions

How big is the LED PCB PCB?

It measures 80 × 80 mm and has 2 copper layers, 1.6 mm thick.

What parts does the LED PCB use?

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.

Where can I download the LED PCB KiCad files?

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.

Can I use the LED PCB design in my own project?

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).