Program resistance in a bridge circuit

Sensors such as strain gages, RTDs (resistance temperature detectors), and thermistors produce a resistance that’s proportional to force or temperature. If you measure a sensor’s resistance, you can calculate the physical parameter. Circuits such as resistance bridges can help you measure the unknown resistance.

Figure 1 shows a typical bridge circuit where RT is the unknown resistance. By substituting a programmable amplifier for REQ, you can balance the bridge. Resistance REQ can force VBRIDGE to 0 V, from which you can calculate RT and convert its value to units of force or temperature.

By measuring VBRIDGE and adjusting REQ, you can balance a bridge circuit and calculate RT.
Figure 1. By measuring VBRIDGE and adjusting REQ, you can
balance a bridge circuit and calculate RT.

The circuit in Figure 2a is a programmable amplifier whose output voltage is proportional to the digital input code of the DAC (digital-to-analog converter). The DAC and amplifier A1 form a programmable inverting amplifier. The circuit actually functions as a divider because its gain, or transfer function, is less than 1. The difference between voltages VIN and VOUT forces a current through resistor R. You can use that value to calculate REQ in the bridge circuit. Figure 2b shows the equivalent circuit for the programmable amplifier.

a) Programming the DAC's output voltage changes REQ, which can balance a bridge circuit. b) Equivalent circuit.
Figure 2. a) Programming the DAC’s output voltage changes REQ, which can balance a bridge circuit. b) Equivalent circuit.

Using a microcontroller or a PC, you can adjust REQ by programming the DAC’s output voltage and then measuring the voltage across the bridge and adjusting REQ until the bridge comes into balance. Because A1 is an inverting amplifier, the circuit’s gain is

where the D terms represent the values of the DAC’s bits. If you use a 12-bit DAC, then N = 12.

To calculate REQ, you need to know the current in the circuit. If you assume that buffer amplifier A2 has infinite input impedance and zero bias current, then you can calculate IIN, which is

and

To test this circuit, simply connect a variable DC voltage source to VIN and measure the effective resistance with an ohmmeter. Table 1 shows the expected and actual resistance and the calculated error for the circuit with a 12-bit DAC.

Table 1. Output resistance vs. input code (R = 10 k, N = 12)
Decimal Code Hex Code Expected REQ
(Ω)
Actual REQ
(Ω)
Error (%)
0000 0000 10000.00 10000.02 0.02
0001 0001 9997.56 9997.56 0.00
0002 0002 9995.12 9995.16 0.04
0004 0004 9990.24 9990.28 0.04
0008 0008 9980.51 9980.54 0.03
0016 0010 9961.09 9961.12 0.03
0032 0020 9922.48 9922.46 –0.02
0064 0040 9846.15 9846.16 0.01
0128 0080 9696.97 9696.98 0.01
0256 0100 9411.76 9411.76 0.00
0512 0200 8888.89 8888.90 0.01
1023 03FF 8001.56 8001.58 0.02
1024 0400 8000.00 8000.01 0.01
2048 0800 6666.67 6666.68 0.01
4095 0FFF 5000.61 5000.60 –0.01

Figure 3 contains the schematic of a circuit that uses a comparator across the bridge. You can connect the comparator’s digital output to a microcontroller or PC that then can adjust the DAC’s output voltage. You can calculate REQ and then calculate RT, from which you can calculate strain or temperature based in the resistance curve of your sensor.

This schematic of a circuit uses a comparator across the bridge.
Figure 3. This schematic of a circuit uses a comparator across the bridge.

Using the circuit in Figure 1, you can generate digitally controlled resistor values with just one precision component, resistor R. If you need to increase the gain of the circuit, you can replace voltage-follower A2 with a noninverting amplifier configuration.

EDN