BRAT Biped PS2 & Bot Board II Tutorial

Last modified by Eric Nantel on 2023/01/23 10:21

PS2 Biped BRAT Tutorial.

Updated 12/20/2011

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

Note: This tutorial uses the Bot Board II, BASIC Atom Pro 28, and a wireless PS2 controller/receiver.

Software:
  - BASIC Micro Studio
  - BRAT Servo Offset Finder Program (09/17/09)
  - PS2 Control Code (09/17/09)


Image of Biped BRAT.
 
Step 1.
Make sure your servos are plugged into the appropriate channels, as shown in Table 1.

*Note, P9 is used by the speaker, so we can't plug a servo in there.

Bot Board I/O Connection
P4 Left Ankle
P5 Left Knee
P6 Left Hip
P7 Right Ankle
P8 Right Knee
P10 Right Hip

Table 1.

 
Step 2.
Make sure the Bot Board's jumpers are set according to Table 2.

Refer to Figure 2 for help with jumper settings.

*Note, the VS to AX0 jumper enables the program to monitor the servo battery voltage. When the battery is low, the robot can beep in warning.

Bot Board II Jumper Settings
Enable A, B, and C buttons
VS I/O Groups 4-7 and 8-11
Enable SPKEN (Speaker Enable)
Enable VS (Servo Voltage) to AX0 (P16)

Table 2.


 
Figure 2.

 
Step 3.
Download and install BASIC Micro Studio. Download the BRAT Servo Offset Finder program, and load it into the IDE.

Program the Atom Pro, and follow these instructions to find your robot's offsets.

  • Press A to decrease the servo offset by 5us.
  • Press C to increase the servo offset by 5us.
  • Press B to change which servo is being manipulated, and to save your offsets. The order of the program is shown in Figure 3.

Note, if you have the Speaker enabled, when you press the B button you will hear a short tone. The tone will raise in pitch when you change from servo to servo, and will lower in pitch and be longer when you get back to Start.


Figure 3.


Step 4.
Place the robot in a position as close to neutral as possible, and turn it on. Your robot should go to and hold the neutral position, and should resemble figures 4-1 through 4-3. 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.

Use the A, B, and C buttons to straighten the BRAT as shown in Figures 4-1, 4-2, and 4-3.

Note, if you are building the robot with HS-422 servos, you will notice the hip servos oscillate if the robot is lifted off the ground. This is normal, and is due to the lower power servo. When the robot is walking, the effects are minimal. Using a voltage that is higher than 6vdc will make the oscillations worse. When building a robot with more powerful servos such as HS-475, HS-485, or HS-645, you will not see this effect.

After you've cycled through the servos and adjusted them to match Figures 4-1 through 4-3, pressing the B button again will save your offset values to the Atom Pro's EEPROM.


Figure 4-1.

 


Figure 4-2.


Figure 4-3.


Step 5.
Download the PS2 BRAT Code, load it into the IDE, and program your BRAT.
 
Step 6.
Now you need to create the PS2 cable to hook up PS2 control. Repeat this step on one side of both 6" servo extender cables.

1. Use an exacto knife to carefully pry the black tabs up and slip the wires out of the black housing.

2. Remove the black housing completely and set aside.

3. Cover the header pin receptacles with 1/2" of heat shrink.


Figure 6.

 
Step 7.
Plug the cables in to the Bot Board II as shown. 

Bot Board II Connections
Cable 1 Black P12
Red P13
Yellow P14
Cable 2 Black GND
Red 5vdc
Yellow P15
Bot Board II Jumper Settings
Disable A, B, and C buttons
5v I/O Group 12-15

Table 7.


Figure 7.


 
Figure 7.

 
Step 8.
The PS2 control commands are shown in Table 8.

PS2 Button Command
Left Joystick Forward/Back Walk forward/backward
Left Joystick Left/Right Turn in place left/right
X Return robot to home position
/\ Headbutt
L1 Kick with left leg
R1 Kick with right leg
D-pad Up Get up from face-down position
D-pad Down Get up from back-down position
Start Enable/Disable robot's standby "rest" mode (enabled by default)
Select Changes stride length

Table 8.

Tags:
Created by Eric Nantel on 2023/01/23 10:07
Copyright RobotShop 2018