-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIkeaBekantIoT
15 lines (9 loc) · 2.37 KB
/
IkeaBekantIoT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Hi,
During the pandemic I've bought myself a gift: Ikea Bekant. Purchase was made to make the 'working from home' experience bearable. Aaaand here we are - 2,5 years working like that. Why Bekant? No idea, probably it was available at that time and my wif... I like white colour.
The only downside was the control panel: it was required to press one of two buttons, either 'up' or 'down' for the whole time, during changing height. No fixed position for standing or sitting - that's a shame. Or a perfect opportunity for a DIY project.
First thought, after a quick look at the desk frame, was to remove the control panel, and instead, put a microcontroller to communicate directly with motors. But as I was lacking an oscilloscope and any tools (my parents basement has it all) I needed a simpler solution. Emulate the buttons! The pilot inside looks like this, so there were no problems with changing buttons to GPIO ports, with 'safety pin' connected directly to GND.
As my Raspberry Pi zero was an overkill, not available and cold dead after another project, I've picked the old (7 years old to be precise) esp32 devkit. I've planned to do my master’s thesis using it, but... The connection is dead simple - three cables from 'pilot', esp32, micro usb cable, no fancy LEDs, no custom nor mechanical switches for operation.
At the instigation of my friend Piotr, I've used the Tasmota software, to integrate it with my not-so-smart home setup. Docker based Home Assistant, deployed on Orange Pi Zero 2 (that's some serious power board), paired with MQTT Broker Mosquitto is the brain of the system. Automation - if the 'switch up' is on, set the pin high for N, where N is the empirically measured desk height for your height... in seconds, and then switch off the 'switch up'. Same with the low position. And thanks to Home Automation it was possible to set up the Siri integration.
With all of that engineering, time, and around 30 USD, I can irritate my wife by saying 'Hey Siri, Office down/up' every time when changing position instead of holding the button for 13 seconds.
SAFETY
As the security engineer I was aware of all potential security issues - and I still am now. But what’s far more concerning to me is safety - for now there is no safety system to limit the crashing power of the desk, going down on something, or someone under the desk. And, in case of the Rise of the Machines, I am doomed.