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.

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

transmitted signal and is much less likely than AM to be distracted by random<br />

electrical noise from the environment. This does not say that FM systems are immune<br />

to radio interference, though, because all radios are subject to radio interference.<br />

However, FM radio signals are far less susceptible to radio interference than AM<br />

radio signals.<br />

Pulse Code Modulation<br />

To further improve the reliability of FM radios, a more advanced system of<br />

signal transmission known as Pulse Code Modulation, or PCM, can be used. A<br />

PCM radio signal uses an FM radio transmission similar to an ordinary FM radio<br />

set, but the servo commands are transmitted as a digital data stream rather<br />

than time-coded pulses.<br />

A PCM receiver contains a microcontroller to develop and interpret the pulse<br />

code for servo control. PCM systems form the servo commands using a set of algorithms<br />

and precise code timing. PCM allows accurate signal reception, even when<br />

severe radio frequency interference (RFI) or other noise is present.<br />

The process begins in the transmitter by converting each joystick, switch, trim<br />

knob, and button position into a 10-bit digital word, plus the extra bits to enable<br />

the receiver to verify the word. The PCM radio system compacts this data representing<br />

1,024 servo positions per channel into the FCC-specified radio bandwidth,<br />

while maintaining responsive real-time control. The PCM data is<br />

transmitted synchronously; each bit has a particular position in time, within a<br />

frame. The frame continuously repeats. A crystal-controlled clock in the receiver<br />

locks onto the transmitted signal to maintain synchronization with the data, bit by<br />

bit. Thus, the receiver can process data immediately after interference instead of<br />

waiting for a framing pulse.<br />

Received data is evaluated channel by channel. When the microcontroller detects<br />

an error, previously stored valid channel data is used. If an error persists,<br />

failsafe servo operations previously specified by the operator are initiated until accurate<br />

commands are again received. The microcontroller converts the proper<br />

data into pulse widths to command the servos, and you no longer have servo “jitters.”<br />

Some receivers can be programmed to shut down if they receive bad data, or<br />

they can be programmed to output specific commands so that the robot enters a<br />

controlled and safe state. Because the actual data signal and a data checksum signal<br />

are sent at the same time and compared together at the receiver, it is nearly impossible<br />

for a robot to move out of control accidentally because of radio<br />

interference.

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

Saved successfully!

Ooh no, something went wrong!