Results 1 to 4 of 4

Thread: Simultaneously run 2 or more Dynamixel Motors via OpenCM9.04

  1. Post Simultaneously run 2 or more Dynamixel Motors via OpenCM9.04

    Hello Everyone,

    Is it possible to run 2 or more Dynamixel motors at once via an OpenCM9.04 board i.e running them in parallel with different motions?. I have been trying for so long but I couldn't find any documentation of the functions nor a tutorial about this. Can anyone point me in the right direction?

    Thanks in advance.
    Last edited by Vighnesh; 1 Week Ago at 07:40 PM.

  2. #2

    Re: Simultaneously run 2 or more Dynamixel Motors via OpenCM9.04

    With questions like this you might want to ask it on the Robotis forum: http://en.robotis.com/service/forum.php

    Simple answer: Yes you can control multiple servos.

    Hard to give any complete answer on how best to do it, without knowing what all you are trying to do and additional information. Things like what motion, what servo, Is it Protocol 1 or Protocol 2, what library, Arduino? ...

    But longer answer is, it is all up to your main program to figure out. that is your main loop function will need to do things like:
    Code:
    uint32_t servo1_update_time;
    uint32_t servo2_update_time;
    
    void loop() {
        uint32_t loop_time = millis();
        // Maybe update Servo 1 every .2 seconds
        if ((loop_time - servo1_update_time) > 200) {
            // compute new position for Servo 1  and output it
            ...
            // remember 
            servo1_update_time = loop_time;
        }
        // Maybe update Servo 2 every half second second
        if ((loop_time - servo2_update_time) > 500) |
            // compute new position for servo 2 and output it
           ...
           servo2_update_time = loop_time;
        }
        ....
    }
    Again what exactly you do for the two servos? Depends on your needs. How to output new position depends on information like what type of servo. How much control you are giving the servos...

  3. Re: Simultaneously run 2 or more Dynamixel Motors via OpenCM9.04

    Hi KurtEck,

    Thanks!. Actually, I'm using an OpenCM9.04 type C board with 6 Servos (Dynamixel XL320) in a daisy chain fashion. I have connected this OpenCM9.04 board to Raspberry pi and I'm using USB to send messages like '1', '2' etc to call a function which is like moveEars() etc.

    I have a robotic pet kind of thing going on and I have to move both the ears in a certain way, but every time I try it It is moving then one after the other. I want to move them simultaneosuly. As I am programming the movement in the OpenCM board directly, I have some control over the servos.


    Thanks for the code template above. I will try it out soon.

  4. #4

    Re: Simultaneously run 2 or more Dynamixel Motors via OpenCM9.04

    To move them all at the same time, simply call the setGoalPosition() for each of the servo IDs at once.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Project of robotic Arm with dynamixel motors
    By urko_18 in forum Interbotix Robotic Arms
    Replies: 17
    Last Post: 01-10-2018, 07:00 AM
  2. Question(s) TTL and RS-485 simultaneously?
    By bewieliczko in forum DYNAMIXEL & Robot Actuators
    Replies: 1
    Last Post: 02-01-2017, 08:58 PM
  3. Question(s) openlog with openCM9.04 for dynamixel motor.
    By sinhuifasola in forum Software and Programming
    Replies: 2
    Last Post: 01-03-2017, 01:07 AM
  4. OpenCM9.04 and Dynamixel AX-12A
    By ritzdank in forum Robot Computers
    Replies: 9
    Last Post: 09-13-2015, 02:17 AM
  5. Question(s) Control AX/RX Dynamixel with Roboplus task with OpenCM9.04 type C + OpenCM 485 EXP
    By kongguan in forum DYNAMIXEL & Robot Actuators
    Replies: 0
    Last Post: 04-22-2015, 04:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •