Open the X-Sim notifier or download it!
motion simulator DIY community Follow us on  Twitter Add to iGoogle
motion simulator DIY community

Jay's Force Feedback Wheel Controller

Simulatoren Peripherie wie z.b. Tachos, Displays, Lenkräder etc. - Simulator peripherals like gauges, displays, wheels etc.

Moderator: egoexpress

on 06.04.2010, 23:53

Jay's Force Feedback Wheel Controller

New postby jakob on 06.04.2010, 23:53

Hi,

I've finished my X-Sim FFB wheel controller. It allows to assign four independent working X-Sim axis to control the wheel. Single axis like motor RPM for fine vibrations in lower RPM, car speed for a stiffer wheel on higher speed or combined axis with X-Y-Z forces/car movements - or all axis together. Four axis that give a ton of freedom for FFB tweaking.

A G25 with low or medium force feels spongy and soft. The wheel starts to wobble and curbs or crashes are soft as well. This controller will produce fine vibrations without getting spongy and a mild force that wont affect your lap times in online racing. But still strong enough to cut your thumbs on a crash.

The code isn't 100% done. I still have to tweak the left/right movements for an aggressive feel. The controller runs with USO with a 256000 baud rate and 20ms delay (50 position changes per second). The crystal + baud rate needs some work, too. Maybe I can lower the delay a bit more. And a version for SCN5 Users will follow.

It will be very easy to solder - just a microcontroller, some capacitors one resistor and a crystal. Layout, code and parts list will follow.

Next step is getting the h-bridges + motors running and do the profiling job (with help from Nima). The h-bridges will run in locked antiphase mode. Well, I'm not sure if my h-bridges will work proper, because the controller will cause a big PWM-mess on the motor outputs...I hope they won't be gone in a puff of smoke after testing...har har.

I also want to implement a few digital outputs for a shifting light or an 7-segment LED as gear indicator (based on a fith axis) and an encoder input to get the wheel position. But this can be also done by a joystick controller like Mjoy or Leo's controller.

Test run video



-------------------------------------------------------------------------------


EDIT April, 07 2010
Optimized the code and dropped the USO delay from 20ms down to 1ms @ 115200 baud rate. Yay!


-------------------------------------------------------------------------------


EDIT April, 09 2010
Here is the layout in minimal (working, but not final) config. The cables can be soldered directly to the microcontroller or to header pins. VCC and GND can be taken from a joystick controller like Mjoy or a cheap wall wart. The layout is really simple, there is no need of an etched PCB. A cheap prototype board will do the trick.






Jay
Last edited by jakob on 10.04.2010, 00:21, edited 10 times in total.
User avatar
jakob
X-SIMER
 
Posts: 83
Joined: 04.09.2009, 21:55
Location:Germany Frankfurt
Local time: 07.09.2010, 04:59
Obtained thanks: 18
The following user would like to thank jakob for this post
egoexpress, ledfoot, Nima, tronicgr


on 07.04.2010, 02:40

Re: Jay's Force Feedback Wheel Controller

New postby willynovi on 07.04.2010, 02:40

jakob, nice news from you and nice work.
I can´t wait to see that moving wheel in your hands.

I have my work in progress, but little progress.
I decided to use a L298 to build the h bridge, so for a FFB wheel I think 4A is enough.

As I mencioned I'll get values from rfactor plugin, as steering arm force.
If it doesn´t work as I want, I´ll work with X-Sim mixing some efects as you have done.

I´ll keep alert at your progress.

regards, Willy
User avatar
willynovi
full member
 
Posts: 58
Joined: 13.02.2009, 19:48
Location:Argentina Argentina
Local time: 06.09.2010, 23:59
Obtained thanks: 14


on 07.04.2010, 06:28

Re: Jay's Force Feedback Wheel Controller

New postby jakob on 07.04.2010, 06:28

Nice to hear that other are workin on a wheel, too. Keep me updated please.
User avatar
jakob
X-SIMER
 
Posts: 83
Joined: 04.09.2009, 21:55
Location:Germany Frankfurt
Local time: 07.09.2010, 04:59
Obtained thanks: 18


on 07.04.2010, 10:01

Re: Jay's Force Feedback Wheel Controller

New postby Nima on 07.04.2010, 10:01

hi jakob,
nice work.i don't can wait for test your controller.i can make a profil with slider
for the wheel. with slider is many simpler to make a nice feeling.i have make one for
the sim and i love it. you can use the slider in play in realtime.
User avatar
Nima
X-SIMER
 
Posts: 347
Joined: 08.11.2006, 20:12
Location:Germany Bad Zwischenahn
Local time: 07.09.2010, 04:59
Obtained thanks: 69


on 07.04.2010, 12:48

Re: Jay's Force Feedback Wheel Controller

New postby jakob on 07.04.2010, 12:48

