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

Pulse-width<br />

modulation signal<br />

Chapter 7: Controlling <strong>Your</strong> Motors 141<br />

fed a variable voltage by switching the motor power on and off many times per<br />

second. The frequency of the switching is usually held constant while the percentage<br />

of time the switch is on or off is used to vary the desired output voltage. Figure 7-11<br />

shows a typical PWM signal.<br />

The percent of the time the switch is on is known as the duty cycle. The duty cycle<br />

is defined as the on time, t on , divided by the sum of the on time and the off time,<br />

t off . See Equation 1. The PWM frequency is the inverse of the time for one complete<br />

on-off cycle.<br />

The duty cycle is generally expressed as a percentage. For 10-percent duty cycle,<br />

the switch will be on 10 percent of the time and off the other 90 percent of the<br />

time. Fifty percent duty cycle will have the switch on half the time and off half<br />

the time, and with 100-percent duty cycle, the switch will be on all the time.<br />

Because the windings inside the motor act like an inductor, when the power is<br />

cut off to the motor, the magnetic fields inside the windings collapse. The changing<br />

magnetic field induces a current through the windings for a short period of time.<br />

When a source voltage (the battery voltage, for example) is pulsed to the motor,<br />

the motor will, in effect, time average that voltage. When the frequency of the<br />

pulsed voltage to the motor is high enough, the voltage time average will be proportional<br />

to the duty cycle. Thus, the average voltage is equivalent to the source<br />

voltage multiplied by the duty cycle.<br />

To produce the effect of a smooth output voltage, the PWM switch must be<br />

switching thousands of times per second. This is much too fast for any mechanical<br />

relay to function. PWM applications with relays have been attempted, with a<br />

switching speed of about 10 times per second, but this gives poor control and<br />

quickly destroys the relay contacts. Power switching at the speed required for<br />

good PWM control requires a high-speed, high-power transistor.<br />

Transistors act like switches or simple relays. They are reliable and can switch<br />

thousands to millions of times per second. Most transistors cannot handle the<br />

high currents that relays and solenoids can handle without burning up. The two<br />

most popular types of transistors that are designed for high-powered applications<br />

7.1

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

Saved successfully!

Ooh no, something went wrong!