Introduction: DIY Racing Simulator

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

Step 1: Mechanical Build

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

Step 2: Electronics

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.

Step 3: 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

Step 4: 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. :)