DIGITAL LIQUID LEVEL SENSOR UTILIZING CROSS-POINT MAGNETORESISTIVE SENSOR ARRAY
20220120601 · 2022-04-21
Inventors
Cpc classification
G01R33/098
PHYSICS
International classification
Abstract
Disclosed is a digital liquid level sensor based on a magnetoresistive sensor cross-point array, including: a plurality of TMR magnetic sensor chips; a microcontroller, a row decoder, and a column decoder, wherein the microcontroller is electrically connected to the row decoder and the column decoder, the TMR magnetic sensor chips include a plurality of MTJ elements, diodes are connected between each row of MTJ elements and a row lead or a column lead, the TMR magnetic sensor chips are addressed by means of data decoded by the row decoder and the column decoder and on the basis of the equation Address=m+[M×(n−1)], Address representing an address value, and m representing the value of a current row, and the microcontroller is used for scanning addresses of the TMR magnetic sensor chips for the address of an MTJ element in the highest active state, converting the address value into a liquid level value in a linear proportional relationship therewith, and transmitting the liquid level value to an output interface; and a permanent magnet and a protective tube. The power consumption of a sensor element is greatly minimized by powering only one sensor chip element each time.
Claims
1. A digital liquid level sensor based on a magnetoresistive sensor cross-point array, comprising: a PCB board, a plurality of TMR magnetic sensor chips provided on the PCB board, and M row leads and N column leads provided on the PCB board, wherein M and N are integers greater than or equal to 1; a microcontroller, a row decoder, and a column decoder provided on the PCB board, wherein the microcontroller is electrically connected to the row decoder and the column decoder, the column decoder is connected to the TMR magnetic sensor chips through the column leads, the row decoder is connected to the TMR magnetic sensor chips through the row leads, each of the TMR magnetic sensor chips includes a plurality of MTJ elements, the MTJ elements are electrically connected into an MTJ element array of M rows and N columns, diodes are connected between each row of MTJ elements and a row lead or a column lead, and the TMR magnetic sensor chips are addressed by means of data decoded by the row decoder and the column decoder and on the basis of an equation Address=m+[M×(n−1)], in which Address represents an address value, m represents a value of a current row with a range of 1≤m≤M, and n represents a value of a current column with a range of 1≤n≤N; the microcontroller is used for scanning addresses of the TMR magnetic sensor chips for the address of an MTJ element in the highest active state, converting the address value to a liquid level value in a linear proportional relationship therewith, and transmitting the liquid level value to an output interface; a permanent magnet attached to a magnetic float that moves along a long axis direction of the PCB board and changes a magnetic field state of an MTJ element near the permanent magnet, the magnetic float floating with the surface of a liquid in which the liquid level sensor is immersed; and a protective tube enclosing the PCB board.
2. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 1, wherein one end of each row of MTJ elements on each of the TMR magnetic sensor chips is electrically connected to one or more column lead pads connected to a column lead, and the other end of each row of MTJ elements is electrically connected to a row lead pad.
3. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 2, wherein each row of MTJ elements includes an MTJ element or an MTJ element string containing at least two MTJ elements connected in series.
4. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 1, wherein the PCB board is a flexible PCB board.
5. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 1, wherein the TMR sensor chips are connected to the PCB board by means of lead bonding or chip flip and have a linear or bipolar response.
6. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 3, wherein the diodes are integrated on the TMR magnetic sensor chips and connected in series between each row of MTJ elements and the row lead pad provided in the row.
7. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 3, wherein the diodes are integrated on the TMR magnetic sensor chips and connected in series between each row of MTJ elements and the column lead pad electrically connected thereto.
8. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 2, further comprising a row selection MOSFET, a column selection MOSFET, and a comparison circuit, wherein the drain of the row selection MOSFET is electrically connected to a row lead, the gate of the row selection MOSFET is connected to an output end of the row decoder, and the source of the row selection MOSFET is connected in series to one end of first resistor R1 and a first input end of the comparison circuit, and an electrical node between the row selection MOSFET and first resistor R1 is output as output voltage V.sub.out, and the other end of first resistor R1 is connected to power voltage VCC; the column decoder is electrically connected to the gate of the column selection MOSFET; two second resistors R2 are connected in series between the power voltage VCC and the ground, an intermediate point of the two second resistors R2 outputs reference voltage V.sub.ref and is connected to a second input end of the comparison circuit, the output end of the comparison circuit is electrically connected to the microcontroller, the comparison circuit outputs a high level signal value when output voltage V.sub.out is smaller than reference voltage V.sub.ref, and outputs a low level signal value when output voltage V.sub.out is greater than or equal to reference voltage V.sub.ref, wherein the output level signal values represent active values of the MTJ elements in the TMR sensor chips being addressed.
9. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 1, further comprising a zero liquid level setting device which sets the liquid level to a zero fill level state when there is no MTJ element being activated and the magnetic float passes through the sensor at the bottommost position.
10. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 1, wherein a magnetic field generated by the permanent magnet activates the MTJ elements at a distance greater than an interval between two MTJ elements but less than an interval between three MTJ elements, and a fill level value is calculated by inserting a permanent magnet between two MTJ elements.
11. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 1, wherein the TMR sensor chips select a magnetoresistive sensor chip having two ports.
12. The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to claim 1, wherein the TMR sensor chips are packaged with CSP.
Description
DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the embodiments or in the description of the prior art will be briefly introduced below. It is obvious that the accompanying drawings in the description below are only some embodiments of the present invention, and for a person of ordinary skill in the art, other accompanying drawings can also be obtained according to these accompanying drawings without any inventive effort.
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
DETAILED DESCRIPTION
[0035] In order to make the objects, the technical solutions, and the advantages of the present invention clearer, below will describe the technical solutions in the embodiments of the present invention clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are some, rather than all, of the embodiments of the present invention. It will also be noted that in order to facilitate the description, only the parts related to the present invention are shown in the drawings rather than all of the structure.
[0036]
[0037] microcontroller 5 provided on PCB board 8, the microcontroller 5 being used for scanning the addresses of TMR magnetic sensor chips 1 for the address of an MTJ element in the highest active state, converting the address value to a liquid level value in a linear proportional relationship therewith, and transmitting the liquid level value to output interface 4,
[0038] wherein the MTJ element in the highest active state may be an MTJ element that is closest to the liquid level height among the activated MTJ elements. Row decoder 41 and column decoder 42 may be included in digital logic circuit 3. Output interface 4 of the digital sensor may be an I/O interface in the form of an IC chip or interface board.
[0039] Referring to
[0040] Referring to
[0041] PCB board 8 is a flexible PCB board. The strip PCB board 8 is arranged in protective tube 31. Meanwhile, permanent magnet 10 is attached to magnetic float 11, and magnetic float 11 floats with the surface of the liquid in which the liquid level sensor is immersed; and permanent magnet 10 and magnetic float 11 are also arranged outside of protective tube 31. Permanent magnet 10 moves along the long axis direction of PCB board 8 and changes the magnetic field state of a TMR magnetic sensor chip near the permanent magnet, and the permanent magnet also floats up and down relative to the surface of the liquid.
[0042] The spacing distance of the MTJ elements in TMR magnetoresistive sensor chips 1 along the long axis direction of the strip PCB board and the size of TMR magnetoresistive sensor chips 1 and the size of the floating permanent magnet 10 determine the accuracy of liquid level measurement. Microcontroller 5 and other digital logic circuits having an I/O interface are provided at the top of the strip PCB board. These digital logic circuits, such as a row decoder and a column decoder, may be programmed on Complex Programmable Logic Device (CPLD) IC 6 shown in
[0043] Microcontroller 5 provides an address input to the leads selected by the row decoder and the column decoder, and the output of the row decoder and the column decoder is used to drive a specific MTJ element to activate the specific MTJ element. The state of the activated TMR magnetic sensor chip will be recorded by microcontroller 5, and the activated MTJ element is recorded by microcontroller 5.
[0044]
[0045]
[0046] The PCB board of the present invention uses the Chips on Board (COB) or Chip Scale Package (CSP) technology. The present invention takes the COB technology as an example, in which the COB pad used by the TMR sensor chips has a column lead pad and a plurality of row lead pads connected to the column lead pad. The number of COB pads corresponds to the number of column elements. The MTJ elements are provided on TMR magnetic sensor chips 1, and the pads are to accommodate a plurality of MTJ elements. The pads used in the TMR magnetic sensor chips have a column lead pad and M row lead pads for designing an M*N array of MTJ elements. The plurality of TMR magnetic sensor chips are linearly arranged along the long axis direction of the PCB board, and the plurality of MTJ elements included therein are connected in a cross-point structure. The number of TMR magnetic sensor chips corresponds to the number of columns of MTJ elements.
[0047] Referring to
[0048]
[0049]
[0050] Alternatively, each row of MTJ elements includes an MTJ element or an MTJ element string containing at least two MTJ elements connected in series.
[0051] Alternatively, the TMR sensor chips are connected to the PCB board by means of lead bonding or chip flip, and have a linear or bipolar response.
[0052]
[0053] Continuing with
[0054]
[0055]
TABLE-US-00001 TABLE 1 Address Value Current row + total number Column address selection Row address selection of row's * Fill line 3, 4, 5 line 12, 11, 10 (current Level n n + 1 n + 2 Column m m + 1 m + 2 Row column − 1) % 0 0 0 X 0 0 0 X 0 0 1 0 0 1 1 0 0 1 1 11 1 0 0 1 0 1 0 2 2 22 1 0 0 1 0 0 1 3 3 33 0 1 0 2 1 0 0 1 4 44 0 1 0 2 0 1 0 2 5 56 0 1 0 2 0 0 1 3 6 67 0 0 1 3 1 0 0 1 7 78 0 0 1 3 0 1 0 2 8 89 0 0 1 3 0 0 1 3 9 100
[0056] The sequential address values in Table 1 are calculated using the sum of the current total number of rows and the total number of rows multiplied by the previous column number, represented as:
[0057] The TMR magnetic sensor chips are addressed by means of data decoded by the row decoder and the column decoder and on the basis of the equation Address=m+[M×(n−1)], wherein Address represents an address value, m represents the value of a current row with the range of 1≤m≤M, and n represents the value of a current column with the range of 1≤n≤N. The microcontroller scans addresses of TMR magnetic sensor chips 1 for the address of TMR magnetic sensor chip 1 in the highest active state, converts the address to a level value, and then transmits the level value to an output interface.
[0058] Then, the percentage of the liquid fill level corresponding to the address value may be calculated using the product of the address value divided by the product of the total number of rows and the total number of columns, which is represented as:
[0059] wherein Fill Level represents the fill level, Address value represents the address value, Total Columns represents the total number of columns, and Total Rows represents the total number of rows.
[0060] The value of the fill level is linearly proportional to the sequential address values. When there is no sensor element being in the active state and the magnetic float is passing through a magnetic sensor, the liquid level sensor enters the default state of zero fill level.
[0061] In an actual design, the sensor element activated by selecting N column leads and M row leads should occupy the bottommost position of the PCB board, and the sensor element activated by selecting (n+2) and (m+2) should be located in the topmost position of the PCB board. The above is the case where a 3×3 array of MTJ elements is provided, and different arrays may be provided as needed in the present invention.
[0062] The digital liquid level sensor based on a magnetoresistive sensor cross-point array according to an embodiment of the present invention also includes a zero liquid level setting device, which sets the liquid level to the zero fill level state when there is no MTJ element being activated and the magnetic float passes through the sensor at the bottommost position.
[0063] Alternatively, the TMR sensor chips select a magnetoresistive sensor chip having two ports.
[0064] Alternatively, the magnetic field generated by the permanent magnet activates the MTJ elements at a distance greater than an interval between two MTJ elements but less than an interval between three MTJ elements, and a fill level value is calculated by inserting a permanent magnet between two MTJ elements. The relationship between an activated sensor and a fill level may be specifically found in Table 2. In this case, when two adjacent MTJ elements are activated, the microcontroller may insert a magnet whose height is equal to the height of the equidistant point between the two MTJ elements. When only one MTJ element is activated, the liquid level is speculated to be at the position of the single activated MTJ element. Table 2 below shows the number of row sensor elements and column sensor elements activated based on 3×3 MTJ elements, and the conversion relationship between the address value of the interpolation method and the fill percentage value.
TABLE-US-00002 TABLE 2 Address Activated Column Activated Row Value Fill column sensor ACT Sum row sensor Act Sum 2*[RSA + Level n = 1 n = 2 n = 3 Cols (n) CSA m = 1 m = 2 m = 3 Rows (n) RSA (TotRows)*(CSA − 1) % 0 0 0 0 X 0 0 0 0 0 X N/A N/A N/A 1 0 0 1 1 1 1 0 0 1 1 — — — 1 0 0 1 1 1 1 0 0 1 1 1 0 0.00 1 0 0 1 1 1 1 1 0 2 3 1.5 1 6.25 1 0 0 1 1 1 0 1 0 1 2 2 2 12.50 1 0 0 1 1 1 0 1 1 2 5 2.5 3 18.75 1 0 0 1 1 1 0 0 1 1 3 3 4 25.00 1 1 0 2 3 2 1 0 1 2 4 0.5 5 31.25 0 1 0 1 2 2 1 0 0 1 1 1 6 37.50 0 1 0 1 2 2 1 1 0 2 3 1.5 7 43.75 0 1 0 1 2 2 0 1 0 1 2 2 8 50.00 0 1 0 1 2 2 0 1 1 2 5 2.5 9 56.25 0 1 0 1 2 2 0 0 1 1 3 3 10 62.50 0 1 1 2 5 3 1 0 1 2 4 0.5 11 68.75 0 0 1 1 3 3 1 0 0 1 1 1 12 75.00 0 0 1 1 3 3 1 1 0 2 3 1.5 13 81.25 0 0 1 1 3 3 0 1 0 1 2 2 14 87.50 0 0 1 1 3 3 0 1 1 2 5 2.5 15 93.75 0 0 1 1 3 3 0 0 1 1 3 3 16 100.00 0 0 1 1 3 3 0 0 1 1 3 — — —
[0065] For the above case shown in Table 2, when a first element is activated by a floating magnet, the fill value starts from zero where the permanent magnet happens to be adjacent to a first sensor, and vice versa, and reaches 100% liquid fill in the case of the highest MTJ element. The address value is considered as invalid for the case where the float magnet is lower than the bottommost sensor element or the topmost sensor element.
[0066] The address value of Table 2 may be represented as:
Address value=2*[RSA+(Total Rows)*(CSA−1),
[0067] wherein RSA may be calculated according to the following equation:
[0068] While CSA may be calculated according to the following equation:
[0069] wherein the term Sum (m) is defined as the sum of running row sensors, Sum (n) is defined as the sum of running column sensors, ACTCols is defined as the number of activated column sensors, ACTRows is defined as the number of activated row sensors, and Ceil □ represents round by one.
[0070] To convert the above address value to a fill level percentage, calculate according to the following equation:
[0071] wherein Fill Level represents the fill level, Address value represents the address value, Total Columns represents the total number of columns, and Total Rows represents the total number of rows.
[0072] Alternatively, the TMR sensor chips are packaged with CSP.
[0073] All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without inventive effort shall fall within the scope of protection of the present invention. Although the present invention has been schematically described in the preferred embodiments, those skilled in the art will understand that various changes and modifications may be made to the present invention as long as they do not exceed the scope of the claims of the present invention.