Linear displacement measuring device and method

Non-contact linear displacement measurement through Hall sensors solves the problem of difficulty in underground measurement with small-sized instruments in traditional technology, achieves high accuracy and stability, and is suitable for linear displacement measurement in underground environments.

CN118705986APending Publication Date: 2024-09-27CHINA OILFIELD TECH SERVICES
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411016350.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In traditional well logging technology, after drilling, the drilling tool needs to be lifted and the instrument lowered, which affects efficiency, and small-sized instruments are difficult to use universal joints to connect linear potentiometers. Due to space and pressure-bearing structure limitations, effective linear displacement measurements cannot be performed downhole.

Method used

Hall sensors are used for non-contact linear displacement measurement. Through the design of sliders and magnets, combined with circuit boards and signal conditioning circuits, high-precision detection of magnet displacement is achieved. It is suitable for small-sized instruments and avoids space and bearing requirements. pressure limit.

Benefits of technology

It improves the stability and reliability of measurement and is suitable for various environments, especially in poor underground environments. It enhances the flexibility and accuracy of measurement and reduces the impact of environmental interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118705986A
    Figure CN118705986A
Patent Text Reader

Abstract

The invention provides a linear displacement measuring device and method, and relates to the technical field of underground measurement, the device comprises a sliding block, magnetic steel and a circuit board, the circuit board is provided with a group of Hall sensors, the group of Hall sensors are arranged at equal intervals in the preset direction of the circuit board, and the circuit board is fixed in an inner cavity of a steel pipe; the sliding block is arranged on the periphery of the steel pipe, and the sliding block is arranged to be allowed to move in the axial direction of the steel pipe; the magnetic steel is embedded in the sliding block, and in the moving process of the sliding block, the measurement data of each Hall sensor in the group of Hall sensors change along with the change of the position of the magnetic steel; the circuit board comprises a signal conditioning circuit, the signal conditioning circuit processes a group of measurement data to obtain a target displacement value, and the target displacement value is used for representing the displacement of the magnetic steel relative to the reference position. By implementing the technical scheme of the invention, different underground environments and measurement requirements can be better adapted, and the universality and practicability of the device are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of downhole measurement technology, and in particular to a linear displacement measurement device and method. Background Art

[0002] Modern logging operations are becoming increasingly difficult, and there is an increasing demand for different working methods. The traditional logging mode requires that the drill bit be taken out after drilling is completed, and then the instrument is lowered with a cable for logging, which has a great impact on drilling efficiency. Therefore, there is now through-hole logging technology. For small logging instruments that need to be logged through the drill bit, their diameter is usually small, generally around a few inches, and the instrument size requirements are also more stringent in some applications. The through-hole logging instrument is limited by the internal diameter of the drill bit, which limits the size of the downhole measuring instrument. The linear displacement measurement method in the related technology, such as the use of a universal joint to connect a linear potentiometer, cannot be used in small-sized instruments due to space and pressure-bearing structure limitations. Therefore, it is particularly important to provide a new linear displacement measurement method suitable for small-sized instruments. Summary of the invention

[0003] The purpose of the present application is to overcome the above-mentioned technical problems. The present application provides a linear displacement measurement device and method.

[0004] In the first aspect, the present application provides a linear displacement measuring device, which is located in an underground measuring instrument, and includes: a slider, a magnet, and a circuit board, wherein a group of Hall sensors are arranged on the circuit board, and the group of Hall sensors are arranged at equal intervals along a preset direction of the circuit board, wherein the circuit board is fixed in the inner cavity of a steel pipe, and the circuit board is placed along the axial direction of the steel pipe; the slider is arranged on the outer periphery of the steel pipe, and the slider is configured to allow movement along the axial direction of the steel pipe; the magnet is embedded in the slider, and during the movement of the slider, the measurement data of each Hall sensor in a group of Hall sensors changes with the change of the position of the magnet; the circuit board includes a signal conditioning circuit, and the signal conditioning circuit processes a group of measurement data to obtain a target displacement value, wherein a group of measurement data is measured by a group of Hall sensors during the movement of the slider, and the target displacement value is used to represent the displacement of the magnet relative to a reference position.

[0005] By adopting the above technical solution, the circuit board is placed along the axial direction of the steel pipe and fixed in the inner cavity of the steel pipe. A group of Hall sensors are arranged at equal intervals along the preset direction of the circuit board. When the slider moves along the axial direction of the steel pipe, the magnetic steel also moves, and the measurement data of a group of Hall sensors will also change with the movement of the magnetic steel position. Finally, the target displacement value of the magnetic steel can be determined according to a group of measurement data of a group of Hall sensors. In this way, in downhole measurement, the wellbore diameter can be indirectly calculated by the linear displacement of the magnetic steel. This technical solution uses a non-contact Hall sensor (magnetic sensor) to measure displacement, which is suitable for linear displacement measurement of small-sized instruments, avoiding the problem that the universal joint connected linear potentiometer in the related technology cannot be used in small-sized instruments due to space and pressure-bearing structure limitations. At the same time, the Hall sensor is used for measurement, which improves the stability and reliability of the measurement, and avoids the problem that the linear displacement measurement in the related technology usually uses resistive, capacitive, photoelectric and other sensors in terms of accuracy, stability, response speed and environmental adaptability. By using Hall sensors, the position changes of the magnets can be detected with high precision, thereby achieving accurate measurement of the displacement of the slider; due to the response of the Hall sensors to changes in the magnetic field, the device can provide stable measurement results in various environments, especially in harsh environments such as underground; the design of the slider and the magnet makes the device simple in structure and easy to install and maintain; the slider can move along the axial direction of the steel pipe, providing measurement flexibility and suitable for different measurement needs; since the circuit board is fixed to the inner cavity of the steel pipe and the magnet is embedded in the slider, the reliability of the entire measuring device is improved.

[0006] Optionally, a group of Hall sensors includes N Hall sensors, and the magnet is allowed to move (N-1)*S, where S represents the distance between two adjacent Hall sensors, and N is a positive integer greater than or equal to 2.

[0007] By adopting the above technical solution, by setting N Hall sensors, the range of the magnetic steel movement allowed is (N-1)*S, and the number of sensors can be set according to the needs of the actual application, which significantly expands the measurement range of the measuring device and enables it to adapt to a wider range of application scenarios. In addition, by increasing the number of sensors, the spacing S between each sensor can be smaller, thereby improving the resolution of the measurement, so that even small changes in displacement can be accurately captured.

