Hall sensor temperature compensation system and method based on double-speed integral adjustment

The Hall sensor temperature compensation system with dual-speed integral regulation monitors changes in ambient temperature in real time and switches compensation modes, solving the problem of output deviation of the Hall sensor when the temperature changes drastically, and achieving fast response and high-precision temperature compensation effect.

CN121477065APending Publication Date: 2026-02-06CHONGQING CHUANYI CONTROL VALVE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511993098.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

Existing temperature compensation schemes for Hall sensors cannot adapt to the rate of change of ambient temperature, causing the sensor output to deviate from the reference value when the temperature changes drastically, which fails to meet the real-time and accuracy requirements of highly dynamic applications.

Method used

A temperature compensation system based on dual-speed integral regulation is adopted. The temperature acquisition circuit monitors the changes in ambient temperature in real time, and the microcontroller generates pulse control signals to control the compensation circuit to switch between fast and slow modes. In fast mode, the compensation voltage is quickly adjusted through a low-impedance path, while in slow mode, it is finely adjusted through a high-impedance path to ensure the accuracy of the compensation voltage.

Benefits of technology

It achieves rapid response and stable output under drastic temperature changes, balancing response speed and steady-state accuracy, avoiding overshoot and oscillation, and ensuring the real-time performance and accuracy of the Hall sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121477065A_ABST
    Figure CN121477065A_ABST
Patent Text Reader

Abstract

The invention provides a Hall sensor temperature compensation system and method based on double-speed integral regulation, and the system comprises a temperature collection circuit which is used for collecting the variation amplitude of the environment temperature; the compensation circuit is used for controlling the compensation voltage to be adjusted to a change rate of a target value according to the pulse control signal; the micro-control unit is used for monitoring the compensation voltage and generating the pulse control signal according to the change amplitude of the environment temperature and the deviation value between the compensation voltage and the target value, so that when the absolute value of the change amplitude of the environment temperature is larger than a preset first amplitude threshold value, the change rate of the compensation voltage is increased; when the absolute value of the change amplitude of the environment temperature is smaller than a preset second amplitude threshold value, the change rate of the compensation voltage is slowed down; and the Hall sensing circuit is used for generating a valve position voltage signal of which the amplitude fluctuation is smaller than a preset fluctuation quantity threshold value according to the compensation voltage. The method gives consideration to the response speed and the steady-state precision, and enables the compensation process to be stable and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of sensors, in particular to a Hall sensor temperature compensation system and method based on double-speed integral adjustment. BACKGROUND

[0002] As a commonly used magnetic field detection element, Hall sensors are widely used in automotive electronics, industrial automation, consumer electronics and other fields. However, the output characteristics of Hall sensors are very sensitive to temperature changes, and temperature changes will cause the sensitivity of Hall elements to decrease and the zero point to drift, thereby affecting the measurement accuracy. Therefore, in practical applications, the temperature compensation technology of Hall sensors is particularly important.

[0003] Currently, Hall sensor temperature compensation technology mainly includes analog compensation and digital compensation. Analog compensation usually uses temperature-sensitive resistor networks or constant current / constant voltage drive circuits, while digital compensation corrects errors caused by temperature changes through digital signal processing algorithms.

[0004] However, the existing temperature compensation of Hall sensors has the following shortcomings: the compensation characteristics (such as compensation coefficients, response speed) are usually pre-set and fixed, and cannot be adaptively adjusted according to the rate of environmental temperature change; when the environmental temperature changes dramatically (such as rapid power-on, movement or exposure to cold / hot shock), the fixed compensation mode cannot quickly track the temperature change, resulting in the sensor output deviating from the reference value for a long period of time, and the existing compensation scheme is difficult to meet the requirements of fast response and stable output at the same time, especially in high dynamic application scenarios, it is difficult to guarantee the unity of real-time and accuracy. SUMMARY

[0005] The present application provides a Hall sensor temperature compensation system and method based on double-speed integral adjustment to solve the technical problems that the fixed compensation mode in the existing Hall sensor temperature compensation scheme cannot adapt to the rate of environmental temperature change, cannot quickly track the temperature change when the temperature changes dramatically, resulting in the sensor output deviating from the reference value for a long period of time, and cannot meet the real-time requirements of high dynamic applications.

[0006] The present application provides a Hall sensor temperature compensation system based on double-speed integral adjustment, comprising: a temperature acquisition circuit for acquiring the change amplitude of the environmental temperature; a compensation circuit for controlling the change rate of the compensation voltage adjusted to the target value according to the pulse control signal; The micro control unit is used for monitoring the compensation voltage, and generating the pulse control signal according to the variation amplitude of the ambient temperature and the deviation value of the compensation voltage from the target value, so that when the absolute value of the variation amplitude of the ambient temperature is greater than a preset first amplitude threshold, the variation rate of the compensation voltage is accelerated; and when the absolute value of the variation amplitude of the ambient temperature is less than a preset second amplitude threshold, the variation rate of the compensation voltage is slowed down; wherein the preset first amplitude threshold is greater than the preset second amplitude threshold. The Hall sensing circuit is used for generating a valve position voltage signal with an amplitude fluctuation less than a preset fluctuation threshold according to the compensation voltage.

[0007] In an embodiment of the present application, the temperature acquisition circuit comprises a temperature-sensitive resistor, a voltage division network and a filter unit, the resistance of the temperature-sensitive resistor changes with the ambient temperature, the voltage division network converts the resistance change of the temperature-sensitive resistor into a voltage signal, and the filter unit converts the voltage signal into a digital signal input into the micro control unit.

[0008] In an embodiment of the present application, the compensation circuit comprises a first feedback resistor, a second feedback resistor, an operational amplifier, an integration capacitor, a fast switching channel and a slow switching channel, the fast switching channel is connected in series with the integration capacitor through the first feedback resistor, the slow switching channel is connected in series with the integration capacitor through the second feedback resistor, and the integration capacitor is connected between the inverting input terminal and the output terminal of the operational amplifier; the non-inverting input terminal of the operational amplifier is connected to a first voltage division branch, wherein the resistance of the second feedback resistor is greater than 20 times the resistance of the first feedback resistor, and the pulse control signals provided by the two groups of switching channels adjust the charge and discharge rate of the integration capacitor, thereby adjusting the variation rate of the compensation voltage.

[0009] In an embodiment of the present application, the circuit structures of the fast switching channel and the slow switching channel are the same, the fast switching channel comprises two switching branches, one of which is provided with a forward-connected diode, and the other of which is provided with a reverse-connected diode, and the pulse control signals with different duty cycles are provided through the two switching branches to adjust the charge and discharge rate of the integration capacitor.

[0010] In an embodiment of the present application, the first voltage division branch comprises two resistors connected in series between the power supply terminal and the ground, and a capacitor connected in parallel with the ground resistor; the connection point of the two resistors is connected to the non-inverting input terminal of the operational amplifier.

[0011] In an embodiment of the present application, the output end of the operational amplifier is further provided with a second voltage dividing branch, the second voltage dividing branch comprises a third resistor, a fourth resistor, a sixth resistor and a filter capacitor connected in series between the power supply end and the ground, and the connection node of the sixth resistor and the filter capacitor serves as the output end of the compensation voltage; and the connection node of the fourth resistor and the sixth resistor is connected to the output end of the operational amplifier.

[0012] In an embodiment of the present application, the micro control unit comprises an analog-to-digital converter, an operator and a memory, the analog-to-digital converter converts the signal fed back by the temperature acquisition circuit and the compensation voltage into corresponding digital signals and delivers the digital signals to the operator; the memory is used to store a mapping relationship table between the ambient temperature and the target value; the operator reads the corresponding target value according to the digital signal corresponding to the signal fed back by the temperature acquisition circuit, compares the compensation voltage with the corresponding target value, and generates a pulse control signal according to the comparison result.

[0013] In an embodiment of the present application, the Hall sensor circuit comprises a Hall sensor and a differential amplification unit, the output end of the Hall sensor is connected in cascade with the differential amplification circuit, the Hall sensor generates an output signal under the action of an excitation current and the compensation voltage, and outputs the output signal after being amplified by the differential amplification circuit.

[0014] The present application further provides a compensation method based on the Hall sensor temperature compensation system based on the double-speed integral regulation, comprising: acquiring the variation amplitude of the ambient temperature; monitoring the compensation voltage, and generating the pulse control signal according to the variation amplitude of the ambient temperature and the deviation value of the compensation voltage from the target value; controlling the variation rate of the compensation voltage to the target value according to the pulse control signal, so as to accelerate the variation rate of the compensation voltage when the absolute value of the variation amplitude of the ambient temperature is greater than a preset first amplitude threshold, and to slow down the variation rate of the compensation voltage when the absolute value of the variation amplitude of the ambient temperature is less than a preset second amplitude threshold; wherein the preset first amplitude threshold is greater than the preset second amplitude threshold; controlling the Hall sensor circuit to generate a valve position voltage signal with an amplitude fluctuation less than a preset fluctuation threshold according to the compensation voltage.

[0015] The beneficial effects of this invention are as follows: This invention proposes a Hall sensor temperature compensation system and method based on dual-speed integral regulation. By introducing a dual-speed regulation mechanism of fast and slow compensation into the compensation circuit, when the absolute value of the ambient temperature change exceeds a preset first amplitude threshold, the system immediately activates the fast compensation mode. This mode uses a low-impedance path for rapid charging and discharging, accelerating the rate of change of the compensation voltage and keeping the relative error between the compensation voltage and the target value within a set range. Subsequently, the system switches to the slow compensation mode, using a high-impedance path for integral regulation, further converging the relative error between the compensation voltage and the target value to within a preset second amplitude threshold range. When the temperature change is relatively gradual, the system directly enters the slow compensation mode, maintaining the relative error between the compensation voltage and the target value within a higher accuracy range. This scheme simultaneously considers response speed and steady-state accuracy, avoiding overshoot and oscillation, making the compensation process smooth and reliable. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0017] In the attached diagram: Figure 1 This is a schematic diagram of the architecture of a Hall sensor temperature compensation system based on dual-speed integral regulation according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the architecture of the temperature acquisition circuit and the microcontroller unit in one embodiment of this application; Figure 3 This is a circuit diagram of the compensation circuit in one embodiment of this application; Figure 4 This is a schematic diagram of the circuit structure of the Hall sensor and the differential amplifier circuit in one embodiment of the present invention; Figure 5 This is a schematic diagram of the temperature compensation process in one embodiment of the present invention. Detailed Implementation

[0018] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0019] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. The drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0020] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.

[0021] Please see Figure 1 , Figure 1 This is a schematic diagram of the architecture of a Hall sensor temperature compensation system based on dual-speed integral regulation according to an embodiment of the present invention. The system includes a temperature acquisition circuit, a compensation circuit, a microcontroller unit, and a Hall sensor circuit.

[0022] The temperature acquisition circuit includes a thermistor, a voltage divider network, and a filter unit. The thermistor is an NTC type negative temperature coefficient thermistor, whose resistance changes with ambient temperature; the resistance decreases as the temperature rises and increases as the temperature falls. The voltage divider network consists of the thermistor and a fixed resistor connected in series; the voltage signal output from the voltage divider node reflects the change in the thermistor's resistance. The filter unit uses an RC low-pass filter circuit, and the filtered analog voltage signal is converted into a digital signal via the microcontroller's ADC interface. This temperature acquisition circuit can monitor the amplitude of ambient temperature changes in real time, providing accurate temperature information for subsequent temperature compensation. Please refer to [link to relevant documentation]. Figure 2 , Figure 2This is a schematic diagram of the temperature acquisition circuit and microcontroller unit architecture in one embodiment of this application. The resistance of the thermistor changes with temperature, is converted into a voltage signal by a voltage divider network, and then filtered by a capacitor before being sent to the ADC channel of the MCU. The MCU calculates the current temperature based on this voltage value, which is used for subsequent parameter calculations for fast and slow compensation. The MCU, as a microcontroller unit, includes an analog-to-digital converter, an arithmetic unit, and a storage unit. The analog-to-digital converter receives the analog voltage signal acquired by the temperature acquisition circuit and the feedback voltage V1 sampled from the output of the compensation circuit. By monitoring the feedback voltage V1, the MCU determines whether the feedback voltage V1 has reached the target compensation voltage. If not, it adjusts the output control signals P1-P4 to make the compensation voltage reach the specified voltage value. The storage unit stores a mapping table between the Hall sensor output voltage and temperature. After receiving the corresponding analog voltage signal through the analog-to-digital converter, the MCU determines the corresponding temperature value and then reads the output voltage of the Hall sensor at the current temperature value from the storage unit. The arithmetic unit generates control signals P1-P4 based on the current temperature value and the corresponding Hall sensor output voltage, and outputs them to the compensation circuit to adjust the compensation voltage output by the compensation circuit.

[0023] Please see Figure 3 , Figure 3 This is a circuit diagram of the compensation circuit in one embodiment of this application. The compensation circuit includes an operational amplifier U1A, an integrating capacitor C3, a first feedback resistor R2, a second feedback resistor R5, a fast switching channel, and a slow switching channel. The operational amplifier uses a low-noise, high-precision op-amp chip. Its non-inverting input is connected to a first voltage divider branch. The first voltage divider branch includes two resistors (R7 and R8) connected in series between the power supply terminal and ground, and a capacitor C6 connected in parallel with the grounding resistor. The connection point of the two resistors is connected to the non-inverting input of the operational amplifier. A filter capacitor is connected in parallel with the grounding resistor. This first voltage divider branch provides a stable reference voltage for the operational amplifier.

[0024] In one embodiment, the integrating capacitor is connected in parallel between the inverting input and output of the operational amplifier. The fast switching channel is connected in series with the integrating capacitor through a first feedback resistor. The slow switching channel is connected in series with the integrating capacitor through a second feedback resistor, the value of which is more than 20 times the value of the first feedback resistor.

[0025] In one embodiment, the fast switching channel and the slow switching channel have the same circuit structure, both including two switching branches. Taking the fast switching channel as an example, the first switching branch consists of a diode connected in forward series. The second switching branch consists of a diode connected in reverse series. By adjusting the PWM duty cycle of the two switching branches, the charging and discharging rate of the integrating capacitor can be precisely controlled, thereby adjusting the rate of change of the compensation voltage. The slow switching channel adopts the same circuit structure.

[0026] In one embodiment, the output of the operational amplifier is further provided with a second voltage divider branch, which includes a third resistor, a fourth resistor, a sixth resistor, and a filter capacitor connected in series between the power supply terminal and ground. One end of the third resistor is connected to VDD, and the other end is connected to the fourth resistor. The other end of the fourth resistor is connected to the sixth resistor, and the other end of the sixth resistor is connected to the filter capacitor C4. The other end of the filter capacitor C4 is grounded. The connection node between the sixth resistor and the filter capacitor serves as the output terminal of the compensation voltage V1, providing a stable compensation voltage to the Hall sensor circuit. The connection node between the fourth resistor and the sixth resistor is connected to the output terminal of the operational amplifier. This second voltage divider branch performs voltage division and filtering on the output of the operational amplifier to obtain a smooth compensation voltage signal.

[0027] The microcontroller unit includes an analog-to-digital converter (ADC), an arithmetic logic unit (CPU), and memory. The ADC converts the temperature signal fed back from the temperature acquisition circuit and the compensation voltage output from the compensation circuit into corresponding digital signals, which are then transmitted to the CPU. The memory uses Flash memory to store a mapping table between ambient temperature and target values. This mapping table is pre-calibrated based on the temperature characteristics of the Hall sensor. The CPU, based on the digital signal corresponding to the temperature signal fed back from the temperature acquisition circuit, reads the target compensation voltage value at the current temperature through a lookup table, compares the actual compensation voltage with the target value, and calculates the deviation.

[0028] The microcontroller operates as follows: The arithmetic unit first calculates the amplitude of the ambient temperature change, i.e., the difference between the current temperature and the temperature in the previous sampling period. Taking a sampling period of 0.1ms as an example, the amplitude of the ambient temperature change can be the temperature change within one second. When the absolute value of the ambient temperature change amplitude is greater than a preset first amplitude threshold (for example, when the temperature change amplitude exceeds ±5℃ within 1 second), the arithmetic unit determines that the temperature is changing rapidly. At this time, it generates a high-frequency PWM pulse control signal to control the fast switching channel. The small resistance value of the first feedback resistor enables the rapid charging and discharging of the integrating capacitor, accelerating the rate of change of the compensation voltage, so that the compensation voltage can quickly track the change of the target value. When the absolute value of the ambient temperature change amplitude is less than the second amplitude threshold (the temperature change amplitude is less than ±1℃ within 5 seconds), the arithmetic unit determines that the temperature is changing slowly or tending to stabilize. At this time, it generates a low-frequency PWM pulse control signal to control the slow switching channel. The large resistance value of the second feedback resistor enables the slow charging and discharging of the integrating capacitor, slowing down the rate of change of the compensation voltage, avoiding overshoot or oscillation of the compensation voltage, and improving the compensation accuracy. The arithmetic unit also dynamically adjusts the PWM duty cycle based on the deviation between the compensation voltage and the target value: when the deviation is large, the duty cycle is increased to speed up the adjustment; when the deviation is small, the duty cycle is decreased for fine adjustment. Through this dual-speed integral regulation strategy, the system can respond quickly to temperature changes and achieve high-precision compensation when the temperature is stable.

[0029] Specifically, the inverting input of operational amplifier U1A is connected to integrating capacitor C3, and the other end of integrating capacitor C3 is connected to the output of the operational amplifier, thus forming a typical integrating network. P1, P2, P3, and P4 are connected to the I / O ports of the MCU, and the charging and discharging speed and direction of integrating capacitor C3 are controlled by outputting PWM waves with different duty cycles. In addition, the diode is connected to integrating capacitor C3 through resistor R2 or R5. Resistors R2 and R5 are selected with small and large resistance values, respectively, with a resistance difference of at least 20 times, so that the capacitor can be charged or discharged through different impedance paths under different on and off states. The voltage V1 at the output of the operational amplifier is monitored by the MCU in real time, and V1 is directly applied as a compensation signal to the input of the Hall sensor to correct its output characteristics.

[0030] When the temperature is stable, P1 and P3 output high levels, while P2 and P4 output low levels, keeping the four diodes in the off state and preventing compensation. When the microcontroller detects a rapid temperature change through ADC sampling, it outputs low and high levels through P3 and P4 respectively, cutting off diodes D3 and D4. P1 and P2 output PWM waves with different duty cycles, causing the integrating capacitor C3 to charge or discharge rapidly through the low-impedance resistor R2. This results in a significant adjustment of the op-amp output voltage V1 within a short time, achieving rapid compensation and quickly returning the output voltage to the set range. When voltage V1 is close to the target value and the deviation is small, the MCU keeps control ports P1 low and P2 high, with diodes D1 and D2 in the off state. The capacitor charges and discharges slowly through the larger resistance resistor R5, allowing the op-amp output voltage V1 to adjust slowly and precisely, thus achieving slow compensation. Taking the fast compensation mode as an example, the specific calculation method for the current flowing through capacitor C3 during fast charging is as follows: The current-voltage relationship of a capacitor: Formula 1 Where Vc is the voltage across capacitor C3, and C is the capacitance of capacitor C3. dVc / dt is the magnitude of the current flowing through capacitor C3, and dVc / dt is the rate of change of the voltage across capacitor C3. Based on the "virtual short" and "virtual open" characteristics of operational amplifiers, we can conclude that: Formula 2 We can obtain the following from Formula 2: Formula 3 Substituting formula 3 into formula 1, we get: Formula 4 As can be seen from Formula 4, during charging, the current in the capacitor flows from the right side of capacitor C3 to the left side, and the compensation voltage V1 decreases. Meanwhile, the current flowing through capacitor C3 during charging can be calculated using formula 5, where... , These are the voltage output from port P1 and the voltage drop across diode D1, respectively; R2 is a small-value resistor. Formula 5 As can be seen from Formula 5, the current The magnitude of the charge / discharge rate is negatively correlated with the resistance value of R2; when R2 has a small resistance value, the current flowing through the integrating capacitor C3 is larger, and the charging / discharging rate is faster; conversely, the current flowing through the integrating capacitor C3 is smaller, and the charging / discharging rate is slower. Similarly, the calculation method for the magnitude and direction of the current flowing through capacitor C3 in slow compensation mode can be derived. Through this dual-mode compensation method, the circuit can ensure rapid convergence when the deviation is large, and maintain voltage fine-tuning and stability in a steady state, unaffected by temperature changes.

[0031] A Hall effect sensing circuit includes a Hall sensor and a differential amplifier unit. For example... Figure 4 As shown, because the differential voltage signal output by the Hall sensor has a very low amplitude, direct measurement is not only easily affected by noise interference, but may also be too weak for the acquisition circuit to effectively recognize. Therefore, a subsequent differential amplifier circuit is needed to amplify the signal, bringing it to a level suitable for sampling and processing, while suppressing common-mode noise and power supply disturbances. The amplifier circuit is based on a differential architecture using operational amplifiers and resistor networks. By setting the gain through appropriate resistor ratios, stable and reliable amplification is achieved while ensuring signal integrity.

[0032] The working process of this Hall sensor temperature compensation system based on dual-speed integral regulation is as follows: The temperature acquisition circuit monitors the ambient temperature in real time and converts the temperature information into a digital signal, which is then transmitted to the microcontroller unit. The microcontroller unit searches for the corresponding target compensation voltage value based on the temperature information, while simultaneously monitoring the actual compensation voltage output by the compensation circuit. When a rapid change in ambient temperature is detected, the microcontroller unit controls the fast switching channel to operate, rapidly adjusting the charging and discharging of the integrating capacitor through a small-resistance first feedback resistor, so that the compensation voltage quickly approaches the target value. When the ambient temperature change slows down or approaches stability, the microcontroller unit switches to the slow switching channel to operate, slowly and finely adjusting the integrating capacitor through a large-resistance second feedback resistor, so that the compensation voltage is precisely stabilized near the target value. The adjusted compensation voltage serves as the operating voltage of the Hall sensor, compensating for the influence of temperature on the sensitivity of the Hall sensor, ensuring that the output signal generated by the Hall sensor under the excitation current is unaffected by temperature changes. After being amplified by the differential amplifier unit, this output signal produces a stable and low-fluctuation valve position voltage signal, achieving high-precision temperature compensation for the Hall sensor.

[0033] Please see Figure 5 , Figure 5 This is a schematic diagram of the temperature compensation process in one embodiment of the present invention. After the system is powered on, the MCU collects the ambient temperature in real time through the temperature acquisition circuit, with each sampling interval being approximately 1ms, and judges the trend of change within multiple sampling periods. When a temperature change exceeding ±5℃ is detected within 1 second, the system identifies it as a temperature sudden change and immediately starts the fast compensation mode: the MCU reads the V1 mapping value of the corresponding temperature point from the EEPROM and quickly charges and discharges it through a low-impedance path to control the relative error between V1 and the V1 set value within ±5%; subsequently, the system switches to the slow compensation mode, in which integral adjustment is performed through a high-impedance path to further converge the relative error between V1 and the V1 set value to within ±1%, thereby ensuring high accuracy and stability of the output.

[0034] When the temperature change is relatively gradual (i.e., the temperature change is less than ±1℃ within 5 seconds), the system directly enters the slow compensation mode. At this time, the MCU gradually fine-tunes V1 based on the sampling results, keeping the relative error between V1 and its set value within ±1%, thus ensuring that the Hall sensor's output voltage remains stable and consistent across the entire temperature range. Through this "dual-speed compensation" mechanism, the circuit can respond quickly when the temperature fluctuates rapidly, and maintain high-precision dynamic stability compensation when the temperature changes slowly.

[0035] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A Hall sensor temperature compensation system based on dual-speed integral regulation, characterized in that, include: Temperature acquisition circuit, used to collect the range of change in ambient temperature; The compensation circuit is used to control the rate of change of the compensation voltage to the target value according to the pulse control signal; A microcontroller unit is configured to monitor the compensation voltage and generate a pulse control signal based on the change amplitude of the ambient temperature and the deviation between the compensation voltage and the target value. This signal is configured to accelerate the change rate of the compensation voltage when the absolute value of the change amplitude of the ambient temperature within a first continuous time period is greater than a preset first amplitude threshold, and slow down the change rate of the compensation voltage when the absolute value of the change amplitude of the ambient temperature is less than a preset second amplitude threshold. The preset first amplitude threshold is greater than the preset second amplitude threshold. The Hall effect sensor circuit is used to generate a valve position voltage signal whose amplitude fluctuation is less than a preset fluctuation threshold based on the compensation voltage.

