PRECISION FULLWAVE RECTIFIER
I have used this handy circuit many times. It accurately converts an AC signal
into pulsing DC, which can be filtered to provide an average of the input voltage.
It works from millivolts to volts. The circuit shown requires a stable +5v
reference if a single power supply is used.