Electronic – Voltage controlled PWM generator

operational-amplifierpwm

Request for pointers to a schematic or an useful link for a voltage controlled PWM generator. Maybe with an op amp and a quartz crystal, and the duty cycle=Vinput/Vcc.

I thought this up: an op amp (comparator), with the minus (-) input a sawtooth oscillator and the plus (+) input the Vinput. The output of the opamp would be the output of the generator.

schematic

simulate this circuit – Schematic created using CircuitLab

Would that work?

Best Answer

Take a look at these slides (starting about slide 13). It details creating a PWM generator of a fixed frequency (which you can choose) using only a 555 and a comparator. The level shift and amplify portion of the circuit isn't required; it is only to compensate for a slow input AC waveform of about 100mVpp.

Overall, the circuit looks like this: enter image description here

All in all, it's a relatively simple circuit. The 555 creates the sawtooth waveform for you, and the comparator compares your input voltage to this waveform. Depending on the level of the input as compared to the level of VCC on the 555, the duty cycle will be altered. The equations for the frequency and Ton are even included, so no need to derive.