Pulse width modulation (PWM) PWM β€” Pulse-Width Modulation) is a technology without which a modern car simply could not function. From adjusting the brightness of the dashboard lights to controlling the cooling fans - PWM signals control dozens of processes under the hood and in the cabin. But how exactly does this system work? Why is it used instead of simply changing the voltage? And what to do if the PWM controller fails?

For many car owners, the abbreviation PWM remains a mystery until a problem arises: the LEDs are blinking, the generator is unstable, or the climate control fails. Meanwhile, by understanding the principles of pulse-width modulation, you can not only diagnose faults faster, but also intelligently upgrade your car - for example, install error-free LED lamps on the dashboard or configure coolers for optimal cooling.

In this article we will analyze physical basis of PWM, we will consider real-life application circuits in a car, and also give practical advice on checking and repairing systems with pulse width modulation. No complicated formulas - just what you'll need in the garage.

What is PWM and why is it used in cars?

Pulse width modulation is a method of controlling the power of an electrical signal by changing pulse duration at constant frequency. Imagine turning a light bulb on and off 100 times per second, but keeping it on a little longer or shorter each time. With short pulses the light bulb will shine dimly, with long pulses it will shine brightly. This is how PWM works: power is regulated not by voltage changes, but by time intervals.

Why has this method become a standard in auto electronics? It's all about efficiency and simplicity:

  • πŸ”‹ Energy Saving: PWM controllers consume less current than linear regulators (such as resistors) because the transistors operate in a switching mode - either fully open or closed.
  • πŸ”§ Minimum heat: With linear control (eg in older rheostats), excess energy is dissipated as heat. The PWM hardly heats up.
  • πŸ“ Control precision: You can smoothly adjust the power from 0% to 100% in fractions of a percent increments.
  • πŸš— Versatility: The same controller can control the fan, LEDs, and fuel pump.

In a car, PWM is used wherever needed smoothly adjust power without loss:

  • πŸ’‘ Adjust the brightness of the dashboard lighting and interior lighting.
  • πŸŒ€ Control the rotation speed of cooling and climate control system fans.
  • ⚑ Generator charge control (in modern machines, PWM controls the excitation of the winding).
  • πŸ”Œ Control of fuel pumps and injectors in diesel engines.
  • πŸŽ›οΈ Electronic gas pedals (E-Gas), where PWM converts pedal input into a signal for the throttle.

Interesting fact: in older cars (pre-2000s), they used to adjust the brightness of the backlight. rheostats β€” variable resistors that simply β€œburned” excess voltage. Today this approach is unacceptable due to low efficiency. PWM allows you to control power with almost no losses.

πŸ“Š Where do you think PWM is used in your car?
In the instrument lighting
In cooling fans
In the generator
In climate control
I don't know

How PWM works: let's look at the circuit on our fingers

To understand how it works, imagine a water tap that you open and close at a certain frequency. If the tap is open half the time, then half as much water will pass through it as with a fully open tap. It's the same with electricity: PWM signal is a series of pulses, where the duration of the on state (duty cycle) determines the final power.

Key PWM parameters:

  • πŸ”„ Frequency (f): how many pulses occur per second (measured in hertz, Hz). In auto electronics, frequencies range from 100 Hz to 20 kHz.
  • πŸ•’ Duty factor (D): ratio of on-state time (ton) to period (T). Expressed as a percentage. For example, a duty cycle of 50% means that the signal is on half the time.
  • πŸ”Œ Supply voltage (Vcc): Typically 5V or 12V in automotive systems.

Formula for calculating the output voltage (for a load with inertia, for example, a lamp or motor):

V_out = V_cc Γ— D

Where V_out - effective voltage across the load, D β€” duty cycle (from 0 to 1).

Example: if a PWM voltage of 12V and a duty cycle of 30% is supplied to the fan, then the effective voltage will be 12 Γ— 0.3 = 3.6V. The fan will rotate slowly, but without jerking.

Why is PWM not suitable for all load types?

Some devices (such as audio amplifiers or sensitive sensors) require a stable, ripple-free voltage. PWM can create interference, so in such cases linear stabilizers or LC filters are used to smooth the signal.

What does a PWM signal look like on an oscilloscope?

On the screen you will see rectangular pulses with a constant frequency, but different widths. For example, with a duty cycle of 25%, the pulse will occupy a quarter of the period, and with 75%, three quarters. In automotive systems, the PWM frequency is usually fixed (for example, 1 kHz for fans), and only the duty cycle varies.