[0008] Optionally, the magnetic steel is embedded on a side of the slider close to the circuit board.

[0009] In the second aspect of the present application, a linear displacement measurement method is also provided, which is applied to any of the above-mentioned linear displacement measurement devices, including: acquiring a set of measurement data, wherein the set of measurement data is measured by a set of Hall sensors during the movement of the slider; processing the set of measurement data to obtain a target displacement value, wherein the target displacement value is used to represent the displacement of the magnetic steel relative to a reference position.

[0010] By adopting the above technical solution, by obtaining the measurement data of the Hall sensor in real time during the movement of the slider, a rapid response to the displacement change can be achieved. By obtaining a set of measurement data generated by the Hall sensor during the movement of the slider and processing it, the displacement of the magnetic steel (i.e., the slider) relative to the reference position can be accurately quantified; in downhole measurement, the wellbore diameter can be indirectly calculated by the linear displacement of the magnetic steel. Due to the use of high-precision Hall sensors, the accuracy of displacement measurement can be significantly improved and the error can be reduced; this method effectively reduces the influence of environmental interference on the measurement results through non-contact measurement (no direct contact between the Hall sensor and the magnetic steel) and precise signal processing, and improves the reliability and stability of the measurement. The non-contact Hall sensor (magnetic sensor) is used to measure the displacement, which is suitable for the linear displacement measurement of small-sized instruments, avoiding the problem that the universal joint connected linear potentiometer in the related art cannot be used in small-sized instruments due to the limitation of space and pressure-bearing structure. At the same time, the Hall sensor is used for measurement, which improves the stability and reliability of the measurement, and avoids the problem that the linear displacement measurement in the related art usually uses resistive, capacitive, photoelectric and other sensors with certain limitations in accuracy, stability, response speed and environmental adaptability. By using Hall sensors, the position changes of the magnetic steel can be detected with high precision, thereby achieving accurate measurement of the displacement of the slider; due to the response of the Hall sensor to changes in the magnetic field, it can provide stable measurement results in various environments, especially in harsh environments such as underground.

[0011] Optionally, a group of measurement data is processed to obtain a target displacement value, including: determining target measurement data from a group of measurement data, wherein the target measurement data is measured by a target sensor, a group of Hall sensors includes a target sensor, and the target sensor is a Hall sensor in the group of Hall sensors that is closest to the magnet; obtaining a target distance value based on the target measurement data, wherein the target distance value is used to represent the distance between the magnet and the target sensor; and obtaining a target displacement value based on the position value of the target sensor and the target distance value.

[0012] By adopting the above technical scheme, by determining the target measurement data, that is, the data measured by the Hall sensor (target sensor) closest to the magnet, the position of the magnet can be more accurately reflected. By focusing on the target measurement data, the data processing process can be simplified and the efficiency of data processing can be improved. Using the data of the target sensor can reduce the errors that may be introduced by other sensors and enhance the reliability of the measurement results. By selecting the sensor closest to the magnet as the target sensor and determining the target displacement value based on its measurement data, the data screening and precision problems in the multi-sensor system are effectively solved, and the accuracy, efficiency and reliability of the displacement measurement are improved, while the flexibility and adaptability of the method are maintained.

[0013] Optionally, obtaining a target distance value according to target measurement data includes: obtaining a target waveform curve of the target sensor, wherein the target waveform curve is used to represent a curve of a voltage value output by the target sensor changing with a distance value between the magnet and the target sensor, and the target waveform curve is measured in advance; and determining a distance value in the target waveform curve corresponding to the target measurement data as the target distance value.

[0014] By adopting the above technical solution, by pre-measuring and obtaining the waveform curve of the target sensor, the voltage output of the sensor can be accurately converted into the distance value between the magnet and the sensor. The use of the pre-measured waveform curve can reduce the error caused by the nonlinear relationship between voltage and distance, improve the accuracy of measurement, and determine the distance value by directly looking up the waveform curve, simplifying the data processing process and improving the efficiency of data processing. In practical applications, when designing a sensor array, each sensor is made to work within the linear output range as much as possible. By pre-determining the waveform curve, the system can be easily calibrated and maintained to ensure the long-term stable operation of the measuring device.

[0015] Optionally, a group of measurement data is processed to obtain a target displacement value, including: determining a pair of measurement data in a group of measurement data, wherein the pair of measurement data includes the i-th measurement data and the i+1-th measurement data, the i-th measurement data is data measured by the i-th Hall sensor, the i+1-th measurement data is data measured by the i+1-th Hall sensor, a group of Hall sensors includes the i-th Hall sensor and the i+1-th Hall sensor, and the value of the i-th measurement data is positive, the value of the i+1-th measurement data is negative, and i is a positive integer greater than or equal to 1 and less than or equal to N-1; determining the measurement data with a smaller absolute value between the i-th measurement data and the i+1-th measurement data as the target measurement data; obtaining a target distance value according to the target measurement data, wherein the target distance value is used to represent the distance between the magnet and the target sensor; and obtaining a target displacement value according to the position value of the target sensor and the target distance value.

[0016] By adopting the above technical solution, by selecting a pair of adjacent measurement data, where the i-th data is positive and the i+1-th data is negative, the boundary where the magnetic steel transitions from the detection range of one sensor to another sensor can be accurately identified, and the one with a smaller absolute value in the pair of measurement data is selected as the target measurement data, which can more accurately reflect the relative position of the magnetic steel at the junction of the two sensors. This method can reduce the error caused by the unclear position of the magnetic steel at the boundary of the two sensors, thereby improving the overall measurement accuracy.

[0017] Optionally, before acquiring a set of measurement data, the method further includes: calibrating each Hall sensor in a set of Hall sensors.

[0018] By adopting the above technical solution, by calibrating each Hall sensor, the output of the sensor can be calibrated to ensure the accuracy of the measurement data. By calibrating the Hall sensor before obtaining the measurement data, the problems of individual differences and system errors of the sensor are effectively solved, and the accuracy and reliability of the measurement are improved. The calibration process enhances data consistency, simplifies data processing, and helps to extend the service life of the equipment. It is suitable for occasions requiring high-precision displacement measurement.

