{"id":272,"date":"2023-06-28T07:41:57","date_gmt":"2023-06-28T07:41:57","guid":{"rendered":"http:\/\/localhost\/embeddedwala\/?p=272"},"modified":"2023-07-27T04:14:11","modified_gmt":"2023-07-27T04:14:11","slug":"pulse-width-modulation-pwm-an-introduction-and-applications","status":"publish","type":"post","link":"https:\/\/embeddedwala.com\/beta\/blogs\/digital-communication\/pulse-width-modulation-pwm-an-introduction-and-applications\/","title":{"rendered":"Pulse Width Modulation (PWM) : An Introduction and Applications"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"272\" class=\"elementor elementor-272\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-641126f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"641126f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-78c3501\" data-id=\"78c3501\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-inner-section elementor-element elementor-element-b59460c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b59460c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-7027887\" data-id=\"7027887\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6e6203d elementor-widget elementor-widget-text-editor\" data-id=\"6e6203d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p lang=\"en-IN\">What is PWM?<\/p><p lang=\"en-IN\">Pulse width modulation\u00a0<strong>(PWM)<\/strong>\u00a0is a method used in electronics to control the power output of a circuit by modulating the width of a pulse signal. In PWM, a fixed frequency electrical signal, often a square wave, is turned on and off at a rapid rate, and the width of the &#8220;on&#8221; part of the duty cycle is varied to achieve the desired output.<\/p><p lang=\"en-IN\">Duty Cycle of PWM :<\/p><p lang=\"en-IN\">The duty cycle of a\u00a0<strong>PWM<\/strong>\u00a0signal is a measure of the proportion of time during each cycle of the signal that the signal is in its &#8220;on&#8221; state, which is typically a high voltage state. Essentially, the duty cycle is the fraction of time that the signal is in its &#8220;on&#8221; state relative to the total time of the signal cycle, expressed as a percentage. For instance, if the\u00a0<strong>duty cycle<\/strong>\u00a0is 50%, the signal is in its &#8220;on&#8221; state for half of the signal cycle duration.<\/p><p lang=\"en-IN\"><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Turn on Time<\/strong><\/p><p lang=\"en-IN\"><strong>Duty Cycle\u00a0 \u00a0 =\u00a0 \u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/strong><\/p><p lang=\"en-IN\"><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Turn On Time + Turn Off Time<\/strong><\/p><p lang=\"en-IN\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-273 size-full\" src=\"https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p><p><b>Process for generating the pulse width modulation :<\/b><\/p><p>To generate a pulse width modulation\u00a0<strong>(PWM)<\/strong>\u00a0signal, a comparator is used. The comparator has two inputs &#8211; one is the modulating signal that represents the information to be transmitted (such as the desired power level for a motor), while the other input is a non-sinusoidal or Sawtooth wave that serves as a reference signal. The comparator compares these two signals and generates a\u00a0<strong>PWM<\/strong> signal as its output waveform.<\/p><p>If the saw tooth wave is greater than the modulating signal, the comparator output will be in a\u00a0<strong>&#8220;High&#8221;<\/strong>\u00a0state. The magnitude of the difference between the two signals determines the comparator output, which defines the width of the pulse generated at the output. This process is repeated for each cycle of the saw tooth wave, resulting in a train of pulses with varying widths that encode the modulating signal.<\/p><p><b>Types of Pulse Width Modulation Technique :<\/b><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-274 size-full\" src=\"https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM-Type.png\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p><p><strong>There are three conventional types of pulse width modulation technique and they are named as follows:<\/strong><\/p><ul><li><strong>Trail Edge Modulation:-<\/strong>\u00a0Trail Edge Modulation is a technique used in pulse width modulation (PWM) to control the duty cycle of the output signal. In this technique, the rising edge of the signal is kept fixed, while the\u00a0<strong>falling edge is modulated<\/strong>. This results in a constant frequency output waveform, but with varying duty cycles. Trail Edge Modulation is used in applications where a fixed frequency is required, but with varying power or intensity levels. This technique is commonly used in lighting applications, such as\u00a0<strong>LED lighting<\/strong>, where it is used to control the brightness of the lights while maintaining a constant flicker-free output.<\/li><\/ul><ul><li><strong>Lead Edge Modulation:-\u00a0<\/strong>Leading edge pulse width modulation (PWM), is a technique used to control the power delivered to a load. In\u00a0<strong>leading edge modulation<\/strong>, the leading edge of the pulse or waveform is modulated, while the trailing edge remains fixed. By varying the width of the pulse&#8217;s leading edge, the average power delivered to the load can be controlled. This technique is commonly used in applications such as LED lighting, motor control, and power supplies. Leading edge modulation is also used in high-frequency switching power supplies to improve efficiency and reduce electromagnetic interference.<\/li><\/ul><ul><li><strong>Pulse Centre Two Edge Modulation:-<\/strong>\u00a0Pulse Center or Dual Edge Modulation is a technique used in Pulse Width Modulation (PWM) that modifies the timing of\u00a0<strong>both the leading and trailing edges of the PWM signa<\/strong>l. This technique involves the generation of two consecutive pulses of the same polarity but with different pulse widths. The center point of the two pulses is the reference point or center of the waveform. By adjusting the width of both pulses, the effective duty cycle of the PWM signal can be changed without altering the frequency. Pulse Center Modulation is commonly used in power electronics applications such as motor control, power inverters, and voltage regulators.<\/li><\/ul><p><b>Applications of Pulse Width Modulation<\/b><b>\u00a0(PWM) :<\/b><\/p><ul><li>PWM is used in robotics to control the movement of servo motors and to control the speed of DC motors.<\/li><li>PWM is used in Class D audio amplifiers to generate high-quality audio signals.<\/li><li>PWM is commonly used in LED lighting systems to control the brightness of the LEDs.<\/li><li>PWM is used in solar charge controllers to regulate the charging of batteries from solar panels.<\/li><\/ul><p><b>Advantages of PWM :<\/b><\/p><ul><li>PWM used in\u00a0telecommunication for encoding digital signals onto an analog carrier wave. It works by varying the width of pulses in a train of periodic pulses to represent information. This technique is used in applications such as\u00a0<strong>remote control systems, audio and video transmission<\/strong>, and motor control.<\/li><li>PWM is used to prevent overheating in electronic circuits. By controlling the amount of time that a signal is\u00a0<strong>&#8220;on&#8221; versus &#8220;off,&#8221; the average power<\/strong>\u00a0delivered to a load can be regulated. This allows the circuit to operate more efficiently and reduces the amount of heat generated.<\/li><li>PWM is used in motor control applications to generate<strong>\u00a0variable speed<\/strong>\u00a0outputs. By varying the duty cycle of a PWM signal, the<strong>\u00a0speed of a motor<\/strong>\u00a0can be controlled. This is often used in applications such as<strong>\u00a0robotics, electric vehicles<\/strong>, and industrial machinery.<\/li><\/ul><p><b>Practical use case of PWM in real life application :<\/b><\/p><p>PWM finds practical use in controlling the\u00a0<strong>speed of DC motors<\/strong> by generating a PWM signal from a microcontroller to regulate the voltage applied to the motor. By adjusting the duty cycle of the PWM signal, the average voltage supplied to the motor can be varied, thus controlling the speed of the motor.<\/p><p>An excellent illustration of this is seen in electric scooters where the controller generates a PWM signal with a duty cycle corresponding to the\u00a0<strong>desired speed<\/strong>, triggered by the user\u00a0<strong>twisting the throttle<\/strong>. This technique offers\u00a0<strong>precise speed control<\/strong>, cost-effectiveness, and durability since it reduces\u00a0<strong>mechanical stress<\/strong>\u00a0and\u00a0<strong>overheating<\/strong>, ensuring a smooth and safe ride. Additionally, it eliminates the need for complex\u00a0<strong>analog circuits<\/strong>\u00a0and expensive components.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>What is PWM? Pulse width modulation\u00a0(PWM)\u00a0is a method used in electronics to control the power&#8230;<\/p>\n","protected":false},"author":1,"featured_media":273,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[72],"class_list":["post-272","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-digital-communication","tag-pwm"],"acf":[],"views":1427,"featured_image_urls":{"full":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",1920,1080,false],"thumbnail":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",150,84,false],"medium":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",300,169,false],"medium_large":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",640,360,false],"large":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",640,360,false],"1536x1536":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",1536,864,false],"2048x2048":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",1920,1080,false],"tp-image-grid":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",700,394,false],"covernews-slider-full":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",1115,627,false],"covernews-slider-center":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",800,450,false],"covernews-featured":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",1024,576,false],"covernews-medium":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",540,304,false],"covernews-medium-square":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",400,225,false],"_nx_notification_thumb":["https:\/\/embeddedwala.com\/beta\/wp-content\/uploads\/2023\/06\/PWM.png",100,56,false]},"author_info":{"display_name":"embeddedwala","author_link":"https:\/\/embeddedwala.com\/beta\/author\/embeddedwala\/"},"category_info":"<a href=\"https:\/\/embeddedwala.com\/beta\/category\/blogs\/digital-communication\/\" rel=\"category tag\">Digital Communication<\/a>","tag_info":"Digital Communication","comment_count":"0","_links":{"self":[{"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":7,"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"predecessor-version":[{"id":6627,"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/posts\/272\/revisions\/6627"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/media\/273"}],"wp:attachment":[{"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embeddedwala.com\/beta\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}