Select a technical image to view it in detail.
In this entry I cover some nuances of PWM.
What PWM is used for
PWM (Pulse Width Modulation) provides “analog” control of actuators, meaning smooth control rather than simple on/off. It is used for valves, electric motors, heating elements, bulbs and so on. PWM regulates the voltage supplied to the actuator (load), and with it the current and power.
Why PWM?
Actuators could also be driven by a DAC (digital-to-analog converter), but PWM makes the control unit more efficient, so losses are smaller. Smaller losses save battery energy when the engine is off and reduce heating of the control units. Both matter a great deal in modern cars. The current drawn by the various consumers reaches several tens of amperes, and even the DME/DDE needs forced cooling, so every percent saved on losses is valuable. For example, when an actuator is driven at 50 % with a DC method (DAC), heat losses are around 50 %. With PWM the losses are only a few percent.
How PWM works
With PWM, an electronic switch is turned on and off periodically, typically several hundred times per second in a car. While the switch is on, current flows through the actuator. While it is off, no current flows through the load. By changing the proportion of “on” to “off” time, you change the energy supplied to the actuator.
The switching itself is very fast. Because the actuator has mechanical (or thermal) inertia, it does not follow each pulse. Instead it sits continuously in an “analog” position set by the ratio of “on” to “off” time.
What a PWM value means
Take PWM = 67 % as an example. For 67 % of the time the actuator is supplied with energy (the switch is on), and for the remaining 33 % (100 − 67) it is not.
Actuators are usually driven from the car’s onboard voltage, so we can simplify. 67 % PWM means the actuator sees the onboard voltage for 67 % of the time. Put another way, the average voltage on the actuator pins is about 8.0 V at an onboard voltage of 12.0 V, or about 9.4 V at 14.0 V.
Output monitoring and connection checks
The control units usually monitor the actuator connection and the state of their output switches. To make this possible, the PWM range is not a full 0 %–100 % but slightly narrower, for example 0.5 %–99.5 %. This small restriction does not degrade actuator control. In the short “pauses” it lets the unit verify that its power switch works and that the actuator is connected, because the output voltage changes from 0 to Ubat and back.
Compensating for onboard voltage
If the onboard voltage changes while PWM stays fixed, the average voltage at the actuator changes too, and so does the power (energy) delivered. The control units therefore measure the onboard voltage and recalculate the required PWM. The higher the onboard voltage, the lower the PWM. Suitable formulas compensate for the voltage variation.
Actuator connection types
Actuators can be connected in three ways:
- One actuator pin is connected to Ground (the car chassis), and PWM controls the plus (+) pin.
- One actuator pin is connected to Ubat (line 15/30), and PWM controls the minus (−) pin.
- Both actuator pins are controlled by PWM. This allows the direction of current through the actuator to be reversed (a so-called bridge connection).
The first two are used in simple cases where the current direction does not need to change, for example bulbs and solenoid valves. Which one is used depends on the developer. Switching the minus pin is technically cheaper, while switching the plus pin is more convenient in use. To find out which is used, check the electrical schematic of the specific unit.
The third solution is used when the current direction must change. This is typically the case with electric motors, which have to turn in both directions, and the bridge connection makes that possible.
I stress these three connections because the way you measure the voltage supplied to the actuator depends on them:
- Plus pin switched: measure the voltage against Ground (car chassis).
- Minus pin switched: measure the voltage against the onboard voltage (line 15/30).
- Both pins switched: measure directly across the actuator pins.
If you measure the wrong way, for example against Ground on an actuator whose minus pin is switched, you will get completely wrong, “inverted” voltage readings.
What a PWM signal looks like
This is what a PWM signal of around 90 % looks like for an actuator connected to Ground. For an actuator connected to Ubat, the same trace corresponds to around 10 % PWM. In both cases the oscilloscope ground is connected to the car chassis. It is a good illustration of how the PWM value you read depends on the way the actuator is connected.
Examples
Actuator connected to Ground, plus output switched by PWM
Here all the bulbs have one pin connected to Ground (line 31, brown wires). The plus (+) pins go to the FRM module, where bulb brightness is changed by PWM.
Actuator connected to Ubat (line 15/30), minus output switched by PWM
The plus wire of the exhaust flap is connected to Ubat via a fuse. In the schematic, the lower pin (the minus connection) is the one switched by PWM. Note that the corresponding output switch in the DME is connected to line 31, which confirms that the (−) side is the one being switched.
Both actuator pins switched by PWM
This is the electric motor of an EGR valve, where pins 3 and 4 are both controlled by PWM.



