KEMBAR78
Pulse Width Modulation (PWM) - GeeksforGeeks | PDF | Modulation | Electricity
0% found this document useful (0 votes)
218 views22 pages

Pulse Width Modulation (PWM) - GeeksforGeeks

Pulse Width Modulation (PWM) is a technique used in electronic engineering to control power supplied to devices by varying the width of pulse signals, primarily through the duty cycle. PWM is utilized in applications such as motor speed control, audio amplification, and light dimming, and can be generated using comparators and multivibrators. The document also discusses various types of PWM, including single-pulse, multiple-pulse, and sinusoidal PWM, along with their applications and advantages.

Uploaded by

Bindukannan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
218 views22 pages

Pulse Width Modulation (PWM) - GeeksforGeeks

Pulse Width Modulation (PWM) is a technique used in electronic engineering to control power supplied to devices by varying the width of pulse signals, primarily through the duty cycle. PWM is utilized in applications such as motor speed control, audio amplification, and light dimming, and can be generated using comparators and multivibrators. The document also discusses various types of PWM, including single-pulse, multiple-pulse, and sinusoidal PWM, along with their applications and advantages.

Uploaded by

Bindukannan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

6/2/25, 5:56 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Search...

Explore GfG Courses

Share Your Experiences


Pulse Width Modulation (PWM)
Last Updated : 10 May, 2024
Phase Modulation
In Electronic Engineering, Pulse Width Modulation, or
What is Demodulation ? PWM, is a commonly used technique for effectively
controlling the power supplied to electrical devices. In
Pulse Position
Modulation (PPM) order to attain a desired average voltage or power
level, the principle of pulse width modulation (PWM)
Pulse Amplitude is used for a periodic signal, which is usually a square
Modulation
wave.
What is Modulation? A key component of pulse width modulation (PWM)
is the duty cycle, which is defined as the ratio of the
CSS Pulse animation
pulse width to the whole time period. An increase in
Semantic-UI Static the duty cycle translates into an increase in average
Pulse Animation power output. Basically, PWM is used to obtain
analog signals from digital services- for instance, the
Periodic Function:
Formulas with microcontrollers and it represents the amplitude of an
Examples analog signal input signal.
We use cookies
Applications of PWMto ensure you haveTable
the best of
browsing experience on our website. By using our site, you acknowledge that you have read
Content Got It !
and understood our Cookie Policy & Privacy Policy
Skip to ▲
content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 1/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

What is Adaptive What is Pulse Width Modulation?


Modulation? How is a Pulse Width Modulation Generated ?
Important Parameters associated with PWM signal
Types of PWM
Difference Between PPM (Pulse Position
Modulation) And PWM (Pulse Width Modulation)
Applications of PWM
Advantages and Disadvantages of PWM

What is Pulse Width Modulation?


Pulse-width modulation, commonly known as PWM,
is a modulation method that changes the pulse
signal's width in electrical systems to regulate the
average power supplied to a load. PWM is
particularly helpful for effectively regulating the
output of audio amplifiers, the speed of motors, and
the brightness of light. They are frequently Used in
microcontrollers and specialist PWM controller
integrated circuits (ICs).

How is a Pulse Width Modulation


Generated ?
We use cookies to ensure you haveThe PWM
the best Generation
browsing experience can
on ourbe explained
website. By using as
our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 2/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

A comparator is used to create a signal that


modulates pulse width. One component of the
comparator's input is the modulating signal, while
the other component is either a sawtooth wave or
a non-sinusoidal wave. The comparator creates an
output waveform of a PWM signal after comparing
two signals.
One possible output of a monostable multivibrator
is a PWM signal. When an external trigger is
DSA Practice Problems C applied,
C++ Java aPython
monostable multivibrator
JavaScript Data SciencewillMachine
only Learning Courses Linux DevOps S Sign In
produce one output pulse and have one stable
state. An operational amplifier comparator can be
used to build a monostable multivibrator circuit.
One portion of the input to the comparator is
structured by the modulating signal, and the other
portion is wave formed non-sinusoidally. After
analyzing two signals, the comparator generates a
PWM signal as the output waveform. The output
is in a "High" condition when the sawtooth or non-
sinusoidal signal exceeds the modulating signal.

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 3/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

PWM Signal Generator

The output signal is in a "High" condition if the


sawtooth signal exceeds the modulating signal. The
comparator output, which establishes the pulse width
produced at the output, is determined by the
magnitude value.

Important Parameters Associated with


