CYTHEIA AIOpen the editor

Op-Amp Amplifier

An op-amp with two resistors in its feedback loop multiplies a small signal by a precise gain.

Open this circuit and run it

Opens in your browser with the parts, wiring and code already in place. Press Run to watch it work, then change anything you like.

How it works

An op-amp has a huge gain and two inputs. With feedback it behaves very simply: it adjusts its output until the two inputs are at the same voltage. Here the signal goes into the plus input, and the output is fed back to the minus input through a divider made of a 4 kilohm resistor Rf and a 1 kilohm resistor Rg. To keep the minus input at the signal voltage, the output has to be larger by the divider ratio, giving a gain of 1 plus Rf over Rg, which is 5.

The generator supplies a small 1 kilohertz sine wave of 0.2 volts above and below a 1 volt level, because this op-amp runs from a single 12 volt supply and cannot output below ground. The oscilloscope shows the input in yellow, swinging between 0.8 and 1.2 volts, and the output in blue swinging between 4 and 6 volts: five times as large. If the output tried to go past the supply, it would flatten at the top, which is called clipping.

Parts

Wiring

Arduino code

// Op-Amp Amplifier
// Press Run: channel 2 (blue) is channel 1 (yellow) times the gain, 1 + Rf / Rg.
// There is no sketch to write: this is a circuit, so there is nothing for code to do.
void setup() {
}

void loop() {
}

Try changing it

Open this circuit and run it

Next challenge

More projects in Analog Electronics