Contact:
B. Dean Pershall
(505) 346-7737
ST247



ATE Home | Engineering Program | Electronics Technology | Natural Resources | Geospatial Information Technologies


Lesson 1.3: Getting Started

Testing the motors

WARNING: WHEN YOU TURN ON THE ROADRUNNER IT WILL AUTOMATICALLY RUN THE LAST PROGRAM THAT WAS LOADED INTO IT. THUS IF THE LAST PROGRAM CAUSES THE ROADRUNNER TO MOVE, THE ROBOT WILL MOVE WHEN YOU TURN IT ON!!!

1. Turn OFF the RoadRunner, and remove power.

2. Open up the Javelin Stamp IDE program.

3. Now open up the motor test program. To do so, select file and then open on the task bar. Then go to the folder C:\Program Files\Parallax Inc\Javelin Stamp IDE\Projects\ (NOTE: THIS SHOULD BE THE DEFAULT FOLDER). Now open up the program MotorTest.java

4. Turn on the RoadRunner To do so, place the switch into the NC position, after applying power to the robot. The light should go on. (UNPLUG THE MOTORS FROM THE MOTOR OUTPUTS. REMEMBER THAT SOMEBODY MAY HAVE PROGRAMMED THE ROADRUNNER BEFORE YOU AND THAT THE PROGRAM MIGHT TELL THE ROADRUNNER TO MOVE. THEREFORE, BE READY TO STOP THE ROADRUNNER IF IT STARTS TO MOVE. THE SAFEST THING TO DO IS TO SIMPLY UNPLUG THE MOTORS FROM THE MOTOR OUTPUTS)

5. Now run the program. To do so, select project and then program on the task bar. Nothing will happen when you do this since the motors are not yet connected.

6. Turn off the RoadRunner

7. Connect the motors to the motor outputs on the RoadRunner The right motor goes on the motor output labeled 1, and the left motor goes on the motor output labeled 2. To reverse polarity you can flip the ground and positive wires. Don't worry too much, nothing will break if you plug these wires in backwards. If you switch the left and right motors, then the corresponding motors will receive the wrong commands. The left motor will do what the right motor should do, and the right motor will do what the left motor should do.

8. Now place the RoadRunner on a clear open space.

9. Turn on the RoadRunner If everything goes well, the RoadRunner will move forwards, backwards, turn clockwise, turn counterclockwise, turn right, and then turn left.

10. Turn off the RoadRunner, and unplug the motors when finished. Remember, the RoadRunner will run this program as soon as you turn it on again. This is an excellent feature, since most of our competitor robots will lose their memory when turned off, or when their batteries die. Thus you have to use a computer to reprogram them every time you want to use them. The RoadRunner does not have this problem, and will work reliably every time you turn it on.