CN-122017707-A - Hall current sensor calibration method, device, equipment and medium
Abstract
The application relates to the technical field of Hall sensor calibration, and discloses a Hall current sensor calibration method, a Hall current sensor calibration device, hall current sensor calibration equipment and a Hall current sensor calibration medium. The method comprises the steps of obtaining bias voltage, current output voltage, zero output current and zero output voltage corresponding to the zero output current of a Hall current sensor when the Hall current sensor is electrified, obtaining current sampling current obtained by current sampling of the BMS system in the current state by the Hall current sensor, determining the current zero output voltage of the Hall current sensor based on the bias voltage, the current output voltage and the zero output voltage, determining the current output voltage of the Hall current sensor based on the bias voltage, the zero output voltage and the current zero output voltage, and calibrating the Hall current sensor based on the zero output current, the current zero output voltage, the current sampling current and the current output voltage. The embodiment of the application can improve the current measurement precision of the Hall current sensor.
Inventors
- LI HONGHONG
Assignees
- 深圳市安仕新能源科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260202
Claims (10)
- 1. A method of calibrating a hall current sensor, comprising: when a Hall current sensor is electrified, acquiring bias voltage, current output voltage, zero output current and zero output voltage corresponding to the zero output current of the Hall current sensor, and current sampling current obtained by current sampling of a BMS system in a current state by the Hall current sensor; Determining a present zero output voltage of the hall current sensor based on the bias voltage, the present output voltage, and the zero output voltage; Determining a present current output voltage of the hall current sensor based on the bias voltage, the zero output voltage, and the present zero output voltage; And calibrating the Hall current sensor based on the zero output current, the current zero output voltage, the current sampling current and the current output voltage.
- 2. The method of calibrating a hall current sensor according to claim 1, wherein the determining the present zero output voltage of the hall current sensor based on the bias voltage, the present output voltage, and the zero output voltage comprises: calculating the difference between the current output voltage and the zero output voltage to obtain a first deviation voltage; the current zero output voltage is determined based on the first offset voltage and the bias voltage.
- 3. The method of calibrating a hall current sensor according to claim 1, wherein the determining the present current output voltage of the hall current sensor based on the bias voltage, the zero output current, and the present zero output voltage comprises: calculating the difference between the current zero output voltage and the zero output voltage to obtain a second deviation voltage; The present current output voltage is determined based on the first offset voltage and the bias voltage.
- 4. The method of calibrating a hall current sensor according to claim 1, wherein said calibrating the hall current sensor based on the zero output current, the present zero output voltage, the present sampled current, and the present current output voltage comprises: Determining a gain factor and an offset factor of the hall current sensor based on the zero output current, the present zero output voltage, the present sampled current, and the present current output voltage; And calibrating the Hall current sensor based on the gain factor and the offset factor.
- 5. The method of calibrating a hall current sensor according to claim 4, wherein the determining a gain factor and an offset factor of the hall current sensor based on the zero output current, the present zero output voltage, the present sampled current, and the present current output voltage comprises: And performing linear fitting by taking the current zero output voltage and the current output voltage as independent variables and taking the zero output current and the current sampling current as dependent variables to obtain the gain factor and the offset factor.
- 6. The method of calibrating a hall current sensor according to claim 4, wherein said calibrating the hall current sensor based on the gain factor and the offset factor comprises: Acquiring actual change current after the BMS system changes state and change output voltage after the BMS system changes state by the Hall current sensor; Performing linear operation on the changed output voltage based on the gain factor and the offset factor to obtain an expected sampling current; the gain factor and the offset factor are calibrated based on a bias current between the actual altered current and the expected sampled current.
- 7. The method of calibrating a hall current sensor according to claim 6, wherein said calibrating the gain factor and the offset factor based on a current deviation between the actual altered current and the expected sampled current comprises: and when the deviation current reaches a preset current deviation threshold, calibrating the gain factor and the offset factor so that the deviation current does not exceed the current deviation threshold when the BMS system is in various states.
- 8. A calibration device for a hall current sensor, comprising: The device comprises a first module, a second module and a third module, wherein the first module is used for acquiring bias voltage, current output voltage, zero output current and zero output voltage corresponding to the zero output current of the Hall current sensor when the Hall current sensor is electrified, and current sampling current obtained by current sampling of the BMS system in the current state of the Hall current sensor; A second module configured to determine a present zero output voltage of the hall current sensor based on the bias voltage, the present output voltage, and the zero output voltage; A third module for determining a present current output voltage of the hall current sensor based on the bias voltage, the zero output voltage, and the present zero output voltage; And a fourth module, configured to calibrate the hall current sensor based on the zero output current, the current zero output voltage, the current sampling current, and the current output voltage.
- 9. An electronic device comprising a memory storing a computer program and a processor that when executing the computer program implements the method of calibrating a hall current sensor according to any of claims 1 to 7.
- 10. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method of calibrating a hall current sensor according to any of claims 1 to 7.
Description
Hall current sensor calibration method, device, equipment and medium Technical Field The application relates to the technical field of Hall sensor calibration, in particular to a method, a device, equipment and a medium for calibrating a Hall current sensor. Background Hall current sensors assume a critical current monitoring function in BMS systems, whose operating principle relies on the hall effect to convert a current signal into a voltage output. However, due to the physical characteristics of the internal components of the sensor, each time the system is powered up, the bias voltage is subject to unpredictable drift due to factors such as ambient temperature fluctuations, power supply stability differences, and circuit aging. This change in bias voltage directly causes zero output misalignment, which in turn deviates the current measurement from the true value. To ensure detection accuracy, a calibration operation must be performed immediately after each power-up to eliminate the initial bias. In practical applications, conventional calibration methods typically perform a one-time calibration only during the initial deployment or periodic maintenance phase of the device, failing to embed the calibration procedure into the routine operation of each system power-up. When the BMS system is subjected to power-off restarting, due to the lack of instant calibration, the output current data of the Hall current sensor can have obvious errors, and the real-time charge and discharge states of the battery can not be accurately captured. The accuracy defect not only reduces the evaluation capability of the system on the battery health state, but also can cause abnormal working conditions such as overcharging, overdischarging and the like, threatens the safe operation of the battery and weakens the reliability of the whole management system. Especially under dynamic load variation or complex working conditions, the uncalibrated sensor is difficult to maintain stable current monitoring performance, and the risk of data distortion is further aggravated. Disclosure of Invention The application aims to provide a calibration method, a device, equipment and a medium of a Hall current sensor, which can eliminate bias voltage drift and improve current measurement accuracy when the Hall current sensor is electrified every time. The embodiment of the application provides a calibration method of a Hall current sensor, which comprises the following steps: when a Hall current sensor is electrified, acquiring bias voltage, current output voltage, zero output current and zero output voltage corresponding to the zero output current of the Hall current sensor, and current sampling current obtained by current sampling of a BMS system in a current state by the Hall current sensor; Determining a present zero output voltage of the hall current sensor based on the bias voltage, the present output voltage, and the zero output voltage; Determining a present current output voltage of the hall current sensor based on the bias voltage, the zero output voltage, and the present zero output voltage; And calibrating the Hall current sensor based on the zero output current, the current zero output voltage, the current sampling current and the current output voltage. In some embodiments, the determining the present zero output voltage of the hall current sensor based on the bias voltage, the present output voltage, and the zero output voltage comprises: calculating the difference between the current output voltage and the zero output voltage to obtain a first deviation voltage; the current zero output voltage is determined based on the first offset voltage and the bias voltage. In some embodiments, the determining the present current output voltage of the hall current sensor based on the bias voltage, the zero output current, and the present zero output voltage comprises: calculating the difference between the current zero output voltage and the zero output voltage to obtain a second deviation voltage; The present current output voltage is determined based on the first offset voltage and the bias voltage. In some embodiments, the calibrating the hall current sensor based on the zero output current, the present zero output voltage, the present sampled current, and the present current output voltage includes: Determining a gain factor and an offset factor of the hall current sensor based on the zero output current, the present zero output voltage, the present sampled current, and the present current output voltage; And calibrating the Hall current sensor based on the gain factor and the offset factor. In some embodiments, the determining the gain factor and the offset factor of the hall current sensor based on the zero output current, the present zero output voltage, the present sampled current, and the present current output voltage includes: And performing linear fitting by taking the current zero output voltage and the current output voltage as