Differential Amplifier Module |
|
The differential amplifier module was developed to provide a means of monitoring voltage and current at low frequencies. This turned out to have a number of difficulties that required some careful thought to resolve. SpecificationThe module was expected initially to work in a low voltage, high current environment (solar power system). However extension to voltages up to 400V was envisaged.
Component SelectionChoice of components was influenced by the desire to use readily available components that would remain available for some time. However programmable gain differential amplifiers are not particularly common. The following somewhat specialized components were chosen (Analog Devices produce a range of excellent quality signal processing ICs):
DesignThe design difficulties focus around the need for the module to be electrically isolated from the system under test. For systems that are not isolated, problems arise due to the common ground point between the measurement system and the circuit being measured. This can result in currents flowing that will disturb the measurement, or worse. Isolating the module electrically becomes very complex given that the module must interface with a PC that is not isolated. To reduce the problems associated with non-isolation, the impedance between the inputs of the module and the ground point is made as high as possible. With a 3MΩ input impedance between the two input terminals, it was decided to use a 10MΩ resistance to ground at each of the amplifier inputs. This necessitates the use of high impedance JFET input amplifiers to buffer the AD625 whose input bias currents are too large to support this magnitude of resistance at the inputs (see below). The only other aspect of the design to
mention is provision of an attenuation and level shifting circuit to
reduce the ±15V output
of the AD625 to 0-2.5V needed by the AVR A/D converter. This is quite
straightforward. It requires two stages of attenuation, the first to
reduce the level so that level shifting will not push the signal beyond
the limits of the operational amplifier. The level shifter uses a
bridge arrangement to perform the first attenuation and subtraction of
the offset voltage. The use of a 5.6V zener diode allows the provision
of a temperature independent and clean reference voltage for the zero
point. The manual switches are sensed on a third switch bank to allow the microcontroller to read their settings. This is passed through a priority encoder (74LS148) to reduce the number of signals from four to two. The AC/DC switch is also sensed separately, giving three signals to be passed back. A multiplexer (74LS157) is used to select a second analogue channel on the same card. Bias Current ConsiderationsBias current flows between the amplifier inputs and ground. It is necessary to provide a path for this current to flow. In a differential amplifier there are bias currents flowing from both positive and negative inputs, and if equal resistances are provided from the inputs to ground, they cancel out – almost. The remaining difference is called offset current and is generally significantly smaller than individual bias currents. When a differential amplifier is placed in a fixed circuit, the voltages at the output caused by the offset current can be nulled out by a trimming potentiometer or by careful design. In our case, where the circuit attached to the amplifier inputs can vary significantly from one measurement to another, it is not possible to provide a once-off nulling of the offset current. Though we provide equal resistances from the inputs to ground to cancel the bias currents, the actual resistance at those points varies depending on the external circuit in a DC measurement. The effect cannot be nulled out with our auto-zeroing circuit. The only possible way to estimate the effects is by manually turning off the voltages present in the external circuit. We still provide equal resistances to ground at the amplifier inputs as measurements in AC mode are effectively isolated from the external circuit by a capacitor, and so the measurements can be made accurately. The solution is to use low drift, low bias current operational amplifiers to buffer the AD625 from the external circuit. Grounding ConsiderationsThe datasheets indicate that the ground
connections on the two switches ADG409 and AD7512 are power grounds associated with the digital
switching. The two amplifier devices have no power ground connections.
Therefore it is sensible to link all the analogue grounds onto the same
net, and to bring it to the analogue ground connection on the
microcontroller. The connection to the common ground would occur
through within the microcontroller. The analogue grounds occur at the
10M bias resistors, the reference input to the AD625, and in the following network. The two
analogue signals should be shielded with the analogue ground and kept
as remote as possible from the power nets. CircuitThe circuit used is given below as a schematic drawing. Eventually this will be adapted to allow production on a PCB with appropriate care given to protection of the analogue signals.The diagram was developed with the gEDA toolset.
A gEDA adc-module.sch schematic file is
also provided, along with the following symbols. These will need to be
modified to provide the attributes necessary for producing a netlist
and gerber file, and will be updated as time permits. |
First created 12 May 2007
Last
Modified 22 August 2007