Duty factor Output power Example of application in a car
10% Minimum Night illumination of devices
50% Average Cooling fan at idle
90% Maximum Blowing the radiator when overheating
100% Always on Emergency alarm

Where is PWM used in a car: top 5 systems

Pulse width modulation is used in dozens of components of a modern car. Let's look at the most critical of them - those where a PWM malfunction can lead to serious problems.

1. Generator control

In most cars after 2010 generator voltage regulator works on the PWM principle. Instead of simply turning the field winding on/off, the electronic unit changes the duty cycle of the pulses, maintaining a stable output voltage (usually 13.8–14.4V).

Signs of malfunction:

  • πŸ”‹ Voltage surges in the on-board network (from 12V to 16V).
  • πŸ’‘ Dim or flickering headlights.
  • ⚠️ Error P0562 (low voltage on-board network) on the dashboard.

If the alternator's PWM regulator fails, the battery is either undercharged or overcharged, leading to premature battery wear.

2. Cooling fans

Radiator fans in modern cars are controlled stepless via PWM. This allows you to:

  • 🌑️ Smoothly adjust the speed depending on the antifreeze temperature.
  • πŸ”‡ Reduce noise (the fan does not turn on at full power suddenly).
  • ⚑ Save fuel (less load on the generator).

Important: if the fan only works at maximum speed or does not turn on at all, either the temperature sensor or the PWM controller in the control unit is to blame.

3. LED lighting

LEDs in headlights, instrument lighting and interior cannot be connected directly to 12V - they will burn. Therefore, they use PWM drivers that:

  • πŸ’‘ Stabilize the current through diodes.
  • πŸ”¦ Adjust the brightness (for example, dim the backlight at night).
  • 🚨 Prevents flickering (PWM frequency for LEDs is usually >200 Hz).

If, after replacing the lamps with LEDs, an error appears on the device, the problem is precisely in the PWM: the standard controller β€œsees” that the consumption current has changed and perceives this as a malfunction.

4. Electronic gas pedal (E-Gas)

In systems Drive-by-Wire (for example, on Volkswagen, BMW, Toyota after 2005) the gas pedal is not mechanically connected to the throttle valve. Instead, the pedal position sensor sends a signal to the ECU, which converts it into PWM pulses for the damper drive.

Typical faults:

  • 🐒 Delayed response to pedal pressing.
  • πŸ”„ Jerks during acceleration.
  • ⚠️ Bugs P2135 or P0120 (mismatch of sensor signals).

5. Fuel pumps and injectors

In diesel engines (for example, Common Rail) and some gasoline systems direct injection PWM controls:

  • β›½ Duration of opening of the injectors (the amount of fuel injected depends on this).
  • πŸ”‹ High pressure fuel pump speed.

If the PWM signal to the injectors is distorted, the engine begins to β€œsputter”, loses power or smokes.

πŸ’‘

When diagnosing PWM systems, use an oscilloscope or scanner with graph support. For example, in the program Torque Pro You can observe the PWM signals of the sensors in real time.

How to check a PWM signal with a multimeter and oscilloscope

If you suspect a problem with a pulse width modulation system, the first step is to make sure there is a signal at all and corresponds to the norm. For this you will need:

Tools:

  • πŸ”§ Digital multimeter with duty cycle function (Duty Cycle).
  • πŸ“Š Oscilloscope (you can use an inexpensive USB oscilloscope based on STM32).
  • πŸ”Œ Crocodile wires for connecting to the circuit.

Step 1: Check with a multimeter

The multimeter will show average voltage and duty cycle, but not the signal shape. Connect to the PWM control wire (usually the middle pin in the fan or lamp connector):

  1. Set the multimeter to DC Voltage (constant voltage).
  2. Measure the voltage on the control wire under different modes (for example, cold and hot motor for a fan).
  3. Switch to mode Duty Cycle (if any) and check the duty cycle.

Example of normal values for a cooling fan:

  • 🌑️ Temperature 90Β°C β†’ duty cycle ~30%, voltage ~4V.
  • πŸ”₯ Temperature 105Β°C β†’ duty cycle ~90%, voltage ~11V.

Check the supply voltage (should be 12V or 5V)

Measure duty cycle in different modes

Compare the readings with the reference ones (from the manual)

Check the ground for reliable contact-->

Step 2: Oscilloscope - Accurate Diagnosis

