|
Lesson 1.4: Getting Started
The Object Avoidance Program: Now it is time to run a program that will utilize the capabilities of the RoadRunner, that you learned about in this lesson. The Wall Following program does exactly what its name implies. If you place the robot next to a wall, on its left hand side, it will follow that wall. It will turn when the wall turns, and it will even curve around doors. 1. Turn OFF the RoadRunner, and remove power. 2. Open up the Javelin Stamp IDE program. 3. Now open up the wall follow 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 obj_avoid.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. 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 8. Now place the RoadRunner on the ground near walls or near objects. 9. Turn on the RoadRunner If everything goes well, the RoadRunner will go forward
and avoid objects, hence the program name “obj_avoid”. 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. YOU ARE NOW READY FOR LESSON 2!!! | |||||||