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

$450 Mige Direct Drive Wheel using MMOS and AASD

Discussion in 'DIY peripherals' started by Peacemaker105, May 6, 2020.

  1. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,043
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,956Coins
    Ratings:
    +10,883 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Great overview, in particular covering some of the gotchas like the getting the uploader to run and connect.

    I have added your BlueHID button box to the BlueHID FAQ section, with credit to yourself: https://www.xsimulator.net/communit...-for-pedals-buttons-other-types-of-input.266/
    • Friendly Friendly x 1
  2. TedBrosby

    TedBrosby New Member

    Joined:
    Jun 18, 2020
    Messages:
    6
    Balance:
    57Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Arduino
    BTW can the Discovery STM32F4 still work?
  3. TedBrosby

    TedBrosby New Member

    Joined:
    Jun 18, 2020
    Messages:
    6
    Balance:
    57Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Arduino
    Hi, have you already purchased?
    I'm also in Japan, and I think if we buy together, we save on shipping. That's what I read about aliexpress online.
    However, I want to buy a 30 Nm motor with 1500 rpm and a faster encoder that's directly compatible with Simucube. But I think our shipping will be cut in half if we order together.
  4. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,459Coins
    Ratings:
    +106 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    A quadrature optical encoder is an analog encoder with a comparator on each signal to only output high or low, hence only 4 states.

    A SinCos encoder is actually really just a analog optical encoder with differential 2 wires per signal.
    A servo driver that accepts a SinCos encoder uses an ADC to convert the analog signal to 8,16,32,64,128 or 256 levels which increases the resolution by the x factor.

    The AASD servo drive actually will accept a Absolute encoder 130000.
    Pn080▲ The encoder to choose 0~1
    ◢ 0: Incremental encoder 2500 line ◢ 1: Absolute encoder 130000 line


    You can use the gear divider so that you can output to MMOS 16000ppr limit(?).

    Pn016▲ The molecular DA of encoder divider output 1~63
    Pn017▲ The denominator DB of encoder divider output 1~63

    ◢ Encoder output, a electronic gear used for dividing the encoder pulse signal output. Frequency division value must be satisfied: DA/DB > = 1. Encoder, for example, to line 2500, DA/DB crossover value = 25/8, then after frequency division line Number: 2500 / (DA/DB) = 2500 / (25/8) = 800 line

    So maybe make an enquire from the supplier to fit a 130000 absolute encoder instead of the 2500 quadrature encoder.
    It shouldn't really be more expensive for the 130000 abs except if the all come standard with the 2500 quad encoder and the supplier has remove and replace encoder.
    Note the 130000 abs encoder will limit the top speed (rpm) of the motor but for the application of the steering wheel that isn't going to be an issue.
    • Like Like x 2
    • Winner Winner x 1
    Last edited: Jul 7, 2020
  5. diggumwood

    diggumwood New Member

    Joined:
    May 9, 2020
    Messages:
    11
    Balance:
    92Coins
    Ratings:
    +5 / 0 / -0
    No I haven't ordered it yet as I'm waiting to hear that he has some in stock. We could totally combine the shipping as long as you're in the Kanto area. Are you on his discord?

    Or if he sells them all out again then we could go in on a small batch from a PCB printing company and put them together ourselves. I've got my 3D printer together now so the driver board is the final piece.

    Edit!
    Sorry I just saw that you were talking about the motor, not the DD board. Yeah I bought mine during the summer sale and i have already recieved the servo. Sorry, I'm a bit low on sleep today!
    Last edited: Jul 8, 2020
  6. DJ_BLAZKOWICZ

    DJ_BLAZKOWICZ New Member

    Joined:
    Dec 12, 2017
    Messages:
    27
    Occupation:
    IT TECH
    Location:
    Scotland
    Balance:
    266Coins
    Ratings:
    +17 / 2 / -0
    STM32F407 should work. I'm using the STM32F407-DISC1 board. Waveshare Core407 and that the DIYMORE STM32F407VGT6 should work. newer iterations of the chip like STM32F411 will not work as they are not compatible with mmos.

    Also if you want to use Thanos' DAC board you will need a board that he recommends as the pinout is not the same on all of them.

    EDIT: i started typing the post twice and the site remembered my draft lol
    Last edited: Jul 8, 2020
  7. DJ_BLAZKOWICZ

    DJ_BLAZKOWICZ New Member

    Joined:
    Dec 12, 2017
    Messages:
    27
    Occupation:
    IT TECH
    Location:
    Scotland
    Balance:
    266Coins
    Ratings:
    +17 / 2 / -0
    I have mine limited to 150rpm and it's perfectly adequate. Still can give more than enough of a jolt to snap PLA quick releases hehehe
  8. TedBrosby

    TedBrosby New Member

    Joined:
    Jun 18, 2020
    Messages:
    6
    Balance:
    57Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Arduino
    Does anyone know if Lisa Zhan can still attach a 10k encoder to a servo motor? And how much they cost additionally? Also, I'm going to do this but instead of the motor @Peacemaker105 used, I'm going with the ST130-M15015 because I want to make a Simucube 1 eventually. As long as I have the same controller attached, (AASD), I can still do this right?
  9. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,459Coins
    Ratings:
    +106 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    @TedBrosby
    I would be a bit wary about the 10k encoder...
    You would want to find out whether it is 10k cpr(counts per rev) or 10k ppr(pulses per rev), both are not the same.

    A 2500 ppr encoder can also be called a 10000 cpr encoder.
    edit... 2500 ppr = 2500 x 4 quadlature counts.

    some manufacturers/sellers use different terminology even with ppr and to be sure what you are getting it is best to ask what the encode's LPR (lines per rev) is as that should be how many lines on the encoder's disc.

    To tell you the truth you will not get 10k lines on a disc unless it is around 5-6" in diameter.
    You run in to what is called light diffraction when you try putting more than 300 lines per inch and acts like a kaleidoscope, remember the telescope toy you get as a kid that you look in to see light as a rainbow or just reflect light of a cd or dvd to see the same effect.

    I think you will be hard pressed to get a mige motor to work with the aasd servo driver as you would have to manually input the motors parameters in to the drive, it would be a lot easier just to initally purchase the mige's matched servo drive or get the AASD motor and matched AASD drive like peacemaker did. A lot less headaches.

    Peacemakers title isn't really correct as he is not using a mige motor but the AASD motor.
    • Like Like x 1
    Last edited: Jul 10, 2020
  10. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,459Coins
    Ratings:
    +106 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    In retrospect I was talking about optical rotary encoders above.
    It is possible to get magnetic field encoders with high resolutions as they do not get the optical diffraction problems.
    forgive me...
  11. TedBrosby

    TedBrosby New Member

    Joined:
    Jun 18, 2020
    Messages:
    6
    Balance:
    57Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Arduino
    I feel like maybe you didn't read my comment correctly.
    I was talking about getting an AASD matched servo motor combination and asking Lisa Zhan to include a 10k PPR encoder by default (max for stock MMOS, but still good enough for Simucube 1).
    The reason being, the AASD includes power, but Simucube 1 and IONI requires around 360W or 480W for a small mige motor in order to drive the 12.7A safely at 48V.
    So I could use the MMOS firmware hack in this thread to use it as is, and then eventually piece together the IONI, Simucube 1 and PSU in order to make it an SC1.
  12. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,459Coins
    Ratings:
    +106 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    Sorry @TedBrosby
    I don't know who Lisa Zhan is and did think you were talking about getting a mige brand motor.
    The caution was mainly... well you know how chinese sellers get a lot of things lost in translation and even sometimes exaggerate a little.

    Anyhow if you look at the AASD manual or even my post above.
    Pn80 sets the encoder and has a range of 0-1.
    2500 incremental encoder(0) or
    130000 absolute encoder (1)

    I know you say MMOS will only accept 10000 counts but.....
    Set Pn16=13 and Pn17=1
    that gives Pn80 / (Pn16 / Pn17) = encoder out
    130000 / (13 / 1) = 10000 quadulature out to Cn2 encoder out A & B

    Who knows they may have other options for different encoders as the AASD manual was written in 2007 and updated in 2014, its now 2020....
    • Like Like x 1
  13. Peacemaker105

    Peacemaker105 Active Member Gold Contributor

    Joined:
    Jul 18, 2017
    Messages:
    197
    Location:
    Perth, Aus
    Balance:
    1,994Coins
    Ratings:
    +355 / 2 / -0
    My Motion Simulator:
    6DOF
    Hey mate, as mentioned above i would be cautious about an encoder higher than 2500PPR for now as i'm not sure the AASD will accept anything different.. The manual states 2500.. not sure if throwing a 10kPPR would work. but i'm still trying to track a cheap second hand one down and try it for science haha. But im leading towards no.. I wish we could find out how to contact the manufacturer.

    But to answer your other question, yes, she can still attach 10kppr encoder if you ask.
    Last edited: Jul 10, 2020
  14. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,935
    Location:
    London
    Balance:
    11,838Coins
    Ratings:
    +473 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Too many pulses will create a lot of work for the processor with no gain in performance, you may end up loosing counting some pulses

    360 / 2500 = 0.144

    So the wheel will be accurate to 0.144 degrees of rotation

    I built a dc dd wheel with 360 pulses, it felt great
  15. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,459Coins
    Ratings:
    +106 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    hey @Peacemaker105
    you might like this even better


    44.png
    11.png
    22.png

    Have a look at the cncservo2015v4 pdf, it looks like you only got half the manual.

    Attached Files:

    • Like Like x 1
  16. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,459Coins
    Ratings:
    +106 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    I would disagree with that.
    I would say it would be more ideal to have 1800ppr to mmos.
    why? well directX uses +_10000 value for steering no matter how many degrees you set for rotatation.
    with 1800ppr or 7200cpr you would get 360+140 each way which would be 1.3888 turns each way and ends up being 1000deg total.
    Set mmos at 1000deg and then in any sim set to your desired deg be it 360deg all the way up to 1000deg, directx and mmos will always be working in integer numbers.
    • Like Like x 1
  17. TedBrosby

    TedBrosby New Member

    Joined:
    Jun 18, 2020
    Messages:
    6
    Balance:
    57Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    Arduino
    Well guys, I was super interested in doing this but I didn't want to risk the Simucube 1 no longer being sold on Granite's website and I have no intention of buying an SC2 at those prices, so I went all in on OSW (130ST-AM10010 + Biss C encoder + SC1/IONI Pro HC).
    I think this is great though, I was really going to try it but after selling my Fanatec CSW 2.5 I end up only losing $70 to build an entire SC1.
  18. wellbornwinter6

    wellbornwinter6 New Member

    Joined:
    Jul 15, 2020
    Messages:
    1
    Balance:
    85Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    AC motor
    where to order the 3D Printed hub Adapter ???the link doesn't have an order button & i cannot 3D print it in metal where i live??what should i do instead is there any alternatives?
  19. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,358
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,773Coins
    Ratings:
    +1,050 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    • Like Like x 1
    • Informative Informative x 1
  20. DJ_BLAZKOWICZ

    DJ_BLAZKOWICZ New Member

    Joined:
    Dec 12, 2017
    Messages:
    27
    Occupation:
    IT TECH
    Location:
    Scotland
    Balance:
    266Coins
    Ratings:
    +17 / 2 / -0
    You don't need metal. You can use PETG or ABS, or even PLA. I'm using PLA with a weaker motor (90ST-M04025, 66% maximum force in MMOS).
    As long as you print with 100% infill it will be strong enough.

    Also, if it breaks, it will probably snap before it starts to twist your thumbs/wrists if your hand is stuck on the wheel during a crash, so reasonable fail-safe hehe.

    But you can get off the shelf parts for these as the 130st motor is very popular for DD wheels. Read back further up a bit for recommendations.
    • Like Like x 1