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.
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.
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:
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.
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)