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-5<br />

Mechanical<br />

tilt switch<br />

Tilt Sensors<br />

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

A tilt sensor usually comes in three types: a conductive liquid tilt switch, a mechanical<br />

switch, and an accelerometer. Accelerometers can be used to measure the<br />

direction of gravity, which makes them a great sensor for determining whether<br />

your robot has been flipped on its back or on its side. Unfortunately, these sensors<br />

will detect every bump, slam, bash, and crash you robot will experience. Because<br />

of all of this extra activity, it will be difficult to implement accelerometers because<br />

a lot of filtering of the data will be required to differentiate between impacts and<br />

actually turning upside down. They are fun to play with, though. If you are interested<br />

in experimenting with accelerometers, check out Analog Devices’ Web page<br />

at www.analog.com.<br />

Conductive liquid switches are commonly used for tilt switches. The most common<br />

is the mercury switch, in which two electrical contacts are embedded inside a<br />

glass tube, along with a small amount of mercury. When the switch is held vertically,<br />

the mercury covers both contacts, which closes the circuit. When the glass<br />

tube is placed on its side or upside down, the mercury slides off both contacts,<br />

which opens the circuit. Mercury switches can be obtained at most electronics<br />

stores and some hardware stores. Mercury switches can be found in non-digital<br />

thermostats, and some companies sell a different version of this type of switch that<br />

uses a conductive electrolyte instead of mercury.<br />

note If you are going to use this type of switch, use the variety that uses the conductive<br />

electrolyte instead of Mercury. Mercury is a poisonous and an environmentally hazardous<br />

material. Most competitions have a rule clause that prohibits dangerous materials.<br />

The last type of a tilt switch is a mechanical tilt switch, which is basically a<br />

metal tube with a ball bearing inside it. Figure 11-5 shows a schematic of this type<br />

of switch. Gravity is used to hold the ball down on the bottom contact. When the

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

Saved successfully!

Ooh no, something went wrong!