Skip to content
You Start with one site
Amounts in Start with one site
Electronics · Concept

Op-amp

One idea Intermediate 5 min read
Found this useful?

An operator at a water tank watches two gauges, the level wanted and the level now, and turns the inlet valve until the two read the same. An op-amp (operational amplifier) does this with voltages. It moves its output until its two inputs are equal, and two resistors decide what equal means, which sets the gain.

A huge gainAlone, the op-amp multiplies the difference between its inputs by about 100,000.Too much to use
FeedbackA share of the output returns to the − input.It holds the inputs equal
Two resistorsThey decide what share returns.They set the gain

See it

Predict first

A non-inverting amplifier has Rf = 9 kΩ and R1 = 1 kΩ. Its + input is at 0.2 V. What voltage is at its − input?

See it: a non-inverting amplifier on a 5 V supply

Gain, 1 + Rf ÷ R1
V+ and V−
Output

The op-amp is an LM358 on a single 5 V supply, so its output can reach only about 3.5 V. Below that limit, V− always equals V+. Push the output to the limit and the two inputs are no longer equal: the rules hold only while the output can still move.

The idea

An op-amp has two inputs, + and −, and one output. Alone, it multiplies the difference between its inputs by a very large number, so a share of the output is connected back to the − input. This is negative feedback: if the output is too high, the − input rises and pushes it down again.

With negative feedback, two golden rules hold. No current flows into the inputs. The op-amp moves its output until both inputs are at the same voltage.

In the non-inverting amplifier, Rf and R1 are a voltage divider that returns a share of the output to the − input. The op-amp raises its output until that share equals the input:

Vout = Vin × (1 + Rf ÷ R1)

Vin is the voltage at the + input, Rf the feedback resistor from the output to the − input, R1 the resistor from the − input to 0 V

The gain is 1 or more: it cannot make a signal smaller. The output cannot go beyond the supply, and many op-amps cannot reach it.

One worked number

The question

A sensor gives 0 to 0.3 V. You want 0 to 3.0 V for an analog input. R1 is 1 kΩ. Which Rf do you need, and what is the output when the sensor gives 0.25 V?

Show the worked solution, 3 steps
  1. Find the gain

    3.0 V ÷ 0.3 V = 10.

  2. Find Rf

    1 + Rf ÷ R1 = 10, so Rf ÷ R1 = 9 and Rf = 9 × 1 kΩ = 9 kΩ.

  3. The output at 0.25 V

    0.25 V × 10 = 2.50 V. Check: the divider returns 2.50 × 1 ÷ 10 = 0.25 V to the − input, equal to the + input. The figure opens at this case.

The mistake to avoid

The two inputs of an op-amp are always at the same voltage. Only with negative feedback, and only while the output can still move. When the output reaches its limit, it cannot rise further, and the − input stops following the + input. Set Rf to 20 kΩ in the figure: the output stops at 3.5 V and V− falls below V+. With no feedback at all, as in a comparator, the inputs are not equal either.

Check yourself

Question 1

A non-inverting amplifier has Rf = 47 kΩ and R1 = 10 kΩ. The input is 0.5 V. What is the output?

Question 2

A transmitter gives 0 to 10 V, and the controller input accepts 0 to 3.3 V. Someone plans a non-inverting amplifier to make the signal smaller. What do you tell them?

Question 3

An LM358 on a 5 V supply has a gain of 20. The input is 0.25 V, so you expect 5.0 V at the output. You measure 3.5 V. Why?

Where you meet it

  • Cold room temperature probesA thermistor or an RTD gives a small change of voltage, and an op-amp raises it to the range of the analog input.
  • Load cellsA tank on load cells gives a few millivolts, and an instrumentation amplifier built from op-amps makes it usable.
  • Current measurementCharge controllers and energy meters amplify the small voltage across a low resistance.
  • Battery monitoringA follower between a divider and the analog input keeps the divider from being loaded.
Key points
  • With negative feedback, an op-amp moves its output until its two inputs are equal, and no current flows into them.
  • Non-inverting gain = 1 + Rf ÷ R1. It is never below 1.
  • The output cannot pass its supply, and the LM358 on 5 V stops near 3.5 V.
  • At that limit the rules no longer hold.
Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.