[0019] Optionally, calibrating each Hall sensor in a group of Hall sensors includes: for the jth Hall sensor, performing the following operations, wherein the jth Hall sensor is any Hall sensor in a group of Hall sensors: obtaining a set of initial measurement values ​​output by the jth Hall sensor by uniformly moving the magnetic steel in a calibration mode; obtaining a gain value and a zero offset value corresponding to the jth Hall sensor based on the set of initial measurement values, wherein the gain value and the zero offset value are used to correct the data measured by the jth Hall sensor.

[0020] By adopting the above technical solution, by evenly moving the magnetic steel in the scale mode, the output of each Hall sensor can be accurately measured to provide the necessary data for calibration; by calculating the gain value, the output of each sensor can be adjusted to keep it consistent with other sensors, improving the consistency of the measurement data; by determining the zero offset value, the initial output deviation of the sensor can be corrected to ensure that the measurement data starts from the correct starting point. By accurately calibrating each Hall sensor in the scale mode, including calculating the gain value and the zero offset value, the gain inconsistency and zero offset problems of the sensor are effectively solved, and the measurement accuracy and system stability are improved. This method helps to simplify subsequent data processing and improve the reliability of the measurement system. It is suitable for application scenarios that require high-precision and high-stability displacement measurement.

[0021] Optionally, a gain value and a zero offset value corresponding to the j-th Hall sensor are obtained according to a set of initial measurement values, including: determining a gain value gain=1 / (MAX-MIN) and a zero offset value offset=(MAX+MIN) / 2 corresponding to the j-th Hall sensor, wherein MAX is the maximum value in a set of initial measurement values, and MIN is the minimum value in a set of initial measurement values.

[0022] By adopting the above technical solution, the calibration process is simplified by using MAX and MIN values ​​to calculate the gain and zero offset, making the calibration operation faster and more convenient. The gain value calculated by this method can keep the sensor output linear between the maximum and minimum values, enhancing the linearity of the measurement results. Accurate gain and zero offset values ​​can correct the sensor output and improve the measurement accuracy. By using the maximum and minimum values ​​in a set of initial measurement values ​​to determine the gain and zero offset values ​​of the Hall sensor, the efficiency and accuracy problems in the calibration process are effectively solved. This method simplifies the calibration process, improves the calibration efficiency and measurement accuracy, and has strong adaptability and automation potential, and is suitable for occasions requiring high-precision displacement measurement.

[0023] Optionally, obtaining a target distance value according to target measurement data includes: correcting the target measurement data using a gain value and a zero offset value to obtain corrected measurement data; obtaining a target measurement distance according to the corrected measurement data; wherein correcting the target measurement data using a gain value and a zero offset value to obtain corrected measurement data includes: correcting the target measurement data according to the following formula to obtain corrected measurement data: V2=gain*(V1-offset), wherein V1 represents the target measurement data, and V2 represents the corrected measurement data corresponding to V1.

[0024] By adopting the above technical solution, the target measurement data can be corrected by using the gain value and the zero offset value, so that the system error in the original data can be eliminated. The corrected measurement data can more truly reflect the distance between the magnet and the sensor, and the accuracy of the data is improved. The correction process improves the measurement accuracy and makes the measurement result closer to the true value. The target measurement data (V1) is corrected using the gain value (gain) and the zero offset value (offset) corresponding to each Hall sensor to obtain more accurate corrected measurement data (V2), and then the target measurement distance is calculated based on the corrected data.

[0025] Optionally, determining the target measurement data from a set of measurement data includes: correcting a set of measurement data to obtain a corrected set of measurement data, and determining the target measurement data from the corrected set of measurement data.

[0026] By adopting the above technical solution, by correcting a set of measurement data, errors in the data can be eliminated or reduced, the accuracy of the data can be improved, and the corrected data is more reliable. Selecting such data as target measurement data can more accurately reflect the position change of the magnetic steel. By correcting the entire measurement data set before determining the target measurement data, the accuracy problem of the original data is effectively solved, and the reliability of the measurement data and the accuracy of the measurement results are improved.

[0027] In a third aspect of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, any of the above method steps is implemented.

[0028] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the above method steps is performed.

[0029] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The non-contact Hall sensor is used to measure displacement, which is suitable for linear displacement measurement of small-sized instruments. It avoids the problem that the universal joint connected linear potentiometer in the related technology cannot be used in small-sized instruments due to the limitation of space and pressure-bearing structure; 2. The device can flexibly adjust the measurement range and accuracy of the device to meet the measurement requirements in different scenarios, can better adapt to different downhole environments and measurement requirements, and improve the versatility and practicality of the device; 3. By calibrating the Hall sensor, the problems of individual differences and system errors of the sensor are effectively solved, and the accuracy and reliability of the measurement are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a structural schematic diagram of a linear displacement measuring device provided in an embodiment of the present application; Figure 2 is a flow chart of a linear displacement measurement method provided in an embodiment of the present application; Figure 3 This is an example diagram of an application scenario of a linear displacement measurement method provided in an embodiment of the present application; Figure 4 is a schematic diagram of an output waveform of a sensor provided in an embodiment of the present application; Figure 5 It is a schematic diagram of a measurement circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0032] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0033] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0034] The present application provides a linear displacement measuring device, which is located in a downhole measuring instrument, such as Figure 1 As shown, Figure 1 It is a structural schematic diagram of a linear displacement measuring device provided in an embodiment of the present application, the device comprising: a slider, a magnet, and a circuit board, wherein a group of Hall sensors are arranged on the circuit board, and the group of Hall sensors are arranged at equal intervals along a preset direction of the circuit board, wherein the circuit board is fixed in the inner cavity of a steel pipe, and the circuit board is placed along the axial direction of the steel pipe; the slider is arranged on the outer periphery of the steel pipe, and the slider is arranged to allow movement along the axial direction of the steel pipe; the magnet is embedded in the slider, and during the movement of the slider, the measurement data of each Hall sensor in a group of Hall sensors changes with the change of the position of the magnet; the circuit board comprises a signal conditioning circuit, and the signal conditioning circuit processes a group of measurement data to obtain a target displacement value, wherein a group of measurement data is measured by a group of Hall sensors during the movement of the slider, and the target displacement value is used to represent the displacement of the magnet relative to a reference position.

[0035] In the above embodiment, the circuit board is placed along the axial direction of the steel pipe and fixed in the inner cavity of the steel pipe. A group of Hall sensors are arranged at equal intervals along the preset direction of the circuit board. When the slider moves along the axial direction of the steel pipe, the magnetic steel (or magnet) also moves, and the measurement data of a group of Hall sensors will also change with the movement of the position of the magnetic steel. Finally, the target displacement value of the magnetic steel can be determined according to a group of measurement data of a group of Hall sensors. The number of a group of Hall sensors can be set as needed. In this way, in downhole measurement, the wellbore diameter can be indirectly calculated by the linear displacement of the magnetic steel. By arranging a group of Hall sensors at equal intervals on the circuit board and placing them along the axial direction of the steel pipe, combined with the magnetic steel embedded in the slider, when the slider moves along the axial direction of the steel pipe, the relative position of the magnetic steel and each Hall sensor changes, thereby causing the measurement data (such as magnetic field strength) output by each Hall sensor to change accordingly. This change can accurately reflect the displacement of the slider, and obtain a high-precision target displacement value through subsequent signal processing; the Hall sensor has the characteristics of non-contact measurement, that is, it does not need to be in direct contact with the object to be measured, so it can reduce the measurement error caused by wear, pollution, etc. At the same time, electromagnetic interference is common in underground environments, and Hall sensors have good adaptability to electromagnetic environments and can effectively reduce the impact of external electromagnetic interference on measurement results. This technical solution uses a non-contact Hall sensor (magnetic sensor) to measure displacement, which is suitable for linear displacement measurement of small-sized instruments. It avoids the problem that the universal joint connected linear potentiometer in the related technology cannot be used in small-sized instruments due to space and pressure-bearing structure limitations. At the same time, the use of Hall sensors for measurement improves the stability and reliability of the measurement, and avoids the problem that linear displacement measurement in related technologies usually uses resistive, capacitive, photoelectric and other sensors, which have certain limitations in accuracy, stability, response speed and environmental adaptability. By using the Hall sensor, the position change of the magnetic steel can be detected with high precision, so as to realize the accurate measurement of the displacement of the slider; due to the response of the Hall sensor to the change of the magnetic field, the device can provide stable measurement results in various environments, especially in poor environments such as underground; the design of the slider and the magnetic steel makes the device simple in structure and easy to install and maintain; the slider can move along the axial direction of the steel pipe, providing measurement flexibility and suitable for different measurement needs; because the circuit board is fixed to the inner cavity of the steel pipe and the magnetic steel is embedded in the slider, the reliability of the entire measuring device is improved. The device has a simple structural design and is easy to install and use in a small underground space. In addition, by adjusting the arrangement density of the Hall sensor and the processing algorithm of the signal conditioning circuit, it can flexibly adapt to measurement scenarios with different accuracy requirements; because the circuit board is fixed to the inner cavity of the steel pipe and the slider moves on the outer periphery of the steel pipe, this structure ensures the stability of the measuring device during long-term use and reduces the influence of mechanical vibration and other factors on the measurement accuracy.

[0036] In an optional embodiment, a group of Hall sensors includes N Hall sensors, and the magnet is allowed to move (N-1)*S, where S represents the distance between two adjacent Hall sensors, and N is a positive integer greater than or equal to 2.

[0037] In the above embodiment, by setting N Hall sensors, the range of movement of the magnetic steel is allowed to be (N-1)*S, and the number of sensors can be set according to the needs of the actual application, which significantly expands the measurement range of the measuring device and enables it to adapt to a wider range of application scenarios. In addition, by increasing the number of sensors, the spacing S between each sensor can be smaller, thereby improving the resolution of the measurement, so that even small changes in displacement can be accurately captured. By specifying the range of movement allowed by the magnetic steel as (N-1)*S, the measurement range of the device is clarified, so that the user or designer can select the appropriate N value and S value according to actual needs to meet specific measurement requirements; by increasing the number of Hall sensors N, the spacing S between adjacent sensors can be reduced, so that more measurement points can be obtained within the same total measurement range. This helps to improve the resolution and accuracy of the measurement, especially in situations where high-precision measurement is required. By adjusting the N value and the S value, the measurement range and accuracy of the device can be flexibly adjusted to meet the measurement requirements in different scenarios. Through this embodiment, the linear displacement measurement device can better adapt to different downhole environments and measurement requirements, and improve the versatility and practicality of the device.

[0038] In an optional embodiment, the magnetic steel is embedded on a side of the slider close to the circuit board.

[0039] In the above embodiment, placing the magnet on the side close to the circuit board can ensure that when the slider moves, the relative position change between the magnet and the Hall sensor is more direct and significant, which helps to enhance the Hall sensor's ability to perceive changes in the magnetic field, thereby improving the sensitivity of the measurement. The magnetic field will gradually decay as the distance increases during the propagation process. Placing the magnet close to the Hall sensor (i.e., the circuit board) can reduce the attenuation of the magnetic field during the propagation process, allowing the Hall sensor to receive a stronger magnetic field signal, thereby improving the accuracy and stability of the measurement. Due to the improved measurement sensitivity and reduced magnetic field attenuation, this design enables the linear displacement measurement device to more accurately sense and measure the displacement changes of the slider, thereby improving the measurement accuracy.

[0040] The present application also provides a linear displacement measurement method, which is applied to the aforementioned linear displacement measurement device, such as Figure 2 As shown, Figure 2 : is a flow chart of a linear displacement measurement method provided in an embodiment of the present application, the process includes: Step S201, obtaining a set of measurement data, wherein the set of measurement data is measured by a set of Hall sensors during the movement of the slider; Step S202, processing a set of measurement data to obtain a target displacement value, wherein the target displacement value is used to represent the displacement of the magnetic steel relative to the reference position.

