Error compensation circuit and compensation method for hall sensor

By compensating for the difference in error between the two Hall signals, temperature compensation of the Hall sensor is achieved, which solves the problem of inaccurate detection of the Hall sensor under temperature change environment, improves detection accuracy and reduces hardware cost.

CN117907900BActive Publication Date: 2026-11-24SICHUAN HUACAN ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311807693.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2026-11-24
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

Hall effect sensors are inaccurate in detecting changes in temperature.

Method used

Two Hall signal acquisition channels are used, and temperature compensation is achieved through differential error compensation reference. The difference between the Hall signals of the two Hall elements is used to determine whether the sensor is in the linear temperature compensation region, and linear or nonlinear compensation is performed when necessary.

Benefits of technology

This improves the detection accuracy and precision of the Hall sensor, reduces hardware design costs, and eliminates the need for a temperature acquisition unit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117907900B_ABST
    Figure CN117907900B_ABST
Patent Text Reader

Abstract

This invention relates to an error compensation circuit and method for a Hall sensor. The circuit includes a first amplification module for amplifying a first Hall voltage to obtain a first amplified voltage; a first signal processing module for converting the first amplified voltage into a digital signal to obtain a first voltage value; a second Hall element for outputting a second Hall voltage; a second amplification module for amplifying the second Hall voltage to obtain a second amplified voltage; a voltage delay module for delaying the output of the second amplified voltage to obtain a delayed voltage; and a second signal processing module for converting a differential voltage into a digital signal to obtain a second voltage value. The differential voltage is the difference between the first amplified voltage and the delayed voltage. An MCU is used to perform error compensation on the first voltage value based on the second voltage value. This invention eliminates the need for a temperature acquisition unit; by acquiring the ambient temperature, it can determine whether the Hall sensor is undergoing linear compensation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Hall sensor technology, and specifically to an error compensation circuit and method for a Hall sensor. Background Technology

[0002] A Hall sensor is a magnetic field sensor based on the Hall effect. Hall sensors are affected by ambient temperature during use; when the ambient temperature changes, the output value of the Hall sensor will differ from the actual value, leading to inaccurate detection results. Summary of the Invention

[0003] To address the technical problem of inaccurate detection results of Hall sensors under varying temperature conditions in existing technologies, this invention provides an error compensation circuit and method for Hall sensors.

[0004] The technical solution of the present invention to solve the above-mentioned technical problems is as follows: An error compensation circuit for a Hall sensor includes a first Hall element, a first amplification module, a first signal processing module, a second Hall element, a second amplification module, a voltage delay module, a second signal processing module, and an MCU. The output terminal of the first Hall element is electrically connected to the input terminal of the first amplification module. The output terminal of the first amplification module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The output terminal of the first signal processing module is electrically connected to the input terminal of the MCU. The output terminal of the second Hall element is electrically connected to the input terminal of the second amplification module, the output terminal of the second amplification module is electrically connected to the input terminal of the voltage delay module, the output terminal of the voltage delay module is electrically connected to the input terminal of the second signal processing module, and the output terminal of the second signal processing module is electrically connected to the input terminal of the MCU. The first Hall element is used to output a first Hall voltage; The first amplification module is used to amplify the first Hall voltage to obtain a first amplified voltage; The first signal processing module is used to convert the first amplified voltage into a digital signal to obtain a first voltage value; The second Hall element is used to output a second Hall voltage; The second amplification module is used to amplify the second Hall voltage to obtain a second amplified voltage; The voltage delay module is used to delay the output of the second amplified voltage to obtain a delayed voltage; The second signal processing module is used to convert the differential voltage into a digital signal to obtain a second voltage value; wherein the differential voltage is the difference between the first amplified voltage and the delay voltage; The MCU is used to perform error compensation on the first voltage value based on the second voltage value.

[0005] The beneficial effects of this invention are as follows: by employing two Hall elements to form two Hall signal acquisition channels, and by using one Hall signal as the output value and the difference between the two Hall signals as an error compensation reference for the output value, temperature compensation of the Hall sensor is achieved; at the same time, since the difference is the Hall signal of the first Hall element and the delayed Hall signal of the second Hall element, the difference between the two Hall signals can reflect whether the entire Hall sensor is in the linear temperature compensation region. Therefore, this invention does not require a temperature acquisition unit to collect the ambient temperature, and can determine whether the Hall sensor is performing linear compensation.

[0006] Based on the above technical solution, the present invention can be further improved as follows.

[0007] Furthermore, the MCU is specifically used to determine whether the second voltage value is within a preset linear coefficient range. If so, linear compensation is performed on the first voltage value; otherwise, a temperature compensation function is constructed based on the second voltage value, and the temperature compensation function is used to compensate for the error of the first voltage value.

[0008] Furthermore, it also includes a voltage follower module, wherein the output terminal of the first amplification module is electrically connected to the input terminal of the voltage follower module, and the output terminal of the voltage follower module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The voltage follower module is used to buffer and isolate the first amplified voltage to obtain a buffered voltage; The first signal processing module is specifically used to convert the buffer voltage into a digital signal to obtain the first voltage value.

[0009] Furthermore, both the first Hall element and the second Hall element are excited by a constant current.

[0010] Furthermore, the first amplification module includes a first amplifier, resistors R1, R2, R3, and R4; the non-inverting input terminal of the first amplifier is electrically connected to the positive terminal of the output terminal of the first Hall element through series connection of resistor R1, and the inverting input terminal of the first amplifier is electrically connected to the negative terminal of the output terminal of the first Hall element through series connection of resistor R3; the non-inverting input terminal of the first amplifier is electrically connected to the output terminal of the first amplifier through series connection of resistor R2, the inverting input terminal of the first amplifier is grounded through series connection of resistor R4, and the output terminal of the first amplifier is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively.

[0011] Furthermore, the second amplification module includes a second amplifier, resistors R5, R6, R7, and R8; the non-inverting input terminal of the second amplifier is electrically connected to the positive terminal of the output terminal of the second Hall element through series resistor R5, and the inverting input terminal of the second amplifier is electrically connected to the negative terminal of the output terminal of the second Hall element through series resistor R7; the non-inverting input terminal of the second amplifier is electrically connected to the output terminal of the second amplifier through series resistor R6, the inverting input terminal of the second amplifier is grounded through series resistor R8, and the output terminal of the second amplifier is electrically connected to the input terminal of the voltage delay module.

[0012] Furthermore, the voltage delay module includes a resistor R9, a capacitor C1, and a Zener diode D1. One end of the resistor R9 is electrically connected to the output terminal of the second amplifier, and the other end of the resistor R9 is electrically connected to one end of the capacitor C1 and the negative terminal of the Zener diode D1. The other end of the capacitor C1 is grounded, and the positive terminal of the Zener diode D1 is electrically connected to the input terminal of the second signal processing module.

[0013] To address the aforementioned technical problems, this invention also provides an error compensation method for a Hall sensor, the specific technical content of which is as follows: An error compensation method for a Hall sensor includes the following steps: The first voltage value is compensated for error based on the second voltage value in the error compensation circuit; The error compensation circuit includes a first Hall element, a first amplification module, a first signal processing module, a second Hall element, a second amplification module, a voltage delay module, a second signal processing module, and an MCU. The output terminal of the first Hall element is electrically connected to the input terminal of the first amplification module. The output terminal of the first amplification module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The output terminal of the first signal processing module is electrically connected to the input terminal of the MCU. The output terminal of the second Hall element is electrically connected to the input terminal of the second amplification module, the output terminal of the second amplification module is electrically connected to the input terminal of the voltage delay module, the output terminal of the voltage delay module is electrically connected to the input terminal of the second signal processing module, and the output terminal of the second signal processing module is electrically connected to the input terminal of the MCU. The first Hall element is used to output a first Hall voltage; The first amplification module is used to amplify the first Hall voltage to obtain a first amplified voltage; The first signal processing module is used to convert the first amplified voltage into a digital signal to obtain the first voltage value; The second Hall element is used to output a second Hall voltage; The second amplification module is used to amplify the second Hall voltage to obtain a second amplified voltage; The voltage delay module is used to delay the output of the second amplified voltage to obtain a delayed voltage; The second signal processing module is used to convert the differential voltage into a digital signal to obtain the second voltage value; wherein the differential voltage is the difference between the first amplified voltage and the delay voltage.

[0014] To address the aforementioned technical problems, the present invention also provides a sensor chip, the specific technical solution of which is as follows: A sensor chip includes the error compensation circuit of the Hall sensor described above. Attached Figure Description

[0015] Figure 1 This is a circuit block diagram of an error compensation circuit for a Hall sensor according to an embodiment of the present invention; Figure 2 This is a circuit diagram of the first amplification module in an embodiment of the present invention; Figure 3 This is a circuit diagram of the second amplification module and the voltage delay module in an embodiment of the present invention. Detailed Implementation

[0016] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0017] like Figure 1 As shown, this embodiment provides an error compensation circuit for a Hall sensor, including a first Hall element, a first amplification module, a first signal processing module, a second Hall element, a second amplification module, a voltage delay module, a second signal processing module, and an MCU.

[0018] The output terminal of the first Hall element is electrically connected to the input terminal of the first amplification module. The output terminal of the first amplification module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The output terminal of the first signal processing module is electrically connected to the input terminal of the MCU.

[0019] The output terminal of the second Hall element is electrically connected to the input terminal of the second amplification module, the output terminal of the second amplification module is electrically connected to the input terminal of the voltage delay module, the output terminal of the voltage delay module is electrically connected to the input terminal of the second signal processing module, and the output terminal of the second signal processing module is electrically connected to the input terminal of the MCU. Both the first and second Hall elements are excited by a constant current.

[0020] The first Hall element is used to output a first Hall voltage; the first amplification module is used to amplify the first Hall voltage to obtain a first amplified voltage; the first signal processing module is used to convert the first amplified voltage into a digital signal to obtain a first voltage value; the second Hall element is used to output a second Hall voltage; the second amplification module is used to amplify the second Hall voltage to obtain a second amplified voltage; the voltage delay module is used to delay the output of the second amplified voltage to obtain a delayed voltage; the second signal processing module is used to convert the differential voltage into a digital signal to obtain a second voltage value; wherein, the differential voltage is the difference between the first amplified voltage and the delayed voltage; the MCU is used to perform error compensation on the first voltage value based on the second voltage value.

[0021] Since the Hall sensor outputs different voltage values ​​in different temperature ranges, and within a certain temperature range, the voltage output by the Hall sensor is linearly related to the temperature, it is possible to determine whether the Hall sensor is located in a linearly changing temperature environment by judging the change in the difference between the Hall voltages output by the two Hall elements at different times. In the linearly changing range, linear compensation can be performed based on the relationship between the voltage output by the Hall sensor and the temperature compensation coefficient. In the nonlinear changing range, a compensation function is used for compensation, which can improve the detection accuracy and precision of the sensor, and at the same time eliminate the need to add a temperature acquisition circuit, thus reducing the hardware design cost of the sensor.

[0022] Specifically, the MCU is used to determine whether the second voltage value is within a preset linear coefficient range. If so, linear compensation is performed on the first voltage value; otherwise, a temperature compensation function is constructed based on the second voltage value, and the temperature compensation function is used to compensate for the error in the first voltage value. Linear compensation can be performed using a linear compensation formula to compensate for the Hall voltage value, that is, using the compensation formula to compensate for the first voltage value.

[0023] In some embodiments, the error compensation circuit further includes a voltage follower module. The output terminal of the first amplification module is electrically connected to the input terminal of the voltage follower module, and the output terminal of the voltage follower module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The voltage follower module is used to buffer and isolate the first amplified voltage to obtain a buffered voltage; the first signal processing module is specifically used to convert the buffered voltage into a digital signal to obtain the first voltage value.

[0024] like Figure 2 As shown, the first amplification module includes a first amplifier, resistors R1, R2, R3, and R4; the non-inverting input terminal of the first amplifier is electrically connected to the positive terminal of the output terminal of the first Hall element through the series resistor R1, and the inverting input terminal of the first amplifier is electrically connected to the negative terminal of the output terminal of the first Hall element through the series resistor R3; the non-inverting input terminal of the first amplifier is electrically connected to the output terminal of the first amplifier through the series resistor R2, and the inverting input terminal of the first amplifier is grounded through the series resistor R4; the output terminal of the first amplifier is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively.

[0025] like Figure 3 As shown, the second amplification module includes a second amplifier, resistors R5, R6, R7, and R8; the non-inverting input of the second amplifier is electrically connected to the positive terminal of the output of the second Hall element through the series resistor R5, and the inverting input of the second amplifier is electrically connected to the negative terminal of the output of the second Hall element through the series resistor R7; the non-inverting input of the second amplifier is electrically connected to the output of the second amplifier through the series resistor R6, the inverting input of the second amplifier is grounded through the series resistor R8, and the output of the second amplifier is electrically connected to the input of the voltage delay module.

[0026] The voltage delay module includes a resistor R9, a capacitor C1, and a Zener diode D1. One end of the resistor R9 is electrically connected to the output terminal of the second amplifier, and the other end of the resistor R9 is electrically connected to one end of the capacitor C1 and the negative terminal of the Zener diode D1. The other end of the capacitor C1 is grounded, and the positive terminal of the Zener diode D1 is electrically connected to the input terminal of the second signal processing module.

[0027] This invention employs two Hall elements to form two Hall signal acquisition channels. By using one Hall signal as the output value and the difference between the two Hall signals as an error compensation reference for the output value, temperature compensation of the Hall sensor is achieved. Furthermore, since the difference is the Hall signal from the first Hall element and the delayed Hall signal from the second Hall element, the difference between the two Hall signals can reflect whether the entire Hall sensor is in the linear temperature compensation region. Therefore, this invention eliminates the need for a temperature acquisition unit to collect ambient temperature data, enabling the determination of whether the Hall sensor is undergoing linear compensation.

[0028] In some other embodiments, an error compensation method for a Hall sensor is also provided, the specific steps of which are as follows: The first voltage value is compensated for error based on the second voltage value in the error compensation circuit; The error compensation circuit includes a first Hall element, a first amplification module, a first signal processing module, a second Hall element, a second amplification module, a voltage delay module, a second signal processing module, and an MCU. The output of the first Hall element is electrically connected to the input of the first amplification module. The output of the first amplification module is electrically connected to both the inputs of the first and second signal processing modules. The output of the first signal processing module is electrically connected to the input of the MCU. The output of the second Hall element is electrically connected to the input of the second amplification module. The output of the second amplification module is electrically connected to the input of the voltage delay module. The output of the voltage delay module is electrically connected to the input of the second signal processing module. The output of the second signal processing module is electrically connected to the input of the MCU.

[0029] The first Hall element is used to output a first Hall voltage; the first amplification module is used to amplify the first Hall voltage to obtain a first amplified voltage; the first signal processing module is used to convert the first amplified voltage into a digital signal to obtain the first voltage value; the second Hall element is used to output a second Hall voltage; the second amplification module is used to amplify the second Hall voltage to obtain a second amplified voltage; the voltage delay module is used to delay the output of the second amplified voltage to obtain a delayed voltage; the second signal processing module is used to convert the differential voltage into a digital signal to obtain the second voltage value; wherein, the differential voltage is the difference between the first amplified voltage and the delayed voltage.

[0030] In some other embodiments, a sensor chip is also provided, which includes the error compensation circuit of the Hall sensor described above.

[0031] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the concept and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. An error compensation circuit for a Hall sensor, characterized in that, It includes a first Hall element, a first amplification module, a first signal processing module, a second Hall element, a second amplification module, a voltage delay module, a second signal processing module, and an MCU; The output terminal of the first Hall element is electrically connected to the input terminal of the first amplification module. The output terminal of the first amplification module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The output terminal of the first signal processing module is electrically connected to the input terminal of the MCU. The output terminal of the second Hall element is electrically connected to the input terminal of the second amplification module, the output terminal of the second amplification module is electrically connected to the input terminal of the voltage delay module, the output terminal of the voltage delay module is electrically connected to the input terminal of the second signal processing module, and the output terminal of the second signal processing module is electrically connected to the input terminal of the MCU. The first Hall element is used to output a first Hall voltage; The first amplification module is used to amplify the first Hall voltage to obtain a first amplified voltage; The first signal processing module is used to convert the first amplified voltage into a digital signal to obtain a first voltage value; The second Hall element is used to output a second Hall voltage; The second amplification module is used to amplify the second Hall voltage to obtain a second amplified voltage; The voltage delay module is used to delay the output of the second amplified voltage to obtain a delayed voltage; The second signal processing module is used to convert the differential voltage into a digital signal to obtain a second voltage value; wherein the differential voltage is the difference between the first amplified voltage and the delay voltage; The MCU is used to perform error compensation on the first voltage value based on the second voltage value; The first amplification module includes a first amplifier, resistors R1, R2, R3, and R4; the non-inverting input of the first amplifier is electrically connected to the positive terminal of the output of the first Hall element through series resistor R1, and the inverting input of the first amplifier is electrically connected to the negative terminal of the output of the first Hall element through series resistor R3; the non-inverting input of the first amplifier is electrically connected to the output of the first amplifier through series resistor R2, and the inverting input of the first amplifier is grounded through series resistor R4; the output of the first amplifier is electrically connected to the input of the first signal processing module and the input of the second signal processing module, respectively. The second amplification module includes a second amplifier, resistors R5, R6, R7, and R8; the non-inverting input of the second amplifier is electrically connected to the positive terminal of the output of the second Hall element through series resistor R5, and the inverting input of the second amplifier is electrically connected to the negative terminal of the output of the second Hall element through series resistor R7; the non-inverting input of the second amplifier is electrically connected to the output of the second amplifier through series resistor R6, the inverting input of the second amplifier is grounded through series resistor R8, and the output of the second amplifier is electrically connected to the input of the voltage delay module.

2. The error compensation circuit for the Hall sensor according to claim 1, characterized in that, Specifically, the MCU is used to determine whether the second voltage value is within a preset linear coefficient range. If it is, linear compensation is performed on the first voltage value; otherwise, a temperature compensation function is constructed based on the second voltage value, and the temperature compensation function is used to compensate for the error of the first voltage value.

3. The error compensation circuit for the Hall sensor according to claim 1, characterized in that, It also includes a voltage follower module, wherein the output terminal of the first amplification module is electrically connected to the input terminal of the voltage follower module, and the output terminal of the voltage follower module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The voltage follower module is used to buffer and isolate the first amplified voltage to obtain a buffered voltage; The first signal processing module is specifically used to convert the buffer voltage into a digital signal to obtain the first voltage value.

4. The error compensation circuit for the Hall sensor according to claim 1, characterized in that, Both the first Hall element and the second Hall element are excited by a constant current.

5. The error compensation circuit for the Hall sensor according to claim 1, characterized in that, The voltage delay module includes a resistor R9, a capacitor C1, and a Zener diode D1. One end of the resistor R9 is electrically connected to the output terminal of the second amplifier, and the other end of the resistor R9 is electrically connected to one end of the capacitor C1 and the negative terminal of the Zener diode D1. The other end of the capacitor C1 is grounded, and the positive terminal of the Zener diode D1 is electrically connected to the input terminal of the second signal processing module.

6. A method for applying an error compensation circuit to a Hall sensor as described in any one of claims 1-5, characterized in that, Includes the following steps: The first voltage value is compensated for error based on the second voltage value in the error compensation circuit; The error compensation circuit includes a first Hall element, a first amplification module, a first signal processing module, a second Hall element, a second amplification module, a voltage delay module, a second signal processing module, and an MCU. The output terminal of the first Hall element is electrically connected to the input terminal of the first amplification module. The output terminal of the first amplification module is electrically connected to the input terminals of the first signal processing module and the second signal processing module, respectively. The output terminal of the first signal processing module is electrically connected to the input terminal of the MCU. The output terminal of the second Hall element is electrically connected to the input terminal of the second amplification module, the output terminal of the second amplification module is electrically connected to the input terminal of the voltage delay module, the output terminal of the voltage delay module is electrically connected to the input terminal of the second signal processing module, and the output terminal of the second signal processing module is electrically connected to the input terminal of the MCU. The first Hall element is used to output a first Hall voltage; The first amplification module is used to amplify the first Hall voltage to obtain a first amplified voltage; The first signal processing module is used to convert the first amplified voltage into a digital signal to obtain the first voltage value; The second Hall element is used to output a second Hall voltage; The second amplification module is used to amplify the second Hall voltage to obtain a second amplified voltage; The voltage delay module is used to delay the output of the second amplified voltage to obtain a delayed voltage; The second signal processing module is used to convert the differential voltage into a digital signal to obtain the second voltage value; wherein the differential voltage is the difference between the first amplified voltage and the delay voltage.

7. A sensor chip, characterized in that, Includes an error compensation circuit for the Hall sensor as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Ship shaft frequency electric field error compensation system and compensation method

    CN107831659A

  • A system for continuous calibration of hall sensors

    CN113826022A