I'll solder your test controller on weekend. Hopefully I get the time to finish the code also.
User avatar
jakob
X-SIMER
 
Posts: 83
Joined: 04.09.2009, 21:55
Location:Germany Frankfurt
Local time: 07.09.2010, 04:59
Obtained thanks: 18
The following user would like to thank jakob for this post
Nima


on 07.04.2010, 23:53

Re: Jay's Force Feedback Wheel Controller

New postby jakob on 07.04.2010, 23:53

Dropped the USO delay from 20ms down to 1ms @ 115200 baud rate. This means up to 1000 possible wheel position changes per second.

Can't wait to test it with the hardware.
User avatar
jakob
X-SIMER
 
Posts: 83
Joined: 04.09.2009, 21:55
Location:Germany Frankfurt
Local time: 07.09.2010, 04:59
Obtained thanks: 18


on 08.04.2010, 00:20

Re: Jay's Force Feedback Wheel Controller

New postby sirnoname on 08.04.2010, 00:20

This is really a fast communication, USB HID (as G25) has a host hardware polling speed of all 10ms and the FF effects have a delay from about 100ms to 200ms until the reach the user.
User avatar
sirnoname
Executive X-Sim software developer & BETA section leader
 
Posts: 2278
Joined: 08.11.2006, 20:12
Location:Germany Augsburg, Germany
Local time: 07.09.2010, 04:59
Obtained thanks: 462


on 08.04.2010, 01:46

Re: Jay's Force Feedback Wheel Controller

New postby willynovi on 08.04.2010, 01:46

As I know, you can change polling speed for USB HID from windows setup, right now I don´t remember how, but if I find that I´ll post, maybe you can get better feelings from tyour G25.
User avatar
willynovi
full member
 
Posts: 58
Joined: 13.02.2009, 19:48
Location:Argentina Argentina
Local time: 06.09.2010, 23:59
Obtained thanks: 14


on 08.04.2010, 06:36

Re: Jay's Force Feedback Wheel Controller

New postby jakob on 08.04.2010, 06:36

sirnoname wrote:This is really a fast communication, USB HID (as G25) has a host hardware polling speed of all 10ms and the FF effects have a delay from about 100ms to 200ms until the reach the user.


I've trashed the whole code. The five bytes send by USO (Startbyte + 4xPWM) were written in a string and from that string into the main loop/code. This solution wasn't the real McCoy and sometimes it angered the snort out of me. I had numerous PWM dropouts and byte errors when lowering the delay.

The new code works with an array and the 4xPWM can be processed without detour. I've checked the PWM output with my oscilloscope and its looking clean and without any brakes - even with a 1ms delay.
User avatar
jakob
X-SIMER
 
Posts: 83
Joined: 04.09.2009, 21:55
Location:Germany Frankfurt
Local time: 07.09.2010, 04:59
Obtained thanks: 18


on 08.04.2010, 07:17

Re: Jay's Force Feedback Wheel Controller

New postby njracer on 08.04.2010, 07:17

Hey Jakob this is a really cool project man. I have a couple questions if you don't mind taking the time to answer??

First is your controller going to be for existing off the shelf wheels? ie, you use your board in the g25 instead of the board that comes with the wheel? or is this going to be a project where it'll be scratch built, including motors and all??

if you're going to use your own motors, which i hope you do, how is the wheel going to stop after it reaches its range?? are you going to implement a mechanical stop or software??

are you going to use a gear reduction system? any chance of doing this through software?

very interested in this. i definitely want to build a wheel myself, can't wait till you release more info. with the ability to tweak the ffb through x-sim this is gonna be awesome. this is an awesome project you're doing and can't wait to see what you come up with
User avatar
njracer
X-SIMER
 
Posts: 162
Joined: 31.12.2007, 16:53
Local time: 07.09.2010, 03:59
Obtained thanks: 11


Next

Similar topics

Return to DIY peripherals


Social Bookmarking
Bookmark bei: Mr. Wong Bookmark bei: Del.icio.us Bookmark bei: Webnews Bookmark bei: Icio Bookmark bei: Oneview Bookmark bei: Linkarena Bookmark bei: Newskick Bookmark bei: Folkd Bookmark bei: Yigg Bookmark bei: Digg Bookmark bei: Reddit Bookmark bei: Simpy Bookmark bei: StumbleUpon Bookmark bei: Slashdot Bookmark bei: Netscape Bookmark bei: Furl Bookmark bei: Yahoo Bookmark bei: Spurl Bookmark bei: Google Bookmark bei: Blinklist Bookmark bei: Blogmarks Bookmark bei: Diigo Bookmark bei: Technorati Bookmark bei: Newsvine Bookmark bei: Blinkbits Bookmark bei: Ma.Gnolia Bookmark bei: Smarking Bookmark bei: Netvouz

Who is online

Users browsing this forum: No registered users and 1 guest