Introduction: Car Simulator Arduino Pedals

Picture of Car Simulator Arduino Pedals

I have a on going project to build a car-simulator and one goal is to get the feeling like sitting in a real racing-car. With this instruction I explain how I have build my pedals to my car simulator. Of course you can buy stuff like this but I want to build it cheap. My pedals have gas, brake and clutch and use a Arduino (Windows native drivers) to connect to usb port.

Hope I can inspire you with my building and I meet you on a trackday in Project Cars!

Step 1: Parts You Will Need to Buy or Get From Scrapyard

1. Arduino Pro Micro

You can use any of board based on ATmega32U4

2. Usb cable between Arduino board and computer.

3. 3 piece Slide Potentiometer 5kohm.

4. 3 cheap styling pedals for cars.

5. Spring

6. Some metall to build pedal construction in

7. Nuts, bolts and cables to potentiometer

8. Project Cars or another car simulator you like.

Step 2: Welding Potentiometer and Arduino Together.

Picture of Welding Potentiometer and Arduino Together.

Connect Gas to A0, Brake to A1 and Clutch to A2.

Connect each potentiometer to +5v and GND

See draft.

Step 3: Programming Arduino and Test

For this you need to download Arduino joystick libary from github and my Arduino project.

Install libary and open jenswsArduinoPedal project.

Download it to your Arduino board and connect to your gaming computer.

Go to Controlpanel/Hardware and sound/Devices and printer.

If everything is correct you now see your arduino board as a joypad.

Right click on your Arduino board and choose Game control Settings

After you choose your Arduino board you can go to tab test and test your potentiometer.

Step 4: Building Pedal Construction

Picture of Building Pedal Construction

I build my pedal construction in steel and welding it together. One tricky part was to find spring with correct feeling. You have to test what you like. I also fond that 100mm from bottom to center of pedal was a good length for my foot.

I show some pics how i have done to give you idea how you can build yours.

You can also download stl 3d-file from my homepage.

Step 5: Install Potentiometer on to Pedal Construction.

Picture of Install Potentiometer on to Pedal Construction.

I have choose to mount my potentiometer in back of pedal console.

When I press on a pedal potentiometer go from 0 to 5kohm.

It may be a better solution to mount direct on pedal?

Step 6: Settings in Project Cars

Picture of Settings in Project Cars

Start Project Cars and go to Options/Controls/Edit assignments

Choose Throttle and press on gas pedal.

Do the same with Brake and Clutch

Step 7: Test Run in Project Cars

If you have done everything correct you now have som nice pedals to you car simulator.

Probably I gona build version 2,0 of my pedals.

I'm not 100% satisfied with the feeling in my pedals.

Maybe i rebuild brake to hydraulic and try different springs on gas and clutch.


Suraj Bhawal (author)2016-11-25

That's an amazing looking pedals here... I also made the complete simulator set a few years ago. I used PIC18F2550 as the brain of the system. worked great for a while until one day my nephew decided to break it.

have you given any tutorial for this complete simulator?

No I haven't. Still working on some part.

no... But it's on my to-do list to re-do this project sometime in the future... But if you want the firmware for the pic, I have that and I can give it to you if you want.

jensws (author)Suraj Bhawal2016-11-26

Nice work!

FernandoS131 made it! (author)2017-04-06

C:\Users\Usuario\Documents\Arduino\cenfo\cenfo.ino: In function 'void setup()':

cenfo:35: error: 'Joystick' was not declared in this scope



C:\Users\Usuario\Documents\Arduino\cenfo\cenfo.ino: In function 'void loop()':

cenfo:49: error: 'Joystick' was not declared in this scope



exit status 1

'Joystick' was not declared in this scope

They help me solve it

jensws (author)FernandoS1312017-04-06

I have use version 1.0 of /MHernoimus joystick libary. Try to download version 1.0 not 2.0. Hoppfully that is the problem.

SamuelO59 (author)2016-12-12

Hi I have an arduino uno R3 which has the ATMega16U2 instead of what you suggest. Will I still be able to do this?

jensws (author)SamuelO592016-12-15

I not sure I'm using a library that only work with 32u4.

ViriatoF (author)2016-11-23

I want to make a complete simulator, is it possible to do it with arduino?

jensws (author)ViriatoF2016-11-26

I think it is possible but the hard part is force feedback steering wheel.

I have a Mitsubishi servo from a industrial robot I plan to use. But I dont now how to solve the problem with force feedback yet.

Look at this link

kooth (author)2016-11-21

Very cool! Thanks for posting!

Droxz (author)2016-11-19

Wow nice project.
Keep up the good work!

jensws (author)2016-11-19

Yes you can use this to a arcade racking game. I plan to build a steering wheel with a servomotor.

Jafhar12 (author)2016-11-19


Jafhar12 (author)2016-11-19

Pretty cool I can use this to build a arcade racking cabinet

DIY Hacks and How Tos (author)2016-11-19

Cool. My son would love to have something like this for his racing games.

About This Instructable




More by jensws:Car Simulator Arduino Pedals
Add instructable to: