Automotive

Actuators and PWM control

How a control module makes something happen — solenoids and their inductive kick, why pulse width modulation replaced the resistor, duty cycle as a command, H-bridges for reversible motors, and what closed-loop position control adds.

IntermediateAutomotive

Standards referencedSAE J1930ISO 16750ISO 26262

A sensor lets the module know. An actuator lets it act. The interesting part is that a microcontroller can only really do one thing to a wire — connect it or not — and almost every form of modulated control on a vehicle is built out of that single ability used cleverly.

Automotive actuators on a workshop bench — an electronic throttle body with its cover removed showing the DC motor, reduction gears and return spring, a fuel injector, a canister purge solenoid, and a stepper motor idle air control valve, each with its electrical connector visible.
Four actuators, three different kinds of drive. The throttle body on the left is the only one of them that knows where it actually is.

The solenoid, and the spike nobody expects

Most actuators start as a solenoid — a coil round a movable iron armature. Energise it and the armature is pulled in against a spring; de-energise and the spring returns it. Injectors, purge valves, transmission shift valves and starter solenoids are all this.

The part that catches people out is switching off. An inductor resists a change in current, so interrupting the current produces a reverse voltage spike that can reach several hundred volts. Left alone, it destroys the switching transistor. Two answers are used:

  • A flyback diode across the winding, reverse biased in normal use, which conducts when the polarity reverses and lets the energy circulate until it decays. Cheap and effective.
  • A clamp at a controlled higher voltage — typically built into the driver — where the release needs to be fast. The flyback diode slows the collapse of the field and therefore the return of the armature, and for an injector that closes thousands of times a minute, that matters.

Pulse width modulation

A diagram explaining pulse width modulation. Three traces show the same fixed-frequency switching waveform at twenty five, fifty and seventy five per cent duty cycle, each with a dashed line marking the average the load experiences. Beside them a comparison shows a series resistor dropping half the supply and wasting exactly as much power as the load consumes, against a MOSFET that is fully on with milliohms of resistance or fully off with almost no current, wasting almost nothing in either state. A panel explains that the load must have enough thermal, magnetic or mechanical inertia to respond to the average rather than to individual pulses, and that switching frequency is chosen for that reason and held constant. A final panel notes that duty cycle read on a scan tool is a command, not a measurement.
The switch is only ever fully on or fully off. Everything between is time, not voltage.

Instead of varying voltage, vary time. The switch runs at a fixed frequency and what changes is the fraction of each cycle it spends on — the duty cycle. A load with inertia of some kind responds to the average:

  • A blower motor has mechanical and thermal inertia, so it sees 50% duty as roughly half speed.
  • A solenoid has magnetic inertia, so a partially energised proportional valve holds a partial position.
  • A heater or lamp has thermal inertia, so it sees an average power.

The efficiency argument is the whole reason this displaced the older resistor pack. A resistor dropping half the voltage at the same current wastes exactly as much power as the load uses, and turns it into heat that then has to go somewhere. A MOSFET that is fully on has milliohms of resistance, and fully off passes essentially nothing, so in both states the power lost in the switch is negligible. The only real loss is in the transitions between them, which is why switching frequency is chosen carefully rather than simply raised.

Typical PWM frequency Where Why that figure
10–30 Hz Canister purge, EGR, some proportional valves Slow enough for a spool to follow, fast enough to average
100–400 Hz Transmission pressure solenoids Above the hydraulic circuit’s response, below the spool’s
1–2 kHz Cooling fans, blower motors Above the motor’s electrical time constant
18–25 kHz Anything near the cabin Deliberately above audible, so the switching cannot be heard

Driving a motor in both directions

