Skip to content

BowenBZ/VR_Fitness_Bike_Hardware_Controller

Repository files navigation

VR Fitness Bike - Hardware Monitor

This repositoriy is used for the monitor part of project Cyclotron. These scripts run in the Arduino and Raspberry Pi. They collect data from the sensor and send the data through Internet to the VR display part. The VR display part can be found here.

Description

  • main.py
    This script used other scripts to get speed of the bike(in KPH) and get the direction of the handle of the bike, and then transfer them to the VR client via UDP.
  • udp_manage.py
    This script gets the udp send and receive action between Raspberry Pi and VR client.
  • speed_detect.py
    This script collects the speed data from speed sensor with Raspberry Pi.
  • serial_manage.py
    This script gets the data from serial port which is sent from Arduino.
  • gyro_manage.py This script gets the direction data from gyro sensor with Raspberry Pi.
  • Arduion/speed_detect.ino This script gets the speed data from speed sensor with Arduino and then sent it via serial port.
  • Arduino/test_varistor.ino This script reads the data of the varistor with Arduino and then sent it via serial port.