preload preload preload preload

DIY G27 Brake Vibration

This is a DIY project I’ve been cooking for quite some time now. It’s a brake vibration system for the Logitech G25/G27 (or any pedal, in fact) similar to what is used in the Fanatec CSP pedal, using only an Arduino board and a ghetto vibration motor that I’ve made myself (the motor itself I got from an old floppy drive).

It’s very useful to get some feedback from the pedal because it helps you control your threshold braking better. When you are under heavy breaking and your wheels lock, the Arduino will activate the motor that will vibrate the pedal. There’s a client software that I wrote in C# that grabs the data from the sim API (I’m using iRacing) and checks if the wheels are locked or not.

iRacing brake vibration client

iRacing brake vibration client

Here’s a video of it working (yeah, dirty socks):

I’d like to thank the fellow iRacer Stephane Turpin for providing me the algorithm to detect when your wheels are locked or not. iRacing doesn’t provide real time wheel speed information (that’s only available in the file telemetry) so you can’t develop cheats that implement some sort of ABS system. The algorithm Stephane came up is enough for this vibration thing but not accurate enough for cheating. He is also the developer of other great iRacing plugins like the Motion Cockpit View and the CSP Vibration plugin. You can check his softwares here: http://motion_view.byethost4.com/

Below is the Arduino source code. I’m not providing any schematics because it’s as simple as connecting the black wire of the motor to the GND and the red wire to pin 7 in the Arduino.

const int outpin = 7;

void setup() {
  Serial.begin(9600);
  pinMode(outpin, OUTPUT);
}

void loop() {
  if (Serial.available()) {
    int inByte = Serial.read();
    digitalWrite(outpin, inByte);
  }
}
Overall view

Overall view

Detail 1

Used duct tape and hot glue to fix the motor

Detail 2

Floppy disk motor adapted to a vibration motor

Below is the download link for the client software (includes source code and executable). Code was written in Visual C# 2010, so you’ll need .NET Framework for it to work properly.

The contents of this project is distributed as “donationware”. If you find them useful, please consider doing a small donation.

DOWNLOAD: http://www.fergonez.net/files/iRacingBrake.rar

  • 16 responses to "DIY G27 Brake Vibration"

  • xenix
    1:44 on January 30th, 2014

    Very nice & interesting things you have here done here any chance that you release this for Assetto Corsa & Rfaktor & Lfs & RBR?

    Very “less” people play Iracing, you can really make money
    if you support more Sim´s ;)

  • irfan
    17:39 on May 18th, 2013

    hi
    all of your project are greats for a g27 user, but there’s still for iracing only, any chance for to go to rfactor?

    thank you

  • David Almeida
    14:21 on January 19th, 2013

    Hello people!

    Yesterday my ‘G27 brake vibration’ stopped working. After the first wheels lock, the motor begins to vibrate and never to. Even leaving the iRacing and closing the application, the motor continues to run.

    I can also reproduce the problem by simply opening the iRacing brake vibration client and clicking in ‘Activate’ and and after in ‘Deactivate’ , then the motor starts to vibrate continuously, never stopping, even without the iRacing be running.

    Is it problem with my hardware?

  • Nick
    7:13 on November 27th, 2012

    Hi Fergo, great app and mod! I’m thinking of using these on more heavy duty pedals like CST pedals. Will these work simultaneously on the same board with your iracing wind simulator app or do i need to get a new arduino board for this. do i have to get 12v vibration motors so i don’t overvolt them as i have an adaptor for the 12v fans?

    as for the code… Is it as easy as combining both the codes and upload it to the board ? Thanks in advance!

  • Jeff Foutch
    23:46 on October 30th, 2012

    how do i connect the wires to the board? do i need some connecters and where do i get them? i have a duemilanove board and a vibration motor out of a old usb controller. will this work? Thanks

  • jerome
    14:58 on August 4th, 2012

    thank you for your reply,
    i have juste an another question.
    I bought arduino uno board, and i have motor from thrustmaster usb dual trigger, but the problem is all work but slowly !!
    Motor turn not enought to make vibration, i can stop it easily. I try to put an ac adapter to have more power but nothing …
    If you have an idea ;)

  • Jerome
    13:48 on July 30th, 2012

    is it possible to do the same thing with leo bodnar board ?

  • Jerome
    13:44 on July 30th, 2012

    Hi, what is the model of arduino board ?
    In photo, it look like the arduino uno r3, but can you confirm me ?
    Thank you.

    • fergo
      1:21 on July 31st, 2012

      Hi. I’m using an Arduino Duemilanove, but the UNO should work just fine too. Regarding the other question, no, it’s not possible to use the Bodnar Board, since the it’s just an input device. Regards, Fergo.

  • Francesco
    13:36 on April 7th, 2012

    Hi, would be it possible for Richard Burns Rally

  • proto
    19:50 on April 3rd, 2012

    Hi, would be it possible for rfactor?

    • fergo
      21:17 on April 3rd, 2012

      Sure, but I don’t own rFactor and don’t know how it’s telemetry API works, so can’t help with that.

      • proto
        21:53 on April 29th, 2012

        thanks, but it will be created for other simulators?

  • Brian
    12:07 on February 28th, 2012

    Very nice, do know if you could hook a massage pad up to an arduino board to output the telemetry to the motors? that would be cool . Thanks for the output file I,m going to buy an Arduino and give it a try.

  • Francesco
    9:51 on January 25th, 2012

    Hi,
    very nice your work!
    I have RBR.
    how can I do to run the vibration on the brake?

    I arduino and the motor of the floppy!
    sorry english, google translator.

    greetings!

  • I Hoggan
    16:35 on November 17th, 2011

    Hi,
    I have been looking for this product since I stopped using the Frex vibe brake .It was not connected to the iracing software.

  • Leave a Reply

    * Required
    ** Your Email is never shared