DIY Racing Simulator
![1630827625782919607926231002795.jpg](/proxy/?url=https://content.instructables.com/F8U/56XB/KT5SPKS2/F8U56XBKT5SPKS2.jpg&filename=1630827625782919607926231002795.jpg)
![16308277446756961076124361984525.jpg](/proxy/?url=https://content.instructables.com/FSE/LZER/KT5SPKS6/FSELZERKT5SPKS6.jpg&filename=16308277446756961076124361984525.jpg)
The stuff I used is quite cheap and the process of puttting everything is also not that hard.
Supplies
3x 10k Potentiometers
2x Plumber Blocks
Wires
Breadboard
Metal/Acrylic for the construction
Mechanical Build
![20210903_171824.jpg](/proxy/?url=https://content.instructables.com/FX6/3X9R/KT5SPKVV/FX63X9RKT5SPKVV.jpg&filename=20210903_171824.jpg)
![20210903_171827.jpg](/proxy/?url=https://content.instructables.com/FCJ/LMCD/KT5SPKW2/FCJLMCDKT5SPKW2.jpg&filename=20210903_171827.jpg)
![20210903_171308.jpg](/proxy/?url=https://content.instructables.com/F99/TJT9/KT5SPKW8/F99TJT9KT5SPKW8.jpg&filename=20210903_171308.jpg)
![20210902_175620.jpg](/proxy/?url=https://content.instructables.com/FVM/XNHG/KT5SPKWJ/FVMXNHGKT5SPKWJ.jpg&filename=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](/proxy/?url=https://content.instructables.com/FXW/BLIW/KT5SPLET/FXWBLIWKT5SPLET.jpg&filename=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