BRAT Biped PS2 & Bot Board II Tutorial

Last modified by Eric Nantel on 2026/04/06 13:18

PS2 Biped BRAT Tutorial

Updated December 20, 2011

Safety first! Wear eye protection and never touch a powered robot!

Hardware required: Bot Board II, BASIC Atom Pro 28, wireless PS2 controller/receiver.

Software & downloads:

Biped BRAT.

PS2 BRAT — Verify Servo Channel Connections
Step 1 / 8

Make sure your servos are plugged into the appropriate channels per Table 1. Note: P9 is used by the speaker and cannot be used for a servo.

Bot Board I/OConnection
P4Left Ankle
P5Left Knee
P6Left Hip
P7Right Ankle
P8Right Knee
P10Right Hip
Table 1.
PS2 BRAT — Configure Bot Board II Jumpers
Step 2 / 8

Set the Bot Board II jumpers per Table 2. The VS to AX0 jumper enables battery voltage monitoring — the robot beeps when the battery is low. Refer to Figure 2 for the jumper layout.

Bot Board II Jumper Settings (Table 2)
EnableA, B, and C buttons
VSI/O Groups 4–7 and 8–11
EnableSPKEN (Speaker Enable)
EnableVS (Servo Voltage) to AX0 (P16)
Table 2.

Figure 2 — Jumper diagram

PS2 BRAT — Find Servo Offsets
Step 3 / 8

Download and install BASIC Micro Studio. Download the BRAT Servo Offset Finder Program, load it into the IDE, and program the Atom Pro. Use the buttons to adjust:

  • A — decrease servo offset by 5µs
  • C — increase servo offset by 5µs
  • B — change which servo is being adjusted, and save offsets (order shown in Figure 3)

If the Speaker is enabled, pressing B plays a tone that rises in pitch as you cycle through servos and drops to a longer lower tone when returning to Start.

Figure 3 — Offset finder sequence.
PS2 BRAT — Calibrate to Neutral Position
Step 4 / 8

Place the robot as close to neutral as possible and turn it on. It should hold the position resembling Figures 4-1 through 4-3. If any joint is off by more than 15°, remove the servo horn, rotate to align, and reattach. Use the A, B, and C buttons to fine-tune.

Note: HS-422 hip servos may oscillate when lifted — normal and minimal when walking. Higher voltage worsens this. HS-475, HS-485, HS-645 servos do not exhibit this effect.

After adjusting all servos to match Figures 4-1 through 4-3, pressing B saves the offset values to the Atom Pro's EEPROM.

Figure 4-1 (front view).
Figure 4-2 (side view).
Figure 4-3 (rear view).
PS2 BRAT — Load PS2 Control Code
Step 5 / 8

Download the PS2 BRAT Code, load it into the IDE, and program your BRAT.

PS2 BRAT — Prepare PS2 Cables
Step 6 / 8

Repeat this process on one end of both 6" servo extender cables:

  1. Use an exacto knife to carefully pry up the black tabs and slip the wires out of the housing.
  2. Remove the black housing completely and set aside.
  3. Cover the header pin receptacles with 1/2" of heat shrink.
Figure 6.
PS2 BRAT — Connect PS2 Cables to Bot Board II
Step 7 / 8

Plug the cables into the Bot Board II per Table 7, and update the jumper settings as shown.

Bot Board II Connections (Table 7)
Cable 1BlackP12
RedP13
YellowP14
Cable 2BlackGND
Red5VDC
YellowP15
Jumper Settings
DisableA, B, and C buttons
5VI/O Group 12–15
Table 7.

Figure 7 (cable connections).

Figure 7 — Wiring diagram.

PS2 BRAT — PS2 Control Reference
Step 8 / 8

The PS2 control commands are shown in Table 8.

PS2 ButtonCommand
Left Joystick Forward/BackWalk forward/backward
Left Joystick Left/RightTurn in place left/right
XReturn robot to home position
Headbutt
L1Kick with left leg
R1Kick with right leg
D-pad UpGet up from face-down position
D-pad DownGet up from back-down position
StartEnable/Disable standby rest mode (enabled by default)
SelectChange stride length
Table 8.
Tags:
Created by Eric Nantel on 2024/07/03 09:21

Recently Visited

Copyright RobotShop 2018