SlideShare a Scribd company logo
1 of 6
Download to read offline
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

What's hot

Pwm technique for dc motor Using Arduino
Pwm technique for dc motor Using ArduinoPwm technique for dc motor Using Arduino
Pwm technique for dc motor Using ArduinoKATHANSANJAYSHAH
 
Pulse modulation, Pulse Amplitude (PAM), Pulse Width (PWM/PLM/PDM), Pulse Pos...
Pulse modulation, Pulse Amplitude (PAM), Pulse Width (PWM/PLM/PDM), Pulse Pos...Pulse modulation, Pulse Amplitude (PAM), Pulse Width (PWM/PLM/PDM), Pulse Pos...
Pulse modulation, Pulse Amplitude (PAM), Pulse Width (PWM/PLM/PDM), Pulse Pos...Waqas Afzal
 
Pulse amplitude modulation & demodulation
Pulse amplitude modulation & demodulationPulse amplitude modulation & demodulation
Pulse amplitude modulation & demodulationVishal kakade
 
GSM GPRS sim900 a modem with aurdino compatible
GSM GPRS sim900 a modem with aurdino compatibleGSM GPRS sim900 a modem with aurdino compatible
GSM GPRS sim900 a modem with aurdino compatibleRaghav Shetty
 
unit-6 pulse-de-modulation
unit-6 pulse-de-modulationunit-6 pulse-de-modulation
unit-6 pulse-de-modulationTauseef khan
 
Arm Processor Based Speed Control Of BLDC Motor
Arm Processor Based Speed Control Of BLDC MotorArm Processor Based Speed Control Of BLDC Motor
Arm Processor Based Speed Control Of BLDC MotorUday Wankar
 
Pulse amplitude modulation
Pulse amplitude modulationPulse amplitude modulation
Pulse amplitude modulationVishal kakade
 
Need For Modulation in Communication System
Need For Modulation in Communication SystemNeed For Modulation in Communication System
Need For Modulation in Communication SystemMyat Myint Zu Thin
 
Arm cortex ( lpc 2148 ) based motor speed control
Arm cortex ( lpc 2148 ) based motor speed control Arm cortex ( lpc 2148 ) based motor speed control
Arm cortex ( lpc 2148 ) based motor speed control Uday Wankar
 
Network time sync for power generation, transmission and distribution
Network time sync for power generation, transmission and distributionNetwork time sync for power generation, transmission and distribution
Network time sync for power generation, transmission and distributionMohd Amir
 
Pulse amplitude modulation
Pulse amplitude modulationPulse amplitude modulation
Pulse amplitude modulationVishal kakade
 
Powering Noise Sensitive Systems - VE2013
Powering Noise Sensitive Systems - VE2013Powering Noise Sensitive Systems - VE2013
Powering Noise Sensitive Systems - VE2013Analog Devices, Inc.
 
IRJET-Static Voltage Stabilizer
IRJET-Static Voltage StabilizerIRJET-Static Voltage Stabilizer
IRJET-Static Voltage StabilizerIRJET Journal
 

What's hot (19)

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

Viewers also liked

Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converterCorrado Santoro
 
Exercises with timers and UART
Exercises with timers and UARTExercises with timers and UART
Exercises with timers and UARTCorrado Santoro
 
Using Timer2 in Microchip MCUs
Using Timer2 in Microchip MCUsUsing Timer2 in Microchip MCUs
Using Timer2 in Microchip MCUsCorrado Santoro
 
How does a Quadrotor fly? A journey from physics, mathematics, control system...
How does a Quadrotor fly? A journey from physics, mathematics, control system...How does a Quadrotor fly? A journey from physics, mathematics, control system...
How does a Quadrotor fly? A journey from physics, mathematics, control system...Corrado Santoro
 

Viewers also liked (7)

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

Similar to Pulse Width Modulation Signal Generation with MCUs

Digital communication systems
Digital communication systemsDigital communication systems
Digital communication systemsAmjad Khan
 
Raspberry pi Part 16
Raspberry pi Part 16Raspberry pi Part 16
Raspberry pi Part 16Techvilla
 
Electronics Basics introduction document
Electronics Basics introduction documentElectronics Basics introduction document
Electronics Basics introduction documentcbcbgdfgsdf
 
Speed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSpeed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSudip Mondal
 
Proyecto PWM (Inglés)
Proyecto PWM (Inglés)Proyecto PWM (Inglés)
Proyecto PWM (Inglés)Icarohack
 
Iaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security systemIaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security systemIaetsd Iaetsd
 
A overview on WAMS/PMU.
A overview on WAMS/PMU.A overview on WAMS/PMU.
A overview on WAMS/PMU.Rahul Singh
 
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.ppt
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.pptiugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.ppt
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.pptDeepakChaurasiya41
 
Speed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM TechniqueSpeed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM TechniqueRITESH D. PATIL
 
Sensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuitsSensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuitsSweta Kumari Barnwal
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051embdnew
 
pulse modulation
pulse modulation pulse modulation
pulse modulation Herin Gala
 
speed control of three phase induction motor using IOT
speed control of three phase induction motor using IOTspeed control of three phase induction motor using IOT
speed control of three phase induction motor using IOTswaroop009
 
