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

6 DOF from one Arduino?

Discussion in 'SimTools compatible interfaces' started by DDU, Sep 21, 2014.

  1. DDU

    DDU New Member

    Joined:
    Jan 4, 2014
    Messages:
    29
    Location:
    Melbourne
    Balance:
    908Coins
    Ratings:
    +22 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I know very little about the Arduino, so it would be great if someone more knowledgeable could confirm/deny/discuss.

    The Arduino has 6 PWM pins, so you could drive 6 servos, right? So with the right code, you could have it control a 6 DOF sim?

    If yes, what low cost driver could accept the PWM signals and be used to drive 12v DC motors?
  2. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,400Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    mmm A Jrk 12v12 can be driven with an RC pulse. Was the way I first used them back in 2009, two Jrks hooked to a usb servo controller.
    Then discovered I could talk to them directly with USB commands.
    Opps sorry your looking for a low cost driver.
  3. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Driving many servos with arduino is no problem:
    you're right a single PWM pin per servo is enough.

    you even have dedicated board
    https://learn.adafruit.com/16-channel-pwm-servo-driver/overview
    yes, but a miniature scale simulator only. You can find some examples in the forum.

    here a 4DOF gSeat with servos from @Schluzu http://www.xsimulator.net/community/threads/ultraforce-gs-4-diy-software.5280/

    but if you want to drive 12V DC motor, they are not servos!
    For these, you need power and H-bridges

    or you can buy 12 DC servos but it's probably expensive.
    Do your sourcing and share back the results with us!
  4. DDU

    DDU New Member

    Joined:
    Jan 4, 2014
    Messages:
    29
    Location:
    Melbourne
    Balance:
    908Coins
    Ratings:
    +22 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    How does the Arduino control the servos? Is the PWM signal like a standard RC servo signal? If yes, an ESC can accept RC servo signals, so can we use a bi-directional ESC to drive the 12v DC motors?
    • Agree Agree x 1
  5. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    You can start by googling a bit and bringing answers rather than questions ;)
    Here are some answers
    http://dronesandrovs.wordpress.com/2012/11/24/how-to-control-a-brushless-motor-esc-with-arduino/
  6. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
  7. DDU

    DDU New Member

    Joined:
    Jan 4, 2014
    Messages:
    29
    Location:
    Melbourne
    Balance:
    908Coins
    Ratings:
    +22 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks mat.

    I googled for some time, and used many different terms, but the info I found was not very clear. I understand how an ESC works - I'm just asking if it's suitable for this or is there a better solution?
  8. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,400Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Im in the middle of finishing off code for a K8061 to run 3x sabertooths to run a 3 to 6 dof sim off one cheap controller.
    No code will be require by the user like in my existing K8055 application that successfully controls one Sabertooth.
    BTW Mat did you finish your Ard code to run a Sabertooth, your existing code fails.


    K8055 Interface V1.png
    • Like Like x 1
  9. DDU

    DDU New Member

    Joined:
    Jan 4, 2014
    Messages:
    29
    Location:
    Melbourne
    Balance:
    908Coins
    Ratings:
    +22 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Clearly you guys are more knowledgeable than me when it comes to this stuff, so I'll just throw another idea out there. Forget the ESC for now.

    As a single Arduino can already control 6 x servos, can we unhook the servo output from the small motor that is inside the servo, and hook it up to a driver to amplify the signals to run a large 12v motor?

    If yes, this would make a very cheap 6DOF controller.
  10. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,400Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Can be done.
    Here's a video of it. I heavily researched it before finding the Jrks in 2009.
    • Like Like x 3
  11. DDU

    DDU New Member

    Joined:
    Jan 4, 2014
    Messages:
    29
    Location:
    Melbourne
    Balance:
    908Coins
    Ratings:
    +22 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for the vid Rob! Looks like it is indeed do-able.
  12. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Unfortunately, it is still a Work In Progress and I haven't finished it. Maybe one day someone could start from this and finish it...
    • Like Like x 1