I'm trying to build an automatic gain control circuit but I don't really know where to start.
Basically I want to measure the peak voltage of an input waveform and adjust the gain of an op-amp or other amplifier to compensate.
I was thinking of using a PIC microcontroller and an adjustable gain amplifier, but I think that an analog circuit would probably be better. Anyone got any suggestions?
I can vary gain using a JFET control, the important part is calculating the gain adjustment.
Basically I want to measure the peak voltage of an input waveform and adjust the gain of an op-amp or other amplifier to compensate.
I was thinking of using a PIC microcontroller and an adjustable gain amplifier, but I think that an analog circuit would probably be better. Anyone got any suggestions?
I can vary gain using a JFET control, the important part is calculating the gain adjustment.