PWM Signal
An analog circuit can be controlled using digital
pulses produced by a PWM signal. The behavior of a
PWM signal is determined by these factors:

Duty Cycle of PWM


We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 4/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

The fraction of a second that a signal or system is


operational is called a duty cycle. A duty cycle is
usually expressed as a percentage or ratio. The
amount of time a signal takes to complete an ON-OFF
cycle is called a period. The proportion of time a
digital signal is on throughout a period of time or
interval is precisely described by the percentage duty
cycle. The waveform's time is equal to its inverse
frequency.

Duty Cycle : On Time / On Time + Off Time

We would say a digital signal has a 50% duty cycle


and looks like a perfect square wave if it is on for half
of the time and off for the other half. The digital
signal spends more time in the high state than the
low state if the percentage is greater than 50%, and
vice versa if the duty cycle is lower than 50%. Here is
a graph depicting the three scenarios.:

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 5/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Duty Cycle of PWM

A 100% duty cycle is equivalent to a 5 volt (high)


voltage setting. Grounding the signal would be
equivalent to 0% duty cycle.

Frequency of PWM

The Speed at which something occurs over a specific


time period is known as its frequency. In another way,
the rate at which a vibration occurs that results in a
wave, such as radio, light, or sound waves; this rate is
usually measured in seconds.It is easy to define a
frequency or period for regulating a particular servo.

Data is currently transmitted over communication


channels using PWM's duty cycle in an unambiguous
We use cookies to ensure you havecommunication system.
the best browsing experience on PWM serves
our website. By usingasourasite,
technique
you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 6/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

for converting high-frequency pulses into low-


frequency output signals.

Frequency : 1 / Time Period

Frequency of PWM

Output Voltage of PWM signal

It is the percentage of the duty cycle and can be


calculated in that way only by calculating its
percentage also. Let's say the duty cycle is 100%
then the output voltage will be 5V.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 7/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Types of PWM
There are seven types of Pulse Width Modulation,
such as

Single-pulse width modulation


Multiple-pulse width modulation
Sinusoidal pulse width modulation
Hysteresis band pulse width modulation
Trail Edge pulse width modulation
Lead Edge pulse width modulation
Pulse Centre Two Edge pulse width modulation

Single-Pulse Width Modulation (PWM)

A single pulse is produced at each switching cycle in


single-pulse width modulation. The average power
applied to the load is controlled by varying the
pulse's width. Single-PWM is straightforward and
simple to use, although it could have a larger
harmonic content and be unsuitable for applications
that need precision control at low power levels.

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 8/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Single-pulse width modulation

Multiple-Pulse Width Modulation (MPWM)

Multiple pulses are generated during each switching


cycle in multiple-pulse width modulation. This
method seeks to lower harmonic distortion while
raising the output waveform's general quality.

Two-level and three-level MPWM are frequently


used; in these implementations, the number of pulses
in each cycle is increased to improve waveform
fidelity, which makes MPWM especially helpful in
high-power applications.

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 9/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Multiple-pulse width modulation

Sinusoidal Pulse Width Modulation (SPWM)

The process of altering pulse width to resemble a


sinusoidal waveform is known as sinusoidal pulse
width modulation. Through the use of a sine wave
reference to alter the pulse widths, SPWM minimizes
harmonic distortion and yields a smoother output.

Inverters and motor control systems, where a high-


quality output waveform is crucial for lowering
harmonic interference and raising system efficiency,
are two common applications for this technology.

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 10/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Sinusoidal pulse width modulation

Hysteresis Band Pulse Width Modulation

Hysteresis Band Pulse Width Modulation is the


comparison of the erroneous signal with a
predetermined band, called hysteresis. The pulse
width is changed to put the system back into balance
when the erroneous signal rises above the hysteresis
range.

This approach provides a straightforward and reliable


control strategy, especially in applications where
sudden variations in load or disturbances are
frequent. Power converters and voltage regulators
We use cookies to ensure you havefrequently useexperience
the best browsing hysteresis band
on our PWM
website. because
By using to its
our site, you acknowledge that you have read
built-inand understood
noise our Cookie
immunity andPolicy & Privacy Policy
simplicity of use.
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 11/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Hysteresis band pulse width modulation

Trail Edge Pulse Width Modulation

A typical modulation method in digital


communication systems is called "trail edge
modulation." With this technique, the signal
waveform's trailing or falling edge is where the
modulation happens. This indicates that when a
signal moves from a higher voltage level to a lower
voltage level, its amplitude or frequency changes.

