Use raspberry pi zero W applied to a Hanseatic Rowing Machine using cable ties.
Blogpost: https://madflex.de/posts/count-rows-on-an-old-rowing-machine/
- currently supported: MMA7455
- https://www.nxp.com/docs/en/data-sheet/MMA7455L.pdf
- smbus
- click
- scipy / numpy
- gpiozero
activate i2c in raspi-config
sudo apt install i2c-tools virtualenv
virtualenv venv
. venv/bin/activate
pip install click scipy gpiozero smbus
stopping sensor and evaluate the last csv file
add this to .bashrc:
alias stp="sudo systemctl stop rowcount; (cd ~; /home/pi/venv/bin/python evaluate.py)"
and then after the workout run stp
to get the result.