Electrical – Op amp signal processing of an accelerometer output for an ADC


I have been designing a board which will monitor vibration activity of a machine using MEMS accelerometers. So far, I have connected the unadulterated signal from the accelerometer to the ADC however, I was considering the fact that if there is very little vibration, if I removed the dc bias, amplified the signal and then re-added the bias, I could make better use of the ADC resolution. The bias is 1.65V and the sensitivity is 300mV/g so under normal conditions with no vibration, the output is 1.95V.

From what I have googled, I think I can use a differential amplifier to remove the bias and to amplify the signal followed by a summing amplifier to replace the bias. So I have created the following circuit where V1 is 1.95V and V2 is the accelerometer output. However, I have no idea of what value resistors to use and how to calculate gain. I would like to either use a digi-pot or a MUX to change resistance and control gain from unity, 2X, 4X, 8X, 16X and 32X

Can somebody give me a heads up please? What sort of values should I use, what voltage should I supply to the op amps – is \$\pm 5\text{ V}\$ sufficient for an accelerometer output of 3.3V maximum? Which resistor should be variable and how do I calculate the values to give me the gain I want?


Best Answer

What sort of values [for the differential amplifier resistors] should I use?

A rule of thumb is that the input impedance of the differential amplifier should be at least ten times the output impedance of the accelerometer in order to avoid signal loss (the differential amplifier would ideally have infinite input impedance). The block diagram of the ADXL335 datasheet suggests that the output impedance is about \$32\text{k}\Omega\$, so you'd need high valued resistors.

The gain of the differential amplifier is set by the ratio of resistors (an example derivation is here). You need to set the resistors in your schematic to $$\frac{R_2}{R_1} = \frac{R_4}{R_3} = \text{desired gain}$$

The problem with this is that you need to adjust two resistors to adjust the gain.

You can solve both of these problems with an instrumentation amplifier. Conceptually, it's a difference amplifier with a pair of op amp buffers on each input:

enter image description here

The op amp buffers give you much higher input impedance than the difference amplifier alone, and the architecture allows the gain to be set by changing only one resistor. You can construct an in amp out of discrete op amps, but an IC in amp will have less gain error because ICs have better matching of the resistors. IC manufacturers offer a wide variety of instrumentation amplifiers so you should be able to find one which meets your needs.

As a bonus, IC in amps provide a reference pin which you can use to provide an offset to your output (e.g. by the bias voltage). In the above in amp schematic, the reference pin replaces the ground connection to \$R_3\$. An explanation for how to use this pin can usually be found in the in amp's datasheet; for example, the AD8221 datasheet says:

As shown in Figure 43, the reference terminal, REF, is at one end of a 10 kΩ resistor. The output of the instrumentation amplifier is referenced to the voltage on the REF terminal; this is useful when the output signal needs to be offset to a precise midsupply level. For example, a voltage source can be tied to the REF pin to level-shift the output so that the AD8221 can interface with an ADC. The allowable reference voltage range is a function of the gain, input, and supply voltage. The REF pin should not exceed either +VS or –VS by more than 0.5 V.

For best performance, source impedance to the REF terminal should be kept low, because parasitic resistance can adversely affect CMRR and gain accuracy.

You'd probably need to add a simple op amp buffer to the bias voltage so that the source impedance on the REF terminal is low enough.

what voltage should I supply to the op amps - is \$\pm 5\text{ V}\$ sufficient for an accelerometer output of 3.3V maximum?

It might be. It depends on the amplifier you choose. You need to make sure that the amplifier can operate on \$\pm 5\text{ V}\$, that its inputs will stay within its input common mode range, and that its output can swing close enough to its supply voltages. Consult its datasheet.

To handle the gain requirement of 1 to 32 in binary steps, I'd suggest using a programmable gain amplifier with binary weighted gains. For example, the PGA205 is a programmable gain instrumentation amplifier (both the in amp and programmable gain combined) with a gain selection of 1, 2, 4, or 8. Add another programmable gain operational amplifier with binary weighted gains (e.g. the LTC6910-2 to the output of the first one to achieve an overall gain of 1 to 32).