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

MMOS controller with cheap servo drive and motor

Discussion in 'Direct Drive Wheels' started by sikjar, May 22, 2017.

  1. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,060Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    I can answer point 1 !!!!! :)

    From one of my side projects:
    This averaging is due to a tiny jitter in the input signal which would cause the motor to vibrate into position rather than go smoothly in one direction.
    I saw this exact thing happen when I was reading a position target value and there was a bit of noise on the input line which caused the motor to become unstable.

    Essentially this acts as a "smoothing" function,
  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Do you think the lack of resolution is actually to do with the windings inside the motor and how they are spaced apart ?

    Is this a dc bushed motor ?
  3. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,060Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Stepper motors will normally have a 1.8 degree spacing per step and so that is where the "cogging" feeling comes from. To counteract this you can use something called micro stepping where you tell the motor to step froward but not quite fully forward. This is done by partially energizing two coils instead of one. This type of control can go as low as 1/16th of a step. While this may smoothen out the cogging that is felt it can drastically reduce the amount of torque available from the motor as the coils are not fully energized. To add more torque back into the motor a higher voltage is used, typically larger than 48V and usually above 70V.
    • Like Like x 1
    • Informative Informative x 1
  4. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    is the motor a stepper motor or a AC/DC syncro motor ?
  5. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,060Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    The motor is a stepper motor
    • Like Like x 1
  6. sikjar

    sikjar Xiao Nie

    Joined:
    Nov 10, 2014
    Messages:
    30
    Occupation:
    Translator
    Location:
    China
    Balance:
    812Coins
    Ratings:
    +38 / 0 / -0
    My Motion Simulator:
    Arduino
  7. sikjar

    sikjar Xiao Nie

    Joined:
    Nov 10, 2014
    Messages:
    30
    Occupation:
    Translator
    Location:
    China
    Balance:
    812Coins
    Ratings:
    +38 / 0 / -0
    My Motion Simulator:
    Arduino

    Hi, a late reply to the above:
    1. I collect 10 samples to smooth out any spikes there may be in the FFB signal. I tried leaving this part of the script out, and it doesn't actually seem to make much of a difference.
    2. I set the torque to zero before changing the direction of the force, to avoid having the force feedback suddenly jolt in one direction, and the the other direction.
    3. The torque is only set to zero at startup initialization and when the direction changes.
    Hope this answers your questions.
  8. ahoenksiluman

    ahoenksiluman Member

    Joined:
    Nov 13, 2017
    Messages:
    91
    Location:
    indonesia
    Balance:
    89Coins
    Ratings:
    +46 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    can you see leadshine EL5-D1000...??

    can it be the motor driver..??
    that driver have much mode and feature...
    maybe it can work like argon driver...

    sorry for bad english...
  9. sikjar

    sikjar Xiao Nie

    Joined:
    Nov 10, 2014
    Messages:
    30
    Occupation:
    Translator
    Location:
    China
    Balance:
    812Coins
    Ratings:
    +38 / 0 / -0
    My Motion Simulator:
    Arduino
    I don't know, never tried the EL5-D1000. But you wold probably have to change the hex code sent via serial in order to make it work.
    If the EL5-D1000 can change the torque output based on a PWM signal, the you don't need the arduino, you can use it like an Argon driver.
  10. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
  11. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
  12. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
    Seems like those drivers can't handle pwm input. So they probably wont't work with mmos.
  13. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
    After reading the manual, I don't think the EL5-D1000 can accept pwm as input. Seem like not even a single servo driver on aliexpress can do this.
  14. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
    Your arduino project seems to be like the last chance for a cheap dd-wheel.
    Last edited: Nov 29, 2017
  15. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    can you program a chip to convert the pwm to the signal the servo will accept

    what type of signal do you need ?
  16. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
    No. But that is exactly what is done with the arduino here. Mmos only outputs pwm but the cheap drivers can only use pulse + direction. The only other option would be this project: https://www.xsimulator.net/community/threads/son-of-opensimwheel-an-experiment.7422/

    But the problem is, RufusDufus won't share details of his approach because he want's to sell his controllers. But on the other hand, he just only made a handful of them... But you can ask him, if he will put you on his list. But don't expect to much: I am waiting since March...
  17. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    are you using a stepper motor ?
  18. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
    At the moment, I am using neither a servo, nor a stepper motor. I wanted to use a stepper motor with the controller from rufusdufus, but since this project seems to be dead, I wanted to build a cheap OSW based on Chinese hardware from aliexpress. Unfortunately, none fo the stepper drivers can handle pwm inputs, so unless we find a solution for that, we will have to stick with argon or simucube/ioni. I am not a hardware engineer at all. Only a software engineer;).

    But maybe we could convert the digital pwm signal to an anolg signal to feed the driver?
  19. MegamanAT

    MegamanAT New Member

    Joined:
    Feb 13, 2017
    Messages:
    23
    Location:
    Austria
    Balance:
    157Coins
    Ratings:
    +8 / 1 / -0
  20. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    does the driver need a 0-5v output ?