Skip to the content
2 layersDesk, the printed circuit board in 3D

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

IKEA 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:

CommandDescription
/motor/up [speed]Move desk up (speed 0-100)
/motor/down [speed]Move desk down (speed 0-100)
/motor/stopStop motor
/goto [height_mm]Move to target height
/get/heightQuery current height

Resources

Parts

8
QtyValueFootprintReferences
1470uF 35VCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC1
1Conn_01x04_Pin LASERConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1Conn_01x05_Pin BTNConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1Conn_02x04_Odd_Even BTSConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ4
1DCDC_StepDown_LM2596desk-footprints:DCDC_StepDown_LM2596U1
1ESP32_DevKit_V1_DOITdesk-footprints:esp32_devkit_v1_doitU3
1Screw_Terminal_01x02 24VTerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mmJ6
1Screw_Terminal_01x02 BTSTerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mmJ5

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

    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 mmUSB, the printed circuit board in 3D

    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 mm7 input macropad, the printed circuit board in 3D

    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 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    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.