Labs / Analog · Advanced · 40 min
Op-amp inverting amplifier
Gain = -Rf / Rin, output limited by the supply.
Engineering instrumentation: This lab includes an instrument-style virtual test setup and parameter-driven waveform. For physical measurements, use the Practical Bench.
Parts
- LM358 or TL072
- Resistors
- Dual 12 V supply or 9 V battery pair
- Multimeter
Steps
- Wire the op-amp inverting configuration.
- Choose Rin and Rf.
- Apply a small DC input.
- Check the output against the formula.
Safety: check polarity and power off before changing the circuit.
ESP32 code (Arduino IDE)
const int PIN=34;\nvoid setup(){ Serial.begin(115200); }\nvoid loop(){ int raw=analogRead(PIN); float v=raw*3.3/4095;\n Serial.println(v); delay(200); }Viva questions
Why negative gain?
The input is on the inverting pin, so the output is inverted.
What is clipping?
The output cannot exceed the supply rails.
Virtual ground?
The inverting pin sits at about 0 V due to feedback.