1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

DIY FFB Steering wheel (MMosFFB ) (In Progress)

Discussion in 'DIY peripherals' started by Alexey, Dec 10, 2015.

  1. paulopsx2

    paulopsx2 Active Member

    Joined:
    Apr 2, 2016
    Messages:
    615
    Location:
    brasil
    Balance:
    635Coins
    Ratings:
    +163 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
  2. Claudemir

    Claudemir Member Gold Contributor

    Joined:
    Oct 22, 2012
    Messages:
    168
    Balance:
    50Coins
    Ratings:
    +33 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    I do not know if this engine is Brazilian! I do not think so!
    I'm having trouble finding the encoder 8000ppr, does anyone have a link so I can buy it?
  3. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    hi @auryza

    i have decided to make a similar wheel you yours using a 300w unite motor - but i will try direct drive

    is there a thread for your build ? can i see the arduino code ?

    did you use the leonardo because it can be seen as a windows keyboard / gaming device ?
  4. Fernando Igor

    Fernando Igor Member

    Joined:
    Jul 24, 2017
    Messages:
    53
    Occupation:
    Programmer
    Location:
    Fortaleza, Brazil
    Balance:
    913Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Leonardo is used for operating as a joystick / keyboard device.

    I believe this project was finalized, but the creator made available a code from an initial version. I use the final version (FFBWheel.0.16.leonardo.hex), but I am studying and modifying the initial code made available.

    Look for RFR Wheel Ai-Wave, you will find the thread.
    • Like Like x 1
  5. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Hello,
    Plenty of them in Aliexpress.
    Check this, Omron encoder,
    PR means pulse per revolution, multiple by 4, you will get CPR. If you will order encoder with 2000 PPR overall count per revolution will be 8000.

    Omron.jpg

    https://www.aliexpress.com/item/6B2...lgo_pvid=925c2e64-2c2a-4654-a5e0-f3df2aa47058
    • Like Like x 1
  6. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Hello,
    I don't have a thread of my bild, i was using info from Racingfr forum, but at this moment it's closed.

    Leonardo is used for operating as a joystick / keyboard device it's cheap and easy programmable.

    And this is really easy to build, actually all information what you need to know is on this thread.
    DIY FFB Steering wheel (MMosFFB ) (In Progress)

    Some videos :




    • Like Like x 1
  7. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    wow awesome videos ! is the software he is using the mmos ?
  8. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Actually the same.
  9. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    So does a pc program control the ffb or does the arduino do it ?

    Can you use as many ppr as you want ?
  10. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Everything the same like in OSW. Arduino controlling the FFB, software is for profiling.
    I don't know how many PPR can handle Arduino, i never have tried more then 2500 PPR, but probably it can handle as much as 10000 PPR.
  11. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    I found that arduino internal timer can handle 65,536 interrupts, and the it starting count back to zero. So that means if you will use max 1080 degrees wheel rotation, u can use 5000 PPR encoder (20000 CPR). I don't know if i'm right. If somebody know better please share.

    http://www.instructables.com/id/Arduino-Timer-Interrupts/
  12. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    I have a 360 ppr shaft encoder to hand i will start with that and see how it works.

    Does the osw project not use a stm32 processor ?
  13. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Yes, stm32, and this software modified for Arduino Leonardo.
  14. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    is there no source code for the arduino ?

    I want to compile for an arduino mega 2560

    the original code was for a STm32 board - how did you get the arduino hex file ?
  15. Fernando Igor

    Fernando Igor Member

    Joined:
    Jul 24, 2017
    Messages:
    53
    Occupation:
    Programmer
    Location:
    Fortaleza, Brazil
    Balance:
    913Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Are two different projects.

    The (initial) sources and some docs are here: http://www.aiwave.fr/downloads/ESP_WHEEL_0.3.zip (this is not the latest version but it will help you if you ever want to jump into FFB development).

    This is the source code I'm studying / modifying, but in some games the FFB does not work, I do not know, but I think it's something related to the USB FFB descriptor.
  16. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    You need to download and open XLoader , the from drop down menu, just choose mega 2560,

    All files you can find here
    DIY FFB Steering wheel (MMosFFB ) (In Progress)

    xloader.JPG
  17. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Xloader.zip

    Attached Files:

  18. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    thank you guys :)

    i tried programming the code for the mega - but it did not seem to work. Does the arduino need to be a leonardo so it can emulate a joystick.

    i will keep trying
  19. auryza

    auryza Active Member

    Joined:
    Jun 12, 2013
    Messages:
    109
    Location:
    Lithuania
    Balance:
    4,331Coins
    Ratings:
    +76 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    So it's a bit tricky to program arduino with "xloader", first of all you need to restart arduino into bootloader mode, then arduino generating other com port number, whish you need find and write in to xloader com port , then you have 10 seconds to press flash button to install a hex file, that how this works with leonardo and macro.
    And with mega board probably that method doesn't work.
    • Like Like x 2
  20. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    do you have a compiled version of the rfr program ?

    how does the mmos program find the wheel - is it looking for a windows device or a com port ?

    should i be trying to load the hex file FFBWheel.0.16.leonardo.hex ?