HOMEMADE RACING SIM (ACCELERATOR | BRAKE | STEERING)

by HertzandMadden in Living > Video Games

2218 Views, 9 Favorites, 0 Comments

HOMEMADE RACING SIM (ACCELERATOR | BRAKE | STEERING)

CoverA1.png
CoverA3.JPG
CoverA4.JPG
CoverA1.JPG
CoverA2.JPG
CoverA5.JPG

Hello everyone!

So we are all locked up inside our houses and looking for things to do during the quarantine.

I personally love to drive and the lockdown has restricted my driving to within the parking lot of my apartment.

My brother bought me the official F1 2019 game during the initial stages of the lockdown in 2020 and I played it for a while only to get bored of driving using a keyboard.

I started playing Need For Speed Most Wanted 2012 recently and enjoyed it for a while before getting bored of it for the same reason. I wanted something more exciting and realistic.

So I went on Amazon and searched for a racing simulator with foot pedals, a steering wheel and a gear shifter.

I was quite surprised to see that the Logitech G29 cost around 30,000 INR! I immediately closed the browser tab and went on Robu.in to order some components to make a cheap racing simulator by myself.

After looking at the unreasonable prices of acrylic sheets online, I decided to build the entire project off corrugated cardboard sheets that I acquired from the boxes of household electronics.

The video tutorials for the foot pedals and steering wheel can be found on our youtube channel!

Steering wheel: Watch here!

Foot pedals: Watch here!

Let's quickly go over the supplies required and get started!

GATHER THE SUPPLIES

DSC_0109.JPG
DSC_0108.JPG
DSC_0110.JPG
DSC_0111.JPG
DSC_0112.JPG

Electronics and parts:

> Male berg strips: Buy here.

> Multi-strand wires: Buy here.

> Dupont jumper wires: Buy here.

> 10K Rotary potentiometer: Buy here.

> Big tactile pushbutton with cap: Buy here.

> Small tactile pushbuttons: Buy here.

> PS2 joystick modules: Buy here.

> Servo horns: Buy here.

> Servo control rods: Buy here.

> 6mm potentiometer knob: Buy here.

Tools and consumables:

> 3mm heat shrink tube: Buy here.

> 4mm heat shrink tube: Buy here.

> 5mm heat shrink tube: Buy here.

> Soldering station: Buy here.

> Digital multimeter: Buy here.

> Hot glue gun: Buy here.

> Scissors: Buy here.

> Nose pliers: Buy here.

> X-Acto knife: Buy here.

> Fine file set: Buy here.

> Precision screwdriver set: Buy here.

> 3mm rubber bands: Buy here.

Adhesives:

> Packing tape: Buy here.

> Heavy-duty double-sided tape: Buy here.

> General purpose double-sided tape: Buy here.

> Electrical insulation tapes: Buy here.

> General purpose adhesive: Buy here.

> Superglue: Buy here.

> White glue sticks: Buy here.

INTRODUCTION TO THE CONTROLLER

DSC_0006 (2).JPG
DSC_0013 (2).JPG
DSC_0014 (2).JPG
Comp 1 (0-00-00-00).jpg
Potentiometers.jpg
Buttons pinout.jpg

A typical game controller consists of two joysticks, namely, the left and right stick.

These joysticks are basically two rotary 10K potentiometers at right angles to each other that control the values along the horizontal(X) and vertical(Y) axis.

So, we have 2 potentiometers(Right stick) that we are interested in using for the racing simulator.

We will be using only the right stick in this project, the left stick can be used to add a manual handbrake and a clutch in the future.

These potentiometers share a common ground and +5V.

We can determine the GND pins of the potentiometers by either tracing the path of the GND battery terminal or with the help of the continuity test function on a multimeter.

Moving to the functions on the steering wheel, we will be using four pushbuttons.

Two will be used to shift gears and the other two can be used as you will. I will be using them as the handbrake and nitrous buttons.

The buttons on the joystick do share common ground but the two shoulder buttons don't share a common ground with the other pins on the PCB.

So, in conclusion, we will be using 9 pins as following:

A pin for common ground

A pin for common VCC

A pin for the common terminal of the shoulder buttons.

Two pins for the shoulder buttons

Two pins for the thumb buttons

A pin for the right stick's horizontal(X) axis

A pin for the right stick's vertical(Y) axis

PREPARE THE CONTROLLER | Part 1: Initial Operations

DSC_0001.JPG
DSC_0002.JPG
DSC_0004.JPG
DSC_0005.JPG
DSC_0015.JPG

Let's perform the initial operations on the controller.

1) Use an appropriate screwdriver to unscrew the screws holding the back cover in place. There's a good chance there's a screw hidden under the quality control sticker. Make sure you get that too!

2) Carefully unplug the battery connector.

3) Remove the battery to reveal useful pins on the PCB.

4) Breakaway 12 pins from a male berg strip.

5) Use some heavy-duty double-sided tape to hold the berg strip down for soldering.

PREPARE THE CONTROLLER | Part 2: Bridging the Pins on the PCB With the Berg Strip

DSC_0018.JPG
DSC_0020.JPG
DSC_0021.JPG
DSC_0022.JPG
DSC_0038.JPG

Make the connections as following:

1) Common ground on the PCB -> Pin 1 on the berg strip

2) Common pin of the shoulder pushbuttons on the PCB -> Pin 2 on the berg strip

3) Right shoulder button (Gear shifter) -> Pin 3

4) Left shoulder button (Gear shifter) -> Pin 4

5) Right stick button (Nitrous/Camera) -> Pin 5

6) Left stick button (Nitrous/Camera) -> Pin 6

7) Right stick vertical axis potentiometer (Acceleration and deceleration) -> Pin 7

8) Right stick horizontal axis potentiometer (Steer left and right) -> Pin 8

9) Left stick horizontal axis potentiometer (Not used, cab be used for a clutch) -> Pin 9

10) Left stick vertical axis potentiometer (Not used, can be used for a manual handbrake) -> Pin 10

11) Common +5V on the PCB -> Pin 11

12) Common +5V on the PCB -> Pin 12

Add a 3 pin header to any common ground on the PCB to serve as ground pins for adding additional buttons in the future.

PREPARE THE FOOT PEDALS | Part 1: Building a Sturdy Platform

DSC_0006.JPG
DSC_0007.JPG
DSC_0008.JPG

I was in possession of some 2 by 3, 18mm thick plywood strips.

I made a right angle butt joint along the length of the strips.

I used plywood grade adhesive and let it dry for 24 hours.

PREPARE THE FOOT PEDALS | Part 2: Designing the Foot Pedals

Comp 1 (0-00-00-00).jpg
Comp 1 (0-00-05-29).jpg
Comp 1 (0-00-41-23).jpg
Comp 1 (0-00-48-28).jpg
Comp 1 (0-00-59-03).jpg
Comp 1 (0-01-11-01).jpg

I used 3mm corrugated cardboard that I acquired from various packing boxes of some electrical products.

Take a blank of 28 X 20 cm cardboard.

Mark a line 12cm and 24cm above the datum along the breadth of the cardboard.

Mark a line 4cm and 16cm above the datum along the length of the cardboard.

PREPARE THE FOOT PEDALS | Part 3: Cuts and Creases

Comp 1 (0-02-14-01).jpg
Comp 1 (0-01-32-16).jpg
Comp 1 (0-02-44-02).jpg
Comp 1 (0-03-07-12).jpg
Comp 1 (0-04-01-12).jpg

Cut off the unwanted pieces.

Crease the line 12 cm above the datum to form a hinge for the foot pedal.

Crease the lines along the length to form the guide rails for the foot pedal.

Crease the line 24 cm above the datum to form the back face of the foot pedal's base.

