Improving A Simple 3-Wire Level Sensor Assembly By Using The RedRock® RR132 TMR Digital Switch

Background

Level sensors are traditionally produced using a reed switch ladder. As a floating magnet sweeps past a series of reed switches, the sequential closing of each switch shorts out a chain of resistors, producing a varying resistance that can be converted to a varying voltage corresponding to the fluid level. Though widely used, there are several disadvantages to such a scheme. First, reed switches are relatively large, limiting the resolution of a reed-based level sensor to about 15mm when using 5mm molded reed switches. Second, reed switches are prone to multiple closures as a magnet passes by, complicating the algorithms needed to decode the switch closures. Third, reed switches are mechanical devices that have a limited lifetime before the contacts fail. It is therefore desirable to provide a solid state solution that has higher spatial resolution and reliability.

Fig. 1 Level Sensor Demonstration Model

Using the RedRock™ RR132 to Improve the Level Sensor Design

To provide a better level sensor design, a prototype level sensor was fabricated using RedRock RR132 TMR digital switches. TheRR132 is an integrated digital magnetic switch based on Tunneling MagnetoResistance (TMR) technology, with integrated CMOS circuitry and an open-drain MOSFET switch.

Close spacing of the ten sensors results in a resolution of approximately 4mm, though this could be reduced further in future designs. Furthermore, with correct selection of the magnet, the response pattern of the sensors results in only one sensor operating at a time, simplifying the task of decoding the output from the resistor chain. Production versions would be built with surface-mount resistors, allowing a ring magnet to slide up and down the assembly. The circuit schematic for the sensor assembly is shown in Figure 2.

Fig. 2 Level sensor circuit schematic

There are ten individual RR132 sensors whose open drain MOSFETs are sequentially shorted to ground through a chain of 470 ohm resistors as a magnet sweeps by each sensor in turn. Setting VSYS to 3.0V results in the following values for VOUT a seach switch is successively turned on:

Vout Switch No
0.2810 1
1.6094 2
2.0625 3
2.3125 4
2.4513 5
2.5469 6
2.6094 7
2.6719 8
2.7188 9
2.7344 10
Fig. 3a Sensor assembly VOUT vs. switch closed

Fig. 3b Graph of data on the left

Since the curve can be fitted very accurately by a function of the form:

Switch Number = 1/(c0 + c1.VOUT)

the number of the switch that is closed (and therefore the level) can be predicted from the curve fit equation by inserting the value of VOUT. The results are shown in Figure 4. After rounding to one significant figure, there is an exact one-to-one correspondence between the known and the predicted closed switch numbers.

Vout Switch Closed
(actual)
Switch No. Predicted Switch No. Predicted
(Rounded to 1 decimal point)
0.2810 1 1.0501 1.0
1.6094 2 2.0322 2.0
2.0625 3 2.9842 3.0
2.3125 4 4.0244 4.0
2.4513 5 4.9900 5.0
2.5469 6 5.9776 6.0
2.6094 7 6.8663 7.0
2.6719 8 8.0654 8.0
2.7188 9 9.2808 9.0
2.7344 10 9.7719 10.0

Note that, because of the significant ON resistance of the MOSFET switches, the values for VOUT vs. switch number deviate slightly from what values would be expected if RON = 0 ohms. For example, VOUT with switch #1 closed was measured at 0.2810V corresponding to RON = 50 ohms. (The theoretical value is VOUT = zero V for RON = 0 ohms.) The offset, which is due to finite values for RON, does not affect the utility or accuracy of the measurements, since the curve fitting compensates for finite RON.

Conclusions

1. A prototype method has been developed to sense level or distance using a chain of RR132 sensors.

2. With VSYS and VDD connected to the same source, this is a three wire solution (VSYS/VDD, ground and VOUT)

icon
CK Assoc
CK Associates is a technical sales organization that is a privately held California corporation. CK Associates consists of 15 outside and 4 inside salespeople. Our focus has been to build a synergistic line card, to support the customers in our territories.