A diagram of four actuator driver arrangements. First, a low-side driver switching the earth of a load that stays connected to battery positive, with a note that an earth fault in the wiring will turn the load on. Second, a high-side driver switching the supply, leaving the load at earth potential when off, with integrated current sensing that reports open circuits and shorts without a meter. Third, an H-bridge of four transistors with a motor across the middle, showing one diagonal pair conducting for forward and the other for reverse, and a warning that switching both transistors on one side simultaneously shorts the supply, which is why a dead time is enforced. Fourth, a stepper motor with two windings energised in sequence to advance the rotor a fixed increment per step, with a note that the module counts steps from a known reference rather than measuring position.
Four ways to connect a load. Which one a designer chose tells you most of what you need to know about how the circuit will fail.

Low-side driver. The switch is between the load and earth, so the load sits permanently at battery positive. Simple, cheap, and the reason a chafed wire to earth energises the load.

High-side driver. The switch is between battery positive and the load, so when it is off the load is dead. Modern ones sense their own current and report open circuits and shorts on the bus, which is how a module sets an “open circuit, cooling fan relay” code with nobody holding a meter.

H-bridge. Four switches arranged so either end of the motor can go to supply or to earth. One diagonal pair drives forward, the other reverse, and PWM on top of that gives speed. Turning on both switches on the same leg at once puts a dead short across the battery, so every practical H-bridge enforces a dead time between the two states.

Stepper. Two windings energised in sequence to advance the rotor a fixed increment per step. Inherently open loop on position — the module counts steps from a reference, which is only meaningful if it started from somewhere known. That is why an idle air control valve is driven hard against its end stop at key-off, and why idle behaviour is strange after a battery disconnection until it has reset.

Closed loop, and the difference it makes

An open-loop command assumes the actuator behaves as modelled. It does not, quite — friction, wear, temperature and supply voltage all move the result. A closed-loop actuator carries a sensor on its output and the module drives the error between commanded and actual towards zero.

An electronic throttle is the clearest example. The module commands a plate angle; the dual-track position sensor reports the angle actually reached; the driver corrects until they match. Consequences worth knowing:

  • A sticking plate sets a fault rather than quietly moving less than asked.
  • The motor has to work against the return spring in both directions, because that spring defines the safe state — a small default opening that lets the engine idle and the vehicle limp if the drive fails.
  • After a battery disconnection the module has to relearn the closed stop, which is why some vehicles idle badly for a minute and then settle.

What to take away

  • Switching a solenoid off is the dangerous moment; a flyback diode or a controlled clamp handles the spike, and the choice affects how fast the armature releases.
  • PWM varies time, not voltage. Efficiency comes from the switch being fully on or fully off.
  • Duty cycle on a scan tool is a command. It is not evidence that anything moved.
  • High-side drivers leave the load dead when off and can diagnose themselves; low-side drivers cannot.
  • An H-bridge gives reversal, and needs dead time to avoid shorting the supply through one leg.
  • Steppers count, they do not measure — hence the re-reference at key-off.
  • Closed loop means a sensor on the output. It is what turns a command into a guarantee, and what turns a mechanical problem into a fault code.

Sensors and actuators between them produce far more traffic than individual wires can carry, which is where the CAN bus comes in.

Check your understanding

10 questions. Nothing is recorded — this is just for you.

1A control module switches a solenoid off. What happens in the winding at that instant, and what is done about it?
2What does pulse width modulation actually vary?
3Why is PWM so much more efficient than a series resistor for controlling a blower motor?
4A fuel injector is driven peak and hold. What does that mean and why is it done?
5What does an H-bridge allow that a single low-side driver does not?
6What is the difference between open-loop and closed-loop actuator control?
7Why does an electronic throttle body always have a strong return spring holding the plate slightly open?
8A stepper motor idle air control valve is commanded to a position. How does the module know where it is?
9What is a high-side driver and why did it displace low-side switching for many loads?
10What is dither, as applied to a proportional hydraulic solenoid?

#vehicle systems#actuators#solenoid#PWM#duty cycle#H-bridge#stepper motor#flyback diode#closed loop