I am trying to design a circuit that will allow me to use the amplitude of a sine wave as a control signal (10khz from a sound card) to control the duty cycle of a PWM generator.
The idea I have so far, is sort of like this:
Sine wave AC (control signal) > full wave rectify to DC > to vary pwm generator duty cycle.
ive done some measurements of the voltages and I've added them to a draft schematic below.
Im not sure what I can do to connect this together to make it work, any ideas would be great, as im a bit stuck.
heres a pic:
In the end I used 1N4148 diodes to rectify the AC signal to DC. (when i took voltage measurments)
thanks for any help : )
UPDATED PICTURE*
cant seem to delete the old attachment below
you can make it anything you like, the key is how the PWM is obtained. with circuit like this you get separate oscillator and comparator so hacking is easier (you can modify one part without affecting rest of the circuit). beside oscillator has single capacitor, you can easily replace it to get it into particular range...