The IC 555 is an extremely useful and versatile device which can be applied for configuring many useful circuits in the field of electronics. One very useful feature of this IC is its ability to generate PWM pulses which can be dimensioned or processed as per the needs of the application or the circuit.
What's PWM
PWM stands for pulse width modulation, a process which involves the control of the pulse widths, or the ON/OFF periods or logical outputs that's generated from a particular source such as an oscillator circuit or microcontroller.
Basically PWM is used for dimensioning or trimming the output voltage or power of a particular load as per individual or application requirements.
It is a digital way of controlling power and is more effective than analogue or linear methods.
There are many examples which illustrates the effective use of PWM in controlling the given parameters.
It's used for controlling the speed of DC motors, in inverters for controlling the RMS of the output AC or for producing modified sine wave outputs.
It can be also seen in SMPS power supplies for controlling the output voltage to precise levels.
It's also applied in LED driver circuits for enabling LED dimming functioning.
It's extensively used in buck/boost topologies for deriving stepped down or stepped-up voltages without using bulky transformers.
So basically it may be used for tailoring an output parameter as per our own preferences.
With so many interesting application options, does it mean the method may be too complicated or expensive to configure??
The answer is definitely, no. In fact it can be very simply implemented using a single IC the LM555.
There are basically two methods through which the IC 555 can be used for generating pulse width modulation output. The first method is using only a single IC 555, and a few associated parts such as a diodes, a potentiometer and a capacitor. The second method is by using a standard monostable IC 555 configuration and using an external modulation signal.
IC 555 PWM using Diodes
The first method is the simplest and effective, which uses the configuration as shown below:


Video Demonstration
The working of the above shown two diode IC 555 PWM circuit is quite simple. It's in fact a standard astable multivibrator design with the exception of an independent ON/OFF period control of the output.
As we know that the ON time of the IC 555 PWM circuit is decided by the time taken by its capacitor to charge at the 2/3rd Vcc level through pin#7 resistor, and the OFF time is determined by the discharging time of the capacitor below 1/3rd Vcc through the pin#7 itself.
In the above simple PWM circuit, these two parameters can be independently set or fixed through a potentiometer and through a couple of bifurcating diodes.
The left side diode which has its cathode connected with pin#7 separates the OFF time, while the right side diode which has its anode connected to pin#7 separates the ON time of the IC output.
When the potentiometer slider arm is more towards the left side diode, it causes the discharge time to decrease, due to lower resistance across the discharging path of the capacitor. This results in an increase in the ON time, and decrease in the OFF time of the IC PWM.
Conversely, when the pot slider is more towards the right side diode, it causes the ON time to decrease due to lowering of the resistance of the pot on the charging path of the capacitor. This results in an increase in the OFF period, and decrease in the ON periods of the IC output PWMs.
You can replace the timing resistors with a single potentiometer if you want to alter the duty cycle while keeping the frequency constant, as depicted in the following figure.

The 555 circuit may be adjusted as illustrated below to change the frequency while keeping the duty constant at around 50%.

2) IC 555 PWM using External Modulation
The second method is slightly complex than the above, and requires an external varying DC on pin#5 (control input) of the IC for implementing the proportionately varying pulse width at the IC output.
Let's learn the following simple circuit configuration:

IC 555 Pinout

The diagram shows the IC 555 wired up in an easy monostable multivibrator mode. We know that in this mode the IC is able to generate a positive pulse at pin#3 in response to every single negative trigger at its pin#2.
The pulse at pin#3 sustains for some predetermined time period depending upon the values of Ra and C.We can also see the pin #2 and pin#5 assigned as clock and modulation inputs respectively.
The output is taken from the usual pin#3 of the chip.
In the above straightforward configuration the IC 555 is all set for generating the required PWM pulses, it just requires a square wave pulse or a clock input at its pin#2, which determines the output frequency, and a variable voltage input at pin#5 whose amplitude or the voltage level decides the pulse width dimensions at the output.
The pulses a pin#2 generates a correspondingly alternating triangle waves at pin#6/7 of the IC, whose width is determined by the RA and C timing components.
This triangle wave is compared with the instantaneous measure of voltage applied at pin#5 for dimensining the PWMs pulses at pin#3 output.
In simple words we just need to supply a train of pulses at pin #2 and a varying voltage at pin #5 for achieving the required PWM pulses at pin#3 of the IC.
The amplitude of the voltage at pin#5 will be directly responsible in making the output PWM pulses stronger or weaker, or simply thicker or thinner.
The modulation voltage can be a very low current signal, yet it would give the intended results.
For example suppose we apply a 50 Hz square wave at pin#2 and a constant 12V at pin#5, the result at the output will show PWMs with an RMS of 12V and frequency of 50Hz.
For reducing the RMS we just need to lower the voltage at pin#5. If we vary it the resultant will be a varying PWM with varying RMS values.
If this varying RMS is applied to a mosfet driver stage at the output, any load that is supported by the mosfet will also respond with correspondingly varying high and low results.
If a motor is connected to the mosfet, it will respond with varying speeds, a lamp with varying light intensities while an inverter with modified sine wave equivalents.
The Output Waveform
The above discussion can be witnessed and verified from the given waveform illustration below:

