Pulse Width Modulation

From Mech
Revision as of 13:56, 9 June 2006 by Stephens (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To control the speed of the motor, the switches of the H-bridge are opened and closed at different rates in order to apply different average voltages across the motor. This technique is called pulse width modulation. Let's look at the following diagrams:

<IMG SRC="pwm1.jpg" WIDTH=300 HEIGHT=230 X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom>

<IMG SRC="pwm2.jpg" WIDTH=320 HEIGHT=230 X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom>

In the above diagrams, V is the voltage across the motor and t is time. By switching quickly, we can create an average voltage across across the motor. The speed of the motor can be adjusted by changing the pulse-width ratio:

Pulse-Width Ratio = t(on) / t(period)

of the voltage applied across its terminals.

If the motor only has to turn in 1 direction, we can just use a half bridge:

<IMG SRC="half_b.jpg" WIDTH=300 HEIGHT=230 X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom>

There are different ways to control the speed of a DC motor:

1) switching from full positive to full negative

2) full positive to open

3) full negative to open

4) braking by shorting

5) free wheeling by leaving the circuit open.

One of the possibilities is to use a L293D chip shown below:

<IMG SRC="L293.jpg" WIDTH=450 HEIGHT=357 X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom>

When using a L293D chip, one of the concerns is heat sinking. It is because there are lots of power dissipation and we need to take the heat away. One of the ways to do this is to connect pins of the L293 to piece of metal or copper.