I had to rehabilitate after disc surgery, but it was useless when the belly fat is intact. My doctor friend said that cycling is good for diet. So I decided to ride a bicycle; however, I thought it was not yet appropriate and I bought an indoor bicycle as an alternative.
Indoor cycling is good for health but it is not fun! As a result, I decided to make it fun! My project uses an Arduino Leonardo and Hall sensor as the main equipment. Use the Hall sensor to detect the rotation of the bicycle, along with the Unity3D racing game starter kit.
Super diet racing bike demo video
Playing racing game with Hall sensor bicycleHall sensorNeodymium magnet and hall sensor Arduino board and controllers
EXPANDED TECHNICAL DETAILS
Exer-Gaming Integration Architecture
Super Diet transformed a physical stationary exercise bike into a high-performance controller for PC racing games like Unity-based sims.
Pedal-to-Throttle Mapping: Captures the RPM of the physical pedals using a hall-effect sensor or magnetic reed switch. The Arduino translates the pedaling speed into a "Throtle" signal, forcing the player to exert effort to move in the game.
UART Serial Bridge to PC: The Arduino sends real-time speed data over serial. On the PC side, a custom script translates these serial values into virtual keyboard/controller inputs.
Creative Strategy
Inertia Tracking Algorithm: The firmware includes a "Momentum" calculation; if the player stops pedaling, the virtual car slowly coast to a stop, mimicking the physical feeling of a heavy flywheel.
ข้อมูล Frontmatter ดั้งเดิม
title: "Super Diet Racing Game Bike"
description: "This is a bicycle racing game machine using Hall sensor and Unity3D racing game kit. It's very useful to use on diet."
author: "luxlike"
category: "Wearables, Health & Fitness"
tags:
- "entertainment system"
- "health"
- "games"
views: 7232
likes: 7
price: 299
difficulty: "Intermediate"
components:
- "1x Neodymium"
- "1x HM-10 Bluetooth module"
- "1x Solder Wire, Lead Free"
- "1x Hall sensor"
- "1x Arduino Leonardo"
- "1x Wire, Wrapping Wire"
- "1x Solderless Breadboard Half Size"
- "1x Soldering iron (generic)"
- "4x Switch Actuator, Head for spring return push-button"
- "4x Resistor 10k ohm"
- "1x Development Kit Accessory, Jumper Wire Kit"
tools: []
apps:
- "1x Arduino IDE"
- "1x Unity"
downloadableFiles:
- "https://github.com/luxlike/bikeracingboard"
documentationLinks: []
passwordHash: "4fcb9026c4c19212af2ebd4a15023ffaf40202459baa799495c57adfb2987af3"
encryptedPayload: "U2FsdGVkX1/WbioVsEetetNfvwLOnou0HulNje8E1CsnGPs4Te9COvCgEx5D+F8AxEjGmzWH5KIHyrqLOsF61TTPVwGCV6PW/pH9FMfjFN8="
seoDescription: "Bicycle racing game machine using Hall sensor and Unity3D racing game kit. Ideal for your diet."
videoLinks:
- "https://www.youtube.com/embed/LGoRJMZMrt0"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/super-diet-racing-game-bike-9a7c3e_cover.jpg"
lang: "en"