The topmost waveform represents the modulation voltage at pin#5, the bulge in the waveform represents the rising voltage and vice versa.
The second waveform represents the uniform clock pulse applied at pin#2. It's just for enabling the IC to switch at a certain frequency, without which the IC wouldn't be able to work as a PWM generator device.
The third waveform depicts the actual PWM generation at pin#3, we can see that the width of the pulses is directly proportional to the top modulation signal.
The pulse widths corresponding to the "bulge" can be seen as much wider and closely spaced which proportionately becomes thinner and sparse with the fall in the modulation voltage level.
The above concept can be very easily and effectively applied in power control applications as discussed earlier in the above article.
How to Generate a Fixed 50% Duty Cycle from a IC 555 Circuit
The following figure shows a simple configuration which will provide you with a fixed 50% duty cycle PWMs across its pin#3. The idea was presented in one of the IC 555 datasheets, and this design looks very interesting and useful for applications which need a simple and quick 50% fixed duty cycle generator stage.

Hi Swagatham, I need your help with a pwm circuit for an HHO generator. Can you show me a diagram for a circuit that converts 110 volts AC to DC, and then, let’s the operator change the pulse width through a potentiometer.
If possible please provide a list of components needed for building the circuit, and a detailed diagram of the circuit layout.
Many thanks for your assistance.
Hi Gary,
You can try the following design:
https://www.homemade-circuits.com/wp-content/uploads/2023/09/HHO-gas-pwm-controller-circuit.jpg
Hi Swagatam,
I’ve found this nice circuit (method 2) here, which I have also designed a few years ago for the voltage to pwm converter for my class D amplifier. I have some remarks from my experiences.
RL is not required for the CMOS versions of the 555 timer.
You can use one RA / C combination for multiple pwm converters. I have used one for both stereo channels of my class D amplifier.
The clock generator can be build up very similar to the converter circuit. Only the trigger pin (pin#2) must be also connected to the midpoint of the RA / C combination. And you have to set a reference voltage for 100% duty cycle to the modulation pin (pin#5).
If your application depend on linearity (as in the case of class D amplifiers) you need to substitute RA by a constant current source. I have used a current regulating diode (Siliconix CD056 in my case) as constant current source. So I have used a single CRD / C combination for the clock generator and both pwm converter circuits.
Thank Gunter,
I greatly appreciate your valuable feedback and information. Hope the other readers will find it useful.
Sir, in the first diagram where resistors are shown in orange color, connections on pin 7 (if I am not wrong) are looks wrong as variable resistor is looks short circuited.
I think R1 should not be connected to pin7 directly.
Hello Mohsin,
I cannot see anything wrong in the first circuit. The circuit is a tested design, you can see it in the video.
Thank you sir, pls I do not mean connecting the output pin 3 of spmw ICs
above directlyy to sg 3525 in the inverter. I will follow your directive to connect the pin to mosfet gates with individual diodes. What I mean sir is, is it safe or will it work if I use the first method of generating spmw explained in the above article in an sg3525 inverter. That’s an inverter that has sg3525 as it’s main IC Thanks.
Michael, As already mentioned in my previous comment, the above circuits will not generate SPWM, they will only generate uniformly divided PWMs.
Please read the article carefully to understand its working.
You can use the second concept for generating SPWM by connecting pin#4 50 Hz output from SG3525 with pin#2 of the IC555, and then feeding pin#5 of the IC 555 with 300 Hz triangle waves, which can be obtained from another IC 555 astable circuit from right across its timing capacitor.
Hello sir, pls under this explanation you did, which said by ” connecting the output pin 3 of the IC…….. pls there are many circuits here, is it under the first method which has a 555 IC with a pin 3 output connected to a red arrow and yellow stripes, also still under that circuit of the first method, there are two wires out tagged “9v” and “0v”, pls where do these wires go. Lastly still under this first method’s circuit, I want to use it in an sg3525 inverter, should I go on thanks.
Hello Michael, all the diagrams above will generate a pwm controlled output at pin3 of the ICs, so you can use any one of them. Connecting to SG3525 will not help to get sine wave output because the above pwms are not SPWMs, they can be used only to control the RMS of the inverter output. The 0 and 9V can be connected to the battery of the inverter.
Thanks sir for your Swift response, pls I want to enquire, can I use the 12v d.c. from a normal or advanced car alternator rotating at it’s normal or highest possible rpm to power a 2k watt or at least a 1k watt Inverter. That is the inverter will only be powered by the current from the alternator in place of a battery. If it’s feasible, like how long can that arrangement last with little or no harm to the inverter or the alternator itself. If there are pros, pls let me know also through your reply. Thanks, will be waiting for your reply. Merry Christmas to you and your people ❤️
Michael, an inverter just needs a DC supply to convert the DC into mains AC, it doesn’t matter from where the DC is coming. If you can convert the alternator AC to Dc to feed the inverter then the inverter will do its job normally, as it would do with any battery. However to operate a 1000 watt load the alternator output power will need to be much above this value.