The perfect ergonomic desk solution for your prolonged home office during Covid.
Check out my article for a detailed description of the project https://shiftux.org/making_projects/standing_desk.html
I have an electric desk that I can move from a sitting to a standing position. However I have to keep pressing a button for around 15 seconds, and then never really know exactly where to stop, since there is no top or bottom reference, except my feeling. Needless to say I decided to automate this.
I implemented a state machine using 5 states. Where "Moving Up/Down" is used when the buttons are manually pressed (move the table a bit) and "Shift Up/Down" is used to move the table to either the top or bottom position.
The wiring diagram is pretty straight forward using pull down resistors where required to prevent the Arduino from getting floating / noisy input.
- 1x electric Table (and its buttons)
- 4x Relais
- 2x Hall sensor
- 1x Arduino Nano
- 4x Magnets
- 1x Switch
- 1x Micro switch as End Switch
- Loads of DuPont Connectors
- 5 10kO Resistors (pull down)
- Cable (small diameter for all the electronics and a bit larger for the relais and motor power)
- Couple of small screws
- Some of 3D printed parts (in the CAD folder)
- Micro USB Cable + Power adapter for the Arduino