Desk retrofit

tun0·desk-retrofit·schematics/desk.kicad_pcb

Desk retrofit PCB layout, top view — open source ESP32 board by tun0

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

DevKitC_2x22_P2.54mm_1in_row74HC123 250ms74HC08ACS712ELCTR-05BLM2576HVS-5.0 29V-5V

Desk retrofit bill of materials (BOM)

37 components, 30 distinct parts.

QtyPartRefs
1
DevKitC_2x22_P2.54mm_1in_row
U1
1
74HC123 250ms
U2
1
74HC08
U3
1
ACS712ELCTR-05B
U4
1
LM2576HVS-5.0 29V-5V
U5
1
BC337
Q1
1
BC327
Q2
2
2N7000
Q3, Q4
1
IRLZ44N
Q5
1
energized = UP (raises desk)
K1
1
energized = DOWN (lowers desk)
K2
1
signal pair
TB1
1
power pair
TB2
1
ToF signal pair
TB3
1
motor pair
TB4
1
supply pair
TB5
1
SB560
D1
2
flyback
D2, D3
1
33V bidir
D4
1
2u2
C1
Show 10 more
QtyPartRefs
1
100n
C2
1
1n
C3
1
220u 50V
C4
1
220u 10V
C5
1
10k
R1
1
20k
R2
2
4k7
R3, R4
3
100k
R5, R6, R7
3
10k
R8, R9, R10
1
1k
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.

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