GopalKrishna Advanced Rural Research Foundation

GARRF Virtual Engineering & Electronics Laboratory

KALAM ZERO RESEARCH FUNDING LAB

EXPERIMENT 13 OP-AMP COMPARATOR VIRTUAL LAB

πŸ”¬ Experiment 13 β€” Op-Amp as a Comparator

In this experiment, an operational amplifier is used as a voltage comparator. Instead of operating in its linear amplification region, the op-amp compares an input voltage with a reference voltage and produces a high or low output.

🎯 Experiment Objectives
  • Understand the principle of voltage comparison.
  • Understand the operation of an op-amp comparator.
  • Study the effect of changing the reference voltage.
  • Observe HIGH and LOW output states.
  • Understand threshold detection.
  • Observe comparator switching behavior.
  • Relate analog voltage levels to digital-like output states.
πŸ‘¨β€πŸŽ“ Think Before You Start
  • What happens when Vin is greater than Vref?
  • What happens when Vin is smaller than Vref?
  • Why does the output suddenly switch instead of being amplified linearly?
  • Where can comparator circuits be used in real systems?

πŸ“š 1. Theory

What is a Comparator?

A comparator compares two voltages and produces an output corresponding to which voltage is larger.

For the configuration used in this experiment, the input voltage is applied to the non-inverting terminal and the reference voltage is applied to the inverting terminal.

If Vin > Vref β†’ Vout β‰ˆ HIGH
If Vin < Vref β†’ Vout β‰ˆ LOW

Threshold Voltage

The reference voltage acts as the switching threshold. When the input crosses this threshold, the output changes state.

Comparator Applications

🧩 2. Virtual Experiment Controls

🟒 Comparator ready. Move Vin across the reference voltage.

πŸ”Œ 3. Virtual Comparator Circuit

πŸ“Š 4. Live Measurements

Input Voltage 5.00 V
Reference Voltage 5.00 V
Voltage Difference 0.00 V
Output Voltage 0.00 V
Output State LOW
Threshold 5.00 V

πŸ“ˆ 5. Comparator Switching Characteristic

The graph shows how the comparator output changes when the input voltage crosses the reference voltage.

🌊 6. Input and Output Waveforms

The comparator converts a continuously varying input into a two-level output signal.

πŸ”¬ 7. Engineering Analysis

πŸ“ 8. Student Observation Table

Trial Vin Vref Vin βˆ’ Vref Output State

πŸŽ“ 9. Experiment Conclusion

The operational amplifier can be used as a voltage comparator. The input voltage is continuously compared with a reference voltage. When the input voltage is greater than the reference voltage, the comparator output switches HIGH. When the input voltage is lower than the reference voltage, the comparator output switches LOW. Therefore, the comparator provides an important bridge between analog sensing and digital decision-making.

❓ 10. Student Quiz

Q1. What is the primary function of a comparator?
Q2. In this experiment, the output becomes HIGH when:
Q3. What determines the switching threshold?
Q4. A comparator can be used for:
Q5. A comparator can help connect:

πŸ€– CHITTI

GARRF Robotics & Engineering AI Mentor

Use CHITTI to explore comparator circuits, threshold detection, electronics and engineering applications.

πŸ’‘ Try asking:

β€œWhat is an op-amp comparator?”

β€œExplain threshold voltage.”

β€œWhat happens when Vin crosses Vref?”

β€œHow is a comparator different from an amplifier?”

β€œGive me real-world applications of comparators.”

πŸ‘¨β€πŸŽ“ 11. How to Perform Experiment 13

  1. Observe the virtual comparator circuit.
  2. Set Vref to approximately 5 V.
  3. Set Vin below Vref.
  4. Observe the LOW output state.
  5. Gradually increase Vin.
  6. Watch the output switch when Vin crosses Vref.
  7. Record the switching point.
  8. Change Vref.
  9. Repeat the experiment.
  10. Compare the measured threshold with the selected reference voltage.
⭐ Engineering Challenge

Set the reference voltage to 7 V. Then determine the smallest input voltage that causes the comparator to change from LOW to HIGH. Repeat the experiment with a reference voltage of 3 V.

🌍 12. Real-World Engineering Applications

⚠️ Real Laboratory Safety

Important:

This is a virtual experiment. In a physical laboratory, verify the op-amp pin configuration, power-supply polarity and voltage limits before energizing the circuit. Never connect experimental circuits directly to mains voltage.