2. The Hall sensor temperature compensation system based on dual-speed integral regulation according to claim 1, characterized in that, The temperature acquisition circuit includes a thermistor, a voltage divider network, and a filter unit. The resistance of the thermistor changes with the ambient temperature. The voltage divider network converts the resistance change of the thermistor into a voltage signal. The filter unit converts the voltage signal into a digital signal and transmits it to the microcontroller unit.

3. The Hall sensor temperature compensation system based on dual-speed integral regulation according to claim 1, characterized in that, The compensation circuit includes a first feedback resistor, a second feedback resistor, an operational amplifier, an integrating capacitor, a fast switching channel, and a slow switching channel. The fast switching channel is connected in series with the integrating capacitor through the first feedback resistor, and the slow switching channel is connected in series with the integrating capacitor through the second feedback resistor. The integrating capacitor is connected in parallel between the inverting input and output of the operational amplifier. The non-inverting input of the operational amplifier is connected to a first voltage divider branch. The resistance of the second feedback resistor is greater than 20 times the resistance of the first feedback resistor. The charging and discharging rate of the integrating capacitor is adjusted by the pulse control signals provided by the two sets of switching channels, thereby adjusting the rate of change of the compensation voltage.

4. The Hall sensor temperature compensation system based on dual-speed integral regulation according to claim 3, characterized in that, The fast switching channel has the same circuit structure as the slow switching channel. The fast switching channel includes two switching branches, one of which has a forward-connected diode and the other has a reverse-connected diode. The two switching branches provide pulse control signals with different duty cycles to adjust the charging and discharging rate of the integrating capacitor.

5. The Hall sensor temperature compensation system based on dual-speed integral regulation according to claim 3, characterized in that, The first voltage divider branch includes two resistors connected in series between the power supply terminal and ground, and a capacitor connected in parallel with the grounding resistor; the connection point of the two resistors is connected to the non-inverting input terminal of the operational amplifier.

6. The Hall sensor temperature compensation system based on dual-speed integral regulation according to claim 3, characterized in that, The output terminal of the operational amplifier is further provided with a second voltage divider branch, which includes a third resistor, a fourth resistor, a sixth resistor and a filter capacitor connected in series between the power supply terminal and ground. The connection node of the sixth resistor and the filter capacitor serves as the output terminal of the compensation voltage. The connection node of the fourth resistor and the sixth resistor is connected to the output terminal of the operational amplifier.

7. The Hall sensor temperature compensation system based on dual-speed integral regulation according to claim 1, characterized in that, The microcontroller unit includes an analog-to-digital converter, an arithmetic unit, and a memory. The analog-to-digital converter converts the signal fed back from the temperature acquisition circuit and the compensation voltage into corresponding digital signals and transmits them to the arithmetic unit. The memory is used to store a mapping table between ambient temperature and target value; the arithmetic unit reads the corresponding target value according to the digital signal corresponding to the signal fed back by the temperature acquisition circuit, compares the compensation voltage with the corresponding target value, and generates a pulse control signal based on the comparison result.

8. The Hall sensor temperature compensation system based on dual-speed integral regulation according to claim 1, characterized in that, The Hall sensor circuit includes a Hall sensor and a differential amplifier unit. The output terminal of the Hall sensor is cascaded with the differential amplifier circuit. The Hall sensor generates an output signal under the action of the excitation current and the compensation voltage, and the signal is amplified by the differential amplifier circuit before being output.

9. A compensation method for a Hall sensor temperature compensation system based on dual-speed integral regulation as described in any one of claims 1-8, characterized in that, include: The range of change in ambient temperature was collected; The compensation voltage is monitored, and the pulse control signal is generated based on the change in ambient temperature and the deviation between the compensation voltage and the target value. The rate of change of the compensation voltage to the target value is controlled according to the pulse control signal, so as to accelerate the rate of change of the compensation voltage when the absolute value of the ambient temperature change amplitude is greater than a preset first amplitude threshold, and slow down the rate of change of the compensation voltage when the absolute value of the ambient temperature change amplitude is less than a preset second amplitude threshold; wherein, the preset first amplitude threshold is greater than the preset second amplitude threshold. The Hall sensor circuit is controlled by the compensation voltage to generate a valve position voltage signal with an amplitude fluctuation less than a preset fluctuation threshold.