Racing Simulator

by driesxyz in Circuits > Raspberry Pi

99 Views, 2 Favorites, 0 Comments

Racing Simulator

image 3.png

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

Screenshot from 2024-06-16 15-43-43.png

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

PXL_20240428_105049713.jpg
PXL_20240430_114900207.jpg

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

PXL_20240609_111531747.jpg

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

PXL_20240531_151633280.jpg
PXL_20240531_151659648.jpg

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

PXL_20240616_222040301.jpg

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

Screenshot from 2024-06-16 15-59-52.png

Website

Screenshot from 2024-06-16 16-01-19.png
Screenshot from 2024-06-16 16-02-50.png

I made a simple website to track the usage of the device.