Applications for trail edge modulation include data


transmission and modulation techniques including
pulse width modulation (PWM) and pulse amplitude
We use cookies to ensure you havemodulation (PAM).
the best browsing TrailonEdge
experience modulation
our website. By using ourissite,
one youofacknowledge that you have read
and understood
the modulation our Cookie Policy
techniques that &can
Privacy
bePolicy
chosen,
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 12/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

according on the needs of the system, bandwidth


constraints, and noise robustness, among other
things.

Lead Edge Pulse Width Modulation

It is also known as the rising edge, of the signal


waveform is where the modulation process takes
place in lead edge modulation. This suggests that
when the signal moves from a lower voltage level to
a higher voltage level, modulation changes occur.

Lead Edge modulation offers flexibility in adjusting to


particular application requirements and is employed
in various communication systems and modulation
schemes. It is frequently used in a variety of digital
communication protocols, where it modulates signals
near the beginning of their waveform to facilitate the
effective transfer of information.

Pulse Centre Two Edge Pulse Width


Modulation
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 13/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

A particular kind of modulation called "Pulse Center


Two Edge Modulation" entails modifying a signal at
the pulse waveform's leading and trailing edges. This
method is frequently used in pulse modulation
schemes, in which the data to be sent is represented
by pulses. Pulse Center Two Edge modulation
increases the capacity for encoding information and
provides greater flexibility in signal representation by
modulating at both edges.

In situations where exact time and effective


bandwidth utilization are critical, this approach may
prove beneficial. Particularly in pulse modulation
techniques like pulse width modulation (PWM) or
pulse position modulation (PPM), it finds use in digital
communication systems.

Difference Between Pulse Position


Modulation And Pulse Width
Modulation
Given below is the table for PPM and PWM

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 14/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Pulse Position Pulse Width


Modulation Modulation

Changes the position of


Changes the pulse width
pulses to encode
to encode information.
information.

Adjusts the pulse's


Alters the pulse's
location within a time
breadth or duration
interval.

It is highly sensitive to It is less sensitive to


timing variations timing variations

It is usually calls for It can required more


more bandwidth than bandwidth-efficient in
PWM certain scenarios

Example : Optical Example : Motor Control


communication systems System, Audio System

We use cookies to ensure you haveApplications


the best browsing experience
of on our website. By using our site, you acknowledge that you have read
PWM
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 15/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Modulation in electronics refers to the application


of a regulating or shifting force on an object.
Similar to the human voice, we also refer to it as a
variation in the pitch, intensity, or tone of a
frequency.
We frequently witness the usage of modulation
techniques to operate devices such as LEDs or DC
motors.
Maximum power point tracking (MPPT) in
conjunction with PWM is a crucial technique for
reducing a solar panel's output in order to align it
with a battery's use.
By adjusting the duty cycle, an LED's brightness
can be somewhat controlled. By diluting each of
the three hues with varying amounts, an RGB (red,
green, and blue) LED allows you to regulate the
quantity of each color you require in the blend of
variety.
The PWM process regulates the fan within the
PC's CPU, which effectively disperses heat.

Advantages and Disadvantages of


PWM
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 16/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Given Below are Advantages and Disadvantages of


PWM :

Advantages

PWM technology keeps LEDs from overheating


while preserving their brightness.
PWM technology responds quickly and with
accuracy.
A high input power factor is provided by the PWM
technique.
Motors may provide their full torque even at lower
speeds thanks to the PWM technology

Disadvantages

The significant switching losses are a result of the


high PWM frequency.
Radio Frequency Interference is caused by it (RFI).

Conclusion
In conclusion, Pulse Width Modulation, or PWM, is an
We use cookies to ensure you haveincredibly useful
the best browsing and adaptable
experience method
on our website. in site,
By using our theyoufield of
acknowledge that you have read
and understood
electronics our Cookie Policy
and control & PrivacyIts
systems. Policy
versatility in
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 17/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

modifying duty cycles and frequencies, combined


with its effective control over power delivery via
pulse width modulation, has made it an essential part
of many applications.

PWM is essential for obtaining accurate and energy-


efficient control in a variety of applications, including
audio amplification, lighting systems, motor control,
and power regulation. Applications for pulse width
modulation (PWM) are numerous and include lighting
systems, motor control, audio signal modulation, and
electronic device power management.

Comment More info


Next Article
Advertise with us What is Modulation?

