Option #2: Custom Control Panel
(Will refine this post and add detail)
Summary:
- By passing-through at the “JST Control Panel Connector” (PH 2.0mm 8Pin) rather than the RJ45, it’s a bit easier to locate the ESP “within reach”.
- Then you can add all kinds of sensor and interface options (I added screens, LEDs, a buzzer, a PIR, a ToF, and an Endstop for my keyboard drawer). I originally had a lux sensor but broke it and decided to just swap it out with the PIR.
Key features:
- Presence & Sitting detection (multi-pronged) using PIR, ToF, desk height, keyboard drawer position, BLE smart band detection.
- One-press button toggles sit/stand.
- Implemented a “push-up” mode. Desk moves to standing after x minutes of sitting.
- Display time until you need to stand and time in current position
- Other button: Long press to toggle activating push-up mode. Short press extends time until standing if time nearly up.
Cracks me up that even though the control panel it is “much smarter”, it looks pretty vintage;)
Parts list:
- An ESP32 (you’ll need lots of pins): I decided to use a LILYGO® TTGO T7 Mini32 V1.5 for this, but I’m sure other decent ESP32’s which fits in the enclosure would be fine. I wouldn’t go too cheap. You could take a look here.
- 2 x LED’s (recommend two different colours of your choice). I used these ones. They have a built in resistor.
- 2 x push buttons: I got these ones. I think they’re ok. I have occasional reliability issues though. Not sure if it’s related to quality of buttons or something else.
- 1 x RTTL buzzer: I’ve been using these ones.
- 2 x screens: These SSD1306’s have been fine.
- A ToF sensor: These VL53L0X’s have been fine.
- A motion sensor: I bought a few different types of these to try. Can’t recall which one I used. Can find out if needed.
- If you want to throw in a light sensor, I’d go with a BH1750
- Wire, solder, duponts etc…
Here’s a copy of the enclosure (updated 2024-01-25)
https://www.printables.com/model/737413-desky-custom-control-panel-option-2
It’s ok but could benefit from further tweaking. In hindsight I think just using two RJ45 breakouts and passing through like this might be neater. https://www.tindie.com/products/tjhorner/wifi-standing-desk-controller/
Config:
Hmmm… too big to upload.
I’ve just dumped a snapshot here.



