Project for controlling your treadmill with an Arduino
It consists of 3 parts :
- some Arduino code to control the treadmill
- some Python code to communicate with the Arduino and interact with the user
- a wrapper around socat to send commands through the CLI
- Timer module for the Arduino code, can be downloaded at http://playground.arduino.cc/Code/Timer
- matplotlib, can be intalled with : pip install matplotlib
- socat, on debian derivatives, it can be installed with : apt-get install socat
The other details are on the HackaDay project page : https://hackaday.io/project/25881-keyboard-controlled-treadmilldesk
For the moment, you need to edit treadmill-server.py if you want to customize the default UDP port or your weight.
Start the server with the following command line : treadmill-server.py [serial_device [udp_port]] You can then control the treadmill by calling treadmill-cmd with a parameter: s : start/stop the treadmill p : increase speed m : decrease speed
You can then open localhost:1044 in your favorite browser to check your statistics.