![]() |
|
|
|
|
|
Datasheets : Comparator - Process UnitWhat does it do?
How does it operate?
The comparator circuit uses an operational amplifier, or op amp, to amplify the input signal relative to the reference signal thus forcing the output signal to be either high or low. Operational amplifiers have two inputs, an inverting input ('-') and a non-inverting input ('+'). A potentiometer or potential divider connected to the inverting input provides control over the reference signal voltage. There is a wide range of operational amplifiers available. It is important to select one that provides a clear high and low output voltage and can work from a single power supply. The LM324 is inexpensive, contains four operational amplifiers and can work from a d.c. power supply with a voltage anywhere between 3 and 32V. It can give and output current of up to 20mA, and so can drive some low current output devices directly. Rather than using a potentiometer, the reference voltage can be provided by other analogue input sensors. For example, the light level at two places could be compared using a pair of light sensors, one to provide the input signal and the other to provide the reference signal. Possible applications
MakingIn the example PCB, the input signals goes to pin 3, and the output signal comes from pin 1. Any of the other three comparators in the IC could be used. Build and test the unit that will provide the input signal before building the comparator. Use a Dual In Line (DIL) socket for the IC. Before inserting the IC, connect the power supply and use a voltmeter to check that:
Insert the IC the right way round. TestingTurn the potentiometer to its mid-point. Make sure that the signal going out (on the green PCB track) changes from low to high when the input signal voltage increases above the threshold voltage. Fault findingIf there is a fault, check that:
If there is a fault, check the tracks and solder joints. Alternatives
Web links
|