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.

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

If you ever want to start a microcontroller “war,” log onto one of the robot<br />

clubs’ e-mail list servers and ask the question “What is the best microcontroller?”—<br />

and watch what happens. Many people think the microcontroller they use is the<br />

best, but there’s really only one correct answer to this question: the best<br />

microcontroller is the one that you know how to use and program.<br />

Every microcontroller has its advantages and disadvantages. Some<br />

microcontrollers have features that make certain tasks easier than other microcontrollers.<br />

For example, a number of microcontrollers have a built-in feature<br />

that can directly read in an analog voltage, and other microcontrollers have<br />

multitasking capabilities. Although users of these types of microcontrollers may<br />

claim they are better than other types of microcontrollers, that’s not necessarily<br />

true. You can always find a way to make a microcontroller work to meet your specific<br />

needs, particularly if you’re handy with electronics and/or programming. A<br />

“weak” microcontroller with good programming can outperform a “good”<br />

microcontroller with bad programming.<br />

A search of the internet will yield dozens of companies that sell different types<br />

of microcontrollers. All of the different manufacturers have documentation that<br />

explains the capabilities of their products, an explanation of the programming<br />

language, and sample programs that illustrate the microcontrollers’ capabilities.<br />

When selecting a microcontroller, keep in mind what you want it to do, and compare<br />

it with the literature you have collected. Then choose the microcontroller<br />

based on how well it can fit your needs and how well you understand its programming<br />

language.<br />

The next few sections offer a short introduction to several of the popular available<br />

microcontrollers, and at the end of this chapter is a short discussion of<br />

microcontroller applications.<br />

Basic Stamp<br />

Throughout this book are many references to the Basic Stamp from Parallax, Inc.<br />

Basic Stamp applications include servo mixing—reading R/C servo signals to operate<br />

switches to turn on weapons.<br />

For the beginner getting started with microcontrollers, the Basic Stamp is probably<br />

the best unit to start with. Parallax has created a rather extensive set of tutorials<br />

on how to use microcontrollers, basic programming, electronics, sensor<br />

integration, and actuator applications. All of its easy-to-understand tutorials can<br />

be downloaded from its Web site for free.<br />

Probably the best place to learn about microcontrollers is to purchase one of<br />

Parallax’s Board of Education <strong>Robot</strong>ic (BoeBot) Kits and go through all of their<br />

experiments—see Figure 12-2. After you have worked through the tutorials, you<br />

should have a pretty good understanding of how to use a Basic Stamp inside combat<br />

robots. An excellent book on the subject is Programming and Customizing the<br />

Basic Stamp by Scott Edwards.

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

Saved successfully!

Ooh no, something went wrong!