set all actuators on the bus to ID 2 thus ONLY HAVE ONE DYNAMIXEL PLUGGED IN

Set all actuators on the bus to id 2 thus only have

This preview shows page 6 - 7 out of 7 pages.

set all actuators on the bus to ID 2 thus ONLY HAVE ONE DYNAMIXEL PLUGGED IN WHILE SETTING THE ID. /* Dynamixel ID Change Example Dynamixel ID Change Compatibility CM900 O OpenCM9.04 O Dynamixel Compatibility AX MX RX XL-320 Pro CM900 O O O O X OpenCM9.04 O O O O X **** OpenCM 485 EXP board is needed to use 4 pin Dynamixel and Pro Series **** created 22 May 2014 by ROBOTIS CO,.LTD. */ /* Serial device defines for dxl bus */ #define DXL_BUS_SERIAL1 1 //Dynamixel on Serial1(USART1) <-OpenCM9.04 #define DXL_BUS_SERIAL2 2 //Dynamixel on Serial2(USART2) <-LN101,BT210 #define DXL_BUS_SERIAL3 3 //Dynamixel on Serial3(USART3) <-OpenCM 485EXP /* Dynamixel ID defines */ #define NEW_ID 2 Dynamixel Dxl ( DXL_BUS_SERIAL1 ) ; void setup () { // Initialize the dynamixel bus: // Dynamixel 2.0 Baudrate -> 0: 9600, 1: 57600, 2: 115200, 3: 1Mbps Dxl. begin ( 3 ) ; /*************** CAUTION *********************** * All dynamixels in bus will be changed to ID 2 by using broadcast ID(0xFE) * Please check if there is only one dynamixel that you want to change ID ************************************************/ Dxl. setID ( BROADCAST_ID , NEW_ID ) ; //Dynamixel_Id_Change 1 to 2 Dxl. jointMode ( NEW_ID ) ; //jointMode() is to use position mode } void loop () { // Wait for 1 second (1000 milliseconds) delay ( 1000 ) ; } Retrieved from ""
Image of page 6
This page was last modified on 29 January 2015, at 19:44. This page has been accessed 5,347 times. Content is available under GNU Free Documentation License 1.3 or later unless otherwise noted.
Image of page 7

You've reached the end of your free preview.

Want to read all 7 pages?

  • Fall '14
  • Serial port, dynamixel, Dynamixel Dxl, dynamixel id

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes