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.

Sensor Integration<br />

FIGURE 13-11<br />

Schematic of a<br />

complete autonomous<br />

mini sumo robot.<br />

Chapter 13: <strong>Robot</strong> Sumo 293<br />

Integrating the object detector and two edge detector circuits along with a Basic<br />

Stamp 1 can be accomplished on a small prototyping board. Figure 13-11 shows a<br />

schematic of the entire circuit for an autonomous mini sumo.<br />

In a remote-control mini sumo, the same battery pack powered both of the<br />

modified R/C servos and the receiver module. For the autonomous mini sumo,<br />

you need two different power supplies. A 4-cell AA (6-volt) battery pack will provide<br />

power to the modified R/C servos, and a 9-volt battery will provide power to<br />

the microcontroller and the sensors. A 4-cell AA battery box should be attached<br />

to the bottom of the mini sumo. Double-sided foam tape should be sufficient to<br />

attach the battery box to the bottom of the mini sumo.<br />

All battery, microcontroller, and electronic circuit grounds must be tied together.<br />

If the grounds are not tied together, you’ll see erratic performance in the<br />

bot. The reason for the two battery supplies is that the servos can momentarily<br />

draw up to 1 amp of current each. This could cause a voltage drop in the<br />

microcontroller, which will cause the microcontroller to reset. Using a separate<br />

power source for the microcontroller will help ensure a uniform voltage supply to<br />

the microcontroller.<br />

The flowchart in Figure 13-12 shows how logic in this mini sumo should work.<br />

The following program example will make a fully functional mini sumo. This mini<br />

sumo will follow your hand as you move it in front of the mini sumo, and stay on<br />

the sumo ring. Using the information presented here, you will have a working autonomous<br />

mini sumo bot.

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

Saved successfully!

Ooh no, something went wrong!