Not satisfied with sitting all day, product strategist, self-proclaimed hacker, and Medium contributor David Kong invested in an electric standing desk, but still found himself sitting a lot and having pain around his waist. His solution?A table rises to a standing position according to a schedule, regardless of whether he likes to stand or not, controlled by one person Raspberry Pi Zero.
Kong took apart the desk’s control panel, and he was pleased to find a row of exposed pins that, when properly connected, could simulate the pressing of a button that triggers the desk motor. How to best connect them?To a Raspberry Pi Zero WOf course it is the GPIO pin.
Some buttons of the desk are programmable, one is set to the sitting height and the other is set to the standing height. They are connected to the Pi’s pins via a relay, where they are triggered by a Python script written by Kong that connects to the Pi via USB via SSH. One of the GPIO pins is controlled at random intervals between 45 and 60 minutes, triggering the motor to switch between its two programmed states, forcing Kong to sit down and stand up when he least expects it.
As Kong admits, the welding is a bit messy, and any heat shrinkage can’t solve it. The way the entire component is attached to the bottom of the table gives it a fascinating, homemade beauty you might call it, but he reports that it has worked flawlessly for several months and improved his back pain, which seems to be a win-win situation for us .