LoCoBot

LoCoBot

  • LoCoBot Steps
  • LoCoBot-Lite Steps
  • Contact

›Prepare components

Getting Started

  • Overview
  • Component List
  • Files for Laser Cut
  • Files for 3D printing

Prepare components

  • Step 1
  • Step 2
  • Step 3

Attach Arm

  • Step 4
  • Step 5
  • Step 6
  • Step 7
  • Step 8
  • Step 9

Attach Camera

  • Step 10
  • Step 11
  • Step 12
  • Step 13
  • Step 14
  • Step 15
  • Step 16
  • Step 17
  • Step 18
  • Step 19
  • Step 20
  • Step 21
  • Step 22
  • Step 23

Attach Compute, wiring & misc

  • Step 24
  • Step 25
  • Step 26
  • Step 27
  • Step 28

Change motor IDs, baud rate and make their position zero

NOTE: Don't run this step if you have purchased build LoCobot from Trossen, instead follow these steps.

Components Needed

ComponentQuantity
Dynamixel Motors2
U2D21
12V DC Power (comes with arm)1
Dynamixel Hub(comes with arm)1
Micro Usb Cable (comes with U2D2)1
NUC (used in previous step)1

Attach cable to dynamixel motor

NOTE: Attach only one motor

Take out the motor from the dynamixel motor box. It will have a motor, wire & some screws. First, attach a wire to the motor as shown in the figure below. It can go into the motor in only one way. The flat end on the female of the wire goes towards the flat end on the male socket

alt-text

Attach cable to dynamixel hub

Now we are going to attach other end of the above-attached wire to the dynamixel hub that we received with the arm. Over here also note should be taken that wire goes only one way The flat end on the female of the wire goes towards the flat end on the male socket alt-text

The setup should look like this alt-text

Attach Dynamixel Hub & U2D2

Attach one more wire on the dynamixel hub.You can use the 3 pin wire that came with arm alt-text

Attach the other end of above-attached wire to U2D2 alt-text

Attach power

Attach 12V power output to the dynamixel hub as shown in following picture. As soon as you attach power, the red led on the back of the motor will blink if the connections are proper. NOTE: Make sure 12V power supply is connected to AC power outlet alt-text

Configure Motors

Attach micro USB end of the wire that came with U2D2 as shown in the figure. Attach the USB end to the NUC. alt-text

On NUC, after you plug in the USB, you should be able to see ttyUSB_dyna under /dev directory. If it is not there, there is some issue with udev rules

Run roslaunch locobot_control change_id.launch --> It should give you the following output alt-text

Press enter after this --> you will see the following output alt-text

  • First, we will change the id. For this type id 8 and enter. You will see ...Succeeded to set Dynamixel ID [8]. If you have a permanent marker, write 8 on the motor, so that we can distinguish while assembling.
  • Press enter to get the menu as above picture. Before running any command you should see [cmd] this on the terminal.
  • Type torque on and press enter. This will enable the torque on motor. Press enter one more time to get the menu option.
  • Type goal 1024 and press enter. The motor should move after this. Press enter one more time to get the menu option.
  • Type goal 0 and press enter to get back the motor in 0 position. The motor should move after this. Press enter one more time to get the menu option. [Note: After this don't move the motor shaft, until we mount it on the robot]
  • Type baud 1000000 and press enter. This will change the baud rate on which motor will respond. Press enter one more time to get the menu option.
  • Type exit and press enter.

Similarly, we will try to change the id, baud rate of one more dynamixel. For setting up, we will just have to remove the wire that was going into the previously used motor and attached it to the new motor.

On the NUC side, we will have to follow exactly the same steps as above while doing it. The only change will be one cmd, id 8 from id 9, that we used in 1 point of the previous step

← Step 1Step 3 →
  • Components Needed
  • Attach cable to dynamixel motor
  • Attach cable to dynamixel hub
  • Attach Dynamixel Hub & U2D2
  • Attach power
  • Configure Motors
Carnegie Mellon University