In: Electrical Engineering
Name some applications of PWM and explain how they work.
A Pulse Width Modulation (PWM) Signal is a method for generating an analog signal using a digital source. A PWM signal consists of two main components that define its behavior: a duty cycle and a frequency. The duty cycle describes the amount of time the signal is in a high (on) state as a percentage of the total time of it takes to complete one cycle. The frequency determines how fast the PWM completes a cycle (i.e. 1000 Hz would be 1000 cycles per second), and therefore how fast it switches between high and low states. By cycling a digital signal off and on at a fast enough rate, and with a certain duty cycle, the output will appear to behave like a constant voltage analog signal when providing power to devices.
PWM signals are used for a wide variety of control applications. Their main use is for controlling DC motors but it can also be used to control valves, pumps, hydraulics, and other mechanical parts. The frequency that the PWM signal needs to be set at will be dependent on the application and the response time of the system that is being powered. Below are a few applications and some typical minimum PWM frequencies required:
Note: Certain systems may need faster frequencies than what is listed here depending on the type of response desired.
Pulse Width Modulation (PWM) is a nifty current control technique that enables you to control the speed of motors, heat output of heaters, and much more in an energy-efficient (and usually quieter) manner. Existing applications for PWM include, but are not limited to:
Pulse width modulation has changed the world by slashing the power consumption of appliances utilizing motors such as inverter air conditioners, inverter refrigerators, inverter washing machines, among many others. For example, inverter air conditioners can consume less than half the energy that their non-inverter counterparts do in some cases.
In this day and age, if a device is advertised as having a variable speed compressor or variable speed fan (this doesn’t include two or three-speed fans), there is a significant chance that it is utilizing PWM!
Why Use PWM?
Aspiring electrical engineers may want to know why they should use pulse width modulation to control devices, and homeowners have similar question which has the same answer: Why use inverter air conditioners, or other variable speed appliances?
The answer to both questions is: PWM varies the speed of the appliances’ motors so they only consume as much power as they need, but without the usual consequence of burning off unused current as heat. An example of an older alternative is a simple transistor circuit that varies the current passing through it by varying its resistance.
The same efficiency rule that applies to resistors also applies to transistors — Their resistance results in wasted energy because they burn off some of it as heat. They act like heaters in that regard.
Fortunately, these circuits were never mainstream. Appliances such as air conditioners and refrigerators just ran at full speed all the time, making lots of noise, and wasting lots of energy because they had to cycle on and off frequently.
PWM works by pulsating DC current, and varying the amount of time that each pulse stays ‘on’ to control the amount of current that flows to a device such as an LED. PWM is digital, which means that it has two states: on and off (which correspond to 1 and 0 in the binary context, which will become more relevant to you if using microcontrollers).
The longer each pulse is on, the brighter the LED will be. Due to the fact that the interval between pulses is so brief, the LED doesn’t actually turn off. In other words, the LED’s power source switches on and off so fast (thousands of times per second) that the LED actually stays on without flickering. This is called PWM dimming, and such as circuit is just called a PWM LED dimmer circuit.
The squares in the PWM illustration below are the pulses which represent ‘on’ time, and the depressed areas represent the time that the power is ‘off’. Both the squares and depressed areas are the same ‘width’, therefore the duty cycle is 50%. PWM signals are typically square waves, like the one in the illustration below.
A PWM signal (square wave) with a 50% duty cycle.
If the duty cycle of a PWM power supply is set to 70%, then the pulse is on for 70% of the time, and it is off 30% of the time. Duty cycle refers the amount of time it is on. At a 70% duty cycle, an LED’s brightness should be near 70%. The correlation between duty cycle and brightness is not 100% linear, as the efficiency of LEDs varies with the amount of current supplied.
If the duty cycle was 0%, the entire signal would be flat, as shown below. A PWM duty cycle of 0% means that the power is off. In such a state, an LED would not be operational. It would simply be off.
PWM signal (square wave) with a duty cycle of 0%. This means the power is off.
The key reason that PWM circuits are so efficient is that they don’t try to partially restrict the flow of current using resistance. They turn the current fully on and fully off. They just vary the amount of time that it is on instead.