I have an assignment to design a root mean square circuit based on the design I have attached. This is my first attempt and it is more complicated than the basic circuits I have designed in the past. I am just looking for some advice on the design, things to consider, things to test and what types of operational amplifiers would be best suited to this circuit. The input signal is in the range 10 to 20 kHz, 1V p-p.
The first two stages form a precision rectifier circuit followed by the RMS circuit. U2A is a log squaring amplifier, U2B is an anti-log averaging circuit, U3B is an anti-log feedback amplifier.
I have created a PSPICE simulation to test my circuit using 1V p-p sine waves to keep things simple. I have included simulation results for 10 Hz and 20 kHz signals. I am expecting the output to be 0.707V which is the case for the 20 kHz signal but the 10 Hz signal oscillates with a frequency of about 20 Hz which I am struggling to explain. I have noticed there is some high frequency noise with the 20 kHz signal as well, I think this might be from Op-Amps. The 20 kHz output also drops below 0V for some reason I can't explain. I selected TL08x because the bias currents and offset voltages are low which I suppose is suited for this kind of circuit. +/-9V power supplies are within the assignment specification.
The transfer function of the RMS ciruit is Vout = SQRT(AVG(Vin^2) * R7*R8/R6^2). I assumed matched resistors would be necessary so the resistances cancel unless there is a more practical way to reduce the error introduced by resistance mismatches?