[0041] Through the above steps, by obtaining the measurement data of the Hall sensor in real time during the movement of the slider, a rapid response to the displacement change can be achieved. By obtaining a set of measurement data generated by the Hall sensor during the movement of the slider and processing it, the displacement of the magnetic steel (i.e., the slider) relative to the reference position can be accurately quantified; in downhole measurement, the wellbore diameter can be indirectly calculated by the linear displacement of the magnetic steel. Due to the use of high-precision Hall sensors, the accuracy of displacement measurement can be significantly improved and the error can be reduced; this method effectively reduces the influence of environmental interference on the measurement results through non-contact measurement (no direct contact between the Hall sensor and the magnetic steel) and precise signal processing, and improves the reliability and stability of the measurement. The use of non-contact Hall sensors (magnetic sensors) for displacement measurement is suitable for linear displacement measurement of small-sized instruments, avoiding the problem that the universal joint connected linear potentiometer in the related art cannot be used in small-sized instruments due to the limitations of space and pressure-bearing structure. At the same time, the use of Hall sensors for measurement improves the stability and reliability of the measurement, and avoids the problem that the linear displacement measurement in the related art usually uses resistive, capacitive, photoelectric and other sensors with certain limitations in accuracy, stability, response speed and environmental adaptability. By using Hall sensors, the position change of the magnetic steel can be detected with high precision, thereby realizing accurate measurement of the displacement of the slider; due to the response of the Hall sensor to the change of the magnetic field, it can provide stable measurement results in various environments, especially in poor environments such as underground. By accurately acquiring and processing the measurement data of the Hall sensor, this method can output a high-precision target displacement value to meet the demand for accurate measurement of linear displacement. The data processing part is relatively common. For example, by processing the measurement data, noise and errors can be eliminated to obtain a more accurate target displacement value; this method realizes automated measurement, and the displacement value can be quickly obtained without human intervention, thereby improving measurement efficiency; due to the use of non-contact measurement and advanced signal processing technology, this method can adapt to various complex underground environments to ensure the accuracy and stability of the measurement; compared with traditional contact measurement methods, this method does not require complex mechanical structures and wearing parts, reducing maintenance and replacement costs.

[0042] In an optional embodiment, a group of measurement data is processed to obtain a target displacement value, including: determining target measurement data from a group of measurement data, wherein the target measurement data is measured by a target sensor, a group of Hall sensors includes a target sensor, and the target sensor is a Hall sensor in the group of Hall sensors that is closest to the magnetic steel; obtaining a target distance value based on the target measurement data, wherein the target distance value is used to represent the distance between the magnetic steel and the target sensor; and obtaining a target displacement value based on a position value of the target sensor and the target distance value.

[0043] In the above embodiment, by determining the target measurement data, that is, the data measured by the Hall sensor (target sensor) that is closest to the magnetic steel, the position of the magnetic steel can be more accurately reflected. By focusing on the target measurement data, the data processing process can be simplified and the efficiency of data processing can be improved. Using the data of the target sensor can reduce the errors that may be introduced by other sensors and enhance the reliability of the measurement results. Calculating the target displacement value based on the measurement data of the target sensor can reduce the measurement errors caused by magnetic field attenuation or interference of other distant sensors, thereby improving the measurement accuracy. By selecting data related to the target sensor for processing, the calculation process can be greatly simplified and the measurement efficiency can be improved. By selecting the sensor closest to the magnetic steel as the target sensor and determining the target displacement value based on its measurement data, the data screening and accuracy problems in the multi-sensor system are effectively solved, and the accuracy, efficiency and reliability of displacement measurement are improved, while maintaining the flexibility and adaptability of the method.

[0044] In an optional embodiment, a target distance value is obtained according to target measurement data, including: obtaining a target waveform curve of a target sensor, wherein the target waveform curve is used to represent a curve of a voltage value output by the target sensor changing with a distance value between the magnet and the target sensor, and the target waveform curve is measured in advance; and determining a distance value in the target waveform curve corresponding to the target measurement data as the target distance value.

[0045] In the above embodiment, by pre-measuring and obtaining the waveform curve of the target sensor, the voltage output of the sensor can be accurately converted into the distance value between the magnet and the sensor. By pre-determining the target waveform curve, an accurate mapping relationship between the voltage value and the distance value is established. This mapping relationship takes into account the nonlinear relationship between the output voltage of the Hall sensor and the magnet distance, so that the actual distance between the magnet and the target sensor can be more accurately reflected; using the pre-measured waveform curve can reduce the error caused by the nonlinear relationship between the voltage and the distance, improve the accuracy of the measurement, and directly find the waveform curve to determine the distance value, simplifying the data processing process and improving the efficiency of data processing; using the pre-determined target waveform curve for distance calculation reduces the complexity and time consumption in the calculation process, so that the system can respond to the position change of the magnet faster. In practical applications, when designing the sensor array, each sensor is made to work within the linear output range as much as possible; by pre-determining the waveform curve, the system calibration and maintenance can be conveniently performed to ensure the long-term stable operation of the measuring device. By introducing the concept of target waveform curve, technical problems such as accurate distance mapping, reducing calculation complexity, and improving system robustness are solved, and significant technical effects such as high-precision distance measurement, rapid response, enhanced environmental adaptability, and simplified system design are brought about.

[0046] In an optional embodiment, a group of measurement data is processed to obtain a target displacement value, including: determining a pair of measurement data in a group of measurement data, wherein the pair of measurement data includes the i-th measurement data and the i+1-th measurement data, the i-th measurement data is data measured by the i-th Hall sensor, the i+1-th measurement data is data measured by the i+1-th Hall sensor, a group of Hall sensors includes the i-th Hall sensor and the i+1-th Hall sensor, and the value of the i-th measurement data is positive, the value of the i+1-th measurement data is negative, and i is a positive integer greater than or equal to 1 and less than or equal to N-1; determining the measurement data with a smaller absolute value between the i-th measurement data and the i+1-th measurement data as the target measurement data; obtaining a target distance value according to the target measurement data, wherein the target distance value is used to represent the distance between the magnet and the target sensor; and obtaining a target displacement value according to the position value of the target sensor and the target distance value.

