Dynamixel

Dynamixel offers a varity of controlable motors to be used for small robots and manipulators.

Dynamixel is used many places - among them ithe the the educational crustcrawler manipulator.

Dynamixel motors short

  • rs485 based fieldbus

  • uses own protocol stack: Protocol 1 and Protocol 2

  • linux, mac and windows wizard program



Interesting topics

  1. Serial communication

    1. rs232 - point to point

    2. rs485 - multi drop

  2. Serial protocols

    1. Dynamixel protocols

  3. Arduino setup

  4. setup and handling of the CrustCrawler form a communication point of view



RS232 and RS485l

Tutorials for RS485

protocols

The MX64 motor

Dynamixel example code

We have som code snippets for protocol no 2 for the MX64

RS 485 design

RS485 troble shooting

EMG XBEE protocol

Slides

Exercises

We all ned to be in control of our wiring.

RS485 consists of

  • a pair of signal wires (see RS485 links above)

  • a way ot either

    • have common ground

    • avoid common ground by galvanic insolation (not case in our lab)

  • So you need to have TX, RX,GND from your Arduino to the red Sparkfun rs232 to rs485 board

    • check and double check that ( I have seen smoky devices from you the last week)

2)

Start loking at the CC protocol 2 for use in your project

Suggested mini project testing

  • Dynamixel motor

    • protocol 2

    • arduino as master on rs485

    • you code shall be easy to change motor ID ( we will announce ID of our motor present at examine)

    • identify address for one of your motors

  • design, implement, test and explain

    • reset command (for all motors ?!?)

    • enable/disable torques on dyn motor (command addr 24)

    • set P-gain once (meaning not every time in your loop)

    • With a fixed samplingsfreq (10 Hz) you shall

      • get present temperature and reset or stop motor is temperature is to .high