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

Sharp PG2D02<br />

Infrared range<br />

sensor. (courtesy<br />

of Acroname, Inc.)<br />

Sharp GP2D02 and GP2D12 Infrared Range Sensors<br />

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

The GP2D02 and GP2D12 are infrared range finders. Shown in Figure 11-3, these<br />

sensors work by transmitting an infrared light and measuring the location of the<br />

reflected light on a position sensitive detector (PSD).<br />

Next, you can see how this sensor works. By using a triangulation method, the<br />

range of an object can be determined by the location at which the reflected light hits<br />

the PSD. The detection range for these sensors is from 4 inches to 31 inches (10 cm<br />

to 80 cm). The GP2D02 outputs an 8-bit serial data set. As the object gets closer to<br />

the sensor, the output number gets larger. The maximum number occurs with a distance<br />

of about 4 inches, and the smallest number occurs out past 31 inches.<br />

The GP2D12 works similar to the GP2D02, except the output value is an analog<br />

signal—in other words, it is a variable voltage that will range from 0 to 3 volts. The<br />

maximum voltage will occur at 4 inches, and the minimum voltage will occur out<br />

past 31 inches.<br />

Sharp GP2D05 and GP2D15 Infrared Proximity Sensors<br />

The GP2D05 and the GP2D15 are infrared proximity sensors that look physically<br />

identical to the GP2D02 and the GP2D12 sensors. The difference between these<br />

sensors is that the output signal changes when the object moves past a preset distance<br />

of 9.5 inches (or 24 cm). For any object that is between 4 inches and 9.5 inches (10 to<br />

24 cm), the output signal is 0 volts, and any object that is past the 9.5-inch threshold<br />

will have a positive 5-volt output signal. The difference between the GP2D05<br />

and the GP2D15 sensors is that the GP2D05 sensor requires an input trigger pulse<br />

to tell the sensor to make a measurement. The GP2D15 sensor continuously takes<br />

measurements.<br />

note The case of all four of the GP2Dxx sensors looks like normal black plastic, but it is<br />

actually a good electric shield when grounded. It is very important that you connect this shield<br />

to ground. This is mandatory for these sensors to work reliably!<br />

Thermal Sensors<br />

One of the more popular types of sensors to measure temperature is the thermistor,<br />

a sensor whose internal resistance changes with temperature. By measuring

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

Saved successfully!

Ooh no, something went wrong!