PREPARE THE FOOT PEDALS | Part 4: Forming

Comp 1 (0-04-27-13).jpg
Comp 1 (0-05-01-23).jpg
Comp 1 (0-00-24-00).jpg
Comp 1 (0-00-45-20).jpg
DSC_0045.JPG

Bend the guide rails towards the base.

Bend the backplate towards the base.

Use some general-purpose adhesive to form right angles between the base of the foot pedal and guide rails.

PREPARE THE FOOT PEDALS | Part 5: Adding the Stopper and Making the Hinge

DSC_0052.JPG
DSC_0053.JPG
DSC_0055.JPG

Use a bottle cap of about a centimetre in height to serve as the stopper for our foot pedal.

Paste a strip of packing tape along the crease with the foot pedal's underside facing the sky.

Move the foot pedal towards the base to have its upperside face the sky.

Paste a strip of packing tape along the crease.

PREPARE THE FOOT PEDALS | Part 6: Reinforcing and Adding the Rubber Band

DSC_0057.JPG
Comp 1 (0-03-16-02).jpg
DSC_0060.JPG
DSC_0062.JPG
DSC_0066.JPG

Cover the foot pedal with packing tape.

Stick some popsicle sticks on the backside of the foot pedal using some superglue.

Glue one end of the rubber band to the end of the centre popsicle stick and add some hot glue to strengthen the joint.

PREPARE THE FOOT PEDALS | Part 7: Mounting

DSC_0067.JPG
DSC_0073.JPG
DSC_0072.JPG
DSC_0075.JPG
DSC_0076.JPG

Use double-sided tape on the backside of the foot pedal's base.

Place the foot pedal and the plywood platform on a level surface.

Slide the foot pedal to the platform's front face and gently apply some force to stick it to the platform.

Stick a servo control horn to the top right corner of the foot pedal using some hot glue.

Prepare a link with some servo control rods and insert one end into the control horn.

Insert the other end to the joystick and place it on top of the platform such that the foot pedal is in its initial state along with the joystick being centred.

Use some hot glue to secure the joystick in place.

Stick the rubber band to the plywood using some superglue.

PREPARE THE FOOT PEDALS | Part 8: Making the Extension Cable

DSC_0023.JPG
DSC_0024.JPG
DSC_0027.JPG
DSC_0026.JPG
DSC_0029.JPG
DSC_0031.JPG

The controller will be placed on top of the table. So, we will need to make an extension cable to connect the foot pedals to the controller.

The cable will consist of three wires:

GND

SIGNAL

VCC

Connect the GND of the accelerator's potentiometer to the VCC of the brake's potentiometer.

Connect the VCC of the accelerator's potentiometer to the GND of the brake's potentiometer.

Connect both the signals of the potentiometer together.

Use some female jumper wires and solder them to the common power wires and signal wires of the potentiometers.

Doing so will combine both the potentiometers to work in one axis of the joystick. Pressing down on the accelerator will act as pulling down/pushing up on the right stick and pressing down on the brake will act as the opposite of pushing down on the accelerator.

Use three wires of required lengths and solder a 3 pin male header to one end and solder female jumper wires to the other.

TESTING THE FOOT PEDALS

DSC_0032.JPG
DSC_0033.JPG
DSC_0034.JPG
ACCBRAKECENT.png
AC.png
BRAKE.png

1) Use the extension cable to connect the foot pedals to the controller.

Power wire 1: COMMON GROUND PIN on the berg strip

Power wire 2: COMMON VCC PIN on the berg strip

Signal wire: PIN 7 (Right stick's vertical axis potentiometer)

2) Open up the control panel on your PC and navigate to devices and printers.

3) Locate your controller and right-click on it, click on "game controller settings" and click on "properties".

4) Press down on the foot pedals to see if the Y ROTATION bar moves left and right.

NOTE:

