![]() |
|
|
|
|
|
Datasheets : Difference Amplifier (or Subtractor) - Process UnitWhat does it do?
|
||||||||||
|
When the two input signals are the same, the output signal will remain steady at half the supply voltage. The output signal will go above or below this steady voltage when one input signal is greater than the other. The output signal is measured relative to a reference signal, which is fixed at half the power supply voltage. (An alternative is to use a pair of power supplies, +Vs and –Vs, and then the reference signal is 0V.) |
|
|
Click on the circuit diagram to download a Livewire file of the circuit that you can investigate and add to your own circuit. | |
|
The difference amplifier circuit uses an operational amplifier, or op amp, to subtract the input signals. Operational amplifiers have two inputs, an inverting input ('-') and a non-inverting input ('+').
The amount of amplification, or gain, can be varied by changing R1, R2, R3 and R4. If (as in the circuit diagram) all four resistors are equal then:
R1 must always be the same as R2 and R3 must always be the same as R4. But if all four resistors are not equal then:
| |
The LM324 is a suitable inexpensive IC, contains four operational amplifiers and can work from a d.c. power supply with a voltage anywhere between 3 and 32V.
|
|
|
The PCB shows the basic circuit. Three operational amplifiers in the IC are not used in this simple design; they can be applied in other subsystems.
Build and test the unit that will provide the input signals before building the difference amplifier.
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.
Make sure that the signal going out (on the green PCB track) is proportional to the difference between the voltages of the input signals.
If there is a fault, check that:
If there is a fault, check the tracks and solder joints.