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.

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

FIGURE 11-7<br />

Semiautonomous<br />

target-trackingsystem<br />

block<br />

diagram.<br />

your opponent, and your robot’s sensors will lock onto the opponent and take<br />

over the driving. You maintain complete control of the weapon and let your robot<br />

push the opponent around the ring, you can have all the fun smashing its opponent<br />

to pieces with its weapon.<br />

This type of a system needs at least two range detectors, such as the Sharp<br />

GP2D05 or the Devantech SRF04. Place both of these in front of your robot with<br />

the detection beams crossing each other. A microcontroller is used to monitor both<br />

sensors and to control the motor controllers. With this sensor configuration, the<br />

logic for driving the robot is relatively simple. If the left sensor detects the opponent,<br />

turn your robot to the right. If the right sensor detects the opponent, turn your robot<br />

to the left. If both sensors detect the opponent or both detectors do not detect the<br />

opponent, drive forward. You manually drive your robot up to your opponent until<br />

it is within your robot’s crossing beams’ reach, and then you can enable the<br />

semiautonomous tracking system and your robot will close in on your opponent on<br />

its own. Figure 11-7 shows a simplified schematic of this type of control system.<br />

As with the semiautonomous weapons system, an active link must exist between<br />

the radio receiver and the semiautonomous target-tracking system’s<br />

microcontroller. If the microcontroller loses contact with the radio receiver, the<br />

semiautonomous target-tracking system must shut down and enable manual control<br />

of the robot.<br />

Semiautonomous Target Tracking with Constant Standoff Distances<br />

The next level of control is to use the range-finding sensors such as the GP2D02,<br />

GP0D12, SRF04, or the Panasonic 6500. With these sensors, the microcontroller<br />

can be programmed to keep your robot a specific distance from your opponent,<br />

say 12 to 18 inches. If the opponent moves away, your robot will close in on it; and

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

Saved successfully!

Ooh no, something went wrong!