

Smart controller for an IKEA Trotten desk with automated height adjustment, laser height sensing, and WiFi remote control.
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 8
- Nets
- 32
- Pads
- 57
- Tracks, vias
- 76, 0
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 9 Mar 2026
- Updated
- 9 Mar 2026
Overview
Desk is an open-source printed circuit board by teamon, from the teamon/ikea-trotten-motorized-desk-controller repository on GitHub. It is a 2-layer board with 8 parts on 32 nets, routed with 76 tracks and 0 vias.
Its parts include 5 connectors, 2 ICs and 1 capacitor. It belongs with the ESP32 boards of this library.
README
README.mdIKEA Trotten Motorized Desk Controller
Smart controller for an IKEA Trotten desk with automated height adjustment, laser height sensing, and WiFi remote control.
Hardware
- MCU: ESP32 (ESP-WROOM-32, USB-C with CH340 UART)
- Motor Driver: BTS7960 bidirectional H-bridge with PWM speed control
- Height Sensor: VL53L0X laser distance sensor (I2C)
- Input: 5 tact switches (1 onboard + 4 external)
- Power: LM2596 buck converter (5V)
Features
- Move desk to target height automatically (550-1000mm range)
- Real-time height monitoring via laser sensor
- Manual up/down control with physical buttons
- WiFi remote control via UDP/OSC protocol (port 4000)
- macOS desktop app for control and live height display
- Safety: hard height limits, deadman timeout, sensor validation
Components
/case- 3D model (OpenSCAD)- components by Claude Code
- basic case by Claude Code
- final model in SketchUp with STL imports from OpenSCAD
/firmware- Erlang firmware running on AtomVM- motor, laser and osc modules by Claude Code
- main and button modules hand crafted
/macos- macOS desktop app (Swift/Cocoa)/pcb- KiCad PCB design- kicad library by Claude Code
- schematic by hand
- pcb layout by hand
OSC Protocol
Commands over UDP port 4000:
| Command | Description |
|---|---|
/motor/up [speed] | Move desk up (speed 0-100) |
/motor/down [speed] | Move desk down (speed 0-100) |
/motor/stop | Stop motor |
/goto [height_mm] | Move to target height |
/get/height | Query current height |
Resources
- Board Info - https://www.espboards.dev/esp32/esp32doit-devkit-v1/
Parts
8| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 470uF 35V | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C1 |
| 1 | Conn_01x04_Pin LASER | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | Conn_01x05_Pin BTN | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J2 |
| 1 | Conn_02x04_Odd_Even BTS | Connector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_Vertical | J4 |
| 1 | DCDC_StepDown_LM2596 | desk-footprints:DCDC_StepDown_LM2596 | U1 |
| 1 | ESP32_DevKit_V1_DOIT | desk-footprints:esp32_devkit_v1_doit | U3 |
| 1 | Screw_Terminal_01x02 24V | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J6 |
| 1 | Screw_Terminal_01x02 BTS | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | J5 |
Similar boards
- 2 layers20.5 × 24.8 mm

- 2 layers14.4 × 10.5 mm

OSO SWAB B1-00 Sensor Watch Accelerometer
joeycastillo/Sensor-Watch
A board replacement for the classic Casio F-91W wristwatch
8 parts2.1k - 2 layers7.9 × 39.1 mm

Brain board STM32F407 SD wing it
rusefi/rusefi
rusefi - GPL internal combustion engine control unit
8 parts1.2k - 2 layers59.9 × 25.7 mm

Buffer
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
8 parts1kGPL-3.0 - 2 layers52 × 12.6 mm

USB
shanteacontrols/OpenDeck
A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.
8 parts960Apache-2.0 - 2 layers87.5 × 48.5 mm

7 input macropad
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
8 parts915 - 2 layers36.2 × 63.1 mm

PicoMemcard pico
dangiu/PicoMemcard
Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico
8 parts694GPL-3.0 - 2 layers36 × 10 mm

PCB4-PWR BTN Rev.A
OLIMEX/DIY-LAPTOP
Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop
8 parts578Apache-2.0
Questions
What parts does the Desk use?
8 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 Desk KiCad files?
From the teamon/ikea-trotten-motorized-desk-controller repository on GitHub, at the commit this page was made from: the board is pcb/desk.kicad_pcb and its schematic pcb/desk.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Desk design in my own project?
Its repository states no licence, so its author keeps all rights: ask teamon before reusing the design.