The Complete T-Hex 3DoF Tutorial (Bot Board II)

Last modified by Eric Nantel on 2024/07/03 09:20

The Complete 3DOF T-HEX Tutorial

Updated 01/05/2011

This guide follows the T-HEX assembly guide.

The purpose of this guide is to calibrate the servos and control the robot with a PS2 remote control.

Hardware/Electronics:
  - 3DOF T-HEX Hexapod
  - SSC-32
  - Bot Board II
  - BASIC Atom Pro 28
  - PS2 Cable
  - PS2 Wireless Controller

Software:
  - Basic Micro Studio


Image of 3DOF T-HEX.
Step 1. SSC-32 Firmware Update.
Place the robot on top of a CD spindle or similar to hold the legs off the ground.

Download and install LynxTerm or higher. Connect the SSC-32 to the serial port and apply power. The green LED should light and stay on until it receives a valid serial command.

Please consult the serial troubleshooting guide if you have difficulties with this.


Figure 1.

Step 2.
Download the 2.04GP Beta firmware. Remove power from the SSC-32, and make sure the baud rate is set to 115.2k. Refer to the manual if you need more information regarding baud rate.

Apply power to the SSC-32 again, make sure it's connected to the PC, and click on "Firmware" along the bottom of the LynxTerm screen.

Click on "Open" and browse to the firmware file you just downloaded.

Click on "Begin Update".


Figure 2.
 
Step 3.
When the firmware has been successfully updated, click "Ok" then "Exit".

Now do the "ver" test: type "ver" into the terminal then press "Enter". You should see the proper firmware version returned.


Figure 3.
 

Step 4. SSC-32 Registers.
Place the robot in a position as close to neutral as possible. Click on "All=1500" in the bottom right portion of the screen. Your robot should go to and hold the neutral position, and should resemble figures 6, 7, and 8.

If the joints are off by more than 15° you may have made an error in assembly. To correct this, remove the center screw from the round servo horn, pull the servo horn off the servo, rotate until it's aligned, then reattach the servo horn.


Figure 4.

Step 5.
From the main screen, click on "Reg" to open the Registers page.

Click on "Default" to initialize default values.


Figure 5.
 
Step 6.
You need to adjust the robot's horizontal hip servos. Select servo #00, then adjust the "Offset" slider until the tibia is in perpendicular to the robot's chassis as shown.

Do this for servos #00, 04, 08, 16, 20, 24.

Note, the mouse's scrollwheel or keyboard's arrow keys can be used to make fine adjustments.


Figure 6.

 
Step 7.
Now adjust the robot's vertical hip servo. Select servo #01, then adjust the "Offset" slider until the robot's femur is parallel to the ground as shown.

Do this for servos #01, 05, 09, 17, 21, 25.


Figure 7.

 
Step 8.
You need to adjust the robot's knee servos. Select servo #03, then adjust the "Offset" slider until the foot is parallel to the ground as shown.

Do this for servos #02, 06, 10, 18, 22, 26.


Figure 8.

 

Step 9.
Now, we need to make one final adjustment to completely set the legs up.

Remove the center screws on the four corner hip servos (front right, front left, rear right, rear left), pull the servo horn off of the servo and rotate the leg outward 3 'clicks', or 45°. Replace the screws when you are finished.


Figure 9.


Step 12. Setting up the Bot Board II
To connect the Bot Board II to the SSC-32, you will need to modify a 6" servo extender cable. Remove the header pins from the cable so you have two female ends. Then use an exacto knife to gently pry the tab up to pull the red wire free on one end. Cover the exposed female connector with heat shrink to avoid accidental shorts.

Remove the TX and RX jumpers from the lower-right corner of the SSC-32, and plug the unmodified end of the cable in. Yellow on TX, red on RX, and black on ground.

 

See the schematic below step 13 for detailed information.


Figure 12.
 

Step 13.
Install the Playstation 2 cable as illustrated in Figure 13-1.

Make sure that the ABC buttons / LED jumpers are removed. Install the speaker enable jumper. Install the DC-01 to I/O P8, where black is closest to the outside of the board and yellow is on the I/O pin. Consult the manual for the Bot Board II if needed.

Note: Refer only to Figure 13-1 for PS2 cable connection information. The cable colors in the picture may be outdated. If your cable's colors do not match the diagram, you can find a complete listing of possible colors here.


Figure 13-1.


Figure 13-2.

Schematic.
Double check your connections against the schematic below.

Servo Letter Definitions

 Left
 Right

 Rear
 Middle
 Front

 Knee
 Vertical
 Horizontal


 Schematic.


Step 14.
Use some double-sided foam tape to secure the PS2 receiver to the robot's chassis as desired. Plug the receiver into the cable. We simply have ours resting in the chassis.

Figure 14.
 
Step 15. Download the Program
Download the latest version of BASIC Micro Studio and the 3DOF T-Hex code here. Install and run the application to allow programming the BASIC Atom Pro chip.

Please consult the serial troubleshooting guide and the Basic Mirco Studio Programming Guide if you have difficulties with this.

When you are finished programming the robot, you should hear a few short beeps, the legs will not snap to position until the START button on the PS2 remote is pressed. At this point, if you properly calibrated the servo offsets, the legs should be perfectly aligned.

 
Figure 15.

Step 16. Controlling the Robot
If you hear a continuous beeping when you power the robot on, the PS2 controller is not connected to the Atom properly or is not functioning. You can test the controller with a Playstation 2 to verify that it is working.

Button

Shift Mode

Right Joystick Shift body Y and rotate body Y
Left Joystick Shift body X/Z

Button

Rotate Mode

Right Joystick Rotate body X/Z
Left Joystick Rotate body Y

Button

Single Leg Mode

Select Switch Leg
Right Joystick Move leg Y (Absolute)
Left Joystick Move leg X/Z (Relative)
R2 Hold/Release leg position
Table 16-1.

This robot design was heavily inspired by the original T-Hex by KÃ¥re Halvorsen (Zenta on the forum). The Phoenix code was written by Jeroen Janssen (Xan on the forum). A big thanks to KÃ¥re and Jeroen!

Button

Walking Mode (default)

Select Cycle Through Gaits
Right Joystick (Walk Mode 1) Rotate
Left Joystick (Walk Mode 1) Walk/Strafe
Right Joystick (Walk Mode 2) --
Left Joystick (Walk Mode 2) Walk/Rotate
L1 Toggle Shift Mode
L2 Toggle Rotate Mode
R1 Toggle Double Gait Travel Speed
R2 Toggle Double Gait Travel Length
R3 Switch between walking modes
Start Turn On/Off the Robot
D-Pad L and R Increase/Decrease Speed by 50mS
D-Pad U and D Body Up/Down 10mm
/\ Triangle Toggle body between Walking Position (35mm off the ground) and the ground
O Circle Toggle Single Leg Mode
X Cross Toggle GP Player Mode
[] Square Toggle Balance Mode

Button

GP Player Mode

Select Switch Sequences
R2 Play Sequence
Table 16-2.
 
Tags:
Created by Eric Nantel on 2024/07/03 09:20
Copyright RobotShop 2018