Analog Circuits

Op Amps in Analog-to-Digital Converters

How op amps prepare signals for an ADC: buffering, setting the input range, anti-aliasing filters, and checks to run before you build the board.

On this page
  1. The short answer
  2. The golden rules, briefly
  3. Buffering a high-impedance sensor
  4. Setting the input range
  5. Anti-aliasing filters
  6. Practical checks before you build

The short answer

An ADC often cannot be connected directly to a sensor. An op amp placed between the two can buffer the signal, scale it into the ADC’s input range and shape it with a filter. The op amp’s job is to give the converter a low-impedance, correctly scaled signal.

The golden rules, briefly

For an ideal op amp with negative feedback, two rules hold:

  1. The two inputs settle to the same voltage, so V+ ≈ V−.
  2. The inputs draw no current.

These two rules let you derive the gain formulas in inverting and non-inverting op-amp gain. Real op amps come close to these rules within their limits, which the datasheet describes.

Buffering a high-impedance sensor

Some sensors have a high output impedance. Examples include a voltage divider built from large resistors and some piezoelectric elements. Many ADCs draw short bursts of charge from their input each time they sample, so a high-impedance source can produce a reading that is off or slow to settle.

A voltage follower solves this. The op amp’s output connects to its inverting input, so the gain is 1. The follower presents high input impedance to the sensor and low output impedance to the ADC. The ADC input then sees a stable voltage.

Setting the input range

An ADC converts across a fixed input range, often from 0 to its reference voltage. A sensor’s output may be much smaller than that range, or offset from it. A non-inverting amplifier scales the signal up to fill the range.

Worked example. A sensor produces 0 to 100 mV, and the ADC reads 0 to 2.5 V. The required gain is 25. A non-inverting gain of 1 + Rf/R1 = 25 is met by R1 = 1 kΩ and Rf = 24 kΩ.

A rail-to-rail op amp is a practical choice here, because it can swing close to 0 V and close to the top of the supply. An ordinary op amp may not reach 0 V on a single supply.

Anti-aliasing filters

Before the ADC, add a low-pass filter. Its cutoff should be well below half the sample rate, which is the Nyquist frequency. Signals above that frequency fold back into the measured band as false readings, a problem called aliasing.

Example. If the ADC samples at 10 kHz, the Nyquist frequency is 5 kHz. A cutoff of about 2 kHz leaves room for the wanted signal and attenuates frequencies that would alias. A simple RC filter can do the job, and an active Sallen-Key stage is another option. See analog filter design for the formulas.

Practical checks before you build

  • Read the ADC datasheet. Many ADCs specify a driver circuit, an input impedance and a small series resistor and capacitor at the input. Follow the manufacturer’s recommendation.
  • Check settling and bandwidth. The op amp must settle within the sample period and have enough bandwidth above the signal.
  • Check the output swing and input common-mode range. Both must fit the ADC’s input range and your supply.
  • Keep the supply quiet. Decouple the op amp’s supply close to the chip, and keep analog and digital return paths sensible.
  • Measure before connecting. Check the op amp’s output with a multimeter or scope before it reaches the ADC pin.

The complete guide to analog circuits

Amplifier and Signal Circuits: Feedback Amplifier Types Explained
Read the guide

Keep exploring

Guides from other topics

All topics →