Pulse Width Modulation or (PWM) is technique used by engineers all over.It is a complex process which is studied under analog signal manipulation. To demystify PWM consider an LED hooked up to a battery and a switch.
Imagine you could toggle the switch ON and OFF at speeds where you can no longer make out whether the LED is blinking.
Is that it ?
Common sense dictates that it would appear as if the LED was glowing continuously. At least that's what I thought.
Practically to toggle a switch at such high frequency you can employ one of the following methods.
1. Use a relay to blink the LED
2. Utilize a microprocessor kit such as an Arduino.
What you will actually observe when you do this is while the LED will have stopped blinking it's brightness will also seem to have reduced. Say it is ON for 20ms and OFF for 20ms. That means it is ON and OFF for 50% of a duty cycle respectively. The LED will seem to have dimmed by 50%.
This is one of the textbook applications of Pulse Width Modulation.
Here I would like to include that duty cycle is the ratio of ON time of a device to the total time period (i.e ON time plus OFF time).
Another application of PWM is DC Motor speed control. Say the rotation speed is maximum for voltage V and minimum when it is 0. When a cycle with 50% of voltage V and 50% voltage 0 is given to the motor, voila ! the motor runs at half speed.
The general idea is that the motor is a slow inertial device and is unable to respond to high clock speeds and as a result is never truly at full speed or minimum speed hence runs at half speed.
So what is Pulse Width Modulation technique ?
Putting it into words it is a technique used for producing analog like properties by using digital systems.
If you want to know how to implement this using an Arduino click on the link given below,
Arduino PWM
Follow the steps and keep reducing the parameter in the delay( ); function until the LED appears to stop blinking. Do this in a dark room to observe PWM in action.
Until next time,
Abhijeet
Imagine you could toggle the switch ON and OFF at speeds where you can no longer make out whether the LED is blinking.
Is that it ?
Common sense dictates that it would appear as if the LED was glowing continuously. At least that's what I thought.
Practically to toggle a switch at such high frequency you can employ one of the following methods.
1. Use a relay to blink the LED
2. Utilize a microprocessor kit such as an Arduino.
What you will actually observe when you do this is while the LED will have stopped blinking it's brightness will also seem to have reduced. Say it is ON for 20ms and OFF for 20ms. That means it is ON and OFF for 50% of a duty cycle respectively. The LED will seem to have dimmed by 50%.
This is one of the textbook applications of Pulse Width Modulation.
Here I would like to include that duty cycle is the ratio of ON time of a device to the total time period (i.e ON time plus OFF time).
Another application of PWM is DC Motor speed control. Say the rotation speed is maximum for voltage V and minimum when it is 0. When a cycle with 50% of voltage V and 50% voltage 0 is given to the motor, voila ! the motor runs at half speed.
The general idea is that the motor is a slow inertial device and is unable to respond to high clock speeds and as a result is never truly at full speed or minimum speed hence runs at half speed.
So what is Pulse Width Modulation technique ?
Putting it into words it is a technique used for producing analog like properties by using digital systems.
If you want to know how to implement this using an Arduino click on the link given below,
Arduino PWM
Follow the steps and keep reducing the parameter in the delay( ); function until the LED appears to stop blinking. Do this in a dark room to observe PWM in action.
Until next time,
Abhijeet