
Combining the well-known true rms-to-dc circuit with a simple S/H circuit eliminates offset errors, which increases accuracy and temperature stability. The circuit in Fig 1 uses a low-cost analog multiplier, IC1; an integrator, IC3A, R5, and C1; and an analog inverter, IC2, R3, R4, and D1 to convert the analog VIN into a true-rms dc VOUT. The input signal can be ac, dc, or a combination. With an input-signal range of 0 to 2V, the circuit can handle ac signals with crest factors up to 5.
Unfortunately, offsets in IC1 and IC3A contribute significant error to the circuit. Moreover, these offsets drift with temperature. To remove these offset errors, the circuit performs self-calibration with the help of one logic-control input (CNTRL) and three DG419 SPDT switches, SW1, SW2, and SW3. During calibration, when CNTRL is low, the analog inverter connects the multiplier pins X1, X2, Y1, and Y2 to the signal ground. The circuit disconnects D1 and C1 from the output. Also during calibration, the feedback loop includes the S/H circuit, IC3B, C2, R6, and the attenuator comprising R1 and R2. When conditions settle, the voltage on IC3B's output compensates the combined offsets of IC1 and IC3A. The R1-R2 attenuator increases the compensation voltage level on C2 from millivolts to volts. The offset of S/H amplifier IC3B doesn't play any role, because this amplifier is inside the feedback loop.
During rms-to-dc conversion, when CNTRL is high, VIN connects to multiplier pins X2 and Y1. VOUT connects to Y2, to X1 through the analog inverter, and to D1 and C1. Also during conversion, the S/H circuit disconnects from IC3A's output. Now, the output voltage of the S/H circuit compensates for the offsets of IC1 and IC3A. This output voltage changes slowly because of the leakage current. Thus, you must periodically calibrate the circuit. The circuit requires about 0.1 sec of calibration time. The conversion time is much longer, limited only by the circuit's time and temperature drift. Periodic calibration compensates for the drift, so you can use the circuit in extreme climate conditions.