Pulse Width Modulation (PWM) is a powerful technique for controlling the speed and torque of DC motors in a wide range of industrial applications. By varying the duty cycle of a square wave signal, PWM allows for precise control over the average voltage supplied to the motor, enabling efficient and reliable operation.
This blog post will delve into the fundamentals of PWM, explore different PWM strategies, and compare PWM with traditional speed control methods to provide a comprehensive understanding of this essential technology in the machinery industry.
What Is PWM (Pulse Width Modulation)
Pulse Width Modulation (PWM) is a powerful technique used in a wide variety of applications, ranging from power supplies and motor control to audio signal processing and quantum computing.
At its core, PWM involves rapidly switching a power source on and off to control the average voltage or current delivered to a load. This is achieved by varying the duty cycle, which is the proportion of time the power is “on” during each PWM cycle.
In the context of DC motor control, PWM is often used to adjust the speed and torque of the motor. By applying a series of high-frequency pulses to the motor terminals, the average voltage supplied to the motor can be varied, thereby controlling its speed.
The duty cycle determines the amount of power delivered to the motor; a higher duty cycle results in higher average voltage and faster motor speed, while a lower duty cycle leads to lower average voltage and slower speed.
Types of PWM strategies
Bipolar PWM
In bipolar pulse width modulation for DC motor control, the motor voltage switches between positive and negative values.
Bipolar PWM allows the motor to develop torque in both directions, enabling faster changes in speed and direction compared to unipolar PWM. However, it requires a more complex H-bridge motor driver circuit to generate the positive and negative voltages.
Unipolar PWM
Unipolar PWM, also known as one-quadrant drive, applies a varying positive voltage to the motor, with the low state of the PWM signal at 0V.
Unipolar PWM is simpler to implement than bipolar, as it requires only a single switch per motor phase. However, it does not allow the motor to develop reverse torque, limiting its dynamic performance.
Variable Frequency PWM
In variable frequency PWM, both the duty cycle and the frequency of the PWM signal are varied to control the motor speed. Increasing the frequency allows for faster current rise times in the motor windings, enabling better dynamic performance.
Variable frequency PWM is commonly used in brushless DC (BLDC) motor control, where the PWM frequency is matched to the motor’s electrical time constant for optimal efficiency.
Space Vector PWM
Space vector PWM (SVPWM) is an advanced PWM technique used in 3-phase motor control applications. SVPWM treats the motor voltages as a rotating vector in a 2D plane, and approximates the desired voltage vector by switching between the nearest available voltage vectors.
This results in better utilization of the available bus voltage, allowing the motor to develop higher torque. SVPWM is widely used in high-performance AC motor drives, including those for BLDC motors.
Current-Controlled PWM
In current-controlled PWM, the motor current is directly measured and used as a feedback signal to control the PWM duty cycle. This closed-loop control technique allows for precise regulation of the motor current, which is proportional to torque.
Current-controlled PWM is useful in applications requiring accurate torque control, such as robotics and CNC machines. It also helps to limit current spikes during acceleration or load changes, protecting the motor and drive electronics.

