|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| {{More footnotes|date=April 2009}}
| | She is recognized by the name of Myrtle Shryock. California is our beginning place. For many years I've been operating as a payroll clerk. To collect coins is a factor that I'm completely addicted to.<br><br>My homepage ... [http://Dpurl.de/dietfooddelivery78594 http://Dpurl.de] |
| | |
| [[Image:PWM, 3-level.svg|thumb|right|350px|An example of PWM in an AC motor drive: the phase-to-phase voltage (blue) is modulated as a series of pulses that results in a sine-like flux density waveform (red) in the magnetic circuit of the motor. The smoothness of the resultant waveform can be controlled by the width and number of modulated impulses (per given cycle)]]
| |
| | |
| '''Pulse-width modulation''' ('''PWM'''), or '''pulse-duration modulation''' ('''PDM'''), is a [[modulation]] technique that conforms the width of the pulse, formally the pulse duration, based on modulator signal information. Although this modulation technique can be used to encode information for transmission, its main use is to allow the control of the power supplied to electrical devices, especially to inertial loads such as motors. In addition, PWM is one of the two principal algorithms used in [[photovoltaic]] solar battery chargers,<ref>http://www.homepower.com/articles/solar-electricity/design-installation/sizing-grid-tied-pv-system-battery-backup</ref> the other being [[MPPT]].
| |
| | |
| The average value of voltage (and current) fed to the [[Electrical load|load]] is controlled by turning the switch between supply and load on and off at a fast pace. The longer the switch is on compared to the off periods, the higher the power supplied to the load is.
| |
| | |
| The PWM switching frequency has to be much faster than what would affect the load, which is to say the device that uses the power. Typically switchings have to be done several times a minute in an electric stove, 120 [[Hertz|Hz]] in a lamp dimmer, from few kilohertz (kHz) to tens of kHz for a motor drive and well into the tens or hundreds of kHz in audio amplifiers and computer power supplies.
| |
| | |
| The term ''[[duty cycle]]'' describes the proportion of 'on' time to the regular interval or 'period' of time; a low duty cycle corresponds to low power, because the power is off for most of the time. Duty cycle is expressed in percent, 100% being fully on.
| |
| | |
| The main advantage of PWM is that power loss in the switching devices is very low. When a switch is off there is practically no current, and when it is on, there is almost no voltage drop across the switch. Power loss, being the product of voltage and current, is thus in both cases close to zero. PWM also works well with digital controls, which, because of their on/off nature, can easily set the needed duty cycle.
| |
| | |
| PWM has also been used in certain [[Signalling (telecommunication)|communication systems]] where its duty cycle has been used to convey information over a communications channel.
| |
| | |
| ==History==
| |
| In the past, when only partial power was needed (such as for a [[sewing machine]] motor), a [[rheostat]] (located in the sewing machine's foot pedal) connected in series with the motor adjusted the amount of current flowing through the motor, but also wasted power as heat in the resistor element. It was an inefficient scheme, but tolerable because the total power was low. This was one of several methods of controlling power. There were others—some still in use—such as variable [[autotransformer]]s, including the [[trademark]]ed 'Autrastat' for theatrical lighting; and the [[Variac]], for general AC power adjustment. These were quite efficient, but also relatively costly.
| |
| | |
| For about a century, some variable-speed electric motors have had decent efficiency, 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 converter such as [[Ward Leonard control|Ward Leonard drive]].
| |
| | |
| However, in addition to motor drives for fans, pumps and [[robotics|robotic]] [[Servomechanism|servos]], there was a great need for compact and low cost means for applying adjustable power for many devices, such as electric stoves and lamp dimmers.
| |
| | |
| One early application of PWM was in the [[Sinclair Radionics|Sinclair]] X10, a 10 W audio amplifier available in kit form in the 1960s. At around the same time PWM started to be used in AC motor control.<ref>{{cite journal | last =Schönung | first =A. | coauthors =Stemmler, H. | title =Geregelter Drehstrom-Umkehrantrieb mit gesteuertem Umrichter nach dem Unterschwingungsverfahren | journal =BBC Mitteilungen | volume = 51 | issue = 8/9 | pages =555–577 | publisher =Brown Boveri et Cie | date =August 1964 }}</ref>
| |
| | |
| ==Principle==
| |
| [[Image:Duty cycle general.svg|thumb|350px|Fig. 1: a [[pulse wave]], showing the definitions of <math>y_{min}</math>, <math>y_{max}</math> and D.]]
| |
| | |
| Pulse-width modulation uses a [[rectangular wave|rectangular pulse wave]] whose pulse width is modulated resulting in the variation of the [[average]] value of the waveform. If we consider a pulse waveform <math>f(t)</math>, with period <math>T</math>, low value <math>y_{min}</math>, a high value <math>y_{max}</math> and a [[duty cycle]] D (see figure 1), the average value of the waveform is given by:
| |
| | |
| :<math>
| |
| \bar y=\frac{1}{T}\int^T_0f(t)\,dt.
| |
| </math>
| |
| | |
| As <math>f(t)</math> is a pulse wave, its value is <math>y_{max}</math> for <math>0<t<D\cdot T</math> and <math>y_{min}</math> for <math>D\cdot T <t<T</math>. The above expression then becomes:
| |
| | |
| :<math>
| |
| \begin{align}
| |
| \bar y &=\frac{1}{T}\left(\int_0^{DT}y_{max}\,dt+\int_{DT}^T y_{min}\,dt\right)\\
| |
| | |
| &= \frac{D\cdot T\cdot y_{max}+ T\left(1-D\right)y_{min}}{T}\\
| |
| | |
| &= D\cdot y_{max}+ \left(1-D\right)y_{min}.
| |
| \end{align}
| |
| </math>
| |
| | |
| This latter expression can be fairly simplified in many cases where <math>y_{min}=0</math> as <math>\bar y=D\cdot y_{max}</math>. From this, it is obvious that the average value of the signal (<math>\bar y</math>) is directly dependent on the duty cycle D.
| |
| | |
| [[Image:Pwm.svg|thumb|350px|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 sinewave) 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).]]
| |
| | |
| The simplest way to generate a PWM signal is the intersective method, which requires only a [[Sawtooth wave|sawtooth]] or a [[Triangle wave|triangle]] waveform (easily generated using a simple [[Electronic oscillator|oscillator]]) and a [[comparator]]. When the value of the reference signal (the red sine wave in figure 2) is more than the modulation waveform (blue), the PWM signal (magenta) is in the high state, otherwise it is in the low state.
| |
| | |
| ===Delta===
| |
| | |
| {{Main|Delta modulation}}
| |
| | |
| In the use of delta modulation for PWM control, the output signal is integrated, and the result is compared with limits, which correspond to a Reference signal offset by a constant. Every time the integral of the output signal reaches one of the limits, the PWM signal changes state. Figure 3
| |
| [[Image:Delta PWM.svg|thumb|350px|Fig. 3 : Principle of the delta PWM. The output signal (blue) is compared with the limits (green). These limits correspond to the reference signal (red), offset by a given value. Every time the output signal (blue) reaches one of the limits, the PWM signal changes state.]]
| |
| | |
| ===Delta-sigma===
| |
| | |
| {{Main|Delta-sigma modulation}}
| |
| | |
| In delta-sigma modulation as a PWM control method, the output signal is subtracted from a reference signal to form an error signal. This error is integrated, and when the integral of the error exceeds the limits, the output changes state. Figure 4
| |
| [[Image:Sigma-delta PWM.svg|thumb|350px|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.]]
| |
| | |
| ===Space vector modulation===
| |
| | |
| {{Main|Space vector modulation}}
| |
| | |
| Space vector modulation is a PWM control algorithm for multi-phase AC generation, in which the reference signal is sampled regularly; after each sample, non-zero active switching vectors adjacent to the reference vector and one or more of the zero switching vectors are selected for the appropriate fraction of the sampling period in order to synthesize the reference signal as the average of the used vectors.
| |
| | |
| ===Direct torque control (DTC)===
| |
| | |
| {{Main|Direct torque control}}
| |
| | |
| Direct torque control is a method used to control AC motors. It is closely related with the delta modulation (see above). Motor torque and magnetic flux are estimated and these are controlled to stay within their hysteresis bands by turning on new combination of the device's semiconductor switches each time either of the signal tries to deviate out of the band.
| |
| | |
| ===Time proportioning===
| |
| | |
| Many digital circuits can generate PWM signals (e.g., many [[microcontrollers]] have PWM outputs). They normally use a [[counter]] that increments periodically (it is connected directly or indirectly to the [[clock signal|clock]] of the circuit) and is reset at the end of every period of the PWM. When the counter value is more than the reference value, the PWM output changes state from high to low (or low to high).<ref>[http://www.netrino.com/Embedded-Systems/How-To/PWM-Pulse-Width-Modulation www.netrino.com – Introduction to Pulse Width Modulation (PWM)]</ref> This technique is referred to as '''time proportioning,''' particularly as '''time-proportioning control'''<ref>''Fundamentals of HVAC Control Systems,'' by Robert McDowall, [http://books.google.com/books?id=UMk1EUp-W-UC&pg=PA21&dq=%22time+proportioning%22 p. 21]</ref> – which ''proportion'' of a fixed [[cycle time]] is spent in the high state.
| |
| | |
| The incremented and periodically reset counter is the discrete version of the intersecting method's 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 high-resolution counter can provide quite satisfactory performance.
| |
| | |
| ===Types===
| |
| [[Image:Three PWM types.svg|thumb|350px|Fig. 5 : Three types of PWM signals (blue): leading edge modulation (top), trailing edge modulation (middle) and centered pulses (both edges are modulated, bottom). The green lines are the sawtooth waveform (first and second cases) and a triangle waveform (third case) used to generate the PWM waveforms using the intersective method.]]
| |
| | |
| Three types of pulse-width modulation (PWM) are possible:
| |
| #The pulse center may be fixed in the center of the time window and both [[signal edge|edges]] of the pulse moved to compress or expand the width.
| |
| #The lead edge can be held at the lead edge of the window and the tail edge modulated.
| |
| #The tail edge can be fixed and the lead edge modulated.
| |
| | |
| ===Spectrum===
| |
| The resulting [[spectrum|spectra]] (of the three cases) are similar, and each contains a [[Direct current|dc]] component, a base sideband containing the modulating signal and phase modulated [[Carrier wave|carriers]] at each [[harmonic]] of the frequency of the pulse. The amplitudes of the harmonic groups are restricted by a <math>\sin x / x</math> envelope ([[sinc function]]) and extend to infinity.
| |
| The infinite bandwidth is caused by the nonlinear operation of the pulse-width modulator. In consequence, a digital PWM suffers from [[aliasing]] distortion that significantly reduce its applicability for modern [[communications systems|communications system]]. By limiting the bandwidth of the PWM kernel, aliasing effects can be avoided.<ref>{{cite journal|last=Hausmair|first=Katharina|coauthors=Shuli Chi, Peter Singerl, Christian Vogel|title=Aliasing-Free Digital Pulse-Width Modulation for Burst-Mode RF Transmitters|journal=IEEE Transactions on Circuits and Systems I: Regular Papers|date=February 2013|volume=60|issue=2|pages=415–427|doi=10.1109/TCSI.2012.2215776}}</ref>
| |
| | |
| On the contrary, the delta modulation is a random process that produces continuous spectrum without distinct harmonics.
| |
| | |
| ===PWM sampling theorem===
| |
| The process of PWM conversion is non-linear and it is generally supposed that low pass filter signal recovery is imperfect for PWM. The PWM sampling theorem<ref>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.</ref> shows that PWM conversion can be perfect. The theorem states that "Any bandlimited baseband signal within ±0.637 can be represented by a pulsewidth modulation (PWM) waveform with unit amplitude. The number of pulses in the waveform is equal to the number of Nyquist samples and the peak constraint is independent of whether the waveform is two-level or three-level."
| |
| | |
| ==Applications==
| |
| | |
| ===Telecommunications===
| |
| {{main|servo control}}
| |
| In [[telecommunications]], PWM is a form of signal [[modulation#Pulse_modulation_methods|modulation]] where the widths of the pulses correspond to specific data values encoded at one end and decoded at the other.
| |
| | |
| Pulses of various lengths (the information itself) will be sent at regular intervals (the [[Carrier wave|carrier frequency]] of the modulation).
| |
| _ _ _ _ _ _ _ _
| |
| | | | | | | | | | | | | | | | |
| |
| Clock | | | | | | | | | | | | | | | |
| |
| __| |____| |____| |____| |____| |____| |____| |____| |____
| |
| | |
| _ __ ____ ____ _
| |
| PWM Signal | | | | | | | | | |
| |
| | | | | | | | | | |
| |
| _________| |____| |___| |________| |_| |___________
| |
| | |
| Data 0 1 2 4 0 4 1 0
| |
| | |
| The inclusion of a [[clock signal]] is not necessary, as the leading edge of the data signal can be used as the clock if a small offset is added to the data value in order to avoid a data value with a zero length pulse.
| |
| _ __ ___ _____ _ _____ __ _
| |
| | | | | | | | | | | | | | | | |
| |
| PWM Signal | | | | | | | | | | | | | | | |
| |
| __| |____| |___| |__| |_| |____| |_| |___| |_____
| |
| | |
| Data 0 1 2 4 0 4 1 0
| |
| | |
| ===Power delivery===
| |
| PWM can be used to control the amount of power delivered to a load without incurring the losses that would result from linear power delivery by resistive means. Potential drawbacks to this technique are the pulsations defined by the duty cycle, switching frequency and properties of the load. With a sufficiently high switching frequency and, when necessary, using additional passive [[electronic filter]]s, the pulse train can be smoothed and average analog waveform recovered.
| |
| | |
| High [[frequency]] PWM power control systems are easily realisable with semiconductor switches. As explained above, almost no power is dissipated by the switch in either on or off state. However, during the transitions between on and off 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 off (typically less than 100 nanoseconds), the power dissipation in the switches can be quite low compared to the power being delivered to the load.
| |
| | |
| Modern semiconductor switches such as [[MOSFET]]s or [[Insulated-gate bipolar transistor]]s (IGBTs) are well suited components for high efficiency controllers. Frequency converters used to control AC motors may have efficiencies exceeding 98%. Switching power supplies have lower efficiency due to low output voltage levels (often even less than 2 V for microprocessors are needed) but still more than 70–80% efficiency can be achieved.
| |
| | |
| Variable-speed fan controllers for computers usually use PWM, as it is far more efficient when compared to a [[potentiometer]] or [[rheostat]]. (Neither of the latter is practical to operate electronically; they would require a small drive motor.)
| |
| | |
| Light dimmers for home use employ a specific type of PWM control. Home-use light dimmers typically include electronic circuitry which suppresses current flow during defined portions of each cycle of the AC line voltage. Adjusting the brightness of light emitted by a light source is then merely a matter of setting at what voltage (or phase) in the AC halfcycle the dimmer begins to provide electrical current to the light source (e.g. by using an electronic switch such as a [[TRIAC|triac]]). In this case the PWM duty cycle is the ratio of the conduction time to the duration of the half AC cycle defined by the frequency of the AC line voltage (50 Hz or 60 Hz depending on the country).
| |
| | |
| These rather simple types of dimmers can be effectively 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 fluctuations in the emitted light. Some other types of light sources such as light-emitting diodes (LEDs), however, turn on and off extremely rapidly and would perceivably flicker if supplied with low frequency drive voltages. Perceivable flicker effects from such rapid response light sources can be reduced by increasing the PWM frequency. If the light fluctuations are sufficiently rapid, the human visual system can no longer resolve them and the eye perceives the time average intensity without flicker (see [[flicker fusion threshold]]).
| |
| | |
| 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 [[Energy regulator|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 temperature fluctuations are too small to matter in practice.
| |
| | |
| ===Voltage regulation===
| |
| {{Main|Switched-mode power supply}}
| |
| | |
| PWM is also used in efficient [[voltage regulator]]s. By 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 filtered with an [[inductor]] and a [[capacitor]].
| |
| | |
| One method measures the output voltage. When it is lower than the desired voltage, it turns on the switch. When the output voltage is above the desired voltage, it turns off the switch.
| |
| | |
| ===Audio effects and amplification===
| |
| PWM is sometimes used in sound (music) synthesis, in particular [[subtractive synthesis]], as it gives a sound effect similar to chorus or slightly detuned oscillators played together. (In fact, PWM is equivalent to the difference of two [[sawtooth wave]]s with one of them inverted.[http://www.soundonsound.com/sos/Mar03/articles/synthsecrets47.asp]) The ratio between the high and low level is typically modulated with a [[low frequency oscillation|low frequency oscillator]]. In addition, varying the duty cycle of a pulse waveform in a subtractive-synthesis instrument creates useful timbral variations. Some synthesizers have a duty-cycle trimmer for their square-wave outputs, and that trimmer can be set by ear; the 50% point (true square wave) was distinctive, because even-numbered harmonics essentially disappear at 50%. Pulse waves, usually 50%, 25%, and 12.5%, make up the [[Video game music|soundtracks of classic video games]].
| |
| | |
| A new class of audio amplifiers based on the PWM principle is becoming popular. Called "[[Switching amplifier|Class-D amplifiers]]", they produce a PWM equivalent of the analog input signal which is fed to the [[loudspeaker]] via a suitable filter network to block the carrier and recover the original audio. These amplifiers are characterized by very good efficiency figures (≥ 90%) and compact size/light weight for large power outputs. For a few decades, industrial and military PWM amplifiers have been in common use, often for driving [[Servomotor|servo motors]]. Field-gradient coils in [[MRI]] machines are driven by relatively high-power PWM amplifiers.
| |
| | |
| 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 speaker's physical filtering 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 more recent times, the [[Direct Stream Digital]] sound 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 the order of MHz) to cover the whole [[Acoustics|acoustic]] frequencies range with sufficient fidelity. This method is used in the [[Super Audio CD|SACD]] format, and reproduction of the encoded audio signal is essentially similar to the method used in class-D amplifiers.
| |
| | |
| ===Electrical===
| |
| SPWM (Sine–triangle pulse width modulation) signals are used in micro-inverter design (used in solar or wind power applications). These switching signals are fed to the FETs that are used in the device. The device's efficiency depends on the harmonic content of the PWM signal. There is much research on eliminating unwanted harmonics and improving the fundamental strength, some of which involves using a modified carrier signal instead of a classic sawtooth signal <ref>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.</ref><ref>Hirak Patangia, Sri Nikhil Gupta Gourisetti, “Real Time Harmonic Elimination Using a Modified Carrier”, CONIELECOMP, Mexico, Feb 2012.</ref><ref>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.</ref> in order to decrease power losses and improve efficiency. Another common application is in robotics where PWM signals are used to control the speed of the robot by controlling the motors.
| |
| | |
| ==See also==
| |
| * [[Delta-sigma modulation]]
| |
| * [[Pulse-amplitude modulation]]
| |
| * [[Pulse-code modulation]]
| |
| * [[Pulse-density modulation]]
| |
| * [[Pulse-position modulation]]
| |
| * [[Radio control]]
| |
| * [[Servomechanism#RC servos|RC servo]]
| |
| * [[Sliding mode control]] - produces smooth behavior by way of discontinuous switching in systems
| |
| * [[Space vector modulation]]
| |
| * [[Switching amplifier]]
| |
| | |
| == References ==
| |
| | |
| {{reflist}}
| |
| | |
| == External links ==
| |
| | |
| {{Commons category|Pulse width modulation}}
| |
| * [http://www.beis.de/Elektronik/DeltaSigma/DeltaSigma.html An Introduction to Delta Sigma Converters]
| |
| * [http://www.embedded.com.au/pages/Motor_Interface.html Introductory Tutorial] on PWM and Quadrature Encoding
| |
| *[http://www.mycircuits9.com/2013/04/pulse-width-modulation-pwm-555-timer-ic.html Pulse Width Modulation using 555 Timer]
| |
| *[http://www.pidlab.com/en/pwm-demo Pulse Width Modulation in PID control loop - free simulator]
| |
| | |
| [[Category:Electronics]]
| |