Similar Reads

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 18/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Phase Modulation
Phase modulation (PM) is one of the modulation
techniques that involves the use of a phase angle to…

15+ min read

What is Demodulation ?
The modulation is the technique by which data is
converted into electrical or digital signals for…

15+ min read

Pulse Position Modulation (PPM)


Pulse Position Modulation is another kind of important
modulation technique used in electronics…

15+ min read

Pulse Amplitude Modulation


Pulse Amplitude Modulation (PAM) is a key modulation
technique used in digital communication for…

15+ min read

What
We use cookies to ensure you have is browsing
the best Modulation?
experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 19/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Modulation can be digital or analog, the input wave of


the analog signal varies continuously like a sine wave.…

15+ min read

CSS Pulse animation


A CSS pulse animation is a visual effect that repeatedly
scales an element up and down, creating a pulsating…

14 min read

Semantic-UI Static Pulse Animation


Semantic UI is an open-source framework that uses
CSS and jQuery to build great user interfaces. It is the…

15+ min read

Periodic Function: Formulas with Examples


A period is the interval between two points in time, and
a periodic function is a function that repeats itself at…

15+ min read

Applications of PWM
The acronym PWM denotes Pulse Width Modulation.
We use cookies to ensure you have
Bythealtering
best browsing
the experience
width ofonanourelectrical
website. By signal's
using our site, you acknowledge
pulses, a… that you have read
and understood our Cookie Policy & Privacy Policy
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 20/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks
15+ min read

What is Adaptive Modulation?


One of the solutions allowing the growing demands
related to data rates, reliability, and spectral efficiency…

15+ min read

Company Explore Tutorials DSA Data Science Web


About Us Job-A-Thon Python Data Structures & ML Technologies
Corporate & Communications Address: Legal Offline Java Algorithms Data Science HTML
A-143, 7th Floor, Sovereign Corporate Privacy Policy Classroom C++ DSA for
Tower, Sector- 136, Noida, Uttar Pradesh With Python CSS
Careers Program PHP Beginners Machine JavaScript
(201305)
In Media DSA in JAVA/C++ GoLang Basic DSA Learning TypeScript
Registered Address: Contact Us Master System SQL Problems ML Maths ReactJS
K 061, Tower K, Gulshan Vivante Corporate Design R Language DSA Roadmap Data NextJS
Apartment, Sector 137, Noida, Gautam Solution Master CP Android DSA Interview Visualisation NodeJs
Buddh Nagar, Uttar Pradesh, 201305 Campus Training Videos Questions Pandas Bootstrap
Program Competitive NumPy Tailwind CSS
Programming NLP
Deep Learning

Python Computer DevOps System School Databases


Tutorial Science Git Design Subjects SQL
Python Examples GATE CS Notes AWS High Level Mathematics MYSQL
Advertise with us Docker PostgreSQL
Django Tutorial
We use cookies to ensure you have the best browsing experience Operating
on our website. By using our site, you acknowledgeDesign
that you have readPhysics
Python
and understood ourProjects Systems
Cookie Policy & Privacy Policy Kubernetes Low Level Design Chemistry PL/SQL
Skip to content
https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 21/22
6/2/25, 5:57 PM Pulse Width Modulation (PWM) | GeeksforGeeks

Python Tkinter Computer Azure UML Diagrams Biology MongoDB


Web Scraping Network GCP Interview Guide Social Science
OpenCV Tutorial Database DevOps Design Patterns English Grammar
Python Interview Management Roadmap OOAD
Question System System Design
Software Bootcamp
Engineering Interview
Digital Logic Questions
Design
Engineering
Maths

Preparation More Courses Programming Clouds/ GATE 2026


Corner Tutorials IBM Certification Languages Devops GATE CS Rank
Company-Wise Software Courses C Programming DevOps Booster
Recruitment Development DSA and with Data Engineering GATE DA Rank
Process Software Testing Placements Structures AWS Solutions Booster
Aptitude Product Web C++ Architect GATE CS & IT
Preparation Management Development Programming Certification Course - 2026
Puzzles Project Data Science Course Salesforce GATE DA Course
Company-Wise Management Programming Java Certified 2026
Preparation Linux Languages Programming Administrator GATE Rank
Excel DevOps & Cloud Course Course Predictor
All Cheat Sheets Python Full
Course

@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read
and understood our Cookie Policy & Privacy Policy

https://www.geeksforgeeks.org/pulse-width-modulation-pwm/ 22/22

You might also like