Pressing down fully on the accelerator must move the Y rotation bar fully to the left if you want it to mimic " RS UP" (Right stick up)

Pressing down fully on the decelerator/brake must move the Y rotation bar fully to the right if you want it to mimic "RS DOWN" (Right stick down)

If the bars move in the opposite directions, simply swap the power connections of the foot pedals.

This step is not absolutely necessary unless the game you wish to play doesn't allow remapping of the controller settings.

PREPARE THE WHEELBASE: Part 1: Design and Fabrication

DSC_0040.JPG
DSC_0041.JPG
DSC_0042.JPG
DSC_0043.JPG

Design the wheelbase using your creativity.

Just make sure to keep the frontal width well shorter than the steering wheel's width to avoid contact between the wheelbase and your hands while using the wheel.

This can be overcome by using a longer potentiometer knob.

Mark the centre of the wheelbase's face and make a small hole with a pointy object like a screwdriver.

Enlarge the hole to approximately 6mm using a round file.

Make another hole large enough above the centre hole to accommodate the switches' cable.

PREPARE THE WHEEL BASE: Part 2: Installing the Potentiometer

DSC_0045.JPG
DSC_0046.JPG
DSC_0049.JPG
DSC_0050.JPG
DSC_0059.JPG

Solder wires of suitable lengths to the potentiometer.

Solder female jumper wires to the ends of the wires.

Screw the potentiometer into its hole and use the washer and nut provided with the potentiometer to secure it in place.

PREPARE THE STEERING WHEEL: Part 1: Making the Handles

DSC_0030.JPG
DSC_0037.JPG
Comp 1 (0-00-52-09).jpg
Comp 1 (0-01-04-09).jpg
Comp 1 (0-02-11-04).jpg
Comp 1 (0-03-29-14).jpg
Comp 1 (0-03-36-22).jpg

Take a blank of 15cm X 8cm corrugated cardboard.

Mark the centre line along the length and crease it.

Fold and glue the faces onto each other.

Provide some personality to the handles as you wish!

PREPARE THE STEERING WHEEL: Part 2: Making the Spokes

Comp 1 (0-01-01-17).jpg
Comp 1 (0-00-01-15).jpg
Comp 1 (0-01-19-10).jpg
Comp 1 (0-00-39-24).jpg
Comp 1 (0-01-58-26).jpg

Take a blank of 16cm X 30cm corrugated cardboard.

Divide it into 2 halves along the length.

Mark the centre lines along the lengths on the two halves obtained and crease them.

Fold and glue the faces onto each other.

PREPARE THE STEERING WHEEL: Part 3: Adding the Potentiometer Knob and Reinforcements

Comp 1 (0-01-47-18).jpg
Comp 1 (0-01-07-25).jpg
Comp 1 (0-00-34-16).jpg
Comp 1 (0-00-56-02).jpg
Comp 1 (0-01-15-17).jpg
Comp 1 (0-01-28-10).jpg

Mark the centre point on one of the spokes.

Stick the potentiometer knob to the spoke using some superglue. Follow up with a nice bead of hot glue around the knob's circumference if needed.

Use some popsicle sticks to provide rigidity to the spoke.

PREPARE THE STEERING WHEEL: Part 4: Joining the Parts

Comp 1 (0-01-10-16).jpg
Comp 1 (0-00-01-24).jpg
Comp 1 (0-01-43-18).jpg
Comp 1 (0-02-07-26).jpg
Comp 1 (0-02-24-04).jpg
Comp 1 (0-02-47-20).jpg
Comp 1 (0-02-56-05).jpg
Comp 1 (0-03-04-28).jpg

Mate the handles to the lower spoke.

Attach the upper spoke to the handles.

Attach the centre spoke to the upper and lower spokes.

I used general-purpose glue to carry out the operations.

PREPARE THE STEERING WHEEL: Part 5: Adding the Pushbuttons and Paddle Shifters

