| 4WD1 & L5/L6 Programming Tutorial - RC Rev. 1. Updated 11/08/2006 Safety first! Wear eye protection and never touch a powered robot! Note: This tutorial follows the tutorial for Electronics Installation and Testing Instructions. Note: the PS2 control programs have been verified to work with all Lynxmotion, Madcatz, Pelican, and Hiteck wireless controllers only. |
![]() Image of 4WD1. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 1. Refer to Tables 3-1 through 6-1 for connection information. We used double-sided foam tape to hold the PS2 connector cable in place under the middle panel, as well as attaching a Sharp GP2D12 sensor on the front. The SSC-32 is stacked on top of the Bot Board using hardware from the arm kit. | ![]() Figure 1. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 2. Install the L5 or L6 arm as shown. This requires 4WD1 Add-On Deck for L5/L6 arm (AOD-03). By moving the PC boards around it may be possible to mount the arm directly to the top of the chassis. However, using the Add-On Deck makes it much easier to access the electronics. | ![]() Figure 2. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 3. The Scorpion needs to be set up for differential steering mode and the battery elimination circuit (BEC) must be disabled. This can be done by cutting a trace as illustrated in the Scorpion manual, or you can remove the red wire on the servo cables for left and right control inputs. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 4. Configure the SSC-32 for 38.4k baud, serial communications, and VL = VS. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 5. Set up the Bot Board and Scorpion as illustrated in Table 5-1. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 6. Set up the SSC-32 as illustrated in Table 6-1. Simply plug in the servo associated with the function to the corresponding pin. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 7. Open this file (4wdl6p1.bas) with the BASIC Atom editor. Find the section referencing L5 and L6 arm length constants. Remove the semicolons (remarks) from in front of the arm you are using. For example, if you are using an L6 arm, the text should look like Table 7-1. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 8. You
will want to set the bot on something so that the wheels aren't touching the ground. When the program is run, there will be a series of beeps
telling you that the Atom is trying to communicate with the PS2 game controller. When communication is established, the beeps will stop, but you
may need to put the controller in Analog mode.
This program lets you control the movement of the bot in two modes. On powerup, the vehicle is controlled with a tank mode, meaning left and right joysticks control the left and right motors independently. Pressing the right joystick in (R3) changes it to a single joystick control mode. Left and Right on the D-pad control the max speed. This is useful when precise positioning of the robot base is required. When the robot is driven too close to an obstacle, you will hear a tone from the speaker that gets higher the closer to an obstacle the robot is. After a threshold is reached, the robot will ignore forward commands to prevent crashing. Pressing Start disables this function. Consult Tables 8-1 and 8-2 for more information on controlling the 4WD. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Step 9. Pressing
Select switches from 4WD1 control to Arm control. Consult Table 9-1 for more information on controlling the arm.
- Video of 4WD1 with L6 arm; assorted movements. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||