Arduino PWM Programming and its functions in Arduino
What is PWM?
PWM stands for “Pulse Width Modulation”. This technique is widely used in almost all devices in which voltage variation is required. In PWM, steady DC Voltage is converted into square wave with varying pulse width and the ratio of the total time period (T) of the wave to the time of the “ON” pulse width is called Duty Cycle. This technique is also known as Pulse Duration Technique (PDT). Modern Electronics power switches like Mosfets, transistors are required for PWM, and some time, very sophisticated electronics circuit is required when PWM signals have to carry a very high load.
Uses of PWM Technique:
- 1) Servo motor
In this servo motor the rotational angle depend upon the incoming wave duty cycle.
- PWM is used in RGB leds to make different colors from three basic colors
- PWM is used in DC-DC convertors where we have to limit the power flow in an efficient way.
- PWM is used in controlling the speed of the Motors.
- PWM is sometimes used in sinusoidal singles to control the voltage levels.
PWM frequency effect:
You can see pin 3 on the below Arduino UNO board. This is PWM Pin, which connect the LED between PWM Pin (PIN 3) and ground by using a 120 ohm resistor.
So this is the simple way of using PWM in Arduino. Just make sure the correct use of pin and analogWrite() function.
You Might Also Read:
- How to Program PIC18 Microcontroller. Step by Step Tutorial.
- MAX232: Construction, Operation, Types and Application.
- 10+ Design & Simulation Tools for Electrical/Electronics Engineers Online.
- 15 Must Have Android Apps for Electrical & Electronics Engineers & Students.
- Clap Switch Circuit Electronic Project Using 555 Timer.
- How to find The value of Burnt Resistor ( By three handy Methods ).