Pulse Width Modulation is a technique of generating a digital pulse that delivers a controllable amount of power. For example, if we wish to control a DC motor, then the amount of power delivered to the motor will dictate the motor speed. Equally, if controlling an LED, the power delivered will determine the brightness.
Consider the digital waveform below:
The digital pulse of ‘1’ is represented by the blue regions.
The output is a ON for seconds and off for seconds and that . If this signal is driving a device such as an LED or a DC motor, then clearly needs to be kept small to avoid noticeable pulsing effects (although for motors, must not be too small as you will discover).
The ratio of time spend ON, that is is known as the duty cycle. Often this is expressed as a percentage, so
Intuition would suggest the average output voltage is somehow related to the proportion of time that the output is ON. Let’s look at this more formally.
In general, for a voltage signal that varies with time , we can say that the mean voltage is derived as
However, from the graph, is a constant over fixed durations, so we can split this up and exploit this. We say that
where . The integral of zero is always zero, so we can write
Integrating, we get
Intuition would also suggest the output power is somehow related to the proportion of time that the output is ON. Let’s look at this more formally.
Consider driving power into a load resistance of , the instantaneous power is calculated as . What is more useful is the mean power over a period of time. It is therefore the mean of that is of interest. As and are constants, by the same reasoning
In summary, we can rewrite both these equations as follows:
Practical Application
Consider a DC motor. Put simply, we are turning the motor on and off at a fixed frequency. If , then you would see the motor starting and stopping, causing a juddering. The fundamental frequency of the vibration is .
- If is in the audible spectrum (), it will make the motor noisier.
- However, if is too high, the “inductive” effects of the motor will significantly reduce the power delivered to the motor (the details of this is something you will study later in the course).
As is often the case in engineering, you have to balance trade-offs between different criteria.For now, we are going to do this ‘empirically’.