Desk retrofit
tun0·desk-retrofit·schematics/desk.kicad_pcb
About the Desk retrofit PCB
Desk retrofit is an open source ESP32 PCB design by tun0, published on GitHub. It is a 2-layer board measuring 70 × 100 mm, with 37 components from 30 distinct parts.
Its main chip is the DevKitC_2x22_P2.54mm_1in_row, from the ESP32 family. Other key parts include the 74HC123 250ms, 74HC08, ACS712ELCTR-05B and LM2576HVS-5.0 29V-5V. By type, the board carries 11 resistors, 5 ICs, 5 transistors, 5 capacitors, 4 diodes and 2 relays.
It belongs with the iot & wireless and retro computing designs in this gallery.
From the project
Reverse-engineered replacement drive electronics for a Jysk Slangerup electric standing desk (ESP32 + ESPHome)
Reverse engineering notes, design decisions and firmware for replacing the control of a Jysk Slangerup electric height-adjustable desk.
The original complaint: the up/down buttons switch the motor on at full voltage, so the desk jolts into motion. The goal is soft start/stop under programmatic control, with height presets as a later phase.
This document is the project's memory. It records not just the final design but the measurements it rests on, the alternatives considered, and — deliberately — the wrong turns, because several conclusions here are only correct in light of an earlier…
Main components on the Desk retrofit
Desk retrofit bill of materials (BOM)
37 components, 30 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | DevKitC_2x22_P2.54mm_1in_row | DevKitC_2x22_P2.54mm_1in_row | U1 |
| 1 | 74HC123 250ms | DIP-16_W7.62mm | U2 |
| 1 | 74HC08 | DIP-14_W7.62mm | U3 |
| 1 | ACS712ELCTR-05B | DIP-8_W7.62mm_Socket | U4 |
| 1 | LM2576HVS-5.0 29V-5V | TO-263-5_TabPin3 | U5 |
| 1 | BC337 | TO-92_Wide | Q1 |
| 1 | BC327 | TO-92_Wide | Q2 |
| 2 | 2N7000 | TO-92_Wide | Q3, Q4 |
| 1 | IRLZ44N | TO-220-3_Vertical | Q5 |
| 1 | energized = UP (raises desk) | Relay_SPDT_Hongfa_JQC-3FF_0XX-1Z | K1 |
| 1 | energized = DOWN (lowers desk) | Relay_SPDT_Hongfa_JQC-3FF_0XX-1Z | K2 |
| 1 | signal pair | TerminalBlock_Xinya_XY308-2.54-2P_1x02_P2.54mm_Horizontal | TB1 |
| 1 | power pair | TerminalBlock_Xinya_XY308-2.54-2P_1x02_P2.54mm_Horizontal | TB2 |
| 1 | ToF signal pair | TerminalBlock_Xinya_XY308-2.54-2P_1x02_P2.54mm_Horizontal | TB3 |
| 1 | motor pair | TerminalBlock_Xinya_XY308-2.54-2P_1x02_P2.54mm_Horizontal | TB4 |
| 1 | supply pair | TerminalBlock_Xinya_XY308-2.54-2P_1x02_P2.54mm_Horizontal | TB5 |
| 1 | SB560 | D_DO-201AD_P12.70mm_Horizontal | D1 |
| 2 | flyback | D_DO-35_SOD27_P7.62mm_Horizontal | D2, D3 |
| 1 | 33V bidir | D_DO-15_P10.16mm_Horizontal | D4 |
| 1 | 2u2 | C_Disc_D5.0mm_W2.5mm_P5.00mm | C1 |
Show 10 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | 100n | C_Disc_D5.0mm_W2.5mm_P5.00mm | C2 |
| 1 | 1n | C_Disc_D5.0mm_W2.5mm_P5.00mm | C3 |
| 1 | 220u 50V | CP_Radial_D10.0mm_P5.00mm | C4 |
| 1 | 220u 10V | CP_Radial_D8.0mm_P3.50mm | C5 |
| 1 | 10k | R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R1 |
| 1 | 20k | R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R2 |
| 2 | 4k7 | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3, R4 |
| 3 | 100k | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R5, R6, R7 |
| 3 | 10k | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R8, R9, R10 |
| 1 | 1k | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R11 |
Desk retrofit design files
The KiCad project lives in the tun0/desk-retrofit repository on GitHub; these links point at the commit this page was built from.
- Layoutschematics/desk.kicad_pcb
- Schematicschematics/desk.kicad_sch
Desk retrofit: common questions
What microcontroller does the Desk retrofit use?
The Desk retrofit is built around the DevKitC_2x22_P2.54mm_1in_row, from the ESP32 family.
How big is the Desk retrofit PCB?
The Desk retrofit measures 70 × 100 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Desk retrofit?
37 components, from 30 distinct parts. The full bill of materials is listed on this page.
Where can I download the Desk retrofit design files?
From the tun0/desk-retrofit repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the Desk retrofit design in my own project?
The repository has no license, so all rights stay with tun0. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the Desk retrofit 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
OSO-BOOK-B1
joeycastillo
85 × 115 mm65 parts2LCC-BY-SA-4.08.1kESP32
Powertrain
byrantech
64 × 45.4 mm171 parts4LMIT4.3kESP32
Esp32 minimal
atopile
36.2 × 26.8 mm20 parts2LMIT4.0kESP32
Badge
atopile
56.3 × 39 mm239 parts4LMIT4.0kESP32
Racer
StuckAtPrototype
36 × 50.2 mm70 parts4LApache-2.03.8kESP32
Controller
StuckAtPrototype
29 × 74 mm58 parts4LApache-2.03.8k