mfa / rowing-count

Count rows on a rowing machine using a raspberry pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

count rowing of my rowing machine

about

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/

sensor

requirements

python packages

  • smbus
  • click
  • scipy / numpy
  • gpiozero

raspios (bookworm)

activate i2c in raspi-config

sudo apt install i2c-tools virtualenv
virtualenv venv
. venv/bin/activate
pip install click scipy gpiozero smbus

evaluate

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.

About

Count rows on a rowing machine using a raspberry pi


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%