Motor IDs explained

Why every motor needs its own number, and how to give each one its number safely, one at a time.

All six motors of an arm share one cable. When your computer sends a command, it has to say who it is for. That is the motor ID: shoulder pan is 1, shoulder lift 2, elbow flex 3, wrist flex 4, wrist roll 5, gripper 6.

The catch. New motors usually all ship as ID 1. If you chain six of them together, they all answer to 1 at once and nothing works. So you give each motor its number one motor at a time, with only that motor plugged into the board.

The number is written into the motor's own memory (its EEPROM), so you only do this once per motor. If you reuse motors from another robot you will probably have to do it again. At the same time, the same speed for talking (the baud rate) is set for every motor, so the board and the motors agree.

The official order is: gripper first (it becomes ID 6), then wrist roll (5), wrist flex (4), elbow flex (3), shoulder lift (2) and last shoulder pan (1). The app follows this order.

Here is how to set ONE motor's ID. Repeat it for each of the six motors, once per arm.

  1. Unplug the power supply from the wall, and pull the USB cable out of the board.
  2. Pull every 3-pin cable out of the board's motor sockets. Leave the board's two jumpers on channel B (USB).
  3. Pick up the motor you are naming, a black box about two and a quarter finger-widths long. Start with the gripper motor.
  4. Push one plug of a 3-pin cable into either socket of that motor until the plug sits flush with the socket opening.
  5. Push the other plug of that cable into a motor socket on the board until it sits flush too.
  6. Check that this is the only motor attached: no other cable leads to the board, and this motor's second socket is empty.
  7. Plug the USB cable into the board and into your computer.
  8. Plug the power supply into the board, then into the wall.
  9. Open the Motor IDs page and look at the list of motors that answered. You want to see exactly 1. If your board has a power light, it is on.
  10. Press the button on that page that sets the ID, the one that names the number you want (for the gripper motor, 6).
  11. Read the message on the page: it confirms the new ID. Write that number on a small sticker and stick it on the motor.
  12. Unplug the power supply, pull the 3-pin cable out of the board (it can stay in the motor), and go on with the next motor in the order above.
See it in the app

This article is also inside the app, next to the 3D arm. Open it in the live demo.