DSC_0060.JPG
DSC_0061.JPG
DSC_0062.JPG
DSC_0064.JPG
DSC_0066.JPG

Make a small hole to accommodate three multi-strand wires.

Use some super glue and stick a big square tactile pushbutton to the right-side handle.

Make a square hole on the left-side handle to accommodate a big square tactile pushbutton.

Stick small pushbuttons towards the outside ends of the popsicle sticks.

Cut two cardboard strips approximately 5cm long by 2cm wide.

Make a crease 1cm away from the end.

Stick the smaller portion of the strip to the spoke such that pushing on the paddle click the pushbutton.

I will be using the big pushbuttons to activate nitrous and apply the handbrake.

I will use the small pushbuttons to shift gears.

PREPARE THE STEERING WHEEL: Part 6: Connecting the Pushbuttons

DSC_0069.JPG
DSC_0073.JPG
DSC_0075.JPG
DSC_0071.JPG
DSC_0072.JPG
DSC_0076.JPG

Use multistrand wires to connect any two internally connected pins of the big tactile pushbuttons.

This will be the common wire for the pushbuttons.

Do the same for the small pushbuttons.

Now use multi-strand wires and solder them to the outputs of the big pushbuttons.

Do the same for the small pushbuttons.

Use wires of different colours for the two sets of pushbuttons to easily differentiate between the two.

PREPARE THE STEERING WHEEL: Part 7: Finishing Up

DSC_0102.JPG
DSC_0103.JPG
DSC_0104.JPG
DSC_0105.JPG
DSC_0106.JPG

We will be left with a wire for the common terminal of the big pushbuttons, a wire for the common terminals of the small pushbuttons and four wires for the output terminals of the pushbuttons.

The big pushbuttons' common wire can be directly soldered to the ground pin of the wheelbase's potentiometer.

Solder female jumper wires to the ends of the five wires.

Add caps of your desired colours to the pushbuttons!

TESTING THE STEERING WHEEL AND BUTTONS!

DSC_0079.JPG
DSC_0077.JPG
Wheelcentre.png
Wheelleft.png
Wheelright.png

Connect the wheelbase's potentiometer to the controller as such:

GND -> GND pin on the bergstrip

Singal -> Right stick X axis pin on the bergstrip

VCC -> +5v pin on the bergstrip

Open up the game controller properties and check to see if the potentiometer is centred.

Now pass the cable through the hole and couple the steering wheel with the wheelbase.

NOTE:

Moving the steering wheel fully to the left must move the X-axis bar fully to the left if you want it to mimic "RS LEFT" (Right stick left)

Moving the steering wheel fully to the right must move the X-axis bar fully to the right if you want it to mimic "RS RIGHT" (Right stick right)

If the bars move in the opposite directions, simply swap the power connections of the foot pedals.

This step is not absolutely necessary unless the game you wish to play doesn't allow remapping of the controller settings.

GO CRAZY!!!

CoverA3.JPG
Comp 1 (0-02-39-29).jpg
Comp 1 (0-05-24-03).jpg

Launch your favourite racing game and go to the controller settings to remap the buttons.

I tested the racing simulator on F1 2019, Forza Horizon 4 and Need for Speed Most Wanted 2012 and I had a blast!!!

The foot pedals were very responsive and using the onboard button on the steering wheel to activate DRS and nitrous made me happier than anything else in the world!

Even the paddle shifters felt very satisfying to use due to their tactile feedback!

For just 1/100th of the cost of a commercial racing simulator like the Logitech G29, this homemade simulator gave me immense pleasure playing with it.

In conclusion, this dead simple project was very fun to work on and I will definitely be working on upgraded versions of the same, maybe a fully 3D printed version, a solid metal built version, and what not!

I assure you will have a very good time recreating this project and an even better one while racing with it.

I hope by doing so, you would suppress your urge to go outside in this chaotic time.

Stay home and stay safe and keep racing!!!