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.

FIGURE 11-6<br />

Semiautonomous<br />

weapons systems<br />

diagram.<br />

Semiautonomous Weapons<br />

Chapter 11: Autonomous <strong>Robot</strong>s 251<br />

A semiautomatic weapon system is a valuable method that can be used to overcome<br />

this distraction and experience problem. Figure 11-6 shows a simplified schematic<br />

that demonstrates how to implement an automatic weapon system, such as a hammer<br />

or a spike. The system uses a proximity or range sensor such as the Sharp<br />

GP2D05 range detector. This sensor is designed to trigger a signal when the opponent<br />

gets within 24 inches of your robot. The output from this sensor is fed into a<br />

microcontroller that turns on the H-bridge that drives the weapon’s motor.<br />

A limit switch on the robot tells the microcontroller that the weapon completed<br />

its range of motion and that the motor needs to be reversed to retract the weapon.<br />

For safety purposes, the microcontroller must be connected to the radio control<br />

(R/C) equipment’s receiver. The microcontroller must shut off the automatic<br />

weapon feature if it loses a command signal from the receiver. To enable a manual<br />

weapons control, the microcontroller can be used to control a single-pole double-throw<br />

(SPDT) relay that can bypass command signals between the receiver<br />

and microcontroller to the weapons motor controller.<br />

With the automatic weapon system activated, all you have to concentrate on is<br />

positioning your robot against your opponent, and you can let the internal robot<br />

brain control the weapon for precise attacks. When you run up against a wall, you<br />

can quickly disable the automatic weapon system so that your robot doesn’t attack<br />

the walls. And when the time arises, you can still manually attack your opponent.<br />

Implementing Semiautonomous Target Tracking<br />

The next level of semiautonomous control is to implement semiautonomous target<br />

tracking. With this type of system, you can simply drive your robot close to

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

Saved successfully!

Ooh no, something went wrong!