The oscilloscope will show waveform, frequency and real duty cycle. Connect the probe to the PWM control wire (negative probe to ground):

  1. Set sweep 1 ms/div (for frequency ~1 kHz).
  2. Check the signal amplitude (must be equal to the supply voltage, for example, 12V).
  3. Measure the pulse duration (t_on) and period (T). Duty factor = t_on / T Γ— 100%.

Typical malfunctions on an oscilloscope:

  • πŸ”Ί No signal: wire break or controller failure.
  • πŸ”» Constant level 0V or 12V: PWM generator is faulty (stuck in open/closed state).
  • 🌊 Distorted pulse shape: Problems with transistors or capacitors in the circuit.

Example: if on the oscilloscope you see β€œsaw” or chaotic jumps instead of smooth pulses, most likely the field effect transistor in the PWM driver.

πŸ’‘

If the PWM duty cycle does not change when conditions change (for example, temperature for a fan), the problem is either in the sensor or in the control unit.

Typical malfunctions of PWM systems and their repair

Malfunctions in systems with pulse width modulation manifest themselves in different ways: from flickering lights to complete failure of the node. Let's look at the most common cases and ways to eliminate them.

1. LED backlight flickering

Reason: Incompatibility of the standard PWM controller with the new LEDs. The standard system is designed for incandescent lamps, which have inertia (do not have time to blink at high frequencies). LEDs react to each pulse, causing a noticeable flicker.

Solutions:

  • πŸ”§ Install PWM filter (capacitor + inductor) to smooth the signal.
  • πŸ’‘ Use LEDs with a built-in driver that supports PWM.
  • πŸ”Œ Reflash the control unit (if possible).

⚠️ Attention: If, after replacing the lamps with LEDs, an error appears on the device, do not ignore it! In some vehicles (eg Audi or BMW) The control unit may trip the circuit due to current imbalance.

2. Cooling fan only works at maximum

Reasons:

  • πŸ”₯ Failure of the transistor in the PWM driver (usually MOSFET or IGBT).
  • πŸ“‰ Open circuit in the feedback circuit (the temperature sensor does not transmit data to the ECU).
  • πŸ”§ Short circuit in the fan winding.

Diagnostics:

  1. Check the fan winding resistance (should be ~1–10 Ohms).
  2. Measure the voltage on the PWM control wire at different temperatures.
  3. Check the circuit from the ECU to the fan for an open circuit.

If the transistor is broken, it can be replaced (usually these are parts like IRF3205 or STP55NF06L>). It is important to choose an analogue with the same parameters:

  • πŸ”Ή Maximum current (I_d).
  • πŸ”Ή Drain-source voltage (V_ds).
  • πŸ”Ή Housing type (for example, TO-220).

3. The generator does not charge (error P0562)

Reason: Malfunction of the PWM voltage regulator. In modern generators (for example, on Bosch or Valeo) instead of a mechanical relay, an electronic unit is used that controls the excitation winding through PWM.

How to check:

  1. Remove the voltage regulator from the generator.
  2. Connect to its pins B+ (plus battery), D+ (charging lamp) and DF (control wire from the ECU).
  3. Submit to DF PWM signal with a frequency of ~100 Hz and a duty cycle of 50% (can be generated using Arduino or signal generator).
  4. Measure the output voltage B+ β€” it should stabilize at ~14V.

If the regulator does not respond to changes in duty cycle, it needs to be replaced. Popular models:

  • πŸ”Ή Bosch 1 987 426 015 (for generators Bosch and Valeo).
  • πŸ”Ή Valeo 438303 (compatible with many French cars).
  • πŸ”Ή Denso 104210-3800 (for Japanese cars).

⚠️ Attention: When replacing the voltage regulator, always check the condition of the alternator brushes. Worn brushes (<5 mm) can cause repeated failure of the new regulator.

4. Jerks during acceleration (problems with E-Gas)

Reasons:

  • πŸ“± Malfunction of the gas pedal position sensor.
  • πŸ”Œ Open or short circuit in the PWM circuit between the ECU and the throttle assembly.
  • πŸ”§ Wear of gears in the damper drive.

Diagnostics:

  1. Connect the diagnostic scanner and check the parameters:
    Gas pedal position sensor 1 (G79) - should be 0% when the pedal is released, 100% when pressed.
    

    Throttle position sensor (G187) - should repeat the readings of G79.

  2. Using an oscilloscope, check the PWM signal at the throttle assembly connector (usually a wire with a voltage of 5V and a frequency of ~500 Hz).
  3. Make sure there are no ground losses (resistance between throttle body and battery should be <0.5 Ohm).

