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

Robo Claw Motor Controller NEW

Discussion in 'Motor actuators and drivers' started by stroutmail, Nov 12, 2014.

  1. stroutmail

    stroutmail Member SimAxe Beta Tester Gold Contributor

    Joined:
    Oct 22, 2014
    Messages:
    99
    Occupation:
    Investment Manager/Economist/Engineer
    Location:
    Pennsylvania
    Balance:
    1,065Coins
    Ratings:
    +47 / 1 / -0
    My Motion Simulator:
    2DOF
    When choosing a component, I tend to seek a high safety factor. Stall amperage on DC motors can be very high--particularly when they reverse. So a motor that is moving a lot might tend to generate much more heat than the "design load" amperage. I am guessing that a 1/4 HP motor designed to draw 20 amps might regularly see 50 amps running a Sim at a fast road course with lots of direction changes and slower corners requiring heavy braking followed by full throttle.
  2. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    The kangaroo sounds good and they say it will work for motion simulators but most members I know that have tried it have had problems getting a good auto tune and/or the proper type of motion we need. You are welcome to give it a try but I have not been recommending it until someone can prove it works well and how they did it. I mostly was in contact with Dimension Engineering over how to set up their simple serial mode on the kangaroo to use with simtools, not how to get a proper auto tune, etc. While the people there are nice and try to help, in the end, they couldn’t tell me what I needed to know (even the engineer) and I had to figure the code need out for myself by emulating a terminal program.

    The sabertooth motor controllers themselves are the bomb though! :p
    • Agree Agree x 1
    • Winner Winner x 1
  3. stroutmail

    stroutmail Member SimAxe Beta Tester Gold Contributor

    Joined:
    Oct 22, 2014
    Messages:
    99
    Occupation:
    Investment Manager/Economist/Engineer
    Location:
    Pennsylvania
    Balance:
    1,065Coins
    Ratings:
    +47 / 1 / -0
    My Motion Simulator:
    2DOF
    A couple videos showing the Kangaroo and it's teaching mode. Potentiometers would almost always be cheaper, but the Encoder seems "interesting" if you believe in the value of digital vs analog. The Kangaroo is very "friendly" to encoders with an I terminal for three channel "indexed" incremental quadrature encoders and L1,L2 terminals for limit switch option. Picking a 1024 pulse/rev encoder gives accuracy of 0.4 degrees for 180 degree of motor travel--that is probably about 1/8" of shoulder movement on a shaker seat. Most potentiometer linearity limits in that range.



    • Like Like x 1
  4. stroutmail

    stroutmail Member SimAxe Beta Tester Gold Contributor

    Joined:
    Oct 22, 2014
    Messages:
    99
    Occupation:
    Investment Manager/Economist/Engineer
    Location:
    Pennsylvania
    Balance:
    1,065Coins
    Ratings:
    +47 / 1 / -0
    My Motion Simulator:
    2DOF
    See below answer from Robo Claw about POT control. A bit "greek" to me.


    Post subject:
    Robo Claw using POT-Race Simulator
    [​IMG]Posted: Thu Nov 13, 2014 5:10 pm
    [​IMG]
    New User

    Joined: Thu Nov 13, 2014 4:51 pm
    Posts: 1
    Trying to figure out how to use Robo Claw to operate DC Motors using Potentiometer Feedback. Typically the motor rotates 0-180 degrees with 90 degrees being "home".

    Do we need an Arduino to control the Robo Claw in a way like we use the MotoMaster or can we use the PC Serial Output from the Simulator Software? See link. If so, could you post a sample of the lines of code required for the Arduino?

    http://www.xsimulator.net/wp-content/up ... -setup.png

    If we choose an encoder, how would you suggest we make it move back to "home"?


    [​IMG]
    Top
    [​IMG] [​IMG]
    [​IMG]
    [​IMG]
    Acidtech
    Post subject: Re: Robo Claw using POT-Race Simulator
    [​IMG]Posted: Sat Nov 29, 2014 1:32 pm
    [​IMG]
    Site Admin
    [​IMG]

    Joined: Thu Mar 01, 2001 2:00 pm
    Posts: 1314
    Location: Temecula, CA
    You should use the IonMotion software to setup the roboclaw to use the POT as an encoder. The pot signal should connect to the A channel of the encoder for the particular motor channel you are using. In the general settings in IonMotion set the encoder type to absolute.

    Then to use position control you will need to setup the variables in the position settings tab. There are a lot of settings. At a minimum you must set the QPPS, Position P and D and Position Min and Max. Everything else can be 0.

    To calculate QPPS with a POT can be tricky because its got limited range of motion. In the PWM settings window run the motor at 150(1/10 full power) and read the speed value. You are looking for the max speed reached. Move the motor back and forth at +-150 since you have limited range. Once you know approx speed at 1/10 multiply that value by 10 and that will be your approx QPPS.

    back in the Position Settings windows.
    Set min and max to the range of your pot(in encoder counts) with about 50 to 100 margin so you wont damage the pot if the motor over shoots.
    Set the Speed argument to the same value as QPPS.

    At this point you can try using the autotuner. Set the drop down to PD and hit the autotune button for the motor you are tuning. Be ready to shut everything off if something goes wrong. This usually only happens if QPPS is set badly wrong. Other wise the motor should move a bit and oscillate a little for a couple seconds and then stop. When its done you hsould have some values in P and D. If they say "infinite" then it failed to autotune.

    In either case you will probably want to do some manual tunning even after the autotuner is finished.

    _________________
    Tech Support
    Basic Micro - Robotic Technology Evolved
  5. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    Well I see they finally answered! But after reading all that, and considering that Simtools can already use the kangaroo motion controller, and it can use a pot, it seems like it is the better of the two at this point at least. I thought they said it should be easy! Also, since you like to talk about latency, the kangaroo only needs one byte per motor used to control it from Simtools. The Roboclaw would require several bytes per motor used and a checksum to be calculated each time as well.

    Edit: It actually takes more than one byte to control each motor with the kangaroo because Simtools is sending text commands to it. Each character sent will take one byte. I control my sabertooth motor controllers (without the kangaroo) though using singe byte commands.
    • Agree Agree x 1
    Last edited: Nov 30, 2014
  6. stroutmail

    stroutmail Member SimAxe Beta Tester Gold Contributor

    Joined:
    Oct 22, 2014
    Messages:
    99
    Occupation:
    Investment Manager/Economist/Engineer
    Location:
    Pennsylvania
    Balance:
    1,065Coins
    Ratings:
    +47 / 1 / -0
    My Motion Simulator:
    2DOF
    People at Dimension in Ohio are very helpful and informative. The Robo Claw people were much less so.

    I will be going with Kangaroo and encoder..will try without Arduino but if Arduino is needed or desired I have a programer available to assist with adapting their library.

    I have great respect for Carnegie Mellon Robotic grads like those at Dimension.
    • Agree Agree x 1
  7. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    You don't need an Arduino. The kangaroo is your Arduino. You just need a Sabertooth or SyRen motor controller to go with it along with a serial port or usb to serial converter on your computer.
  8. stroutmail

    stroutmail Member SimAxe Beta Tester Gold Contributor

    Joined:
    Oct 22, 2014
    Messages:
    99
    Occupation:
    Investment Manager/Economist/Engineer
    Location:
    Pennsylvania
    Balance:
    1,065Coins
    Ratings:
    +47 / 1 / -0
    My Motion Simulator:
    2DOF
    Thank you. I'm hoping it is simple. I guess the Arduino library they have is if you don't use Kangaroo.
  9. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    You need to use an arduino with the kangaroo if you want to use packet serial commands instead of simple. http://www.dimensionengineering.com/software/KangarooArduinoLibrary/html/ . But their is really no need to use packet serial unless you want to retrieve information back from your kangaroo or you are having transmission problems since packet serial uses a checksum where simple does not.
    • Informative Informative x 1
    Last edited: Nov 30, 2014
  10. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    ps We only need an arduino to use packet serial with Simtools right now. In the future a kangaroo plugin could be developed using packet serial commands if needed.
    • Like Like x 1
  11. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    any news here? I do not know yet if one of my MM's has blown (one motor stopped, SMC3 shows power on), tomorrow I will check out my hardware. If one MM failed, I would be interested in going on with the 2x60A RoboClaw. 2x60A continuous and 120A peak - that is not to be sneezed at.

    PS: no MM has ben blown, a cooked wire has been detected.......
    • Like Like x 2
    Last edited: Jan 13, 2015
  12. Avenga76

    Avenga76 Well-Known Member

    Joined:
    Jun 29, 2014
    Messages:
    518
    Occupation:
    Network Engineer
    Location:
    Auckland, New Zealand
    Balance:
    3,261Coins
    Ratings:
    +853 / 6 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    I am very keen to see these working with Simtools.

    My motors draw over 70A peak and they are causing the JRK's to error. I have limited the duty cycles which help but they still overload on extreme corners.

    The 2X60A (120A peak) would be perfect for my simulator.
  13. welen123

    welen123 Member Gold Contributor

    Joined:
    Jan 10, 2015
    Messages:
    98
    Location:
    HongKong
    Balance:
    35Coins
    Ratings:
    +57 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    It looks great!
    Although I basically didn't understand most..
  14. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
  15. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,959Coins
    Ratings:
    +1,016 / 10 / -1
    • Like Like x 1
  16. Evan Rowlands

    Evan Rowlands EMR Industries

    Joined:
    Jan 22, 2017
    Messages:
    190
    Occupation:
    business owner/ EMR industries
    Location:
    Melbourne Australia
    Balance:
    - 82Coins
    Ratings:
    +33 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    G'day guys

    Has anyone ever gone though and built one of these. I current use sabertooth 2 x 60 for my front 2 motors they handle my sway and surge and I run a syren 50 for the single traction loss motor. and got an email say the syren 50 and sabertooth 2x60 chipset is not available for 20 weeks due to world events.
    I'm looking for a solution
    I'm keen on a robot claw or sabertooth 2 x 32. Did anyone complete a test sample or get then robo claw working on simtools?
    Last edited: May 23, 2022
  17. Evan Rowlands

    Evan Rowlands EMR Industries

    Joined:
    Jan 22, 2017
    Messages:
    190
    Occupation:
    business owner/ EMR industries
    Location:
    Melbourne Australia
    Balance:
    - 82Coins
    Ratings:
    +33 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Hi guys i got he boards now how anyone used these before?
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,157
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,628Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    This thread is the most comprehensive Robo Claw discussion I am aware of.
    • Like Like x 1
  19. Evan Rowlands

    Evan Rowlands EMR Industries

    Joined:
    Jan 22, 2017
    Messages:
    190
    Occupation:
    business owner/ EMR industries
    Location:
    Melbourne Australia
    Balance:
    - 82Coins
    Ratings:
    +33 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Thanks mate ill just have to wing it and try it out
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,157
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,628Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    This is the DIY way, see what works, or not, and share that experience with others :thumbs