How to generate Pulse Width Modulation (PWM)

9,296 views

Pulse-width modulation (PWM) is a modulation technique that is used by most communication systems for encoding the amplitude of a signal right into a pulse width or duration of another signal, usually a carrier signal, for transmission. PWM is an important feature of every microcontroller due to its requirement for controlling many devices in almost every field of electronics.

Sometimes we do not use a microcontroller in our applications and if we need to generate PWM without a microcontroller then we prefer some general-purpose ICs like timers or pulse generators, etc. In this tutorial, we will show you how you can make a PWM generator circuit using a 555 Timer IC and some basic electronics components.

ne555-timer-ic

Hardware Components:

The following components are required to make PWM Generator Circuit

S. NOComponentValueQty
1.Breadboard1
2.Battery9v1
3.Connecting Wires1
4.ICNE555 Timer1
5.Diode1N40072
6.Capacitor0.01uF1
7.Variable Resistor10k ohm1
8.Resistors100 ohms, 1k ohm1, 1
9.LED5mm1

555 IC Pinout

555 timer ic pinout

For a detailed description of pinout, dimension features, and specifications download the datasheet of 555 Timer

Circuit Diagram

Pulse Width Modulation Generator_Diagram-Schematic
Pulse-Width-Modulation-Circuit

Connection

  1. Place the 555 timer IC on the breadboard and connect Pin 8 to VCC and Pin 1 to GND.
  2. Use a jumper wire, to connect Pin 2 and Pin 6 together.
  3. Connect Pin 4 to VCC.
  4. Use the 0.01uF Capacitor to connect Pin 2 to GND.
  5. Connect an LED with a 100 Ω Resistor to Pin 3.
  6. Use a 1K Resistor to connect Pin 7 to VCC.
  7. Connect the Middle Pin of the variable resistor to Pin 3 of the IC.
  8. Connect diodes to the variable resistor, as shown in the circuit diagram.

Working Explanation

In this circuit, we will use a 555-timer IC for generating PWM. The 555 timers will operate in astable mode and generate continuous square waves at the output. To change the duty cycle of the output signal we will change the resistance by using the variable resistor. The LED connected to the output indicates the duty cycle of the output PWM with a fading effect. If you want to view the output on an oscilloscope then connect the probe of the oscilloscope in parallel with the LED. The output of the 555 timers can supply a maximum current of 200mA to the load. So if the motor that we want to control exceeds this rating then use a transistor or a MOSFET for driving the motor.

Application

  • PWM circuit is widely used for controlling motors and lights.
  • PWM is used in Telecommunications for encoding purposes.
  • The computer Motherboard requires PWM Signals to control the heat generated by the board.