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. Abishek Y

    Abishek Y New Member

    Joined:
    May 15, 2023
    Messages:
    10
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor
    Help me to check encoder with other Arduino code
  2. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Try this - I just whipped it up but I have not tested it.

    Encoder A/B lines need to be on pins 2 and 3 (not 0/1 that you have/need for the AIWave firmware). Rename to ino file and load using arduino program. Open the serial console at 115200 and you should see a number printed as you move encoder. One way it should go up, the other it should go down.

    Attached Files:

    • Like Like x 1
    • Useful Useful x 1
  3. Abishek Y

    Abishek Y New Member

    Joined:
    May 15, 2023
    Messages:
    10
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor
    In serial monitor screen no numbers are shown

    Attached Files:

  4. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    you changed encoder to pins 2 and 3? I'll have to spin up the code and test it properly but it should work
  5. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I tested the code and it works fine for me
    PXL_20230520_033224766.jpg
    • Informative Informative x 1
  6. Abishek Y

    Abishek Y New Member

    Joined:
    May 15, 2023
    Messages:
    10
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor
    Is this code is suitable for this encoder

    I cannot get output

    Attached Files:

  7. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I have no idea, but if my code does not work for your encoder, it will not work for aiwave firmware. Perhaps you're best off contacting the person you said had it working with that motor.

    Without technical information on that encoder, it's impossible to help

    Edit - you still have not confirmed swapping to pins 2 and 3 for encoder. Importance in detail
    • Agree Agree x 1
  8. Abishek Y

    Abishek Y New Member

    Joined:
    May 15, 2023
    Messages:
    10
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor
    I think encoder is not working
    I decide to buy a new rotatory encoder from orange brand
    How much ppr value you prefer for this project

    Attached Files:

  9. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    1000 PPR is recommended but it can be whatever you want really. More than 1000 is limited/no benefit and more overhead on mcu. Too low and you lose resolution but still works. Something with a z output helps too.

    BTW, I don't really recommend aiwave firmware overall, it's old and outdated these days.
    • Informative Informative x 1
  10. Abishek Y

    Abishek Y New Member

    Joined:
    May 15, 2023
    Messages:
    10
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor
    In my wheel config software the marked options are not shown

    After I bought new Leonardo R3 board and encoder but now also I gave the same problem

    Is the software properly work with windows 7 I use win 7 operating system in my pc

    Attached Files:

  11. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    It's under advanced - you set PPR and drive type

    But as I have mentioned here so many times, why run 7 year old unsupported software? Aiwave was abandoned. You could have swapped to EMC firmware on stm32 for less than the cost of your new Leonardo board...
    • Like Like x 1
  12. Abishek Y

    Abishek Y New Member

    Joined:
    May 15, 2023
    Messages:
    10
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor
    I am very happy to share this
    I connect same thing with with wheel check software with another win 10 pc
    It works properly
  13. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    That is good to know but odd - Windows 7 would still have been quite popular when AIWave was made.
    • Like Like x 1
  14. Enie_E

    Enie_E New Member

    Joined:
    Aug 9, 2023
    Messages:
    7
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    Hello,

    I'm currently running EMCpro on an STM407 with a BTS motor driver driving a 180W 24V DC motor on 200W 24V power supply.
    The issue I'm having is after 1-520 minuets of racing I get a sudden & quick loss of all FFB. When it re engages half a second later it looses center, thinking the current wheel position is center.

    I believe its the motor driver protecting itself under high load and/or heat (its fan cooled and not getting hot so not sure on this).

    I see some people talking about using 2x BTS drivers, is this a possible fix, or for people using two motors?
    Secondly, is getting a FSESC6.7 motor driver as recommended by latest EMCpro docs going to fix this?
  15. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    That sounds like the board itself resetting. If the BTS went into protection, the board would still track wheel position.
    • Like Like x 1
  16. Enie_E

    Enie_E New Member

    Joined:
    Aug 9, 2023
    Messages:
    7
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    Hmm interesting! that makes sense actually.

    Its a STM board from Aliexpress so that could be it. It had plenty of sales and good reviews but possibly they weren't using it for high stress applications.

    Would you recommend getting a STM from Amazon to test?

    Cheers for the reply also
  17. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    It all really depends.

    What board do you actually have and how did you connect the BTS driver?

    i.e some boards only have a low end, low current 3.3v regulator on them whereas the better ones have one capable of a lot more ma.

    Make sure you drive the BTS from 3.3v, not 5v or you will have issues. I actually added an extra 3.3v regulator just for the BTS. I also run 3 in parallel as well.

    Got a link to the board you're using?
    • Like Like x 1
  18. Enie_E

    Enie_E New Member

    Joined:
    Aug 9, 2023
    Messages:
    7
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
  19. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    227
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,439Coins
    Ratings:
    +131 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    That board should be fine - It has the AMS1117 which is good for about 800ma from memory. Try different USB ports/cables.

    In parallel mode, you just daisy chain the modules pin for pin.

    I also recommend using PWM+2dir with EMC and the BTS7960 modules.

    From the module - Short both 'EN' pins and connect to the PWM output on the controller, then use the 2 dir pins to PWMR and PWML. I know it sounds daft but it works and means you don't get drag on the wheel.
    • Like Like x 1
  20. Enie_E

    Enie_E New Member

    Joined:
    Aug 9, 2023
    Messages:
    7
    Balance:
    65Coins
    Ratings:
    +0 / 0 / -0
    Yoo, my man, PWM/DIR is so much nicer your right about the drag feeling!

    Still cutting out though :/, thought it was fixed too

    Might try out 2 BTS drives. Cheers for the wiring, guessing you wire the power and motor to all drivers
    Last edited: Oct 6, 2023