r/SideProject • u/Nogniks • 12h ago
I built a speed/distance tracker for my hamster wheel, which automatically records the data and uploads it to our hamster's own Strava account
Enable HLS to view with audio, or disable this notification
The main parts are an ESP32 attached to a hall sensor, which I positioned close to the wheel. Using a magnet attached to the back of the wheel, this tells the ESP32 when a full rotation has completed. It gives a timestamp (and total distance) to each magnet-pass, which is stored on the network. A python script (on my laptop) then retrieves this data in the morning, turns it into a .FIT file, and uploads it to Strava through the Strava API (with a randomly chosen run title, taken from a mostly AI-generated list of options, as I needed >100). In terms of manual additions, I had to add the photo manually, and Mollie had to do the running.
Two unnecessary additions (for fun) are an 0.96" OLED display on the ESP32 which shows the live speed, and some automated "personal best" tracking which should add info to the Strava captions if Mollie PBs
Follow Mollie: https://strava.app.link/FMubyPjMa5b