28.01.2013 Views

Build Your Own Combat Robot

Build Your Own Combat Robot

Build Your Own Combat Robot

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

250 <strong>Build</strong> <strong>Your</strong> <strong>Own</strong> <strong>Combat</strong> <strong>Robot</strong><br />

One of the simplest techniques you can employ for improving sensor input is<br />

based on simple statistics. If the sensor has an occasional bad reading, try averaging<br />

several readings, and perhaps toss out the high- and low-value ranges; then adjust<br />

within the microcontroller as part of the software or firmware driving the sensor<br />

on the robot.<br />

Another simple and effective technique is to use hoods or shades over light detectors<br />

to avoid bright directional lights. Just about every robot competition has<br />

problems with lighting because the light in the arena is not identical to the light in<br />

the robot development environment.<br />

Having to clean up sensor data when another robot is using the same sensor that<br />

your robot is using can be tricky. For example, your sensor might pick up the transmitted<br />

infrared light from your opponent’s sensors. This may give false distance or<br />

proximity readings to your bot. To overcome such a problem, you can use an infrared<br />

receiver sensor, such as an infrared phototransistor, and take a measurement<br />

just before using the GP2Dxx sensor. If the transistor detects an infrared signal,<br />

there is a chance that another robot is transmitting a signal toward your robot. If the<br />

transistor doesn’t detect the presence of any infrared light, you can safely turn on<br />

your GP2Dxx sensor. To add more reliability, you could use the phototransistor to<br />

take another measurement just after the GP2Dxx measurement reading has been<br />

completed. The second reading will be used to determine whether your opponent<br />

has turned on his robot’s sensor while you were using your sensor.<br />

As you can see, the overall sensor package becomes more complicated as you<br />

attempt to improve the reliability of the sensors. Most important, don’t assume<br />

that a sensor is perfect or that its output is perfect. Figure out a way to observe the<br />

output from the sensors directly while operating in the competition environment<br />

for test runs. You can often adjust to the output of a sensor after you know how<br />

the sensor is behaving.<br />

Sensors can create much more sophisticated robotics behaviors that don’t rely<br />

on constant human input to keep the robot going. The most robust robots typically<br />

have the most robust sensor input dictating the behavior of the robot.<br />

S emiautonomous Target and Weapon Tracking<br />

When you begin competing in robot combat matches, you will discover that it is a<br />

lot harder to get your robot positioned to deliver the deadly blow than it was when<br />

you were at home beating up garbage cans. This is because the garbage cans are<br />

not attacking you, there are no screaming crowds to distract you, and there is no<br />

3-minute time limit to win. With all of this excitement happening during a match,<br />

when you finally get your robot positioned and the opponent is in the sweet spot<br />

for the attack, you could miss an opportunity because it took you too long to flip<br />

the attack trigger on your remote control. This sort of predicament is frustrating<br />

to the beginning combat warrior. If you look at videos of past combat events, you<br />

will notice that missing the opponent is a common problem for many beginning<br />

robot combatants. The experienced veterans always seem to hit their mark.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!