[0047] In the above embodiment, by selecting a pair of adjacent measurement data, in which the i-th data is positive and the i+1-th data is negative, the boundary where the magnetic steel transitions from the detection range of one sensor to another sensor can be accurately identified, and the one with a smaller absolute value in the pair of measurement data is selected as the target measurement data, which can more accurately reflect the relative position of the magnetic steel at the junction of the two sensors. This method can reduce the error caused by the unclear position of the magnetic steel at the boundary of the two sensors, thereby improving the overall measurement accuracy. A pair of measurement data is determined in a set of measurement data, and the pair of measurement data is measured by two adjacent Hall sensors (i.e., the i-th Hall sensor and the i+1-th Hall sensor). By finely processing a pair of measurement data (i.e., a positive value and a negative value of measurement data), the relative position between the magnetic steel and the sensor can be more accurately reflected, thereby improving the accuracy of displacement measurement; by determining a pair of specific measurement data in a set of measurement data, and selecting the one with a smaller absolute value in the pair of data as the target measurement data, the problem of identifying the position of the magnetic steel at the boundary of the sensor is effectively solved, and the accuracy and reliability of displacement measurement are improved. This method has good adaptability and versatility, and is suitable for a variety of displacement measurement scenarios.

[0048] In an optional embodiment, before acquiring a set of measurement data, the method further includes: calibrating each Hall sensor in a set of Hall sensors.

[0049] In the above embodiments, the Hall sensor may have individual differences during the manufacturing and use process, which may affect the accuracy of the measurement data. The uncalibrated sensor may not accurately reflect the actual distance between the magnet and the sensor, affecting the reliability of the measurement result. By calibrating each Hall sensor, the output of the sensor can be calibrated to ensure the accuracy of the measurement data. The calibration process can identify and eliminate the system error of the sensor, such as zero offset and sensitivity difference. The uniform calibration of all sensors can improve the consistency of data between different sensors. Accurate calibration can ensure that the measurement system can provide reliable measurement results under different conditions. Through calibration, the individual differences between each sensor can be understood and compensated, so that under the same measurement conditions, the output of all sensors can be as consistent as possible, thereby improving the accuracy and reliability of the entire measurement system; the calibrated sensor has a more consistent and stable output characteristic, which helps to enhance the stability and reliability of the entire measurement system and reduce the measurement error caused by the fluctuation of sensor performance; the data obtained during the calibration process (such as calibration curves, compensation parameters, etc.) can provide important references for subsequent data processing, simplify the data processing process, and improve data processing efficiency and accuracy. By calibrating the Hall sensor before obtaining the measurement data, the problems of individual sensor differences and systematic errors are effectively solved, and the accuracy and reliability of the measurement are improved; the calibration process enhances data consistency, simplifies data processing, and helps to extend the service life of the equipment. It is suitable for occasions that require high-precision displacement measurement.

[0050] In an optional embodiment, each Hall sensor in a group of Hall sensors is calibrated, including: for the jth Hall sensor, performing the following operations, wherein the jth Hall sensor is any Hall sensor in the group of Hall sensors: obtaining a set of initial measurement values ​​output by the jth Hall sensor by uniformly moving the magnetic steel in a calibration mode; obtaining a gain value and a zero offset value corresponding to the jth Hall sensor based on the set of initial measurement values, wherein the gain value and the zero offset value are used to correct the data measured by the jth Hall sensor.

[0051] In the above embodiment, by uniformly moving the magnetic steel in the scale mode, the output of each Hall sensor can be accurately measured to provide the necessary data for calibration; by calculating the gain value, the output of each sensor can be adjusted to keep it consistent with other sensors, thereby improving the consistency of the measurement data; by determining the zero offset value, the initial output deviation of the sensor can be corrected to ensure that the measurement data starts from the correct starting point. Due to the slight differences in its physical properties and manufacturing process, each Hall sensor will have a certain gain error and zero offset. These errors will directly affect the accuracy of the measurement results. Through the calibration process, the gain value and zero offset value of each sensor can be accurately measured and calculated, thereby eliminating these inherent errors. Due to the slight differences in its physical properties and manufacturing process, each Hall sensor will have a certain gain error and zero offset, which will directly affect the accuracy of the measurement results. Through the calibration process, the gain value and zero offset value of each sensor can be accurately measured and calculated, thereby eliminating these inherent errors. By accurately calibrating each Hall sensor in the scale mode, including calculating the gain value and zero offset value, the gain inconsistency and zero offset problems of the sensor are effectively solved, and the measurement accuracy and system stability are improved. This method helps to simplify subsequent data processing and improve the reliability of the measurement system. It is suitable for application scenarios that require high-precision and high-stability displacement measurement. The gain value and zero offset value obtained during the calibration process can be used to correct the sensor measurement data in real time, thereby reducing measurement errors and improving measurement accuracy.

[0052] In an optional embodiment, a gain value and a zero offset value corresponding to the j-th Hall sensor are obtained according to a set of initial measurement values, including: determining a gain value gain=1 / (MAX-MIN) and a zero offset value offset=(MAX+MIN) / 2 corresponding to the j-th Hall sensor, wherein MAX is the maximum value in a set of initial measurement values, and MIN is the minimum value in a set of initial measurement values.

[0053] In the above embodiment, by using MAX and MIN values ​​to calculate the gain and zero offset, the calibration process is simplified, making the calibration operation faster and more convenient. The gain value calculated by this method can make the sensor output maintain a linear relationship between the maximum value and the minimum value, enhance the linearity of the measurement result, and the accurate gain and zero offset values ​​can correct the output of the sensor and improve the measurement accuracy; by using the maximum and minimum values ​​in a set of initial measurement values ​​to determine the gain and zero offset values ​​of the Hall sensor, the efficiency and accuracy problems in the calibration process are effectively solved. This method simplifies the calibration process, improves the calibration efficiency and measurement accuracy, and has strong adaptability and automation potential, and is suitable for occasions requiring high-precision displacement measurement. The calculated gain value and zero offset value can be directly used to correct the sensor measurement data in real time, thereby further improving the measurement accuracy and stability; by calibrating and correcting the gain value and zero offset value of each sensor, the performance of the entire measurement system can be significantly improved, including measurement accuracy, stability and reliability. This is particularly important for application scenarios that require high-precision measurement. It should be noted that the gain value gain and zero offset value offset corresponding to different Hall sensors may be different.

[0054] In an optional embodiment, obtaining a target distance value according to target measurement data includes: correcting the target measurement data using a gain value and a zero offset value to obtain corrected measurement data; obtaining a target measurement distance according to the corrected measurement data; wherein correcting the target measurement data using a gain value and a zero offset value to obtain corrected measurement data includes: correcting the target measurement data according to the following formula to obtain corrected measurement data: V2=gain*(V1-offset), wherein V1 represents the target measurement data, and V2 represents the corrected measurement data corresponding to V1.

