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

Last modified by Eric Nantel on 2026/04/02 17:25

The Complete 3DOF T-HEX Tutorial

Updated January 5, 2011

This guide follows the T-HEX assembly guide. The purpose is to calibrate the servos and control the robot with a PS2 remote control.

Image of 3DOF T-HEX.

Hardware & Software

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

Software: Basic Micro Studio

T-HEX Tutorial — SSC-32 Firmware Update
Step 1 / 16

Place the robot on top of a CD spindle or similar to hold the legs off the ground.

Download and install LynxTerm. 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.

Figure 1.
T-HEX Tutorial — Update Firmware
Step 2 / 16

Download the 2.04GP Beta firmware. Remove power from the SSC-32 and make sure the baud rate is set to 115.2k.

Apply power again, ensure it's connected to the PC, and click "Firmware" at the bottom of the LynxTerm screen. Click "Open" and browse to the firmware file. Click "Begin Update".

Figure 2.
T-HEX Tutorial — Verify Firmware
Step 3 / 16

When the firmware update is complete, click "Ok" then "Exit". Do the "ver" test: type "ver" into the terminal and press Enter. You should see the proper firmware version returned.

Figure 3.
T-HEX Tutorial — SSC-32 Registers — Enable Servos
Step 4 / 16

Place the robot as close to neutral position as possible. Click "All=1500" in the bottom right of the screen. The robot should hold the neutral position, resembling Figures 6, 7, and 8.

If joints are off by more than 15°, remove the center screw from the servo horn, pull the horn off, rotate until aligned, then reattach.

Figure 4.
T-HEX Tutorial — Initialize Registers
Step 5 / 16

From the main screen, click "Reg" to open the Registers page. Click "Default" to initialize default values.

Figure 5.
T-HEX Tutorial — Align Horizontal Hip Servos
Step 6 / 16

Adjust the robot's horizontal hip servos. Select servo #00, then adjust the "Offset" slider until the tibia is perpendicular to the robot's chassis as shown.

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

Note: the mouse scrollwheel or keyboard arrow keys can be used for fine adjustments.

Figure 6.
T-HEX Tutorial — Align Vertical Hip Servos
Step 7 / 16

Adjust the vertical hip servos. 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.
T-HEX Tutorial — Align Knee Servos
Step 8 / 16

Adjust the 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.
T-HEX Tutorial — Adjust Corner Hip Servos
Step 9 / 16

One final leg adjustment is needed. Remove the center screws on the four corner hip servos (front right, front left, rear right, rear left). Pull the servo horn off and rotate the leg outward 3 clicks (45°). Replace the screws when finished.

Figure 9.
T-HEX Tutorial — Set Up Bot Board II
Step 10 / 16

Modify a 6" servo extender cable: remove the header pins so you have two female ends. Use an exacto knife to gently pry the tab up and pull the red wire free on one end. Cover the exposed 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, black on ground.

See the schematic below for detailed information.

Figure 12.
T-HEX Tutorial — Install Bot Board II & PS2 Cable
Step 11 / 16

Install the Playstation 2 cable as illustrated in Figure 13-1. Remove the ABC buttons / LED jumpers. Install the speaker enable jumper. Install the DC-01 to I/O P8 with black toward the outside and yellow on the I/O pin. Consult the Bot Board II manual if needed.

Note: refer only to Figure 13-1 for PS2 connection information — cable colors may be outdated. A complete listing of possible colors is available here.

Figure 13-2.

Figure 13-1.

Schematic. Double check your connections against the schematic below.

Servo Letter Definitions
Left
Right
Rear
Middle
Front
Knee
Vertical
Horizontal

Schematic.

T-HEX Tutorial — Mount PS2 Receiver
Step 12 / 16

Use double-sided foam tape to secure the PS2 receiver to the robot's chassis as desired. Plug the receiver into the cable.

Figure 14.
T-HEX Tutorial — Download & Program
Step 13 / 16

Download the latest version of BASIC Micro Studio and the 3DOF T-HEX code here. Install and run to program the BASIC Atom Pro chip.

Consult the serial troubleshooting guide and the Basic Micro Studio Programming Guide if you have difficulties.

When programming is complete, you should hear a few short beeps. The legs will not snap to position until the START button on the PS2 remote is pressed. If you properly calibrated the servo offsets, the legs should be perfectly aligned.

Figure 15.
T-HEX Tutorial — PS2 Controller Reference
Step 14 / 16

If you hear continuous beeping when powering on, the PS2 controller is not connected properly or not functioning. Test it with a PlayStation 2 to verify.

ButtonWalking Mode (default)
SelectCycle 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
L1Toggle Shift mode
L2Toggle Rotate mode
R1Toggle double gait travel speed
R2Toggle double gait travel length
R3Switch between walking modes
StartTurn robot on/off
D-Pad L/RIncrease/Decrease speed by 50mS
D-Pad U/DBody up/down 10mm
△ TriangleToggle body between 35mm walking height and ground
O CircleToggle Single Leg mode
X CrossToggle GP Player mode
□ SquareToggle Balance mode
GP Player Mode
SelectSwitch sequences
R2Play sequence

Table 16-2.

ButtonShift Mode
Right JoystickShift body Y and rotate body Y
Left JoystickShift body X/Z
ButtonRotate Mode
Right JoystickRotate body X/Z
Left JoystickRotate body Y
ButtonSingle Leg Mode
SelectSwitch leg
Right JoystickMove leg Y (absolute)
Left JoystickMove leg X/Z (relative)
R2Hold/release leg position

Table 16-1.

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

Tags:
Created by Eric Nantel on 2024/07/03 09:20
Copyright RobotShop 2018