Learning Content and Theses

Platform for digital learning at HSHL

PWM

Pulse width modulation (PWM) is a method of changing the mean value of a voltage. Among other things, PWM is used to drive switches in power electronics. Voltage pulses of different duration and constant height are generated. The following figure shows a PWM signal as an example:

PWM signal u(t) between 0 V and 5 V with period 10 µs and duty cycle 50 %

A PWM voltage has the following parameters:

1. The maximum voltage and the minimum voltage describe the two voltage values that a PWM voltage can take. In the example above, the maximum voltage is 5 V and the minimum voltage is 0 V. The maximum voltage is also called the HIGH level and the minimum the LOW level.

2. The PWM frequency indicates how quickly the pulses follow one another. A LOW level followed by a HIGH level (or vice versa) corresponds to the period of one pulse. In the figure above, the period is T = 10 µs. This corresponds to a PWM frequency of f = 1 / T = 100 kHz.

3. The duty cycle indicates the proportion of the period taken up by the HIGH pulse. In the figure above, the duty cycle is 50 %, because the HIGH pulse lasts exactly as long as the LOW pulse. With a duty cycle of 100 %, 5 V is present permanently.

4. Rise time and fall time describe the duration of the edges of the voltage change. In the figure above, the edge from LOW to HIGH changes within 0.1 µs. We call this duration the rise time. The fall time describes the duration of the edge in the transition from HIGH to LOW. It is often just as long as the rise time. The higher the PWM frequency chosen, the shorter the two switching times must be.

Mean value of the PWM voltage

The time average of a PWM voltage is calculated from the integral of the voltage over time. It can be determined or estimated from the areas. In the example above, the mean value is 2.5 V, because 0 V and 5 V are each present for the same length of time. Let us look at another example for illustration:

PWM signal u(t) between 0 V and 100 V with period 10 ms and on-time 2.5 ms
\[ \begin{gathered} \text{Mean value } \overline{U} = \frac{1}{T} \int_0^T u(t)\,dt = \frac{1}{10\,\mathrm{ms}} \int_{0\,\mathrm{ms}}^{10\,\mathrm{ms}} u(t)\,dt = 0\,\mathrm{V} + \frac{1}{10\,\mathrm{ms}} \int_{7.5\,\mathrm{ms}}^{10\,\mathrm{ms}} 100\,\mathrm{V}\,dt \\[6pt] = \frac{1}{10\,\mathrm{ms}} \left(100\,\mathrm{V} \cdot 10\,\mathrm{ms} - 100\,\mathrm{V} \cdot 7.5\,\mathrm{ms}\right) \\[6pt] = \frac{1}{4} \cdot 100\,\mathrm{V} = 25\,\% \cdot 100\,\mathrm{V} = 25\,\mathrm{V} \end{gathered} \]

In this example, the PWM voltage is 100 V, the PWM frequency 100 Hz and the duty cycle 25 %. Rise and fall times are each 100 µs. The mean value of the voltage is 25 V. The length of the HIGH pulse (duty cycle) is 25 % of the period. The area under the voltage of the HIGH pulse corresponds to 1/4 of the total area. The mean value of the voltage is therefore 25 % of the PWM voltage. The mean value can be determined more easily graphically than mathematically.

We call the alternating switching of the two switches the PWM operation of a half bridge. One switch is always open and the other closed. The output voltage alternates between 0 V and the input voltage. A half bridge can therefore be used to generate a PWM voltage from a DC voltage.

The mean value of the PWM voltage of a half bridge can take any value between 0 V and the input voltage. To do this, we simply vary the duty cycle of the PWM. The larger the proportion of the HIGH level in one period of the signal, the higher the mean value of the output voltage. In the end, the mean value is what matters for the further processing of the output voltage of the half bridge.

Download course as PDF

The PDF contains all pages of the course. Interactive content is only available on the website.