Arduino code for a DIY Exercise Bike Resistance meter using Adafruit Huzzah with smoothing algorithm
Youtube video of setup https://www.youtube.com/watch?v=7WFtoUN-vJk&list=TLPQMDYwMjIwMjHgHDlHBkMVaQ&index=1
My Wife really wanted one of those expensive full featured spin bikes but didn't want to fork out $2K so she found a blog (https://www.mypursestrings.com/peloton-app/) that hacked together the same bike for a quarter of the cost. The only issue was that it didn't account for monitoring resistance so I decided to build her a resistance monitor myself using Arduino on some Adafruit Huzzah boards I had lying around the house and a cheap Force Sensitive Resistor (FSR) off amazon.
Update: added a link to a 100 lbs (45kg) FSR because a larger pressure range was needed. Have not tested the new higher pressure FSR myself.
Links:
https://github.com/Grenghis-Khan/Exercise_Bike_Resistance_Smoothing
https://learn.adafruit.com/adafruit-oled-featherwing/
https://learn.adafruit.com/force-sensitive-resistor-fsr/using-an-fsr
https://learn.adafruit.com/adafruit-feather-huzzah-esp8266/overview
Higher pressure FSR https://www.robotshop.com/en/capacitive-force-sensor-15-mm-450-n-100-lbs.html (100lbs/45kg FSR)
Original build FSR https://www.amazon.com/SENSING-RESISTOR-SQUARE-1oz-22LBS-SPACING/dp/B00B887DBC/ref=sr_1_1?s=industrial&ie=UTF8&qid=1518312597&sr=1-1&keywords=force+sensitive+resistor