Comparator Behaviour

A comparator compares two input voltages. These are usually a reference voltage and a signal from a sensor. The output switches state when the the signal input crosses the reference voltage.

The comparator relies on the very high open loop gain of the op' amp'.
For a real-life op' amp' this gain will be between 105 and 107.
This means that a potential difference between V1 and V2 of only a few microvolts is sufficient to saturate the op' amp'.


Comparator Example

The task is to have an indicator light come on when the light level drops below some chosen value. The circuit could be scaled up to turn on room, car or street lights when it gets dark.


Here is a system diagram of the system.


If the op amp needs to drive a load, a driver circuit might be needed. Here is an example.

V1 is a reference voltage. This can be provided with a potential divider. (A potentiometer could be used to make the reference voltage adjuatable.) R3 and R4 form a potential divider.

V2 is the measured voltage from the light sensor. This is also a potential divider circuit. R5 and the LDR form a potential divider. As the light level increases, the LDR resistance decreases. This reduces V2. Once V2 is less than V1, the op amp output goes high.

 

Explanation


Tasks

Think of ways to improve this circuit.