Notifications
Clear all

Force Feedback Joystick

11 Posts
4 Users
1 Likes
766 Views
(@sliput)
Member
Joined: 2 years ago
Posts: 5
Topic starter  

Hello,

I am trying to build an Arduino based joystick which incorporates force feedback to use with video games such as Microsoft Flight Simulator 2020.  I have 3D printed the base of a gimbal joystick with servo motors controlling the x and y axis, to which I have added an analog feedback wire. (I don't see a way to attach photo's to this post, please let me know if I am missing it and I will happily upload a couple).  I built the base of the joystick assuming this would be a relatively easy topic to find programming info on, however almost all info I find is for force feedback steering wheels.  If someone can either help me with the code, or point me to a resource I would be most grateful.

 

Scott


   
Quote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 
Posted by: @sliput

 (I don't see a way to attach photo's to this post, please let me know if I am missing it and I will happily upload a couple).

See Attach Files below your post?

To enlarge an image, right click image and choose Open link in new window.

attachIcon

 


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
 
Posted by: @sliput

I don't see a way to attach photo's to this post, please let me know if I am missing it and I will happily upload a couple

It is also a matter of how many posts you've done to the forum.  2 ain't enough.  I want to think it is 10.

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
 
Posted by: @sliput

Hello,

I am trying to build an Arduino based joystick which incorporates force feedback to use with video games such as Microsoft Flight Simulator 2020.  I have 3D printed the base of a gimbal joystick with servo motors controlling the x and y axis, to which I have added an analog feedback wire. (I don't see a way to attach photo's to this post, please let me know if I am missing it and I will happily upload a couple).  I built the base of the joystick assuming this would be a relatively easy topic to find programming info on, however almost all info I find is for force feedback steering wheels.  If someone can either help me with the code, or point me to a resource I would be most grateful.

 

Scott

Now that I've actually read the post... 😆 Here are some thoughts...

Forced feedback is not trivial.  And servos... used to restrict someone's hand motions when they REALLY want to do a hard roll maneuver is ONLY going to result in busting every gear in the servo.  You need something that will cause resistance... BUT, will give up when the user says, "I don't give a $#!+ about what YOU want me to do, I want to do THIS!"  I suggest you do it based on stepper motors... they can offer significant "resistance", but when forced to turn against their will, they will not be damaged.

VBR,

Inq

P.S. - Although I am old as the hills, I was an avid user of earlier versions of Flight Simulator and used forced feed-back steering on "Grand Turisimo".  

 

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6968
 

@sliput If the examples you are finding are wheels, you just need to translate from wheel to joystick. The number of sensors is probably the same, it's just that the labels attached are different. It may be beneficial to search on that kind of wording, or get the specs for both devices and create your own translation, or I would imagine there is an API you might use.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

@sliput

A quick google?

https://github.com/YukMingLaw/ArduinoJoystickWithFFBLibrary

 


   
Ron reacted
ReplyQuote
(@sliput)
Member
Joined: 2 years ago
Posts: 5
Topic starter  

@robotbuilder Oh, for some reason I didn't see this one when I googled.  Thanks for the info.


   
ReplyQuote
(@sliput)
Member
Joined: 2 years ago
Posts: 5
Topic starter  

Ok, I see an option to attache files now, I don't think this was there when I first posted.  I have attached a couple picks of the gimbal mechanism, just for reference.  Thanks everyone for the feedback so far.

IMG 3922
IMG 3923

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6968
 

@sliput I suspect you are new, so make sure you understand how to properly install the library otherwise your next post will be about why nothing works.

https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

You will need to follow the Sketch/Include Library/Add .ZIP library

You get the zip library by clicking the green button on Github, then clicking the last line Download ZIP

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@sliput)
Member
Joined: 2 years ago
Posts: 5
Topic starter  

@zander thanks for looking out Ron


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6968
 

@sliput I don't know your experience level so thought I would head off another library fuss up in case you are a newbie.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote