SlideShare a Scribd company logo
5
Most read
6
Most read
Pulse Width Modulation Signal Generation with
MCUs
Corrado Santoro
ARSLAB - Autonomous and Robotic Systems Laboratory
Dipartimento di Matematica e Informatica - Universit`a di Catania, Italy
santoro@dmi.unict.it
L.A.P. 1 Course
Corrado Santoro Using PWM
Pulse Width Modulation
Pulse Width Modulation (PWM) is a technique of modulation of a
digital signal in order to obtain an analog value.
It based on generating a square wave with a given frequency
In the square wave, the “0” part and the “1” part have different duration
The difference, in percentage, is called duty cycle
Corrado Santoro Using PWM
Duty Cycle: Definition
The Duty Cycle is defined as the percentage of Ton with respect to the
total period Ppwm of the signal:
Duty Cycle =
Ton
Ppwm
· 100
Corrado Santoro Using PWM
Usage of Pulse Width Modulation
PWM has multiple utilisations:
1 To simply transfer an analog value over a digital line; devices
receiving a PWM signal can interpret the “analog value” by measuring
the duration of the “1” part with respect to the total frequency;
2 To modulate a typical on/off system; e.g. to change the intensity of a
light generated by a lamp, a LED, etc.;
3 To drive power systems without affecting performances; e.g. to
drive a DC motor.
Corrado Santoro Using PWM
Generation of a PWM signal
Microcontrollers often have peripheral able to generate a PWM signal in
hardware, however...
... to generate a PWM signal is not harder than flashing a LED. The
differences are:
Frequency is higher;
On and Off times are different;
The timer has to be set-up by taking into account the resolution
we need.
Corrado Santoro Using PWM
Pulse Width Modulation Signal Generation with
MCUs
Corrado Santoro
ARSLAB - Autonomous and Robotic Systems Laboratory
Dipartimento di Matematica e Informatica - Universit`a di Catania, Italy
santoro@dmi.unict.it
L.A.P. 1 Course
Corrado Santoro Using PWM

More Related Content

PPTX
Pulse width modulation (PWM)
PPTX
Pulse width modulation
PPTX
PULSE WIDTH MODULATION &DEMODULATION
PDF
EEP306: pulse width modulation
PDF
Pwm ppm no1
PPTX
Ec8791 lpc2148 pwm
PPT
sms based speed change of motor or fan
Pulse width modulation (PWM)
Pulse width modulation
PULSE WIDTH MODULATION &DEMODULATION
EEP306: pulse width modulation
Pwm ppm no1
Ec8791 lpc2148 pwm
sms based speed change of motor or fan

What's hot (19)

PPT
311 pulse modulation
PPTX
Pwm technique for dc motor Using Arduino
PDF
Pulse modulation, Pulse Amplitude (PAM), Pulse Width (PWM/PLM/PDM), Pulse Pos...
PDF
Pulse amplitude modulation & demodulation
PPT
Pluse amplitude modulatiion
PPTX
Pulse modulation
PPT
Modulation
PDF
GSM GPRS sim900 a modem with aurdino compatible
PPT
unit-6 pulse-de-modulation
PDF
A pwm modulator
PDF
Arm Processor Based Speed Control Of BLDC Motor
PDF
Pulse amplitude modulation
PDF
Need For Modulation in Communication System
PPTX
Arm cortex ( lpc 2148 ) based motor speed control
PPTX
PPTX
Network time sync for power generation, transmission and distribution
PPT
Pulse amplitude modulation
PDF
Powering Noise Sensitive Systems - VE2013
PDF
IRJET-Static Voltage Stabilizer
311 pulse modulation
Pwm technique for dc motor Using Arduino
Pulse modulation, Pulse Amplitude (PAM), Pulse Width (PWM/PLM/PDM), Pulse Pos...
Pulse amplitude modulation & demodulation
Pluse amplitude modulatiion
Pulse modulation
Modulation
GSM GPRS sim900 a modem with aurdino compatible
unit-6 pulse-de-modulation
A pwm modulator
Arm Processor Based Speed Control Of BLDC Motor
Pulse amplitude modulation
Need For Modulation in Communication System
Arm cortex ( lpc 2148 ) based motor speed control
Network time sync for power generation, transmission and distribution
Pulse amplitude modulation
Powering Noise Sensitive Systems - VE2013
IRJET-Static Voltage Stabilizer
Ad

Viewers also liked (7)

PDF
Analog to digital converter
PDF
Exercises with timers and UART
PDF
Using Timer2 in Microchip MCUs
PDF
Using Timer1 and CCP
PDF
The I2C Interface
PDF
Quadcopter Technology
PDF
How does a Quadrotor fly? A journey from physics, mathematics, control system...
Analog to digital converter
Exercises with timers and UART
Using Timer2 in Microchip MCUs
Using Timer1 and CCP
The I2C Interface
Quadcopter Technology
How does a Quadrotor fly? A journey from physics, mathematics, control system...
Ad

Similar to Pulse Width Modulation Signal Generation with MCUs (20)

PPTX
Generate pwm signal through arduino of various duty
PPTX
PPTX
Simulation of sinosoidal pulse width modulation
PPTX
Raspberry pi Part 16
PPTX
Microprocessor and Controller
PDF
Efitra1006
PDF
An Overview of Different PWM Techniques to Reduce Total Harmonic Distortion o...
PPTX
ppt on inveters
PPTX
commutations, modlation, types of modulation and which tye is the best to se ...
PPTX
Speed control of D.C motor using Pusle width modulation
PDF
PWM_LDT20CDT222222222222222222222222.pdf
PPT
PWM_F09.ppt
PPTX
Inverter (Industrial_C_06_mid)
PPTX
Speed control of DC motor using pulse width modulation technique
DOCX
Report on speed control of d.c. motor using pwm method
PDF
05. pwm
PDF
A Comparative Analysis of MPWM & SPWM Techniques to Reduce Harmonic Distortio...
POTX
Sinusoidal pwm
PDF
22 PulseModulation.pdf
PPTX
Micro-Lec12-PWM-Recorded.pptx
Generate pwm signal through arduino of various duty
Simulation of sinosoidal pulse width modulation
Raspberry pi Part 16
Microprocessor and Controller
Efitra1006
An Overview of Different PWM Techniques to Reduce Total Harmonic Distortion o...
ppt on inveters
commutations, modlation, types of modulation and which tye is the best to se ...
Speed control of D.C motor using Pusle width modulation
PWM_LDT20CDT222222222222222222222222.pdf
PWM_F09.ppt
Inverter (Industrial_C_06_mid)
Speed control of DC motor using pulse width modulation technique
Report on speed control of d.c. motor using pwm method
05. pwm
A Comparative Analysis of MPWM & SPWM Techniques to Reduce Harmonic Distortio...
Sinusoidal pwm
22 PulseModulation.pdf
Micro-Lec12-PWM-Recorded.pptx

More from Corrado Santoro (16)

PDF
Physical Flying Agents: Ummanned Aerial Vehicles Control, Coordination and Em...
PDF
Handling Asynchronous Events in MCUs
PDF
Presentation @ Miniscuola WOA 2015
PDF
Presentation @ WOA 2015
PDF
Using Ready-for-PIC and SDR Libraries
PDF
Introduction to Erlang
PDF
Introduction to shell scripting
PDF
Pillole di C++
PDF
UART MCU
PDF
Handling Interrupts in Microchip MCUs
PDF
Using Timers in PIC18F Microcontrollers
PDF
Programming the Digital I/O Interface of a PIC microcontroller
PDF
Introduction to microcontrollers
PDF
Integrating Cloud Services in Behaviour Programming for Autonomous Robots
PDF
Reactive Autonomous System Programming using the PROFETA tool
Physical Flying Agents: Ummanned Aerial Vehicles Control, Coordination and Em...
Handling Asynchronous Events in MCUs
Presentation @ Miniscuola WOA 2015
Presentation @ WOA 2015
Using Ready-for-PIC and SDR Libraries
Introduction to Erlang
Introduction to shell scripting
Pillole di C++
UART MCU
Handling Interrupts in Microchip MCUs
Using Timers in PIC18F Microcontrollers
Programming the Digital I/O Interface of a PIC microcontroller
Introduction to microcontrollers
Integrating Cloud Services in Behaviour Programming for Autonomous Robots
Reactive Autonomous System Programming using the PROFETA tool

Recently uploaded (20)

PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Pharma ospi slides which help in ospi learning
PDF
RMMM.pdf make it easy to upload and study
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Institutional Correction lecture only . . .
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Lesson notes of climatology university.
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharma ospi slides which help in ospi learning
RMMM.pdf make it easy to upload and study
Final Presentation General Medicine 03-08-2024.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
VCE English Exam - Section C Student Revision Booklet
O7-L3 Supply Chain Operations - ICLT Program
Institutional Correction lecture only . . .
Complications of Minimal Access Surgery at WLH
Renaissance Architecture: A Journey from Faith to Humanism
PPH.pptx obstetrics and gynecology in nursing
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Lesson notes of climatology university.
Anesthesia in Laparoscopic Surgery in India
Supply Chain Operations Speaking Notes -ICLT Program
Cell Structure & Organelles in detailed.
human mycosis Human fungal infections are called human mycosis..pptx

Pulse Width Modulation Signal Generation with MCUs

  • 1. Pulse Width Modulation Signal Generation with MCUs Corrado Santoro ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Universit`a di Catania, Italy santoro@dmi.unict.it L.A.P. 1 Course Corrado Santoro Using PWM
  • 2. Pulse Width Modulation Pulse Width Modulation (PWM) is a technique of modulation of a digital signal in order to obtain an analog value. It based on generating a square wave with a given frequency In the square wave, the “0” part and the “1” part have different duration The difference, in percentage, is called duty cycle Corrado Santoro Using PWM
  • 3. Duty Cycle: Definition The Duty Cycle is defined as the percentage of Ton with respect to the total period Ppwm of the signal: Duty Cycle = Ton Ppwm · 100 Corrado Santoro Using PWM
  • 4. Usage of Pulse Width Modulation PWM has multiple utilisations: 1 To simply transfer an analog value over a digital line; devices receiving a PWM signal can interpret the “analog value” by measuring the duration of the “1” part with respect to the total frequency; 2 To modulate a typical on/off system; e.g. to change the intensity of a light generated by a lamp, a LED, etc.; 3 To drive power systems without affecting performances; e.g. to drive a DC motor. Corrado Santoro Using PWM
  • 5. Generation of a PWM signal Microcontrollers often have peripheral able to generate a PWM signal in hardware, however... ... to generate a PWM signal is not harder than flashing a LED. The differences are: Frequency is higher; On and Off times are different; The timer has to be set-up by taking into account the resolution we need. Corrado Santoro Using PWM
  • 6. Pulse Width Modulation Signal Generation with MCUs Corrado Santoro ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Universit`a di Catania, Italy santoro@dmi.unict.it L.A.P. 1 Course Corrado Santoro Using PWM