How PWM Works
Pulse Width Modulation (PWM) is a technique used to control the speed of DC motors by varying the average voltage supplied to the motor. In a PWM motor control system, a series of pulses are sent to the motor, with the width of each pulse determining the amount of power delivered. The wider the pulse, the more power is supplied to the motor, resulting in higher motor speed.
The PWM signal is essentially a square wave, alternating between a high and low state. The duration of the “on” state, or pulse width, is modulated to control the average voltage applied to the motor.
When a pulse is sent to the motor, the current begins to rise exponentially, following a first-order exponential curve determined by the motor’s electrical time constant. This time constant depends on the motor’s inductance and resistance. If the pulse is cut off before the current reaches its maximum value, the motor receives less power than if the pulse had continued until the current reached its steady-state value.
Between pulses, the motor’s current decays exponentially, again following a first-order curve. If the time between pulses is too short, the current may not have time to decay completely before the next pulse arrives, leading to current ripple.
PWM allows for efficient control of motor speed without the need for a linear amplifier or variable resistor. By adjusting the duty cycle of the PWM signal, the average voltage supplied to the motor can be precisely controlled, allowing for smooth speed regulation.
Duty Cycle
The duty cycle refers to the percentage of time the PWM signal is in the “on” state during one complete cycle. A higher duty cycle means the pulse is “on” for a longer time, resulting in a higher average voltage applied to the motor.
Mathematically, the duty cycle is expressed as:
Duty Cycle = (Pulse Width / Cycle Time) x 100%
For example, if the pulse width is 5ms and the cycle time is 10ms, the duty cycle would be:
Duty Cycle = (5ms / 10ms) x 100% = 50%
A 50% duty cycle means the signal is “on” for half of the cycle and “off” for the other half. This results in an average voltage of half the maximum voltage applied to the motor.
By varying the duty cycle, the average voltage supplied to the motor can be adjusted, allowing for precise speed control. A higher duty cycle results in a higher average voltage and, consequently, higher motor speed. Conversely, a lower duty cycle leads to a lower average voltage and slower motor speed.

