Skip to content

studiowebux/runaxis-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Treadmill Gaming Controller (Serial Port and/or Keyboard)

Converts treadmill speed into gaming keyboard input with configurable movement key and automatic shift activation.

Hardware Requirements

  • 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

Wiring

Hall Sensor → Pin 2 (+ GND, VCC)
Button      → Pin 3 + GND (optional)
LED         → Pin 4 + resistor (optional)

Configuration

Edit main.ino:

const char MOVEMENT_KEY = 'w';
const float SHIFT_SPEED_THRESHOLD_KMH = 5.0;
const bool ENABLE_TOGGLE_BUTTON = false;

Serial Output

Sends RPM:value,KMH:value format for Unity parsing.

Usage

  • 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)

About

Open Source Arduino Code for the RunAxis Project

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages