I had an old usb steering wheel laying around that died, i had a freetronics leostick laying around so i made this.
i updated the bootloader to the official leonardo one.
Step 1: Bootloader Mods
updated the bootloader to the official leonardo one.
for the steering wheel you will need an arduino leonardo compatible board with the leonardo bootloader.
update these files in root folder >hardware > arduino > cores > arduino
i used i.0.5 of the ide
files to download : HID
Step 2: Code and Wiring
here is the code i used, edit it to suit your needs :)
joySt.xAxis = 0;
joySt.yAxis = 0;
joySt.zAxis = 0;
joySt.xRotAxis = 0;
joySt.yRotAxis = 0;
joySt.zRotAxis = 0;
joySt.throttle = 0;
joySt.rudder = 0;
joySt.hatSw1 = 0;
joySt.hatSw2 = 0;
joySt.buttons = 0;
Serial.write("DIY USB joystick V1 by the nerdling");
joySt.xAxis = analogRead(A4)/4;
joySt.yAxis = analogRead(A5)/4;
joySt.rudder = analogRead(A3)/4;
the wiring is what i used on my wheel, the throttle and brake wiring is what i used because i needed 2 pedals for 1 channel, try it out and see what you need to do to make it suit you
that's all i will tell you because that's all you need figure the rest out e.g to put it all in your wheel each one is your different
Participated in the