If the signal from the gas pedal sensor floats, try cleaning the contacts or replacing the sensor. Popular items:

  • πŸ”Ή VDO 355010039 (for VW Group).
  • πŸ”Ή Bosch 0 280 122 017 (universal).

Is it possible to repair a PWM controller with your own hands?

In most cases PWM controllers cannot be repaired, but are replaced entirely. However, there are exceptions when repairs are possible and justified:

When renovation makes sense:

  • πŸ”§ Failure of individual elements (transistors, resistors, capacitors) on the controller board.
  • πŸ’» Availability of a circuit and the ability to solder SMD components.
  • πŸ’° The cost of a new unit is significantly higher than the cost of repairs (for example, a climate control unit on Mercedes may cost 50,000β‚½, and repairs - 5,000β‚½).

Typical repairs:

  1. Replacing burnt out transistors (usually this is MOSFET in buildings TO-220 or SOT-23).
  2. Restoring tracks on the board (often burn out due to a short circuit).
  3. Replacing electrolytic capacitors, which lose capacity over time.
  4. Microcontroller firmware (if the problem is in the software).

An example of repairing a fan control unit:

On Ford Focus 2 The PWM driver in the block often fails PCM (article Ford 1335669). Symptoms: the fan only works at maximum or does not turn on at all. Repair:

  1. Remove the block and open the housing (carefully so as not to damage the seal!).
  2. Find a burnt-out transistor on the board (usually IRFZ44N or similar).
  3. Unsolder it and replace it with a new one (cost ~100β‚½).
  4. Test the circuit for a short circuit.
  5. Assemble the block and test.

⚠️ Attention: When soldering SMD components, use a soldering station with temperature control (maximum 350°C). Overheating the board can damage the multilayer traces.

If you are not confident in your skills, it is better to turn to specialists. For example, in Moscow, car electronics are repaired by:

  • πŸ”§ AutoElectronics on Dubrovka (specialize in BMW and Mercedes).
  • πŸ”§ Chip and Dip (repair of control units of any brands).

FAQ: Frequently asked questions about PWM in a car

πŸ”Ή Why do the instrument lights flash after replacing lamps with LEDs?

The standard PWM controller is designed for incandescent lamps, which, due to their inertia, do not respond to high-frequency pulses. LEDs have time to blink at a PWM frequency (usually 100–200 Hz), which is perceived by the eye as flickering. Solutions:

  • Install a capacitor parallel to the lamp (for example, 100 Β΅F Γ— 16V).
  • Use LEDs with a built-in driver that supports PWM.
  • Replace the backlight controller with an analogue without PWM (for example, with linear adjustment).
πŸ”Ή Is it possible to disable PWM and connect the fan directly?

Technically it is possible, but it is fraught with consequences:

  • The fan will always operate at maximum, which will increase the load on the generator and shorten the life of the bearings.
  • The ECU may record an error due to lack of feedback.
  • In some cars (for example, Audi A4 B8) the fan is controlled via the CAN bus, and connecting it directly will lead to errors in other systems.

If you need a temporary solution, it is better to connect the fan through a manually controlled relay (for example, a button in the cabin).

πŸ”Ή How to check a PWM signal without an oscilloscope?

If you don't have an oscilloscope, you can use:

  • Multimeter with function Duty Cycle: will show the duty cycle but not the waveform.
  • LED probe: When connected to a PWM output, the LED will flash with different brightness depending on the duty cycle.
  • Arduino or Raspberry Pi: You can write a simple script to read the PWM signal and display the duty cycle on the screen.

For a rough check, connect a voltmeter to the control wire. If the voltage changes smoothly (for example, from 2V to 10V) when conditions (temperature, load) change, PWM works correctly.

πŸ”Ή Why did the cooling fan stop working after washing the engine?

Most likely reasons:

  • Short circuit in the fan connector due to water ingress.
  • Oxidation of contacts on the PWM control unit board.
  • Driver failure (transistor) due to a voltage surge.

What to do:

  1. Dry the connectors with a hairdryer (without overheating the plastic!).
  2. Clean the contacts with alcohol or a special cleaner (for example, Kontakt 60).
  3. Test the circuit for a short circuit