Vehicle motor controller offline Hall current sensor self-calibration device and method thereof
By combining the test host and NI acquisition card with the self-calibration device of the motor controller, and using least squares fitting to calculate the coefficient of the Hall current sensor, the problem of high calibration cost or poor reliability of existing current sensors is solved, and accurate self-calibration and detection are achieved.
Patent Information
- Application Number
- CN202411352438.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-09-26
AI Technical Summary
Existing current sensor calibration methods suffer from high cost or poor reliability, especially for non-modular current sensors. Furthermore, existing self-calibration algorithms are complex and require expensive equipment.
The self-calibration device consists of a test host, an NI data acquisition card, a motor controller, a relay switch, and a high-voltage DC power supply. It detects the current value of the three-phase inductor coil through the current sensor inside the motor controller and collects the current value of the Hall current sensor through the NI data acquisition card. The sensor coefficient is calculated by least squares fitting to achieve self-calibration and detection.
It achieves precise self-calibration without the need for additional equipment investment, ensuring the accuracy and consistency of test results and reducing costs.
Smart Images

Figure CN118980982A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of sensor calibration, and in particular relates to a self-calibration device and method for an offline Hall current sensor of a vehicle motor controller. Background Art
[0002] There are two common methods for current sensor coefficient calibration. The first method is based on modular current sensors with high accuracy and reliability, and uses a single set of current coefficients calculated using a standard power supply. The first method does not require self-calibration, but ignores the impact of the current sensor's own product design and installation deviations on the measurement accuracy, especially for non-modular current sensors, and the use of modular current sensors is costly. The second method uses different self-calibration algorithms to implement the current sensor, including linear regression of single or multiple data at different temperatures, amplitudes, and frequencies. The main difference of the second method is reflected in the design and implementation of the self-calibration algorithm, which can be divided into simple and complex. The simple method directly calculates the unique coefficient of the Hall sensor inside the motor controller by first calculating and then reading out the stored actual phase current data and phase current AD data. This method is fast and low-cost, but has poor reliability and consistency; the complex method considers multiple coefficient influencing factors, collects more measurement data, and uses polynomial regression models or neural networks to estimate the coefficients; this method is used for offline testing and calibration, and the entire system is complex and the equipment cost is high. Summary of the invention
[0003] In view of the shortcomings of the prior art, the present invention provides a self-calibration device for an offline Hall current sensor of a motor controller for a vehicle, comprising:
[0004] A test host, a high-voltage DC power supply, a motor controller, a NI acquisition card, a three-phase inductor coil and a plurality of relay switches; the Hall current sensor is configured to collect the current value of the three-phase inductor coil;
[0005] The high-voltage DC power supply is used to supply power to the three-phase inductor coil through the motor controller;
[0006] The motor controller and the plurality of relay switches are used to control the conduction and disconnection of the three-phase inductor coil;
[0007] The motor controller is provided with an internal current sensor, and the internal current sensor is used to detect the current value of the three-phase inductor;
[0008] The NI acquisition card is used to collect the current values of each phase of the Hall current sensor;
[0009] The test host and the motor controller 、The NI acquisition card is connected to a high-voltage DC power supply, and the Hall current sensor is calibrated according to the current value of the internal current sensor fed back by the motor controller and the current value of the Hall current sensor acquired by the NI acquisition card.
[0010] Furthermore, the CAN bus is used to upload the current values of each phase collected by the NI acquisition card to the test host.
[0011] Furthermore, the test host controls the motor controller via a CAN bus.
[0012] Another embodiment of the present invention provides a method for self-calibration of an offline Hall current sensor of a vehicle motor controller, comprising:
[0013] The motor controller is powered by a high-voltage DC power supply, and the motor controller and a number of relay switches control the three-phase inductor coil to be turned on or off;
[0014] The Hall current sensor collects the current value of the three-phase inductor coil, and the current sensor inside the motor controller detects the current value of the three-phase inductor coil;
[0015] The test host calibrates the Hall current sensor according to the current value of the internal current sensor fed back by the motor controller and the current value of the Hall current sensor collected by the Hall current sensor.
[0016] Furthermore, the NI acquisition card acquires the current value of each phase of the Hall current sensor.
[0017] Furthermore, the current values of each phase collected by the NI acquisition card are uploaded to the test host via the CAN bus.
[0018] Furthermore, the output current value of the high-voltage current source is set to generate a CAN message of the motor controller.
[0019] Furthermore, a NI acquisition card is used to collect the current value of the U-phase current sensor.
[0020] Furthermore, the current value of the U-phase current sensor acquired by the NI acquisition card is subjected to least square fitting, and the test host calculates the U-phase current sensor coefficient and writes it into the CAN bus.
[0021] Furthermore, the test host sends several target currents through the CAN bus, and the current value of the U-phase current sensor is compared with the target current to determine whether the Hall current sensor is working properly. Compared with the prior art, the present invention has the following advantages:
[0022] The device of the present invention does not require additional equipment investment, and the entire current sensor self-calibration and automatic detection process is realized by testing the host software and the lower computer software of the motor controller under test. Compared with installing a modular current sensor, the test result is more accurate and does not require additional equipment investment. The present invention detects the current value of the three-phase inductor coil through the current sensor inside the motor controller. Then, the current value of the three-phase inductor coil detected by the Hall current sensor is collected through an external detection NI acquisition card. Thereby, the self-calibration and detection process is completed, which ensures the accuracy of the self-calibration process and the consistency of the detection results.
[0023] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 The architecture diagram of the self-calibration device for the offline Hall current sensor of the vehicle motor controller is shown;
[0026] Figure 2 The circuit diagram of the self-calibration device for the offline Hall current sensor of the vehicle motor controller is shown;
[0027] Figure 3 It shows the working process diagram of the self-calibration device of the offline Hall current sensor of the vehicle motor controller;
[0028] Figure 4 A scatter plot of the least squares fitting algorithm is shown. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] Specifically, the present invention discloses a self-calibration device for a Hall current sensor of a motor controller for a vehicle, the self-calibration device comprising: Figure 1 As shown,
[0031] Test host, high voltage DC power supply, low voltage DC power supply, NI acquisition card, Hall current sensor, three-phase inductor coil, motor controller and various relay switches.
[0032] The test host is responsible for controlling the entire motor controller, offline calibration and test process of the Hall current sensor. It uses serial communication to control the low-voltage DC power supply, high-voltage DC power supply and relay switch through the test host software, and communicates with the motor controller under test through the CAN bus.
[0033] The test host controls the high-voltage DC power switch, the low-voltage DC power switch and the high-voltage relay switch through serial communication to supply power to the motor controller;
[0034] The test host controls the motor controller via the CAN bus.
[0035] The Hall current sensor is set at the three-phase current end of the motor controller output. The NI acquisition card collects the current data of each phase and uploads it to the test host through CAN.
[0036] Another embodiment of the present invention provides a self-calibration method for a vehicle Hall current sensor, comprising:
[0037] The test process begins when the test host sends a command to the low-voltage DC power supply through serial communication, then turns on the high-voltage DC power supply and closes the corresponding relay according to the test process.
[0038] The standard Hall current sensor test includes DC current acquisition self-calibration under DC current source and AC current acquisition test under DC voltage source. The former realizes the coefficient self-calibration of Hall current sensor by calculating the current acquisition value of external Hall current sensor and the current acquisition value of Hall current sensor inside motor controller under DC current source.
[0039] Take the U-phase current sensor test as an example. Figure 2 As shown, the high voltage power supply is set to constant current output, and then relays K4, K3 and K6 are closed to form a DC circuit, and the values of the external current sensor Iu and the internal U-phase current sensor are collected for comparison. At the same time, the sensor coefficient is calculated by linear fitting based on multiple groups of current values, as shown in Figure 4 As shown, after completion, calibrate the current sensors of the other two phases in the same way.
[0040] After completing the DC current acquisition and self-calibration, set the high-voltage power supply to constant voltage output, test the host to control and close all relay switches K1, K2, K3, K4, K5, and control the motor controller to start the inverter process of the entire circuit. Under the internal current closed-loop control of the motor controller, the current sensor is detected by comparing the target current and the actual current acquisition value.
[0041] like Figure 3 As shown,
[0042] S1: Supply low-voltage power of 12V / 2A to the motor controller, keep the shutdown mode and turn on CAN communication; close the K4, K3 and K6 relays to turn on the U-phase circuit; set the high-voltage current source output current to 50A, 90A or 125A and output the current, wait for 1S and then read the CAN signal of the motor controller under test, and use the NI acquisition card to collect the current value of the U-phase current sensor;
[0043] S2: Disconnect K4, K3 and K6 relays, and close K7, K3 and K5 relays; set the output current of the high-voltage current source to -50A, -90A or -125A and output it, wait for 1S and then read the CAN message of the motor controller under test, and use the NI acquisition card to collect the current value of the U-phase current sensor;
[0044] S3: Obtain the AD value of CAN feedback under ±50, ±90, and ±125A current source output and the U-phase current value collected by the NI acquisition card for least squares fitting, such as Figure 4 As shown, the test host calculates the current sensor coefficient and writes it into the CAN.
[0045] S4: In the same way, the V-phase and W-phase current sensor coefficients are measured and calculated and written into the CAN.
[0046] S5: The lower computer software of the motor controller reads the three-phase current sensor coefficients from CAN and records them in the internal data storage; after the motor controller is powered on again at low voltage, the current sensor coefficients recorded in the internal data storage are read and applied to the three-phase current acquisition along with the program initialization.
[0047] S6: Set the constant voltage of the high-voltage current source to 350V and output it; control the motor controller under test to enter the current closed-loop control mode, the test host sends multiple target currents through CAN, uses the NI acquisition card to collect the three-phase current, compares the difference with the target current, and determines whether the three-phase current sensor is working properly.
[0048] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A self-calibration device for the offline Hall current sensor of a vehicle motor controller, characterized in that: include: A test host, a high-voltage DC power supply, a motor controller, a NI acquisition card, a three-phase inductor coil and a plurality of relay switches; the Hall current sensor is configured to collect the current value of the three-phase inductor coil; The high-voltage DC power supply is used to supply power to the three-phase inductor coil through the motor controller; The motor controller and the plurality of relay switches are used to control the conduction and disconnection of the three-phase inductor coil; The motor controller is provided with an internal current sensor, and the internal current sensor is used to detect the current value of the three-phase inductor; The NI acquisition card is used to collect the current values of each phase of the Hall current sensor; The test host and the motor controller 、 The NI acquisition card is connected to a high-voltage DC power supply, and the Hall current sensor is calibrated according to the current value of the internal current sensor fed back by the motor controller and the current value of the Hall current sensor acquired by the NI acquisition card.
2. The self-calibration device according to claim 1, characterized in that: include, The CAN bus is used to upload the current values of each phase collected by the NI acquisition card to the test host.
3. The self-calibration device according to claim 1, characterized in that: include, The test host controls the motor controller via the CAN bus.
4. A self-calibration method for an offline Hall current sensor of a vehicle motor controller, characterized in that: include, The motor controller is powered by a high-voltage DC power supply, and the motor controller and a plurality of relay switches control the three-phase inductor coil to be turned on or off; The Hall current sensor collects the current value of the three-phase inductor coil, and the current sensor inside the motor controller detects the current value of the three-phase inductor coil; The test host calibrates the Hall current sensor according to the current value of the internal current sensor fed back by the motor controller and the current value of the Hall current sensor collected by the Hall current sensor.
5. The self-calibration method according to claim 4, characterized in that: The Hall current sensor collects the current value of the three-phase inductor coil, including: The NI acquisition card acquires the current value of each phase of the Hall current sensor.
6. The self-calibration method according to claim 5, characterized in that: include: The current values of each phase collected by the NI acquisition card are uploaded to the test host via the CAN bus.
7. The self-calibration method according to claim 6, characterized in that: include: The output current value of the high-voltage current source is set to generate a CAN message of the motor controller.
8. The self-calibration method according to claim 7, characterized in that: include: Use the NI acquisition card to collect the current value of the U-phase current sensor.
9. The self-calibration method according to claim 8, characterized in that: include: The current value of the U-phase current sensor acquired by the NI acquisition card is subjected to least square fitting, and the test host calculates the U-phase current sensor coefficient and writes it into the CAN bus.
10. The self-calibration method according to claim 9, characterized in that: include, The test host sends several target currents through the CAN bus, and the current value of the U-phase current sensor is compared with the target current to determine whether the Hall current sensor is working properly.
Citation Information
Patent Citations
On-line detecting device and detecting method for switch-on and switch-off period of power switch cabinet circuit breaker
CN102590739A
Multifunctional electrical characteristic testing device and testing method for high-voltage circuit breaker
CN103698695A
Online monitoring device and method for high voltage circuit breaker motor operating mechanism
CN110133492A
Hall current sensor testing device and method
CN110488213A
