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

DD-Wheel with Hoverboard Motor

Discussion in 'Direct Drive Wheels' started by Benu, Jan 21, 2019.

  1. Benu

    Benu Member

    Joined:
    Mar 19, 2018
    Messages:
    128
    Location:
    Germany
    Balance:
    1,295Coins
    Ratings:
    +42 / 2 / -0
    :thumbs
    Is that a motor bike handle bar attached to the hoverboard motor?
  2. Chris_Beeves

    Chris_Beeves Active Member Gold Contributor

    Joined:
    May 31, 2019
    Messages:
    349
    Balance:
    2,016Coins
    Ratings:
    +244 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    Yes it is.
    3D printed most parts except for the aluminum clip ons. I think I will have to beef it up a bit. The power of this motor is way more than my old DC rig.

    Attached Files:

    • Like Like x 2
  3. Feisty

    Feisty New Member

    Joined:
    Mar 29, 2020
    Messages:
    21
    Balance:
    169Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    AC motor
    Thats really cool!
  4. Chris_Beeves

    Chris_Beeves Active Member Gold Contributor

    Joined:
    May 31, 2019
    Messages:
    349
    Balance:
    2,016Coins
    Ratings:
    +244 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    Thanks!

    Here is a short presentation;
    • Like Like x 4
  5. marccohn

    marccohn New Member

    Joined:
    May 5, 2020
    Messages:
    26
    Balance:
    301Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    Benu and danove_b,

    Just purchased B-G431B-ESC1 for this project. Looks like the most successful solution. So far all my microprocessor board programming has been arduino, so I will have to come up to speed on STM programming.

    I have a couple of questions on integration options. Please check that my understanding is correct

    Option 1: Use vjoy to connect pc directly to ESC board.
    --Pros:
    ---- no additional microprocessor board needed
    ---- ESC firmware available from danove_b?
    --Cons:
    ---- Need to write a vJoy feeder program depending on simulator used
    ---- Not proven to work on any sim other than rFactor2

    Option 2: use STM32 Discovery to connect PC to ESC board (as decribed in post 304)
    --Pros:
    ---- vJoy not required -- one less piece of code to develop/manage
    ---- proven to work with multiple sims (iracing is my preference)?
    ---- firware available from Benu?
    --Cons:
    ---- Additional cost of discoveryboard and additional complexity of multi board solution
    ----

    I guess there is another option -- use leonardo board running AI-wave firmware to control ESC board
    -- Pros:
    ---- Firmware available from AI-wave
    -- Cons:
    ---- Development/support of AI-wave not active.
    ---- no proven successful projects

    Please help me decide which way to go forward.

    Thanks
  6. marccohn

    marccohn New Member

    Joined:
    May 5, 2020
    Messages:
    26
    Balance:
    301Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    OK, started to wire everything together and hit my first snag.

    Im trying to set up an FFB wheel and can't get through the first step of connect encoder to Leonardo with FFB firmware and setting up in wheelConfig. I never get the wheel status box at the bottom of the WheelConfig GUI. I know encoder works because I tested it with a simple sketch on Uno, and I even got encoder output to work fine with the EMC firmware. Wheel Config just doesn't seem to respond to any encoder movements when i have the FFB firmware loaded on Leonardo.
    Please let me know your thoughts.
  7. Granberget

    Granberget New Member

    Joined:
    May 6, 2020
    Messages:
    6
    Balance:
    58Coins
    Ratings:
    +2 / 1 / -0
    My Motion Simulator:
    Arduino
    Did you use AI Wave firmware?
    Then connect A/B to pin 0/1.

    I have an encoder with index, but that didn't work for me. So I simply connected pin 6 to GND and "boot" the wheel in the following order:
    1. Connect the USB to leonardo board
    2. Open Wheel config
    3. Disconnect pin 6 from GND
    4. Manually rotate the wheel a bit left and right
    5. Connect pin 6 to GND

    This was a huge trial and error process to get it working, haven't really found any good documentation on this.
    • Optimistic Optimistic x 1
  8. Granberget

    Granberget New Member

    Joined:
    May 6, 2020
    Messages:
    6
    Balance:
    58Coins
    Ratings:
    +2 / 1 / -0
    My Motion Simulator:
    Arduino
    Thought I should share my version of encoder mounting to the hoverboard wheel, hopefully this can help someone!

    It's an AMT103 rotary encoder, a really cheap encoder with 2048ppr and 8 index-pulses per revolution.
    I 3d-printed a mount that fits on the original hoverboard base, to which i mounted a 5mm carbon fibre rod with bearings. On the rod there's a rubber wheel that rolls against the hoverboard wheel.
    There's also 4 small springs, to help the rubber wheel to press firmly against the hoverboard wheel.

    Took a few iterations to get it working, but now I have an encoder with 0 backlash.

    Attached Files:

    • Friendly Friendly x 1
  9. danove_b

    danove_b Active Member

    Joined:
    Nov 11, 2017
    Messages:
    209
    Location:
    Sweden
    Balance:
    1,782Coins
    Ratings:
    +79 / 3 / -0


    I have a kind of working solution of vJoy, but I know that it doesn't support all sims out there. For example did I have a strange lag with the steering input from AMS2 when I tried it. Depending a bit of what sim you are planning to use, I would go for Option 2 at the moment. You seem to have some programming skill, so if you are interested, download the vJoy driver/SDK. It has a working sample project where you can easily code some input values, and also monitor the different ffb effects. I could share my feeder, but it's kind of messy with a lot of not used test code etc. The small amount of comments are in Swedish... You can also look at this project: https://github.com/njz3/vJoyIOFeederWithFFB Haven't tried it by myself, so no guarantee if it's good or not..
  10. marccohn

    marccohn New Member

    Joined:
    May 5, 2020
    Messages:
    26
    Balance:
    301Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    Good news, got my encoder working with Wheel Config. Needed to add pull up resistors on the A and B signal. Not sure why AI-WAVE firmware needs the pull up resistors while not needed when I use a simple encoder reading sketch. Was even able to "drive" a few laps with no FFB and the accuracy over existing potentiometer solution in thrustmaster wheel was amazing.

    Anyway, baby steps, and on to FFB. Working to set up odrive motor driver to read the PWM signals from the Leonardo running AI-Wave firmware. Not seeing any signal on the PWM pins. 10 or 11 with any combination of settings. I don't have a scope, but I wrote a sketch for the Uno to read out the PWM signal for trouble shooting. This works when I send a PWM signal from another Arduino, but I get nothing when I run AI-Wave firmware. Feels like i tried every combination of PWM setting in Wheel Config, and every test mode in Wheel Check without any signal.

    Any help on getting a signal from AI-Wave firmware would be appreciated.

    Thanks
  11. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    395
    Balance:
    2,241Coins
    Ratings:
    +115 / 2 / -0
    Why use aiwave? Bugged a lot. Sometimes you have to wait till ffb appear... Also put constant force up.
  12. marccohn

    marccohn New Member

    Joined:
    May 5, 2020
    Messages:
    26
    Balance:
    301Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    Chose AI-Wave because I already had the Leonardo board and I was familiar with arduino tools and IDE, but you are right about bugs, and support, so I will be transitioning project to MMOS running on an STM32 board. Stay tuned for next round of questions.
  13. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    395
    Balance:
    2,241Coins
    Ratings:
    +115 / 2 / -0
    Have heard about EMC soft?)
  14. marccohn

    marccohn New Member

    Joined:
    May 5, 2020
    Messages:
    26
    Balance:
    301Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    Yes, got things working with EMC last night!

    Successfully drove a race using the 6.5" hoverboard wheel as a steering wheel. This was my first experience with an FFB wheel, so can't compare to anything, but driving experience was so much better then the old thrustmaster wheel I was using. Had to add in a second arduino as a PWM Converter because I couldn't get the EMC output to work with the Odrive. See diagram.

    Next Steps:
    -- Tune Feedback. (Upgrade EMC utility? Vibration effect is too high, turning force too low)
    -- Install Hardstop (Don't want the wheel spinning out of control as i crank up the power)
    ---- Is 350 degrees of rotation enough? How are others dealing with this?
    -- Eliminate, (or improve performance of ) Arduino based PWM converter. Looking for a way for oDrive to accept signal direct from EMC firmware. More research to do here
    -- Mount encoder. No more c-clamps and vice grips.
    -- Mount Real Wheel
    -- Move paddle shifter from thrustmaster to FFB wheel



    upload_2020-5-14_10-59-40.png
    • Informative Informative x 1
  15. Benu

    Benu Member

    Joined:
    Mar 19, 2018
    Messages:
    128
    Location:
    Germany
    Balance:
    1,295Coins
    Ratings:
    +42 / 2 / -0
    With the B-G431B-ESC1 the setup would look like this:

    B-G431B-ESC1 wiring.png

    Any force feedback board able to deliver PWM 0-50-100 output should work.
    • Winner Winner x 1
    • Informative Informative x 1
  16. fzxj520

    fzxj520 Active Member

    Joined:
    May 14, 2015
    Messages:
    176
    Location:
    SimTools is a generic Motion Simulator
    Balance:
    1,341Coins
    Ratings:
    +90 / 1 / -0
    My Motion Simulator:
    2DOF
    hi Benu
    Based on your security recommendations, I eventually re-established the connection using optical isolation.
    After testing, it runs perfectly.
    The Z phase function of mmos can also be used.
    I made a detailed picture
    MMOS.jpg
    • Winner Winner x 1
    Last edited: May 15, 2020
  17. njz3

    njz3 New Member

    Joined:
    May 15, 2020
    Messages:
    5
    Balance:
    58Coins
    Ratings:
    +0 / 0 / -0
    Hi
    I am the original author of this feeder + arduino stuff. The goal is to have a replacement for the Leonardo (AiWave, EMC or Mmos), with more flexibilty on the underlying mapping of axes and buttons, thanks to vJoy.
    As of today, it does need to have a analog feedback for the motor position (potentiometer), as I wrote it for arcade racing cabinet, but I envision to support encoder feedback in the short future.
    Compare to other solutions, you will definitly not get shorter delays or better handling of the ffb. It's a poor man solution, but since its free and open source, you should give it a try.
    Worth also tell you that it is possible to do a lowcost PMSM motor driver with an arduino Due and a cheap DRV8301 board (I did it myself with FOC control, this is not open source).
    Benjamin
  18. fzxj520

    fzxj520 Active Member

    Joined:
    May 14, 2015
    Messages:
    176
    Location:
    SimTools is a generic Motion Simulator
    Balance:
    1,341Coins
    Ratings:
    +90 / 1 / -0
    My Motion Simulator:
    2DOF
    Thank you very much for your suggestions. At the beginning I used the minimum force feedback test (and the time is very short), the temperature is acceptable.
    Because the size of the ESC is too small, it is difficult to install a larger heat sink, so when I tested higher force feedback, I temporarily used a fan to actively cool the ESC.
  19. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    395
    Balance:
    2,241Coins
    Ratings:
    +115 / 2 / -0
    Can the z toggle be omitted? And what to do then with mosfet gate connection on brake resistor?) Thanks.
  20. fzxj520

    fzxj520 Active Member

    Joined:
    May 14, 2015
    Messages:
    176
    Location:
    SimTools is a generic Motion Simulator
    Balance:
    1,341Coins
    Ratings:
    +90 / 1 / -0
    My Motion Simulator:
    2DOF
    Hello everyone, do you have the same problem as me?
    After switching on the 24v power supply, the Hoverboard motor will emit noise (The sound when the motor is stationary)
    Is there any way to reduce or eliminate this noise?
    A similar sound
    Last edited: May 15, 2020