RAJPRASAD PAPER NO-127
RAJPRASAD PAPER NO-127RAJPRASAD PAPER NO-127
RAJPRASAD PAPER NO-127RAJPRASAD RS
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoIRJET Journal
 

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

Digital communication systems
Digital communication systemsDigital communication systems
Digital communication systems
 
Raspberry pi Part 16
Raspberry pi Part 16Raspberry pi Part 16
Raspberry pi Part 16
 
Electronics Basics introduction document
Electronics Basics introduction documentElectronics Basics introduction document
Electronics Basics introduction document
 
Speed Control of DC Motor using Microcontroller
Speed Control of DC Motor using MicrocontrollerSpeed Control of DC Motor using Microcontroller
Speed Control of DC Motor using Microcontroller
 
Proyecto PWM (Inglés)
Proyecto PWM (Inglés)Proyecto PWM (Inglés)
Proyecto PWM (Inglés)
 
Iaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security systemIaetsd ethernet based intelligent security system
Iaetsd ethernet based intelligent security system
 
A overview on WAMS/PMU.
A overview on WAMS/PMU.A overview on WAMS/PMU.
A overview on WAMS/PMU.
 
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.ppt
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.pptiugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.ppt
iugytyrtsaewsdtgyuijogdsdtrguyihjoihkgyudst4arwsdfyguihjo.ppt
 
Cs manual 2021
Cs  manual 2021Cs  manual 2021
Cs manual 2021
 
pwm.pptx
pwm.pptxpwm.pptx
pwm.pptx
 
Dc lab Manual
Dc lab ManualDc lab Manual
Dc lab Manual
 
Speed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM TechniqueSpeed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM Technique
 
Sensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuitsSensor technology module-3-interface electronic circuits
Sensor technology module-3-interface electronic circuits
 
Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051Doc speed control of a dc motor using micro controller 8051
Doc speed control of a dc motor using micro controller 8051
 
pulse modulation
pulse modulation pulse modulation
pulse modulation
 
SIGNAL_CONVERSION.docx
SIGNAL_CONVERSION.docxSIGNAL_CONVERSION.docx
SIGNAL_CONVERSION.docx
 
speed control of three phase induction motor using IOT
speed control of three phase induction motor using IOTspeed control of three phase induction motor using IOT
speed control of three phase induction motor using IOT
 
Pcm
PcmPcm
Pcm
 
RAJPRASAD PAPER NO-127
RAJPRASAD PAPER NO-127RAJPRASAD PAPER NO-127
RAJPRASAD PAPER NO-127
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino Uno
 

More from Corrado Santoro

Physical Flying Agents: Ummanned Aerial Vehicles Control, Coordination and Em...
Physical Flying Agents: Ummanned Aerial Vehicles Control, Coordination and Em...Physical Flying Agents: Ummanned Aerial Vehicles Control, Coordination and Em...
Physical Flying Agents: Ummanned Aerial Vehicles Control, Coordination and Em...Corrado Santoro
 
Handling Asynchronous Events in MCUs
Handling Asynchronous Events in MCUsHandling Asynchronous Events in MCUs
Handling Asynchronous Events in MCUsCorrado Santoro
 
Presentation @ Miniscuola WOA 2015
Presentation @ Miniscuola WOA 2015Presentation @ Miniscuola WOA 2015
Presentation @ Miniscuola WOA 2015Corrado Santoro
 
Presentation @ WOA 2015
Presentation @ WOA 2015 Presentation @ WOA 2015
Presentation @ WOA 2015 Corrado Santoro
 
Using Ready-for-PIC and SDR Libraries
Using Ready-for-PIC and SDR LibrariesUsing Ready-for-PIC and SDR Libraries
Using Ready-for-PIC and SDR LibrariesCorrado Santoro
 
Introduction to shell scripting
Introduction to shell scriptingIntroduction to shell scripting
Introduction to shell scriptingCorrado Santoro
 
Handling Interrupts in Microchip MCUs
Handling Interrupts in Microchip MCUsHandling Interrupts in Microchip MCUs
Handling Interrupts in Microchip MCUsCorrado Santoro
 
Using Timers in PIC18F Microcontrollers
Using Timers in PIC18F MicrocontrollersUsing Timers in PIC18F Microcontrollers
Using Timers in PIC18F MicrocontrollersCorrado Santoro
 
Programming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontrollerProgramming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontrollerCorrado Santoro
 
Introduction to microcontrollers
Introduction to microcontrollersIntroduction to microcontrollers
Introduction to microcontrollersCorrado Santoro
 
Integrating Cloud Services in Behaviour Programming for Autonomous Robots
Integrating Cloud Services in Behaviour  Programming for Autonomous RobotsIntegrating Cloud Services in Behaviour  Programming for Autonomous Robots
Integrating Cloud Services in Behaviour Programming for Autonomous RobotsCorrado Santoro
 
Reactive Autonomous System Programming using the PROFETA tool
Reactive Autonomous System Programming using the PROFETA toolReactive Autonomous System Programming using the PROFETA tool
Reactive Autonomous System Programming using the PROFETA toolCorrado Santoro
 

More from Corrado Santoro (16)

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

Recently uploaded

Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 

Recently uploaded (20)

Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 

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