[0055] In the above embodiment, by using the gain value and the zero offset value to correct the target measurement data, the system error in the original data can be eliminated. The corrected measurement data can more truly reflect the distance between the magnet and the sensor, and improve the accuracy of the data. The gain value gain and zero offset value offset corresponding to different Hall sensors may be different, so the corresponding correction formula may also be different. The correction process improves the measurement accuracy and makes the measurement result closer to the true value. The target measurement data (V1) is corrected using the gain value (gain) and zero offset value (offset) corresponding to each Hall sensor to obtain more accurate corrected measurement data (V2), and then the target measurement distance is calculated based on the corrected data.

[0056] In an optional embodiment, determining the target measurement data from a set of measurement data includes: correcting a set of measurement data to obtain a corrected set of measurement data, and determining the target measurement data from the corrected set of measurement data.

[0057] In the above embodiment, by correcting a set of measurement data, the errors in the data can be eliminated or reduced, the accuracy of the data can be improved, and the corrected data is more reliable. Selecting such data as the target measurement data can more accurately reflect the position change of the magnetic steel. By correcting the entire measurement data set before determining the target measurement data, the accuracy problem of the original data is effectively solved, and the reliability of the measurement data and the accuracy of the measurement results are improved. In the actual measurement process, due to various reasons such as sensor characteristics and environmental factors, the measurement data often contains certain errors. By correcting the entire measurement data set, these errors can be uniformly eliminated or reduced, making the entire data set more accurate and reliable.

[0058] It should be noted that the above-described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application will be described in detail below in conjunction with specific embodiments.

[0059] For linear displacement measurement of small-sized instruments, the traditional universal joint-connected linear potentiometer cannot be used due to space limitations and pressure-bearing structure restrictions.

[0060] Based on this demand, the present application proposes a method for displacement measurement based on a non-contact magnetic sensor.

[0061] The structure of the wellbore plate is very simple, consisting of 14 Hall sensors. Seven sensors are grouped together to form two arrays, and the wellbore is measured by judging the position of the magnet (or magnetic steel) in the array. Optionally, it can also be composed of only 7 (or other numbers) of sensors.

[0062] Figure 3 This is an example diagram of an application scenario of a linear displacement measurement method provided by an embodiment of the present application. The linear displacement measurement method can be applied to downhole measuring instruments. In the figure, a circuit board is located in the inner cavity of a main body. A group of sensors (corresponding to the aforementioned Hall sensors) are arranged on the circuit board in a preset direction. A slider is arranged on the outer periphery of the steel pipe part of the main body. A magnetic steel (or magnet) is embedded in the slider. The slider can slide along the axial direction of the main body. A leaf spring is also provided between the slider and the main body. One end of the leaf spring is connected to the main body and does not move. Figure 3 As shown, the other end of the leaf spring is connected to the sliding connection and moves with the movement of the slider. In the well diameter measurement, the radial (well diameter) size changes, and the leaf spring will be compressed or continue to push outward, driving the slider to axially displace. By measuring this displacement, the well diameter can be derived according to the relevant formula.

[0063] The implementation method of linear displacement measurement is described in detail below.

[0064] Displacement measurement can be achieved using one or more Hall sensors, a magnet and a signal conditioning circuit. Take a sensor array consisting of 7 Hall sensors as an example. The spacing between sensors is S, and the magnet moves 6 times S. When the magnet moves along the axis, the output waveforms of the 7 sensors are as follows: Figure 4 As shown, Figure 4 The horizontal axis represents the distance, and the vertical axis represents the voltage signal. The area between the maximum and minimum values ​​of each sensor output is available.

[0065] The distance between the sensors depends on the length of the magnet and the required system accuracy. In principle, once the length of the magnet and the distance between the magnet and the sensor array are determined, the linear output range of each sensor is also determined. The distance between the sensors should be half of their linear range. Because the output of the sensor is a sine function, the linear output range of each sensor is also related to the required system accuracy. The closer the sensors are, the higher the accuracy. After the distance between the sensors is determined, the number of sensors required is determined by the measured length. The more sensors there are, the greater the displacement measured. The magnet must provide a saturated magnetic field for the three sensors around it at the same time. The directions of the magnetic lines of force can be inconsistent, but the sum of the magnetic field strength in the XY plane should be greater than 80 Gauss. The geometric dimensions of the magnet are very important in system design. The size of the magnet is determined by the required measurement range and accuracy. The available linear range of each sensor is determined by the length of the magnet along the moving direction. If the magnet is long, the available linear range of the sensor increases, but the sensitivity decreases; if the magnet is short, the available linear range decreases, but the sensitivity increases.

[0066] Calculation of displacement. First, each sensor must be calibrated, the offset voltage of the bridge must be compensated, the peak-to-peak value of the output voltage of each sensor must be measured and multiplied by a scaling factor to make their peak-to-peak ranges the same. After calibration, measurements can be made. When calculating displacement, the position of the magnet must be determined first. When the magnet is at a certain position, read the output values ​​of the 7 sensors and compare the outputs of the two adjacent sensors. If the output of the i-th sensor is positive and the output of the i+1-th is negative, then the magnet is between the i-th and i+1-th sensors. The absolute value of the output value of the two sensors is smaller, and the magnet is within the measurement range of that sensor. The value measured by this sensor plus the value of its position gives the displacement value to be measured.

