G25/G27 pedals to USB - How to?

I'd like to use my G27 pedals as a standalone device (since I don't have a G27 wheel), so therefore I'll need to connect it to my PC directly via USB.

I know of the Bodnar cable, which does exactly that, but I'd like to try something else first. And, my question to you is...: will this also work?
  1. I'd connect my pedals to a female-to-female D-SUB 9 piece, as shown below.
    gender-changer-aansluiting-2-9-polig-serieel-female.jpg

  2. I'd connct this USB to D-SUB 9 adapter converter to the above piece, and then plug it directly into my PC with the USB end (a driver for this adapter is included).
    gEt9YFi.png
I don't know anything about hardware, so therefore I'd like to know if this would work exactly like the Bodnar cable would. In my mind it should, since I've essentially "converted" the pedals to USB via this 'chain', but I might as well be sure...

Thanks!
 
Can't answer your question, but if you end up taking the Bodnar cable route i have a cable/adapter for both the pedals and the wheel, that i'm willing to let go in exchange for a small donation. ;) Cheers and good luck with your project!

EDIT: The other adapter is for the shifter of course and not the wheel...
 
Upvote 0
It won't work. The Bodnar cable also has some built-in electronics that translate the pedal signals to USB inputs, and comes with its own driver as well.
 
Upvote 0
Old topic I know - I thought I'd let you know about a cheaper alternative here if you know how to handle a solder iron - I'm obviously affiliated with this project...


Nice things about it: only one adapter for shifter and pedals, filtering possibilities for efficiently reducing spiking with worn pots, ability to mod the code on the Arduino to fit your needs. I really like this solution :)
 
Upvote 0
Nice! I have been considering using one of my spare arduinos for something like this so I could remove the slight mapping the wheel applies to the brake pedal input on the G29 (to offset the rubber block) and maybe also look at building a shifter.

I'll probably have a proper play in a few weeks, but I was wondering if you calculated the input lag when using the filter at various sizes? I haven't used the ADC feature in mine seriously yet, so I'm not sure of the sample rate and I was kinda curious why you settled on `#define MAX_FILTER_SIZE 49` :)

EDIT: ignore me! I just re-read the filter and realised I misunderstood what you were doing with the arrays. I thought you were buffering the values but I can see you are ordering them to determine the median. I had expected to see a low pass filter with a simple mean calc on a ring buffer, but I was wondering why you decided on a more complex process to use the median instead?
 
Last edited:
Upvote 0
I have some spare arduinos floating around, which is why I was considering that approach for prototyping. Normally I'd build a bespoke circuit around a PIC, but the stm32f4 has a crazy spec for the price, so I might take a closer look. Ta!
 
Upvote 0
I'll probably have a proper play in a few weeks, but I was wondering if you calculated the input lag when using the filter at various sizes? I haven't used the ADC feature in mine seriously yet, so I'm not sure of the sample rate and I was kinda curious why you settled on `#define MAX_FILTER_SIZE 49` :)

EDIT: ignore me! I just re-read the filter and realised I misunderstood what you were doing with the arrays. I thought you were buffering the values but I can see you are ordering them to determine the median. I had expected to see a low pass filter with a simple mean calc on a ring buffer, but I was wondering why you decided on a more complex process to use the median instead?

The frame rate is about 500 FPS / 2ms in the arduino, so the lag introduced by the filter is approximately filtersize/2 * 2ms; For the maximum size of 49 this would be appr. 50ms. Median has the advantage over a simple mean or other linear filter to be robust against outliers. When the pots are worn (like mine) the pedals tend to spike and a median filter of suitable size is able to completely filter out the spikes. A low pass filter on the other hand will integrate all the data and so spikes will always have an effect unless the filter is much larger than the corresponding median filter.
The implementation is quite efficient even on the tiny arduino.
 
Upvote 0
hello. I'm trying to figure out how I can convert a Logitech G29 pedal potentiometer to a direct USB cable.

My USB type a internal cable wiring is like shown in image below.
index.jpg


My USB type A plug looks like image: "a)".
images.jpg

My pedal potentiometer looks like the image shown below.
images 2..jpg

What & which wires on my USB-A cable that I connect to the potentiometer termanels SHOWN ABOVE, ?

Any advice on this issue would be great, & thanks !

Chris Canfield.
 
Last edited:
Upvote 0
hello. I'm trying to figure out how I can convert a Logitech G29 pedal potentiometer to a direct USB cable.

My USB type a internal cable wiring is like shown in image below.
View attachment 446914

My USB type A plug looks like image: "a)".
View attachment 446915
My pedal potentiometer looks like the image shown below.
View attachment 446916
What & which wires on my USB-A cable that I connect to the potentiometer termanels SHOWN ABOVE, ?

Any advice on this issue would be great, & thanks !

Chris Canfield.

Sorry to break it to you, the potentiometer itself will not enumerate as USB device, especially not as joystick :p

You need to place in the middle a microcontroller that has USB stack, haptic device descriptor stack (joystick in plain language) and ability to read ADC input to measure the potentiometer voltage...

Just saying
 
Upvote 0

Latest News

Are you buying car setups?

  • Yes

  • No


Results are only viewable after voting.
Back
Top