Hello From California (DIY direct drive FFB wheel)

New member? Introduce yourself here!

Hello From California (DIY direct drive FFB wheel)

Postby Relsek » Wed 5. Aug 2015, 21:02

Hi, I'm Kevin.
I'm a mechanical engineer looking into making some sort of simulator setup.
Although there are many very nice looking setups I've seen on this website and elsewhere on the internet, I've never really been too interested in racing sims thanks to the display setups. However, I'm really looking forward to the upcoming VR headsets and think they could complete the illusion so building a racing simulator now sounds much more intriguing.

As a start, I plan to build a force feedback wheel. I work at Applied Motion Products, so have lots of access to high-powered stepper and servo motors and drives as well as our machine shop and large format 3D printer for part fabrication.
I plan to build the wheel with a direct connection to an old left over servo motor (1 or 2 kW) and one of our servo drives.
I feel comfortable on the mechanical side and with anything involving configuring our motor and drive, but don't have much programming experience, so any help would be much appreciated! Depending on how successful the wheel is I might be able to convince my boss to let me build a 6dof platform using our big stepper motors as a tech demonstration as well.

Our drive can be set to run the motor in torque mode and have the torque settings sent to it as ASCII strings over a serial cable. The encoder position can also be queried to learn the wheel position. Since I'm new to this community and software, I have been looking through the forum and elsewhere online, but haven't yet found answers to a couple of questions:
Is there a way to have x-sim output steering wheel ffb as ascii strings?
If so, can the strings be customized and how?
What would need to be done to have x-sim receive input ascii encoder position results then convert them and send them to a game as wheel position?

Again, any help is much appreciated. Also if this is the wrong place for talking about details like these, please let me know and I will make a post elsewhere on the forum.
-Relsek
Last edited by Relsek on Fri 7. Aug 2015, 20:47, edited 1 time in total.
Relsek
 
Posts: 5
Joined: Wed 5. Aug 2015, 19:53
Location: California
Has thanked: 0 time
Been thanked: 0 time

Re: Hello From California

Postby sirnoname » Thu 6. Aug 2015, 21:43

You must search for a embedded MPU project, which may be a USB chip with OS firmware, that is recognized as FFB device.
With simulator values you will not have fitting wheel control.
However, you can also disassemble a normal wheel and take this FFB board with well designed drivers instead of a OS firmware. That do most of the metal wheel designer on the market. Example is the logitech G25 board. It is more time and frustless.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Hello From California

Postby tronicgr » Fri 7. Aug 2015, 12:30

Perhaps you could try this solution for FFB controller: http://forum.virtualracing.org/showthre ... Controller

You will have to interface it with PWM inputs through to your motor setup and have your motor work in variable Torque Mode.

Thanks
Thanos
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Re: Hello From California

Postby TheXRacer » Fri 7. Aug 2015, 16:49

Thanos you are the best ....... can you make a quick spep by spep or video
instructions ? Im very interested ....i build my own wheel at the moment with any ffb option :roll:

Best regards
Chris
User avatar
TheXRacer
 
Posts: 56
Images: 9
Joined: Sun 27. Jan 2013, 20:33
Location: Germany
Has thanked: 5 times
Been thanked: 1 time

Re: Hello From California

Postby TheXRacer » Fri 7. Aug 2015, 18:26

Thanos i need your support with your FFB Controller.....can you handle/config a arduino board like nano or uno with a good software/code ?

regards
Chris
User avatar
TheXRacer
 
Posts: 56
Images: 9
Joined: Sun 27. Jan 2013, 20:33
Location: Germany
Has thanked: 5 times
Been thanked: 1 time

Re: Hello From California

Postby Relsek » Fri 7. Aug 2015, 19:44

Thank you all for the replies already, this really does seem like a great community.
I'm lucky to have easy access to my coworkers who have much more experience with these types of motors than I do to help troubleshooting problems.
After messing around with lots of settings and error over the last two days, I just got X-SIM to output lateral force in a reasonable scaling range to my servo motor using only a serial to usb adapter cable (and some weird math in x-sim). I'm setting the drive in analog torque mode, using a constant voltage source from the drive's own +5 volt output pin, and constantly varying the offset using the x-sim output. It currently allows for 6 levels of torque from zero to a user-specified max torque in each direction right * If only I could get ex-sim to output decimals instead of integers there could be as many values as desired, but that's for a later date and should be easily resolved by inserting math either in a physical arduino-style board or another program between the X-SIM output and physical com port on my computer.

I'm just using a small test motor on my desk right now and don't have a wheel, so I can't calibrate the wheel to a final desired range of torque, but I think that will be simple to do once I finish the proof-of-concept based on how the setup currently works.

I haven't personally done work with an arduino before, but am trying to get this to work with as little hardware as possible for simplicity.

The thing I want to get figured out now is using the built in encoder (8000 counts per revolution) to act as a joystick. I can actually do all of the encoder querying through X-SIM at the same time as I send my ffb information out to the drive, so the solution I'm trying to find is a virtual joystick that can read incoming serial commands without taking over the port then doing some math before outputting as a virtual joystick that works for windows.

Yesterday I came across vJoy, which seems to do all of the joystick interfacing with windows and receives input from a user-written "feeder application". My coworker that's more experienced with programming thinks it should be pretty straight forward to write a feeder that monitors and grabs incoming com signals then converts them to degrees of revolution or whatever format vJoy needs to receive.

Have any of you ever used a virtual joystick program like that and maybe have any recommendations?
Any input is welcome and I'd be more than happy to put together some sort of guide to recreating my setup if I'm able to get it all up and running.
Thanks again!
-Relsek
Relsek
 
Posts: 5
Joined: Wed 5. Aug 2015, 19:53
Location: California
Has thanked: 0 time
Been thanked: 0 time

Re: Hello From California (DIY direct drive FFB wheel)

Postby momoka1234 » Mon 24. Aug 2015, 06:14

Nice to meey you :D
momoka1234
 
Posts: 1
Joined: Mon 24. Aug 2015, 06:13
Has thanked: 0 time
Been thanked: 0 time


Return to New users start here - FAQ

Who is online

Users browsing this forum: No registered users and 11 guests