Advantages of PWM
Efficient Power Delivery
By rapidly switching the motor supply voltage on and off, PWM minimizes power losses associated with traditional analog control methods like variable resistors. The average voltage and current supplied to the motor can be precisely controlled by adjusting the duty cycle of the PWM signal, allowing for optimal power utilization.
Precise Speed Control
PWM enables precise speed control of DC motors by varying the average voltage applied to the motor terminals. The motor speed is directly proportional to the average voltage, which is determined by the PWM duty cycle. By adjusting the duty cycle, the motor speed can be seamlessly controlled from zero to its maximum rated speed.
Reduced Heat Generation
Compared to analog speed control methods, PWM significantly reduces heat generation in the motor and control circuitry. In analog control, the excess energy is dissipated as heat through variable resistors or linear amplifiers. With PWM, the power transistors operate in either fully on or fully off states, minimizing power dissipation. This reduction in heat generation improves the overall efficiency of the motor system and extends the lifespan of the components.
Simplified Control Circuitry
Instead of using complex analog circuits, PWM can be easily implemented using digital microcontrollers or dedicated PWM motor drivers. These digital circuits offer increased reliability, flexibility, and programmability compared to their analog counterparts.
Disadvantages of PWM
Current Ripple
The rapid switching of the PWM signal causes the motor current to fluctuate, resulting in a ripple current superimposed on the average current. This current ripple can lead to increased heating in the motor windings, potentially affecting the motor’s performance and lifespan.
Electromagnetic Noise
PWM can generate electromagnetic noise due to the high-frequency switching of the power transistors. This noise can interfere with nearby electronic devices and sensitive circuits. Proper shielding, grounding, and filtering techniques must be employed to mitigate electromagnetic interference (EMI) and ensure compliance with electromagnetic compatibility (EMC) standards.
Audible Noise
In some cases, PWM can produce audible noise in the motor, particularly at low PWM frequencies. The rapid switching of the PWM signal can cause the motor windings to vibrate, generating a high-pitched audible noise.
Limited Torque at Low Speeds
PWM may face limitations in providing high torque at low motor speeds. At low PWM duty cycles, the average voltage applied to the motor is reduced, which can result in decreased torque output. This limitation can be particularly problematic in applications that require high starting torque or precise low-speed control.
Speed Control Mechanisms
When it comes to controlling the speed of a DC motor, there are two main approaches: open-loop control systems and closed-loop control systems.
Open-Loop Vs Closed-Loop Control Systems
In an open-loop control system, the motor speed is controlled without any feedback from the motor itself. The input voltage to the motor is adjusted using pulse width modulation (PWM) to vary the average voltage supplied to the motor. This change in voltage directly influences the motor speed. Open-loop control is simpler to implement and less expensive compared to closed-loop systems. However, it lacks the ability to compensate for load variations or other disturbances that may affect the motor’s performance.
Closed-loop control systems incorporate feedback from the motor to continuously monitor and adjust the motor speed. This feedback can be obtained through sensors such as encoders or tachometers, which measure the actual speed of the motor shaft. The measured speed is compared with the desired reference speed, and the control system adjusts the PWM duty cycle accordingly to minimize the error between the two. Closed-loop control offers better speed regulation and the ability to maintain a constant speed under varying load conditions. However, it requires additional components and is more complex to implement compared to open-loop control.
Feedback Systems
The most common types of feedback sensors used in DC motor control are encoders and tachometers. Encoders provide precise position and speed information by generating pulses as the motor shaft rotates. The frequency of these pulses is proportional to the motor speed, allowing the control system to calculate the actual speed and make necessary adjustments.
Tachometers generate an analog voltage signal proportional to the motor speed. This voltage signal is fed back to the control system, which compares it with the desired speed reference and adjusts the PWM duty cycle to minimize the error. Tachometers are simpler and less expensive compared to encoders but may not provide the same level of accuracy and resolution.
Comparison of PWM With Traditional Speed Control Methods
Feature | Pulse Width Modulation (PWM) | Resistor-Based Speed Control | Linear Amplifier Control |
---|---|---|---|
Efficiency | High efficiency, low power dissipation. PWM minimizes current losses by rapidly switching power transistors between on and off states. | Low efficiency due to power losses in the variable resistor. The resistor dissipates excess energy as heat, reducing battery life. | Moderate efficiency. Linear amplifiers continuously adjust voltage, resulting in some power loss and additional heating. |
Speed Control Range | Wide speed control range. PWM duty cycle can be adjusted from 0-100%, allowing for precise motor speed control. | Limited speed control range. Resistor value determines maximum and minimum speeds, restricting control range. | Wide speed control range. Linear amplifiers can continuously adjust voltage for precise speed control, but with lower efficiency than PWM. |
Torque Output | PWM maintains high torque output by delivering peak currents to the motor windings. The rapid switching minimizes current ripple. | Reduced torque output at lower speeds. The resistor limits current flow, decreasing available torque and potentially causing stalling. | Smooth torque output. Linear amplifiers provide a continuous current supply, minimizing torque ripple. However, torque may be limited by amplifier size and heat dissipation. |
Motor Compatibility | Suitable for various DC motor types, including brushed DC motors, brushless DC (BLDC) motors, and coreless motors. PWM can adapt to different motor inductances and electrical time constants. | Best suited for brushed DC motors with low inductance. High-inductance motors may experience excessive current ripple and reduced performance. | Compatible with most DC motor types, but may require larger amplifiers for high-power applications. Linear amplifiers are often used with brushless DC motors and slotless designs. |
Electromagnetic Noise | PWM can generate electromagnetic noise due to rapid switching. Proper PCB layout, shielding, and filtering techniques help mitigate EMI issues. | Low electromagnetic noise. Resistor-based control does not introduce significant EMI, as it does not involve rapid switching. | Low electromagnetic noise. Linear amplifiers produce minimal EMI, as they do not rely on rapid switching like PWM. |
Implementation Complexity | Moderate complexity. PWM requires a microcontroller or dedicated PWM driver IC to generate the control signals. Additional circuitry for current sensing and protection may be needed. | Simple implementation. A variable resistor is connected in series with the motor, and speed is adjusted by varying the resistance. No complex control circuitry required. | High complexity. Linear amplifiers require careful design to ensure stability, heat dissipation, and protection circuitry. |
FAQs
Can you use PWM on a DC motor?
Yes, PWM (Pulse Width Modulation) can be used to control the speed of a DC motor. PWM works by rapidly switching the power on and off to the motor, effectively controlling the average voltage supplied. By varying the duty cycle of the PWM signal, the motor speed can be adjusted.
What is a good PWM frequency for a DC motor?
Generally, a frequency between 1kHz and 20kHz is suitable. Higher frequencies reduce audible noise and provide smoother operation, while lower frequencies may cause the motor to hum or vibrate. A common choice is around 10kHz.
How can we change the speed of a DC motor using PWM?
To change the speed of a DC motor using PWM, the duty cycle of the PWM signal must be adjusted.