I am using a magnetic Hall sensor on my exercise bike in some old school arcade games!
I love old school arcade games and I was thinking about some games that used pedals as part of the controller like ProCycle.
I used a RaspberryPi 4B and a Hall effects magnetic sensor with some rare earth batteries.
Youtube video of the build: https://www.youtube.com/watch?v=nJPR0CrpYzg
Download RetroPi OS: https://retropie.org.uk/download/
RaspberryPi Pinout for GPIO's: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html
GPIOnext - great software and video on how to assign the buttons/joystics to GPIO's and test: https://github.com/mholgatem/GPIOnext https://www.youtube.com/watch?v=BV_nVu8Be7M
How to fix audio issues in RetroPi/Retroarch/MAME: https://www.youtube.com/watch?v=4V9tQPNwk8M
Info on Hall Effects sensor: http://www.pzsmocn.wiki/index.php/Hall_Sensor_SKU:_PZSHED0001 https://circuitdigest.com/microcontroller-projects/interfacing-hall-sensor-with-raspberry-pi
The sensor I bought on Amazon (please feel free to buy a diff one. I get no $ out of this :) https://www.amazon.com/Compatible-Raspberry-Detection-Magnetism-Non-Contact/dp/B09PNW5ZSN
My exercise bike is a Schwinn 270...I think...doesn't really matter as this coudl be added to any exercise bike or even a street bike that is on a stand.
I had a bunch of old buttons and Joystick laying around. You can pick them up pretty cheap online.