[0067] Measuring circuit such as Figure 5 As shown, Figure 5U1 is a Hall sensor, U2 is an operational amplifier (differential amplifier), and U3 is an operational amplifier. In the figure, U3 is a voltage follower, and CH14 is the output analog signal, which will then be connected to the ADC module ( Figure 5 The converted digital signal is then processed to obtain linear displacement data. Figure 5 It also includes peripheral circuits composed of C1-C5, R1-R3, etc.

[0068] Zero point offset and channel consistency compensation are achieved by software.

[0069] Specifically, after entering the scale mode, the maximum and minimum values ​​of each sensor, such as MAX and MIN, are collected through the uniform movement of the magnet; in the actual calibration, the magnet is moved on a set of special racks, and the magnet can go to the top of both sides, and the highest point and the lowest point are calibrated as +1 and -1, and the outputs of all sensors are normalized, that is, each sensor is calibrated to ensure the accuracy and consistency of the measurement data.

[0070] Sensor gain = 2 / (MAX–MIN), normalize the voltage signals measured by all sensors to between -1 and 1, and sensor offset = (MAX + MIN) / 2. Calibrate each sensor to ensure the consistency of all sensors.

[0071] After calibrating the sensor, the measured value can be corrected. For example, the corrected sensor value is ValueCal and the original value is ValueADC, then: ValueCal = gain*(ValueADC–offset), VulueCal is the result of the calibration. The method described above can be used to find out where the specific magnet is near the sensor and calculate the specific displacement value.

[0072] In the embodiment of the present application, when calculating the displacement, the position of the magnetic steel must be determined first. When the magnetic steel is at a certain position, the output values ​​of the 7 sensors are read out, and the outputs of the two adjacent sensors are compared. If the output of the i-th sensor is positive and the output of the i+1-th sensor is negative, then the magnetic steel is between the i-th and i+1-th sensors. The absolute value of the output value of the two sensors is smaller, and the magnetic steel is within the measurement range of that sensor. The value measured by this sensor plus the position value at which it is located will give the displacement value to be measured.

[0073] Through the embodiments of the present application, displacement measurement can be achieved using one or more Hall sensors, a magnet and a set of signal conditioning circuits. This method has accurate measurement and simple structure.

[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0075] The present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed, any one of the method steps described above is executed.

[0076] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0077] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0078] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0079] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0080] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0081] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0082] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0083] This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field not recorded in the present disclosure.

Claims

1. A linear displacement measuring device, characterized in that: Located in the downhole measuring instrument, including: slider, magnetic steel, circuit board, among which, A group of Hall sensors are arranged on the circuit board, and the group of Hall sensors are arranged at equal intervals along a preset direction of the circuit board, wherein the circuit board is fixed in the inner cavity of the steel pipe, and the circuit board is placed along the axial direction of the steel pipe; The slider is arranged on the outer periphery of the steel pipe, and the slider is arranged to allow movement along the axial direction of the steel pipe; The magnetic steel is embedded in the slider, and during the movement of the slider, the measurement data of each Hall sensor in the group of Hall sensors changes with the change of the position of the magnetic steel; The circuit board includes a signal conditioning circuit, which processes a set of measurement data to obtain a target displacement value, wherein the set of measurement data is measured by the set of Hall sensors during the movement of the slider, and the target displacement value is used to represent the displacement of the magnetic steel relative to a reference position.

2. The linear displacement measuring device according to claim 1, characterized in that: The group of Hall sensors includes N Hall sensors, and the magnetic steel is allowed to move (N-1)*S, where S represents the distance between two adjacent Hall sensors, and N is a positive integer greater than or equal to 2.

3. The linear displacement measuring device according to claim 1, characterized in that: The magnetic steel is embedded on a side of the slider close to the circuit board.

4. A linear displacement measurement method, characterized in that: The linear displacement measuring device according to any one of claims 1 to 3 comprises: Acquire a set of measurement data, wherein the set of measurement data is measured by a set of Hall sensors during the movement of the slider; The set of measurement data is processed to obtain a target displacement value, wherein the target displacement value is used to represent the displacement of the magnetic steel relative to a reference position.

5. The linear displacement measurement method according to claim 4, characterized in that: The set of measurement data is processed to obtain a target displacement value, including: Determining target measurement data from the set of measurement data, wherein the target measurement data is measured by a target sensor, the set of Hall sensors includes the target sensor, and the target sensor is the Hall sensor in the set of Hall sensors that is closest to the magnetic steel; Obtaining a target distance value according to the target measurement data, wherein the target distance value is used to represent the distance between the magnetic steel and the target sensor; The target displacement value is obtained according to the position value of the target sensor and the target distance value.

6. The linear displacement measurement method according to claim 5, characterized in that: Obtaining a target distance value according to the target measurement data includes: Acquire a target waveform curve of the target sensor, wherein the target waveform curve is used to represent a curve of a voltage value output by the target sensor changing with a distance value between the magnetic steel and the target sensor, and the target waveform curve is measured in advance; The distance value corresponding to the target measurement data in the target waveform curve is determined as the target distance value.

7. The linear displacement measurement method according to claim 4, characterized in that: The set of measurement data is processed to obtain a target displacement value, including: Determine a pair of measurement data from the set of measurement data, wherein the pair of measurement data includes an i-th measurement data and an i+1-th measurement data, the i-th measurement data is data measured by the i-th Hall sensor, the i+1-th measurement data is data measured by the i+1-th Hall sensor, the set of Hall sensors includes the i-th Hall sensor and the i+1-th Hall sensor, the value of the i-th measurement data is positive, the value of the i+1-th measurement data is negative, and i is a positive integer greater than or equal to 1 and less than or equal to N-1; Determine the measurement data with a smaller absolute value between the i-th measurement data and the i+1-th measurement data as the target measurement data; Obtaining a target distance value according to the target measurement data, wherein the target distance value is used to represent the distance between the magnetic steel and the target sensor; The target displacement value is obtained according to the position value of the target sensor and the target distance value.

8. The linear displacement measurement method according to claim 5, characterized in that: Before acquiring a set of measurement data, the method further comprises: Each Hall sensor in the group of Hall sensors is calibrated.

9. The linear displacement measurement method according to claim 8, characterized in that: Calibrate each Hall sensor in the set of Hall sensors, including: For the jth Hall sensor, the following operations are performed, wherein the jth Hall sensor is any Hall sensor in the group of Hall sensors: In the calibration mode, a set of initial measurement values ​​output by the j-th Hall sensor is obtained by uniformly moving the magnetic steel; A gain value and a zero offset value corresponding to the j-th Hall sensor are obtained according to the set of initial measurement values, wherein the gain value and the zero offset value are used to correct the data measured by the j-th Hall sensor.

10. The linear displacement measurement method according to claim 9, characterized in that: Obtaining a gain value and a zero offset value corresponding to the j-th Hall sensor according to the set of initial measurement values, including: Determine a gain value gain=1 / (MAX-MIN) and a zero offset value offset=(MAX+MIN) / 2 corresponding to the j-th Hall sensor, wherein MAX is the maximum value in the set of initial measurement values, and MIN is the minimum value in the set of initial measurement values.

Citation Information

Cited By

  • Error compensation inductive sensor calibration method and system

    CN121025942A