Op-Amp Based PWM Circuit

19,503

Circuit Image

This circuit utilizes LM358 operational amplifiers (or any single supply operational amplifier) to generate a pulse-width modulated (PWM) signal. The design was specifically created for a local marine repair company that requested a circuit that is easily repairable and does not require an external programmer. The circuit features a rail-to-rail design, where a reference voltage, adjustable via potentiometer RV1, is applied to the non-inverting pins of the U2A op-amp. The resistor R8 and capacitor C4 function as a low-pass filter, which mitigates high-frequency spikes and smooths the transition peaks. While this filtering section is optional, it was included to enhance the appearance of the triangle signal on an oscilloscope. A photograph of the 3 Amp solenoid actuator used for testing was taken, although an image of the completed PCB and working prototype was not captured.

The circuit's core functionality revolves around the generation of a PWM signal, which is essential for controlling power delivery to devices such as motors or solenoids. The LM358 op-amps are configured to operate in a comparator mode, where the output signal's duty cycle can be adjusted by varying the reference voltage through the potentiometer RV1. This allows for precise control over the PWM signal, making it suitable for applications requiring variable speed or power adjustments.

The low-pass filter composed of resistor R8 and capacitor C4 plays a critical role in stabilizing the output signal. By filtering out high-frequency noise, the filter ensures that the PWM signal maintains a clean waveform, which is particularly important when driving inductive loads such as solenoids. The smoothing effect provided by this filter can prevent erratic behavior in the actuator, leading to more reliable operation.

In terms of circuit layout, careful attention should be paid to the placement of components to minimize noise and interference. The use of a single supply operational amplifier simplifies the power requirements, allowing the circuit to be powered from a straightforward DC source, which aligns with the design's goal of ease of repair and accessibility.

Overall, this circuit exemplifies a practical solution for generating PWM signals without the complexity of microcontrollers, making it ideal for applications in environments where simplicity and reliability are paramount.This circuit uses the LM358 operational amplifiers (or any single supply op amp) to generate a pulse-width modulated signal. In most cases, I would just use a microcontroller to generate PWM signals. Unfortunately, the circuit was designed for a local marine repair company which requested the circuit to be easily repairable and built without the n

eed of an external programmer, etc. Since this is rail to rail design, a reference voltage (changed using potentiometer RV1`) has to be placed on the non inverting pins of the U2A` op-amp. The R8 resistor and C4 capacitor acts as a low pass filter which will filter some a the high frequency spikes and smooth the transition peak.

I believe this portion of the circuit is optional but I just added it to make the triangle signal looks nice on my oscilloscope. Unfortunately, I have forgotten to take a picture of the completed PCB board and the working prototype.

However, I did took a picture of the 3 Amp solenoid actuator which was tested on. 🔗 External reference