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 12-1<br />

From top left<br />

to bottom right,<br />

LEGO RCX brick,<br />

Handy Board,<br />

Basic Stamp 2,<br />

BrainStem, Lineo,<br />

OOPic, traditional<br />

R/C receiver,<br />

and the Pontech<br />

servo controller.<br />

Chapter 12: <strong>Robot</strong> Brains 261<br />

which then converts this data into commands the servos and speed controllers understand.<br />

Other controllers, such as the Handy Board, take programs that can be<br />

used to alter output results based on input results. Users download a piece of code<br />

to the controller, and the code then runs on the Handy Board to control the robot.<br />

Still other microcontrollers offer reactive mechanisms that automatically<br />

manage outputs based on inputs—such as the thermostat in your house, which<br />

senses its environment and controls the furnace to keep your house at a comfortable<br />

temperature, and sometimes adjusting for times of the day when you are not<br />

home or asleep, to conserve energy. The OOPic and BrainStem controllers affect<br />

this type of control, called virtual circuits and reflexes, respectively. Some controllers<br />

can exhibit more than one type of control, and some can even perform<br />

multiple tasks at the same time.<br />

You may have robots in your lives that you may not have thought of as robots.<br />

Consider a bread maker that knows the time, can mix various bread recipes, can<br />

sense heat, and can create auditory output with beeps and displays to inform you<br />

what is happening at all times. Some cars have anti-lock brake systems (ABS) that<br />

can sense each wheel’s rotation and adjust the braking pressure so the wheels<br />

don’t lock and skid, even “pumping” the brakes for maximum stopping power on<br />

wet and slippery roads.<br />

The details of how to design electronic circuits using microcontrollers, how to<br />

write programs, and how to implement the microcontroller is beyond the scope of<br />

this book. You’ll find many different books that have been written about various<br />

types of microcontrollers and programming techniques to help you. Appendix B<br />

lists some excellent books on microcontrollers. Some microcontrollers are simple<br />

to get started with, and some are so powerful that they require prior<br />

microcontroller experience to use them properly.

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

Saved successfully!

Ooh no, something went wrong!