Professional Documents
Culture Documents
1.5
B (T), V (V)
1.0
0.5
0
-0.5
-1.0
-1.5
0
10
15
(ms)
20
PWM has also been used in certain communication systems where its duty cycle has been used to convey information over a communications channel.
1 History
In the past, when only partial power was needed (such
as for a sewing machine motor), a rheostat (located in the
sewing machines foot pedal) connected in series with the
motor adjusted the amount of current owing through the
motor, also wasted power as heat in the resistor element.
It was an inecient scheme, but tolerable because the
total power was low. While the rheostat was one of several methods of controlling power (see autotransformers
and Variac for more info), a low cost and ecient power
switching/adjustment method was needed. This mechanism also needed to be able to drive motors for fans,
pumps and robotic servos, and needed to be compact
enough to interface with lamp dimmers. PWM emerged
as a solution for this complex problem.
Of note, for about a century, some variable-speed electric motors have had decent eciency, but they were
somewhat more complex than constant-speed motors,
and sometimes required bulky external electrical apparatus, such as a bank of variable power resistors or rotating
converters such as the Ward Leonard drive.
1
PRINCIPLE
Amplitude
source signals
ymax
ymin
D.T
(T+D.T)
2T (2T+D.T)
3T (3T+D.T)
Time
PWM signal
Principle
Time
f (t) dt.
0
1
y =
T
DT
ymax dt +
0
1
Analog signals
1
y =
T
Fig. 2: A simple method to generate the PWM pulse train corresponding to a given signal is the intersective PWM: the signal
(here the red sine wave) is compared with a sawtooth waveform
(blue). When the latter is less than the former, the PWM signal
(magenta) is in high state (1). Otherwise it is in the low state (0).
1
(D T ymax + T (1 D) ymin )
T
= D ymax + (1 D) ymin .
Reference
Limits
Output
-1
ymin dt
DT
Delta-PWM signal
0
Time
The simplest way to generate a PWM signal is the in- changes state.
tersective method, which requires only a sawtooth or
a triangle waveform (easily generated using a simple
oscillator) and a comparator. When the value of the reference signal (the red sine wave in gure 2) is more than
the modulation waveform (blue), the PWM signal (magenta) is in the high state, otherwise it is in the low state.
2.2 Delta-sigma
2.1
Delta
Types
3
the PWM output changes state from high to low (or low
to high).[3] This technique is referred to as time proportioning, particularly as time-proportioning control[4]
which proportion of a xed cycle time is spent in the high
state.
Time
Fig. 4 : Principle of the sigma-delta PWM. The top green waveform is the reference signal, on which the output signal (PWM, in
the bottom plot) is subtracted to form the error signal (blue, in top
plot). This error is integrated (middle plot), and when the integral of the error exceeds the limits (red lines), the output changes
state.
2.6 Types
1
trail
2.3
The incremented and periodically reset counter is the discrete version of the intersecting methods sawtooth. The
analog comparator of the intersecting method becomes a
simple integer comparison between the current counter
value and the digital (possibly digitized) reference value.
The duty cycle can only be varied in discrete steps, as
a function of the counter resolution. However, a highresolution counter can provide quite satisfactory performance.
lead
- PWM
Integration
2.6
center
2.4
Three types of pulse-width modulation (PWM) are posDirect torque control is a method used to control AC sible:
motors. It is closely related with the delta modulation
(see above). Motor torque and magnetic ux are esti1. The pulse center may be xed in the center of the
mated and these are controlled to stay within their hystime window and both edges of the pulse moved to
teresis bands by turning on new combination of the decompress or expand the width.
vices semiconductor switches each time either of the sig2. The lead edge can be held at the lead edge of the
nal tries to deviate out of the band.
window and the tail edge modulated.
2.5
Time proportioning
3. The tail edge can be xed and the lead edge modulated.
2.7 Spectrum
The resulting spectra (of the three cases) are similar, and
each contains a dc componenta base sideband containing the modulating signal and phase modulated carriers at
3 APPLICATIONS
each harmonic of the frequency of the pulse. The amplitudes of the harmonic groups are restricted by a sin x/x
envelope (sinc function) and extend to innity. The innite bandwidth is caused by the nonlinear operation of the
pulse-width modulator. In consequence, a digital PWM
suers from aliasing distortion that signicantly reduce
its applicability for modern communications system. By
limiting the bandwidth of the PWM kernel, aliasing effects can be avoided.[5]
On the contrary, the delta modulation is a random proPWM can be used to control the amount of power delivcess that produces continuous spectrum without distinct
ered to a load without incurring the losses that would reharmonics.
sult from linear power delivery by resistive means. Drawbacks to this technique are that the power drawn by the
load is not constant but rather discontinuous (see Buck
2.8 PWM sampling theorem
converter), and energy delivered to the load is not continuous either. However, the load may be inductive, and
The process of PWM conversion is non-linear and it is with a suciently high frequency and when necessary usgenerally supposed that low pass lter signal recovery ing additional passive electronic lters, the pulse train can
is imperfect for PWM. The PWM sampling theorem[6] be smoothed and average analog waveform recovered.
shows that PWM conversion can be perfect. The theo- Power ow into the load can be continuous. Power ow
rem states that Any bandlimited baseband signal within from the supply is not constant and will require energy
0.637 can be represented by a pulsewidth modulation storage on the supply side in most cases. (In the case of
(PWM) waveform with unit amplitude. The number an electrical circuit, a capacitor to absorb energy stored
of pulses in the waveform is equal to the number of in (often parasitic) supply side inductance.)
Nyquist samples and the peak constraint is independent
High frequency PWM power control systems are easily
of whether the waveform is two-level or three-level.
realisable with semiconductor switches. As explained
Sampling Theorem: A bandlimited signal can be reconabove, almost no power is dissipated by the switch in
structed exactly if it is sampled at a rate at least twice the
either on or o state. However, during the transitions
maximum frequency component in it.
between on and o states, both voltage and current are
nonzero and thus power is dissipated in the switches. By
quickly changing the state between fully on and fully o
(typically less than 100 nanoseconds), the power dissi3 Applications
pation in the switches can be quite low compared to the
power being delivered to the load.
3.1
Servos
3.6
Electrical
is the ratio of the conduction time to the duration of the numbered harmonics essentially disappear at 50%. Pulse
half AC cycle dened by the frequency of the AC line waves, usually 50%, 25%, and 12.5%, make up the
voltage (50 Hz or 60 Hz depending on the country).
soundtracks of classic video games.
These rather simple types of dimmers can be eectively
used with inert (or relatively slow reacting) light sources
such as incandescent lamps, for example, for which the
additional modulation in supplied electrical energy which
is caused by the dimmer causes only negligible additional
uctuations in the emitted light. Some other types of
light sources such as light-emitting diodes (LEDs), however, turn on and o extremely rapidly and would perceivably icker if supplied with low frequency drive voltages. Perceivable icker eects from such rapid response
light sources can be reduced by increasing the PWM frequency. If the light uctuations are suciently rapid
(faster than the icker fusion threshold), the human visual
system can no longer resolve them and the eye perceives
the time average intensity without icker.
A new class of audio ampliers based on the PWM principle is becoming popular. Called class-D ampliers,
they produce a PWM equivalent of the analog input signal which is fed to the loudspeaker via a suitable lter
network to block the carrier and recover the original audio. These ampliers are characterized by very good eciency gures ( 90%) and compact size/light weight for
large power outputs. For a few decades, industrial and
military PWM ampliers have been in common use, often for driving servo motors. Field-gradient coils in MRI
machines are driven by relatively high-power PWM ampliers.
Historically, a crude form of PWM has been used to play
back PCM digital sound on the PC speaker, which is
driven by only two voltage levels, typically 0 V and 5 V.
By carefully timing the duration of the pulses, and by relying on the speakers physical ltering properties (limited
frequency response, self-inductance, etc.) it was possible
to obtain an approximate playback of mono PCM samples, although at a very low quality, and with greatly varying results between implementations.
In electric cookers, continuously variable power is applied to the heating elements such as the hob or the grill
using a device known as a simmerstat. This consists of
a thermal oscillator running at approximately two cycles
per minute and the mechanism varies the duty cycle according to the knob setting. The thermal time constant of
the heating elements is several minutes, so that the tem- In more recent times, the Direct Stream Digital sound
perature uctuations are too small to matter in practice.
encoding method was introduced, which uses a generalized form of pulse-width modulation called pulse density
modulation, at a high enough sampling rate (typically in
3.4 Voltage regulation
the order of MHz) to cover the whole acoustic frequencies range with sucient delity. This method is used in
Main article: Switched-mode power supply
the SACD format, and reproduction of the encoded audio
signal is essentially similar to the method used in class-D
PWM is also used in ecient voltage regulators. By ampliers.
switching voltage to the load with the appropriate duty
cycle, the output will approximate a voltage at the desired level. The switching noise is usually ltered with an 3.6 Electrical
inductor and a capacitor.
SPWM (Sinetriangle pulse width modulation) signals
One method measures the output voltage. When it is are used in micro-inverter design (used in solar and wind
lower than the desired voltage, it turns on the switch. power applications). These switching signals are fed to
When the output voltage is above the desired voltage, it the FETs that are used in the device. The devices efturns o the switch.
ciency depends on the harmonic content of the PWM
signal. There is much research on eliminating unwanted
harmonics and improving the fundamental strength, some
3.5 Audio eects and amplication
of which involves using a modied carrier signal instead
of a classic sawtooth signal [7][8][9] in order to decrease
PWM is sometimes used in sound (music) synthesis, in
power losses and improve eciency. Another common
particular subtractive synthesis, as it gives a sound eect
application is in robotics where PWM signals are used to
similar to chorus or slightly detuned oscillators played tocontrol the speed of the robot by controlling the motors.
gether. (In fact, PWM is equivalent to the dierence of
two sawtooth waves with one of them inverted.) The ratio between the high and low level is typically modulated
with a low frequency oscillator. In addition, varying the 4 See also
duty cycle of a pulse waveform in a subtractive-synthesis
Analog signal to discrete time interval converter
instrument creates useful timbral variations. Some synthesizers have a duty-cycle trimmer for their square-wave
Delta-sigma modulation
outputs, and that trimmer can be set by ear; the 50%
Pulse-amplitude modulation
point (true square wave) was distinctive, because even-
6
Pulse-code modulation
Pulse-density modulation
Pulse-position modulation
Radio control
RC servo
Sliding mode control - produces smooth behavior by
way of discontinuous switching in systems
Space vector modulation
Class-D amplier
References
[1] http://www.homepower.com/articles/
solar-electricity/design-installation/
sizing-grid-tied-pv-system-battery-backup
[2] Schnung, A.; Stemmler, H. (August 1964). Geregelter Drehstrom-Umkehrantrieb mit gesteuertem Umrichter
nach dem Unterschwingungsverfahren. BBC Mitteilungen. Brown Boveri et Cie. 51 (8/9): 555577.
[3] www.netrino.com Introduction to Pulse Width Modulation (PWM)
[4] Fundamentals of HVAC Control Systems, by Robert McDowall, p. 21
[5] Hausmair, Katharina; Shuli Chi; Peter Singerl;
Christian Vogel (February 2013).
Aliasing-Free
Digital Pulse-Width Modulation for Burst-Mode
RF Transmitters.
IEEE Transactions on Circuits
and Systems I: Regular Papers. 60 (2): 415427.
doi:10.1109/TCSI.2012.2215776.
[6] J. Huang, K. Padmanabhan, and O. M. Collins, The
sampling theorem with constant amplitude variable width
pulses, IEEE transactions on Circuits and Systems, vol.
58, pp. 1178 - 1190, June 2011.
[7] Hirak Patangia, Sri Nikhil Gupta Gourisetti, A Harmonically Superior Modulator with Wide Baseband and
Real-Time Tunability, IEEE International Symposium
on Electronic Design (ISED), India, Dec.11.
[8] Hirak Patangia, Sri Nikhil Gupta Gourisetti, Real Time
Harmonic Elimination Using a Modied Carrier, CONIELECOMP, Mexico, Feb 2012.
[9] Hirak Patangia, Sri Nikhil Gupta Gourisetti, A Novel
Strategy for Selective Harmonic Elimination Based on a
Sine-Sine PWM Model, MWSCAS, U.S.A, Aug 2012.
EXTERNAL LINKS
6 External links
Tutorial video on PWM including example motor
speed control and LED dimming circuits
An Introduction to Delta Sigma Converters
Pulse Width Modulation in PID control loop - free
simulator
Pulse Width Modulation in Desktop monitors monitor icker
7.1
Text
Pulse-width modulation Source: https://en.wikipedia.org/wiki/Pulse-width_modulation?oldid=735450992 Contributors: Damian Yerrick, PierreAbbat, SimonP, Heron, Lumpbucket, Michael Hardy, Tim Starling, Ixfd64, Glenn, GRAHAMUK, Selket, EpiVictor, Pingveno,
Giftlite, DavidCary, BenFrantzDale, Everyking, Starx, Mschlindwein, Sonett72, TedPavlic, Jaberwocky6669, Adambro, Bobo192, Meestaplu, Hooperbloob, RJFJR, DV8 2XL, Kenyon, SCEhardt, RuM, Ademkader, Alll~enwiki, Dermeister, Fish and karate, Ian Pitchford, Gurch, Krishnavedala, YurikBot, Tole, Rohitbd, Deville, KnightRider~enwiki, SmackBot, Sam8, Chris the speller, Nbarth,
Krant~enwiki, SundarBot, Nahum Reduta, Funky Monkey, S Roper, Johncatsoulis, Gobonobo, Ckatz, CyrilB, Dicklyon, Spook`, Kvng,
Politepunk, Wizard191, Twas Now, CapitalR, Nit vs atwiki, Porterjoh, Jaeger5432, Chrike, Circuit dreamer, Zureks, WeggeBot, Cydebot, MC10, Rsutherland, Nick Wilson, Simon Brady, Thijs!bot, Gerry Ashton, Vibhutesh, Guy Macon, Xoneca, Magioladitis, Rivertorch, Nikevich, ML1986, Matt B., Glrx, JKN abb, R'n'B, Candleknight, Ellisbjohns, GandalfDaGraay, Jeepday, Leopold B. Stotch,
Daniel347x, Broadbot, Andy Dingley, Spinningspark, AlleborgoBot, Deconstructhis, Yngvarr, SieBot, Bentogoa, Allmightyduck, EnOreg,
Denisarona, Asher196, ClueBot, DragonBot, Arjayay, SchreiberBike, Lambtron, DumZiBoT, Joel Saks, XLinkBot, Teslaton, MystBot, Addbot, Mortense, Tide rolls, OlEnglish, Legobot, Luckas-bot, Yobot, Mikey likes mountains, AnomieBOT, KDS4444, Zangar,
RandomAct, Xzapro4, GB fan, ArthurBot, Xqbot, DSisyphBot, Shulini, Shfork, Omnipaedista, RibotBOT, DoostdarWKP, I dream of
horses, Phoenix7777, Orenburg1, TobeBot, DARTH SIDIOUS 2, DexDor, EmausBot, DMChatterton, Wikipelli, ZroBot, F, Squall
line, Tolly4bolly, Mayowerone, Yves86, Pun, Sven Manguard, ClueBot NG, Matthiaspaul, Satellizer, Kubing, PoqVaUSA, Snotbot, Willardmcg, Widr, Wbm1058, BG19bot, Ninney, Tungstic, BattyBot, Hebert Per, Mrt3366, GoShow, , Ajv39,
MadCowpoke, AK456, Liangjingjin, SFK2, Sihuapilapa, Buntybhai, Hello371882, Satwikmishravit, Megapod, Impsswoon, Monkbot,
SkateTier and Anonymous: 244
7.2
Images
7.3
Content license