28.01.2013 Views

Build Your Own Combat Robot

Build Your Own Combat Robot

Build Your Own Combat Robot

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

FIGURE 13-8<br />

Schematic of a<br />

simple infrared<br />

detector pair for<br />

sumo edge<br />

detection.<br />

(courtesy of<br />

Bill Harrison)<br />

FIGURE 13-9<br />

Flowchart of an<br />

autonomous mini<br />

sumo with edge<br />

detection.<br />

Two different sensor packages should be used in a mini sumo. Each sensor<br />

should be mounted on the front corners of the mini sumo, just behind the front<br />

scoop. This way, the mini sumo will know which side of it approached the edge of<br />

the ring.<br />

Figure 13-9 shows a flowchart of how to get a mini sumo to work with only its<br />

edge detectors functioning, and the Basic Stamp 1 source code shows an example<br />

of how to implement the sensors and modified R/C servo motors together into a<br />

working mini sumo. At the end of this chapter, there’s an example program that<br />

uses two edge detectors to keep a mini sumo on the sumo ring. There have been<br />

several very successful mini sumo bots that have used only edge detectors to win<br />

tournaments.

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

Saved successfully!

Ooh no, something went wrong!