The Contest
Contest Name: Individual Pursuit Race!
Submitted by: Phil Pilgrim.
Objective: Two robots start simultaneously at opposite sides of an oval wall. The objective is for your robot to drive around the wall and catch up with the other robot, before it catches up with yours. PING))) Ultrasonic Distance Sensors are used to detect the wall.
Challenges: Sensing the oval wall. Making a side-facing mounting bracket for the PING))) sensor. Writing navigation code that keeps the robot from touching the wall while going as fast as possible around it. Building the race course wall.
The Rules
About the Robots
- Use a BASIC Stamp Boe-Bot, Propeller ActivityBot, or Shield-Bot (for Arduino).
- Contestants in each match must use the same servos and voltage to keep top-speed-capability similar:
- Parallax Continuous Rotation servos powered with regulated 5 VDC
- Parallax High Speed servos powered with 7.5 VDC
- A PING))) Ultrasonic Distance Sensor is used to detect the oval wall.
- You can design a custom side-mounting bracket for the PING))) sensor with any material you like. This example design can be laser-cut from Delrin; information about obtaining the design file is at the bottom of this page.
About the Playing Field
- The raceway is an oval wall tall enough for the PING))) sensor to detect.
- The wall should be made from a smooth, firm material that will reflect sound waves cleanly, rather than absorb or scatter them.
- The wall should have gentle curves, with no sharp corners.
- Suggested dimensions: 12 in (30 cm) tall, 12 in (30 cm) wide, and 30 in (72 cm) long. A wall could be built with 5-gallon buckets, boards, and duct tape as shown below.
About the Game
- Each pair of racers will start on opposite sides of the wall, facing counter-clockwise.
- Teams may place their bots as close to, or as far from, the wall as they wish.
- Each team will power up its bot and hold it off the floor with the wheels spinning until the starter says, “Go!” at which point the bots are placed on the floor.
- The race will continue until one of the following occurs:
- A robot commits a disqualifying infraction before both bots have made one circuit around the course. In this case, the race will be restarted after both teams have a chance to reprogram their bots.
- One robot catches up to the other, either touching its opponent or passing it. In this case the faster robot wins the race and proceeds to the next heat or is declared the overall winner in the last heat.
- A robot commits a disqualifying infraction after both bots have made at least one circuit around the course. In this case, the infracting robot loses, and the winner proceeds to the next heat or is declared the overall winner in the last heat.
- These are the disqualifying infractions:
- A robot touches the wall.
- A robot wanders away from the course.
- A robot spins two or more revolutions in place without forward progress.
Teacher Resources
Phil Pilgrim designed this contest to use in his classroom with the Propeller ActivityBot. He has generously shared his original contest information, which includes example Propeller C code, programming strategies, instructor notes, a video clip, and the .dxf file for the bracket shown above. A zip archive of this material available to educators in the ActivityBot Contest Ideas - Materials page. Please email education@parallax.com for access.