Converts treadmill speed into gaming keyboard input with configurable movement key and automatic shift activation.
- Arduino Leonardo/Micro/Pro Micro (USB HID support required)
- Hall effect sensor (A3144, SS49E, or similar)
- Magnet (attached to roller (Preferred) or belt)
- Optional: Toggle button + LED
Hall Sensor → Pin 2 (+ GND, VCC)
Button → Pin 3 + GND (optional)
LED → Pin 4 + resistor (optional)
Edit main.ino:
const char MOVEMENT_KEY = 'w';
const float SHIFT_SPEED_THRESHOLD_KMH = 5.0;
const bool ENABLE_TOGGLE_BUTTON = false;Sends RPM:value,KMH:value format for Unity parsing.
- Walk/run → presses movement key
- Speed ≥ 5 km/h → adds shift key
- Stop → releases all keys
- Button (optional) → toggle gaming mode on/off (2 flashes = on, 1 = off)