Racing Simulator
As one of my school projects I made a racing simulator using a gokart and a raspberry PI5.
Supplies
Sensors
- RFID Reader
- Potentiometer
- Rotary encoder
- Pressure Sensor
Actuators
- 2x Servo Motor
Extra
- LCD
- Monitor
- Raspberry PI5
- MCP3008
- PCF8575
- Resistors
Finding a Game
One of my goals with this project was to keep everything concise and run everything on my PI5 without any external computing, this meant the game needed to be extremely lightweight. I found out about slowroads.io right before starting this project and it would be the perfect game for this project, it’s a game that runs inside a browser and can easily be controlled using keyboard input.
Building the Gokart
Now it's time to start thinking about how my final product will look. I found a cheap second hand gokart for €30 and renovated it by spraypainting it and replacing some old worn parts with new 3d printed parts, this resulted in what looked like a new gokart that would be perfect for my project.
Implementing Pedal Speed Measurement With a Rotary Encoder
By attaching my rotary encoder to the gokart frame and connecting it with a bike chain, I can measure both when someone is pedaling and their pedaling speed.
Steering Wheel
In order for the steering wheel to work I 3d printed a completely new one that would house a potetiometer on a fixed axis, this works surprisingly well.
Detect Breaking
The last thing I needed to do was detect when the break handle was pulled, I did this by simply attaching a pressure sensor to the handle.
Electronics
Website
I made a simple website to track the usage of the device.