How does an operational amplifier compare two voltages and amplify a signal?
The operational amplifier as a comparator and as an inverting/non-inverting amplifier, with gain and the use of a reference voltage.
A CCEA A-Level Technology and Design answer on the operational amplifier used as a comparator that switches when a sensor voltage crosses a reference, and as an inverting or non-inverting amplifier with calculable gain.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
CCEA expects you to use an operational amplifier (op-amp) as a comparator (switching when a sensor voltage crosses a reference) and as an inverting or non-inverting amplifier with a calculable gain. Comparator behaviour and the gain formulae are commonly tested.
The answer
The op-amp comparator
The reference voltage sets the threshold
The op-amp as an amplifier
Worked example: a light-triggered switch and an amplifier stage
Examples in context
Example 1. Frost alarm. A thermistor divider and an adjustable reference feed a comparator; as the temperature drops past the set point the output flips and sounds an alarm, the comparator threshold in everyday use.
Example 2. Microphone preamp. A weak microphone signal is boosted by a non-inverting op-amp stage before further processing, showing the amplifier role rather than the switching role.
Try this
Q1. As a comparator, when does the op-amp output go high? [1 mark]
- Cue. When the non-inverting (+) input voltage is greater than the inverting (-) input voltage.
Q2. An inverting amplifier has Rf = 47 kilohm and Rin = 4.7 kilohm. State its voltage gain. [2 marks]
- Cue. Gain = (magnitude 10, inverted).
Q3. What is the purpose of the reference voltage in a comparator sensing circuit? [2 marks]
- Cue. It sets the threshold (switching point) at which the output flips as the sensor voltage crosses it; making it adjustable lets the user set the trigger level.
Exam-style practice questions
Practice questions written in the style of CCEA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
CCEA 20206 marksExplain how an operational amplifier is used as a comparator in a temperature-warning circuit, including the role of the reference voltage.Show worked answer →
An op-amp comparator compares the voltages on its two inputs and drives its output to one extreme or the other depending on which is larger, because the op-amp has a very high open-loop gain. With no feedback, if the non-inverting (+) input is higher than the inverting (-) input the output goes high (near the positive supply); if it is lower the output goes low.
In a temperature-warning circuit, a thermistor potential divider feeds one input (its voltage changes with temperature), and a reference voltage (set by a fixed divider or a variable resistor) feeds the other. The reference sets the threshold: as the temperature rises and the sensor voltage crosses the reference, the comparator output flips, switching on a transistor that sounds an alarm or lights an LED.
The reference voltage therefore defines the switching point; making it adjustable (a potentiometer) lets the user set the trigger temperature. Markers reward the compare-two-inputs/high-or-low output behaviour, the sensor on one input and reference on the other, and the reference setting the threshold.
CCEA 20184 marksAn inverting amplifier uses a feedback resistor of 100 kilohm and an input resistor of 10 kilohm. Calculate the voltage gain, and state the output voltage for an input of 0.2 V (assume the supply allows it).Show worked answer →
For an inverting amplifier the voltage gain is set by the two resistors:
The magnitude of the gain is 10, and the minus sign shows the output is inverted (opposite polarity to the input).
For an input of 0.2 V:
So the output is -2.0 V (an inverted, ten-times-larger signal), provided the supply rails allow it. Markers want the formula, the gain of 10 (inverting), and the correct output of -2.0 V.
Related dot points
- The systems approach: input, process and output subsystems, block diagrams, signal flow and feedback.
A CCEA A-Level Technology and Design answer on the systems approach to electronics, modelling a circuit as input, process and output subsystems with block diagrams, signal flow, the system boundary and feedback.
- Input transducers (LDR, thermistor, switches) and the potential divider as a sensing subsystem.
A CCEA A-Level Technology and Design answer on input transducers such as the LDR, thermistor and switches, and how a potential divider converts a changing resistance into a changing voltage for the process subsystem to act on.
- The bipolar transistor and MOSFET as switches, base/gate biasing, the Darlington pair and switching inductive loads.
A CCEA A-Level Technology and Design answer on using a bipolar transistor or MOSFET as an electronic switch, base and gate biasing, current gain and the Darlington pair, and protecting against the back-e.m.f. of an inductive load with a flyback diode.
- Logic gates (AND, OR, NOT, NAND, NOR, EOR), truth tables, Boolean expressions and combinational logic for decision-making.
A CCEA A-Level Technology and Design answer on the function of AND, OR, NOT, NAND, NOR and EOR gates, their truth tables and Boolean expressions, and combining gates into decision-making combinational logic systems.
- Output transducers (LED, lamp, buzzer, motor, relay, solenoid), current-limiting resistors and driver/interface circuits.
A CCEA A-Level Technology and Design answer on output transducers such as LEDs, lamps, buzzers, motors, relays and solenoids, calculating the LED current-limiting resistor, and using transistor and relay driver circuits to interface high-power loads to logic.
Sources & how we know this
- CCEA GCE Technology and Design specification — CCEA (2016)