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.

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

Once the circuit is built, put a small tube around the LEDs to help focus and<br />

collimate the infrared light. Although most of the light is projected in front of the<br />

LEDs, a small fraction of the light goes sideways and to the rear of the LED. This<br />

could interfere with the infrared receiver module, causing false readings. The<br />

tubes also help reduce this interference. The IR receiver modules that are not enclosed<br />

inside a metal case, such as the Panasonic PNA4602M, are very susceptible<br />

to this setback. To solve this problem, place a small piece of aluminum foil duct<br />

tape on the back and sides of the receiver module. Do not let the tape touch the<br />

wire leads. This will help prevent false readings from sideways and backward<br />

emitted IR light.<br />

The basic operation of this circuit is to flash the left IR LED, then take a reading<br />

from the IR receiver, then flash the right IR LED, and then take another reading<br />

from the IR receiver. If the receiver detects something from the left IR LED, then<br />

there is something that is either to the left front or in front of the detector. If the receiver<br />

detects something from the right IR LED, then there is something either to<br />

right front or in front of the detector. If both left and right IR LEDs returned a signal,<br />

then there is something directly in front of the detector. Using this approach, a relative<br />

direction of the object can be detected. The left and right angular range detection<br />

can be adjusted by angling the IR LEDs toward or away from the IR<br />

receiver module.<br />

Depending on which infrared receiver module you choose, the modulated infrared<br />

light must be on between 400–600µs to allow for the receiver module to<br />

stabilize. Otherwise, a false signal is more likely to occur. In the real world, there’s<br />

a lot of “noise” in all signals, so it’s better to take a sample of readings instead of<br />

relying on a single measurement. One method of sampling is to take five consecutive<br />

readings. If you get more than three hits, there is a greater probability that<br />

there is an object in front of the sensor.<br />

A 40-kHz infrared receiver module has its peak sensitivity at 40 kHz. They are<br />

still functional when receiving light at +/- 5 kHz of the center frequency. The further<br />

away the actual modulated frequency is from the center frequency, the less sensitive<br />

the sensor becomes. With this knowledge, the sensitivity of this circuit can be adjusted<br />

by shifting the modulated infrared LED frequency away from the center frequency.<br />

The reason this may be important is that the detector circuit will detect<br />

white objects that are much farther away than black objects. Also, the ambient<br />

lighting at an actual competition is usually different that the ambient lighting at<br />

home or wherever you’re building and testing your bot. Sensors usually respond differently<br />

in the different ambient lighting conditions. Having the ability to adjust the<br />

sensitivity of the detectors will improve your bot’soverall performance.

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

Saved successfully!

Ooh no, something went wrong!