7 ms·
I Hacked My Standing Desk with a Raspberry Pi
- northwest65 5y agoCame for the massive overkill, stayed for the abysmal soldering!
- sys_64738 5y agoYou're not wrong.
- _carbyau_ 5y agoA short while ago I tried to replace a 5mm x 5mm surface mounted push switch. It didn't go well. Now I am learning KiCAD...
- SavantIdiot 5y agoIt gets worse: check out the comment above about adding chron and NTP with a Wi-Fi dongle... Doesn't anyone know how to program an MCU timer anymore? I mean, prescalers and clock trees really aren't that scary...
- soneil 5y agoI've been using a Pi for some similar timers, and given the price-point, there's a lot to be said for them. The most relevant example here would be one that reads my calendar (ical over http) and only fires on days I'm working. "Doesn't fire when I'm in a meeting" wouldn't be a huge stretch either. Or at home, "doesn't fire if the lights are turned off" would stop the desk bouncing around when I'm not working. I'm not sure NTP over wifi is a big deal either. The problem space here isn't millisecond accuracy, it's regaining time after a power-off, as the pi lacks an RTC.
- SavantIdiot 5y agoYeah I get it: it's a fun hack to learn about GPIOs and REST APIs. But it's a solution to a lack of self-discipline, which I find offputting.
- dkong 5y agoGuilty as charged... but hey, it works!
- n4bz0r 5y agoGood for the author, but the article leaves "MOM GET THE CAMERA!" impression. >Then I just plugged the Pi into a USB power brick, and… it worked! Might as well attach a diesel-fueled generator and a pentium 4 to the back of the desk. The project seems like a perfect opportunity to play around with some arduino-like board. It could probably be embedded inside the control panel and powered from the desk itself.
- BrissyCoder 5y ago> Good for the author, but the article leaves "MOM GET THE CAMERA!" impression. I agree but still think there's value in having this kind of content abound on the internet as it gives beginners with zero experiance a good starting point. > Might as well attach a diesel-fueled generator and a pentium 4 to the back of the desk. Maybe but it's 5 bucks so who really cares.
- batuhanicoz 5y agoI have a similar desk and I was going on a similar path before I noticed the company that made the desk’s motor has a BLE adaptor for 15$ which solved my problem completely. My desk was made by LINAK, who also provides some IKEA standing desks too. Here’s the adaptor if anyone is interested: https://www.linak.com/products/accessories/bluetooth-adapter-desk/ https://www.linak.com/products/accessories/bluetooth-adapter... I use a script that’s triggered with a keyboard shortcut which I find super cool.
- nirav72 5y agoThat BLE adapter plug looks very similar to the port where the controller plugs into for my Ikea bekant standing desk. I'm curious if it works with the bekant. Since same company makes parts for Ikea. thanks for the link. Do you know where I can purchase that adapter? Preferably in the U.S or have it shipped to the U.S?
- splitbrain 5y agoThat would be amazing.
- batuhanicoz 5y agoSome IKEA desks are Linak but I'm not sure if Bekant is. I got it by reaching out to a local distributor of Linak products in my country as I couldn't find any online website selling it at the time. You might try that, they might even know if it's compatible (or at least would know how to check). Oh, I would suggest getting the new controller instead of the dongle since that one supports both BLE and it has physical buttons which is always great.
- dkong 5y agoWell that's nifty.
- samatman 5y agoMy first instinct was also to wince when the Pi Zero came out, since this is a very simple application, perfect for, say, Sparkfun's Arduino Pro Mini. Which is ten bucks. A Raspi Zero is five bucks. Sure, there's... something elegant about using less computer for more money but... what? I'm sure someone has a link to an Alibaba ripoff for like fifteen cents (might even be why I'm saying this) but like: five bucks and you already know Linux? Really, why not?
- ahepp 5y agoI think the real value is the Pi Zero W. Stick them in appliances wall over the house. SSH into them if you like. Send them over the air updates. Program them with the same Linux tools you know and love. Also, as far as I know there aren't a ton of Pi clones, since it's not fully open hardware. I believe the Broadcom chips in there are pretty closed.
- btgeekboy 5y agoHere's a few of my reasons: * Patching/attack surface. I don't want to maintain a full Linux OS, and I expect (hope) that the network stack on something like an Arduino or ESP is both secure by obscurity (I know...) and by lack of functionality. * Some things are much easier on a simpler chip as well, like bit-banging access to a NeoPixel, due to the lack of a multitasking OS. * Bootup times on simpler chips are mostly imperceptible. They power up and begin running your code. (Arduino includes a short pause you can remove, or you can bypass the Arduino boot loader entirely and program the AVR directly.) Even the slimmest of Linux distros can't beat it.
- detaro 5y agoRealistically the attack surface of a Linux running almost nothing, in a local network, is also very small.
- pfundstein 5y agoThe SD card is another one, the Pi will be logging and constanly reading and writing to the SD card until it eventually fails.
- deleted 5y ago[deleted]
- tyingq 5y agoLess worried about the Pi, and more worried about a big heavy thing moving about on its own on random time intervals. Do these desks have some sort of torque-exceeded safety shut off that keeps from squishing your cat or similar?
- maroonblazer 5y agoThe desk, at its lowest sitting position, still has plenty of clearance for nearly all household pets or unsupervised infants. My thought was "Save yourself some time/effort and do what I do: set a timer to remind you to stand."
- tyingq 5y agoLooking at the picture, it's in close proximity to other horizontal surfaces at similar levels.
- roland35 5y agoGenerally no, the desk is a serious pinch hazard since it is so heavy! It would be hard to detect a problem going down since the leg could just lift off the ground.
- deelowe 5y agoMine will stop if something gets in the way or bumps it. The ones I had at work before COVID were the same and made by a different company. As another user said though, they can be a real pinch hazard. Had one cut a cable once.
- j1elo 5y agoFor me the major inconvenience is having to add yet one more power adaptor to typically overcrowded socket outlets. I wish we had a common system of power adaptors that allowed to get some volts from already existing plugs! I reckon this wouldn't always work, but it should be possible to get the power required from a Pi Zero from practically any already existing supply...
- jjeaff 5y agoI have the same complaint. My standing desk already has about 6 different power bricks and a few more plugs all of which have to be carefully wrapped and stuffed into a cable keeper. The solution i am working on is that i am repurposing a PC power supply and then bought several high amp buck converters. I am wiring the 12v and 5v rails to the different buck converters to get the required 19v for my monitors, 24v for speakers, etc. All of this is a single unit much smaller and I can cut the wires to length to reach each device exactly.
- yurishimo 5y agoA few years ago, I saw these[0][1] on a daily deals site and I picked up a couple. There are a number of them floating around the internet and I'm sure some other manufacturer makes something similar. They work really well for a small(?) constant load. I use mine for a Chromecast because my TV doesn't have always on USB ports. My only complaint is that it's a little large, so if you have a tight configuration on a powerstrip, it might not fit with other bulky adapters in the adjacent slots. 0: https://www.walmart.com/ip/Twist-Charge-USB-Charger/33490454 https://www.walmart.com/ip/Twist-Charge-USB-Charger/33490454 (Walmart link because I'm sure it will stay around after they're sold out). 1: The meh.com listing with more information: https://meh.com/forum/topics/2-for-tuesday-bracketron-twist-and-charge-usb-charger https://meh.com/forum/topics/2-for-tuesday-bracketron-twist-...
- j1elo 5y agoThat's an interesting invention! I'll check if there are european versions, thanks
- deleted 5y ago
- lloydatkinson 5y agoWas the soldering done blind folded? Even that wouldn't explain the fact the strands were not twisted or tinned or anything...
- roland35 5y agoA few years ago I thought it would be funny to reverse engineer this same desk and add a small wifi board inside the control box. There is even a digital signal which controls the number display My plan was to slowly move the desk up while keeping the display the same, or something else nefarious like that.
- deleted 5y ago[deleted]
- tailspin2019 5y agoThis is a cool project. Edit: removed my stupid comment about leaving stuff exposed to the internet - that was a DIFFERENT article I read about a similar project after this one! [0] My bad… it’s late here… TLDR; this article inspired me to go down a rabbit hole… [O] https://medium.com/google-developer-experts/hey-google-set-my-desk-to-standing-mode-b21dcc40d4b5 https://medium.com/google-developer-experts/hey-google-set-m...
- throwthere 5y agoNothing’s exposed to the Internet here. The pi zero is part of a closed loop.
- tailspin2019 5y agoOops - see my edit!
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- sokoloff 5y agoGood on the guy for getting his goal over the line! Not the most elegant approach perhaps, but it works and going from nothing to working is worth a lot. I'm with the group that thinks a Wemos D1 or other ESP8266 micro is probably a better match for the application (if you want to keep open a Wifi control option; if not, literally any microcontroller board would be fine), but if you know Linux and python and not C or have never touched a microcontroller before, not a lot of harm in going for the PiZero. What I like about microcontrollers is that they just work for years on end. I've got one at home that's been running for about 10 years now, untouched (which makes sense, since most of our gadgets work that way as well).
- cartoonworld 5y agoWell, instead of a teensy, the esp32 is sure a good bet. But since you've got the Pi, the next logical step is to get an rtc upgrade and run chrony/openntpd and a backup dns cache. Why not? I mean its right there on the desk. Could add a quick binary clock for practicality. Since you might now be dependent on the thing, its easy to add snmp for monitoring, hack in some rrdtool or whatever to graph your sit/stand time, maybe a serial connection to monitor your UPS power situation, and you get a free Pi-hole by now! Probably a little overkill to run wireguard on the thing, though. But honestly, why stop there? Have it control some functional LED lighting[0] (Zack uses an ESP32 instead of the pi--must not care about clock drift. The biometric sensor is also a little expensive and uncomfortable looking.) with suntime[1] for a perfectly and coherently illuminated environment. For the extremely paranoid, yet lazy and obsessive (who does that not describe?) you can grab an extra wifi dongle with raw monitoring mode to have some fun with trackerjacker[2]. Use an innovative static base station running map mode, so when an influx of unknown devices with increasing strength and/or known vehicle SSIDs or PAN beacons are detected, just go full Red Alert (using those very practical leds) and score a quick win by raising the desk and commanding your IoT lighting for a deft escape. Maybe you can use this for the girlfriend too, since by now you've already got rrdtool or cacti or whatever graphing the desk height and trackerjacker output from her iPhone and Jeep Latitude hotspot, you could also use that capability to gain insight as to when it should reach out and trigger your coffee maker's ESP32, certainly while raising the desk. [0] - https://www.youtube.com/watch?v=g6n8XLmZ__I https://www.youtube.com/watch?v=g6n8XLmZ__I [1] - https://github.com/SatAgro/suntime https://github.com/SatAgro/suntime [2] - https://github.com/calebmadrigal/trackerjacker https://github.com/calebmadrigal/trackerjacker https://reconshell.com/trackerjacker-maps-and-tracks-wifi-networks-and-devices/ https://reconshell.com/trackerjacker-maps-and-tracks-wifi-ne...
- easygenes 5y agoNice (very quick) hack. I was hoping to find something about how he was reading the stored height information from the desk so that he could either automatically or over SSH set the desk to specific heights though. His hack just moves the desk up for a second approximately every 50 minutes. So I guess he just lets it go to max height when he's away, manually sets the height to where he needs it to stand, and just goes back to sitting whenever he feels like it.
- somethingAlex 5y agoThose 1, 2, 3... buttons on the front are presets they already configured. It's triggering their "standing up preset" button once every 45 - 60 mins and then they press the "sitting preset" whenever they want.
- dkong 5y ago(Author here) This is correct. The control box remembers my ideal standing height and goes directly to it on one button press.
- pdar4123 5y agoEpic lol - it goes up. It goes down. “The hardest part of my life was pushing the single button when a random timer went off- fortunately I have a lot of free time” rofl
- kwertyoowiyop 5y agoWow, Medium.com pages load slowly these days.
- throwawayswede 5y agoStop writing on Medium.
- ToFab123 5y agoThis reminds me of many years ago when the entire office got motorized sit-stand desks. We had frequent competitions ..3.2.1.<Who can raise their desk quickest>. Utterly pointless as all tables raised with the exact same speed* but very funny. One day the repair guy came to the office and I explained the situation to him and he somehow managed to tune the electric motor in my desk, so it would raise my desk a lot quicker than the others. The look on the others face when I unleased my new super power. priceless :) I wonder if the pi would have beaten me? *Desks with the same number of monitors (weight) would raise with the same speed.
- dkong 5y ago"Wha- where is all of this traffic coming from?" *checks stats "Oh..." Anyway, I'm the guy in the article. AMA.
- bobsmooth 5y agoHave you done any productivity hacking in the new office?