DIY Racing Simulator

by aditya_shetty in Circuits > Electronics

766 Views, 0 Favorites, 0 Comments

DIY Racing Simulator

1630827625782919607926231002795.jpg
16308277446756961076124361984525.jpg
Generally buying simulators is expensive, so I decided to make one on my own.
The stuff I used is quite cheap and the process of puttting everything is also not that hard.

Supplies

1x Arduino Leonardo
3x 10k Potentiometers
2x Plumber Blocks
Wires
Breadboard
Metal/Acrylic for the construction

Mechanical Build

20210903_171824.jpg
20210903_171827.jpg
20210903_171308.jpg
20210902_175620.jpg

For this build I've decided to use metal as it's really cheap. I got the parts laser cut and welded them together. The DXF files are attached below.

https://drive.google.com/drive/folders/1_li4rU_nfqtDCCLyx93Tlj-qDpfXXWuM?usp=sharing

Electronics

16308283358528223838771995904691.jpg

We're gonna use an Arduino Leonardo since it can show up as an HID device on our computers.
3 10k potentiometers, one for the steering wheel(x axis), one for the throttle and one for the brake(z axis).
The connection is simple but make sure u plug everything into the correct pins.

Coding

The code is very simple and all we do is take input from the potentiometer and feed it to the joystick commands which then tell my computer what to do. Ive used the Arduino IDE to compile and upload the code.

The code:

https://drive.google.com/file/d/1TZRgRH6ywqGA1qPh08U_4Hs-g14PuR2x/view?usp=sharing

Calibration

Open up device settings and look for ur Arduino, u should be seeing a game controllers logo, right click and open options, there should be an option to calibrate the controls, follow the steps and you're pretty much done. :)