Motor driver adc temperature drift suppression method and system based on dynamic parameter correction
By constructing a temperature drift characteristic database and compensating for the zero-point deviation and gain error of the ADC in real time, the problem of sampling value deviation caused by ADC temperature drift was solved, and the sampling accuracy and stability of the motor drive control system were improved.
Patent Information
- Application Number
- CN202511596250.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-04
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2045-11-04
AI Technical Summary
In existing technologies, the sampled values of analog-to-digital converters (ADCs) deviate from the true values due to temperature drift in motor drive control systems, affecting motor control performance. Existing methods, such as hardware compensation, are costly, and static calibration cannot track temperature changes in real time, resulting in limited compensation effects.
A temperature drift characteristic database is constructed to store the zero-point deviation and gain error characteristic curves of the ADC at different temperatures. The sampled values are compensated by querying the temperature in real time, and the database is updated when the system is idle to adapt to ADC aging, so as to achieve dynamic continuous compensation.
It improves ADC sampling accuracy by more than 30%, enhances motor control performance and stability, and adapts to a wide temperature range of operating scenarios.
Smart Images

Figure CN121055860B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor drives, and more particularly to a method and system for suppressing temperature drift of an ADC in a motor driver based on dynamic parameter correction. Background Technology
[0002] In motor drive control systems, the analog-to-digital converter (ADC) is used to acquire key parameters such as motor phase current, bus voltage, and temperature. However, the conversion accuracy of the ADC drifts with changes in ambient temperature, causing the sampled values to deviate from the true values, thus affecting motor control performance. Currently, two main methods are used to address the ADC temperature drift problem: hardware compensation and static calibration. Hardware compensation uses high-precision ADC chips and peripheral components with low temperature drift coefficients, but it is costly. Static calibration performs a one-time calibration at a specific temperature point, but it cannot adapt to continuous temperature changes during operation. Hardware compensation is expensive and unsuitable for large-scale applications; static calibration cannot track temperature changes in real time, resulting in limited compensation effectiveness. Furthermore, ADC zero-point drift and gain errors caused by temperature changes accumulate, affecting the stability and accuracy of motor control. Existing technologies lack effective compensation methods for the nonlinear temperature drift characteristics of ADCs. Summary of the Invention
[0003] The purpose of this invention is to provide a method and system for suppressing ADC temperature drift in motor drivers based on dynamic parameter correction. The method involves constructing a temperature drift characteristic database storing the zero-point deviation and gain error characteristic curves of the ADC at different temperatures. Based on the real-time operating temperature of the acquired ADC, the method queries the temperature drift characteristic database for the corresponding zero-point deviation and gain error to compensate for the original sampled value of the ADC. When the motor driver is in an idle state, the temperature drift characteristic database is updated to perform dynamic and continuous compensation for the ADC. By constructing the temperature drift characteristic database, sufficient and accurate zero-point deviation and gain error parameters are provided for ADC temperature drift compensation, ensuring reliable temperature drift compensation during ADC operation. Furthermore, when the motor system is idle, self-learning calibration is performed to adapt to characteristic changes caused by ADC aging, updating the temperature drift characteristic database to ensure that the zero-point deviation and gain error in the database highly match the actual operating state of the ADC. This achieves dynamic real-time compensation for ADC temperature drift, improving sampling accuracy by more than 30%, improving motor control performance, and enhancing stability in a wide temperature range.
[0004] This invention is achieved through the following technical solution:
[0005] A method for suppressing temperature drift in a motor driver ADC based on dynamic parameter correction includes:
[0006] A temperature drift characteristic database of the ADC of the motor driver is constructed; wherein, the temperature drift characteristic database stores the zero-point deviation and gain error characteristic curves of the ADC at different temperatures;
[0007] When the motor driver is powered on, the initial temperature drift compensation parameters are applied to the ADC;
[0008] The real-time operating temperature of the ADC is collected, and the zero-point deviation and gain error corresponding to the real-time operating temperature are queried from the temperature drift characteristic database.
[0009] Based on the zero-point deviation and gain error obtained from the query, the original sampled value of the ADC is compensated;
[0010] When the motor driver is in a system idle state, the temperature drift characteristic database is updated to perform dynamic continuous compensation for the ADC.
[0011] Optionally, a database of temperature drift characteristics of the ADC of the motor driver is constructed, including:
[0012] The zero-point deviation and gain error of the ADC output are obtained for the motor driver located in the temperature-controlled chamber under different temperature conditions and different input voltage conditions; wherein, the different temperature conditions include several temperature values distributed at equal intervals; and the different input voltage conditions include several voltage values distributed at equal intervals from 0V to the full-scale voltage input.
[0013] The zero-point deviation and gain error of the ADC corresponding to all temperature values and all voltage values are fitted with a polynomial or piecewise linear function to obtain the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
[0014] Optionally, the real-time operating temperature of the ADC is collected, and the zero-point deviation and gain error corresponding to the real-time operating temperature are queried from the temperature drift characteristic database, including:
[0015] The operating temperatures of the ADC chip and its peripheral circuits are collected and compared, and the operating temperature with the higher value is taken as the real-time operating temperature of the ADC.
[0016] Based on the real-time operating temperature, query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
[0017] Optionally, the operating temperature of the ADC chip and its peripheral circuits is collected, and the presence of a potential malfunction risk in the current operation of the ADC chip is determined based on the collected and compared operating temperatures of the ADC chip and its peripheral circuits, including:
[0018] Real-time acquisition of the operating temperature of the ADC chip and its peripheral circuits;
[0019] Retrieve the highest and lowest operating temperatures corresponding to the ADC chip and its peripheral circuits;
[0020] Get the chip temperature of the ADC chip;
[0021] The first anomaly evaluation coefficient is obtained by combining the chip temperature of the ADC chip with the highest and lowest operating temperatures.
[0022] The first anomaly evaluation coefficient is obtained by the following formula:
[0023] S 01 =[[exp(-W x / W ref )] -1 ×(W max -W min ) / W x ] -0.5 ;
[0024] Among them, S 01 W represents the first anomaly evaluation coefficient. x This indicates the chip temperature of the ADC chip; W max and W min This indicates the highest and lowest operating temperatures; W ref This indicates the preset chip reference temperature;
[0025] Retrieve the zero-point deviation and gain error corresponding to each determined real-time operating temperature;
[0026] The second anomaly evaluation coefficient is obtained based on the zero-point deviation and gain error corresponding to the determined real-time operating temperature each time.
[0027] The second anomaly evaluation coefficient is obtained using the following formula:
[0028] ;
[0029] Among them, S 02 denoted by , indicating the second anomaly evaluation coefficient; 'n' represents the total number of determinations of the zero-point deviation and gain error corresponding to the real-time operating temperature; Vos(T) gi And Gain(T) gi Vos(T) represents the numerical values of the zero-point deviation and gain error determined in the i-th iteration after normalization. ci And Gain(T) ci This represents the standard deviation value corresponding to the n determined zero-point deviation and gain error after normalization.
[0030] A comprehensive anomaly evaluation coefficient is obtained using the first anomaly evaluation coefficient and the second anomaly evaluation coefficient.
[0031] The comprehensive anomaly evaluation coefficient is obtained using the following formula:
[0032] S z =S 01 ×S 02 ;
[0033] Among them, S z S represents the comprehensive anomaly evaluation coefficient. 01 S represents the first anomaly evaluation coefficient; 02 Indicates the second anomaly evaluation coefficient;
[0034] The comprehensive anomaly evaluation coefficient is compared with a preset coefficient threshold. When the comprehensive anomaly evaluation coefficient exceeds the preset coefficient threshold, it is determined that there is a risk of failure in the operation of the ADC chip, and a risk warning is issued.
[0035] Optionally, the original sampled values of the ADC are compensated based on the queried zero-point deviation and gain error, including:
[0036] Using the formula below, the original sampled values of the ADC are compensated based on the queried zero-point deviation and gain error.
[0037] V corrected =[V raw –Vos(T)]×Gain(T);
[0038] In the above formula, V raw V represents the raw sampled value of the ADC; corrected The value represents the compensated sampled value; T represents the real-time operating temperature; Vos(T) represents the zero-point deviation corresponding to the real-time operating temperature in the temperature drift characteristic database; Gain(T) represents the gain error corresponding to the real-time operating temperature in the temperature drift characteristic database.
[0039] Optionally, when the motor driver is in a system idle state, the temperature drift characteristic database is updated to perform dynamic continuous compensation for the ADC, including:
[0040] When the motor driver is in a system idle state, the input current of the motor driver is 0 and it is in a fixed PWM output state. At this time, the real-time operating temperature and real-time sampled value of the ADC are obtained.
[0041] Based on the real-time operating temperature and real-time sampled values of the ADC, determine the current zero-point deviation and gain error of the ADC;
[0042] After smoothing and updating the current zero-point deviation and gain error of the ADC, the data is written into the temperature drift characteristic database to update the zero-point deviation and gain error of the corresponding temperature in the temperature drift characteristic database.
[0043] When the motor driver is powered on again, the original sampled value of the ADC is compensated using the updated temperature drift characteristic database, thereby realizing dynamic continuous compensation of the ADC.
[0044] A motor driver ADC temperature drift suppression system based on dynamic parameter correction includes:
[0045] A database construction module is used to construct a temperature drift characteristic database of the ADC of the motor driver; wherein, the temperature drift characteristic database stores the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
[0046] An ADC initialization module is used to load initial temperature drift compensation parameters onto the ADC when the motor driver is powered on.
[0047] The database query module is used to collect the real-time operating temperature of the ADC, and thereby query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
[0048] The compensation module is used to compensate the original sampled values of the ADC based on the queried zero-point deviation and gain error.
[0049] The database update module is used to update the temperature drift characteristic database when the motor driver is in a system idle state, so as to perform dynamic continuous compensation for the ADC.
[0050] Optionally, the database construction module is used to construct a database of the temperature drift characteristics of the ADC of the motor driver, including:
[0051] The zero-point deviation and gain error of the ADC output are obtained for the motor driver located in the temperature-controlled chamber under different temperature conditions and different input voltage conditions; wherein, the different temperature conditions include several temperature values distributed at equal intervals; and the different input voltage conditions include several voltage values distributed at equal intervals from 0V to the full-scale voltage input.
[0052] The zero-point deviation and gain error of the ADC corresponding to all temperature values and all voltage values are fitted with a polynomial or piecewise linear function to obtain the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
[0053] Optionally, the database query module is used to collect the real-time operating temperature of the ADC, and thereby query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database, including:
[0054] The operating temperatures of the ADC chip and its peripheral circuits are collected and compared, and the operating temperature with the higher value is taken as the real-time operating temperature of the ADC.
[0055] Based on the real-time operating temperature, query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
[0056] Optionally, the compensation module is used to compensate the original sampled values of the ADC based on the queried zero-point deviation and gain error, including:
[0057] Using the formula below, the original sampled values of the ADC are compensated based on the queried zero-point deviation and gain error.
[0058] V corrected =[V raw –Vos(T)]×Gain(T);
[0059] In the above formula, V raw V represents the raw sampled value of the ADC; corrected The value represents the compensated sampled value; T represents the real-time operating temperature; Vos(T) represents the zero-point deviation corresponding to the real-time operating temperature in the temperature drift characteristic database; Gain(T) represents the gain error corresponding to the real-time operating temperature in the temperature drift characteristic database.
[0060] Optionally, the database update module is used to update the temperature drift characteristic database when the motor driver is in a system idle state, thereby performing dynamic continuous compensation for the ADC, including:
[0061] When the motor driver is in a system idle state, the input current of the motor driver is 0 and it is in a fixed PWM output state. At this time, the real-time operating temperature and real-time sampled value of the ADC are obtained.
[0062] Based on the real-time operating temperature and real-time sampled values of the ADC, determine the current zero-point deviation and gain error of the ADC;
[0063] After smoothing and updating the current zero-point deviation and gain error of the ADC, the data is written into the temperature drift characteristic database to update the zero-point deviation and gain error of the corresponding temperature in the temperature drift characteristic database.
[0064] The compensation module is also used to compensate the original sampled value of the ADC with the updated temperature drift characteristic database after the motor driver is powered on again, thereby realizing dynamic continuous compensation of the ADC.
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] This application provides a method and system for suppressing ADC temperature drift in a motor driver based on dynamic parameter correction. The system constructs a temperature drift characteristic database storing the zero-point deviation and gain error characteristic curves of the ADC at different temperatures. Based on the real-time operating temperature of the acquired ADC, the system queries the temperature drift characteristic database for the corresponding zero-point deviation and gain error to compensate for the ADC's original sampled values. When the motor driver is in an idle state, the temperature drift characteristic database is updated to perform dynamic and continuous compensation for the ADC. By constructing the temperature drift characteristic database, sufficient and accurate zero-point deviation and gain error parameters are provided for ADC temperature drift compensation, ensuring reliable temperature drift compensation during ADC operation. Furthermore, when the motor system is idle, self-learning calibration is performed to adapt to characteristic changes caused by ADC aging, updating the temperature drift characteristic database to ensure a high degree of matching between the database's zero-point deviation and gain error and the ADC's actual operating state. This achieves dynamic real-time compensation for ADC temperature drift, improving sampling accuracy by more than 30%, enhancing motor control performance, and improving stability in a wide temperature range. Attached Figure Description
[0067] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0068] Figure 1 This is a flowchart illustrating the method for suppressing temperature drift of a motor driver ADC based on dynamic parameter correction provided by the present invention.
[0069] Figure 2 A schematic diagram of the structure of the motor driver ADC temperature drift suppression system based on dynamic parameter correction provided by the present invention. Detailed Implementation
[0070] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings, not the entire structure. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.
[0071] The terms “comprising” and “having”, and any variations thereof, used in this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0072] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0073] Please see Figure 1 As shown, an embodiment of this application provides a method for suppressing temperature drift in a motor driver ADC based on dynamic parameter correction. This method includes:
[0074] Construct a temperature drift characteristic database for the ADC of the motor driver; the temperature drift characteristic database stores the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
[0075] When the motor driver is powered on, the initial temperature drift compensation parameters are applied to the ADC;
[0076] The real-time operating temperature of the ADC is collected, and the zero-point deviation and gain error corresponding to the real-time operating temperature are retrieved from the temperature drift characteristic database.
[0077] Based on the zero-point deviation and gain error obtained from the query, compensate the original sampled value of the ADC;
[0078] When the motor driver is in a system idle state, the temperature drift characteristic database is updated to perform dynamic and continuous compensation for the ADC.
[0079] The beneficial effects of the above embodiments are as follows: This motor driver ADC temperature drift suppression method based on dynamic parameter correction constructs a temperature drift characteristic database storing the zero-point deviation and gain error characteristic curves of the ADC at different temperatures; based on the real-time operating temperature of the acquired ADC, it queries the temperature drift characteristic database for the zero-point deviation and gain error corresponding to the real-time operating temperature, thereby compensating for the original sampled value of the ADC; when the motor driver is in a system idle state, the temperature drift characteristic database is updated, thereby implementing dynamic continuous compensation for the ADC. By constructing a temperature drift characteristic database, it provides sufficiently accurate zero-point deviation and gain error parameters for ADC temperature drift compensation, ensuring reliable temperature drift compensation correction during ADC operation; it also performs self-learning calibration when the motor system is idle to adapt to the characteristic changes caused by ADC aging, and updates the temperature drift characteristic database to ensure that the zero-point deviation and gain error in the database are highly matched with the actual operating state of the ADC, realizing dynamic real-time compensation for ADC temperature drift, improving sampling accuracy by more than 30%, improving motor control performance, and enhancing stability in a wide temperature range operating environment.
[0080] In another embodiment, constructing a database of temperature drift characteristics of the motor driver's ADC includes:
[0081] The zero-point deviation and gain error of the ADC output of the motor driver located in the temperature-controlled chamber are obtained under different temperature conditions and different input voltage conditions. The different temperature conditions include several temperature values that are equally distributed; the different input voltage conditions include several voltage values that are equally distributed from 0V to the full-scale voltage input.
[0082] The zero-point deviation and gain error of the ADC corresponding to all temperature and voltage values are fitted with polynomial or piecewise linear functions to obtain the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
[0083] The beneficial effects of the above embodiments are that different types of analog-to-digital converters (ADCs) have different performance parameters, and the initial temperature drift and the degree of temperature drift degradation after long-term operation and aging also differ. Generally speaking, the higher the temperature, the higher the temperature drift of the ADC. Furthermore, the temperature drift of the ADC varies under different input voltage values; generally, the higher the input voltage, the higher the temperature drift. Also, the temperature drift of the ADC exhibits a non-linear trend with temperature changes. To accurately characterize the temperature drift characteristics and collect temperature drift feature data for each ADC over a wide range, a controllable temperature chamber can be used to provide different temperature conditions to the motor driver. While changing the temperature of the controllable temperature chamber, different input voltages are simultaneously provided to the motor driver, thereby providing the ADC with a wide range of temperature-variable environments and enabling the ADC to perform a wide range of numerical sampling. To achieve data diversity and richness in the temperature drift characteristic database, the temperature variation range within the controllable temperature chamber can be, but is not limited to, the operating temperature range corresponding to the actual operation of the motor driver ADC. Furthermore, the temperature variation step size of the controllable temperature chamber can be, but is not limited to, 0.1℃ or 0.5℃. Additionally, whenever the temperature of the controllable temperature chamber changes at the aforementioned temperature variation step size, multiple input voltages from 0V to the full-scale voltage are input to the motor driver, and the variation step size of these input voltages can be, but is not limited to, 0.1V or 0.5V. Whenever the controllable temperature chamber reaches a corresponding temperature and a corresponding voltage is input to the motor driver, the zero-point deviation and gain error of the analog-to-digital converter (ADC) at the current temperature and input voltage are synchronously acquired. Then, polynomial or piecewise linear function fitting is performed on the zero-point deviation and gain error corresponding to all temperatures and input voltages to obtain the zero-point deviation and gain error characteristic curves of the ADC at different temperatures. This characterizes the nonlinear temperature drift characteristics of the ADC over a large temperature range, providing a basis for subsequent suppression of ADC temperature drift.
[0084] In another embodiment, the real-time operating temperature of the ADC is acquired, and the zero-point deviation and gain error corresponding to the real-time operating temperature are retrieved from a temperature drift characteristic database, including:
[0085] The operating temperatures of the ADC chip and its peripheral circuits are collected and compared, and the operating temperature with the higher value is taken as the real-time operating temperature of the ADC.
[0086] Based on the real-time operating temperature, query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
[0087] The beneficial effects of the above embodiments are that the temperature drift of the analog-to-digital converter (ADC) in the motor driver is affected by the temperature rise changes during the operation of its own chip and the temperature rise changes during the operation of its surrounding circuits. In order to accurately determine the current temperature drift of the ADC, the operating temperature of the ADC chip and the operating temperature of its surrounding circuits are first collected. The chip operating temperature and the operating temperature of the surrounding circuits are compared, and the operating temperature with the higher value is taken as the real-time operating temperature of the ADC. Then, based on the real-time operating temperature, the zero-point deviation and gain error that match the real-time operating temperature are queried from the temperature drift characteristic database. That is, the zero-point deviation and gain error corresponding to the real-time operating temperature are extracted from the zero-point deviation and gain error characteristic curves of the temperature drift characteristic database, providing parameter basis for subsequent compensation of the temperature drift fluctuations corresponding to the original sampled values collected by the ADC during the operation of the motor driver.
[0088] In another embodiment, the operating temperature of the ADC chip and its surrounding circuits is collected, and the presence of a fault risk in the current operation of the ADC chip is determined based on the collected and compared operating temperatures of the ADC chip and its surrounding circuits, including:
[0089] Real-time acquisition of the operating temperature of the ADC chip and its peripheral circuits;
[0090] Retrieve the highest and lowest operating temperatures corresponding to the ADC chip and its peripheral circuits;
[0091] Get the chip temperature of the ADC chip;
[0092] The first anomaly evaluation coefficient is obtained by combining the chip temperature of the ADC chip with the highest and lowest operating temperatures.
[0093] The first anomaly evaluation coefficient is obtained by the following formula:
[0094] S 01 =[[exp(-W x / W ref )] -1 ×(W max -W min ) / W x ] -0.5 ;
[0095] Among them, S 01 W represents the first anomaly evaluation coefficient. x This indicates the chip temperature of the ADC chip; W max and W min This indicates the highest and lowest operating temperatures; W ref This indicates the preset chip reference temperature;
[0096] Retrieve the zero-point deviation and gain error corresponding to each determined real-time operating temperature;
[0097] The second anomaly evaluation coefficient is obtained based on the zero-point deviation and gain error corresponding to the determined real-time operating temperature each time.
[0098] The second anomaly evaluation coefficient is obtained using the following formula:
[0099] ;
[0100] Among them, S 02 denoted by , indicating the second anomaly evaluation coefficient; 'n' represents the total number of determinations of the zero-point deviation and gain error corresponding to the real-time operating temperature; Vos(T) gi And Gain(T) gi Vos(T) represents the numerical values of the zero-point deviation and gain error determined in the i-th iteration after normalization. ci And Gain(T) ci This represents the standard deviation value corresponding to the n determined zero-point deviation and gain error after normalization.
[0101] A comprehensive anomaly evaluation coefficient is obtained using the first anomaly evaluation coefficient and the second anomaly evaluation coefficient.
[0102] The comprehensive anomaly evaluation coefficient is obtained using the following formula:
[0103] S z =S 01 ×S 02 ;
[0104] Among them, S z S represents the comprehensive anomaly evaluation coefficient. 01 S represents the first anomaly evaluation coefficient; 02 Indicates the second anomaly evaluation coefficient;
[0105] The comprehensive anomaly evaluation coefficient is compared with a preset coefficient threshold. When the comprehensive anomaly evaluation coefficient exceeds the preset coefficient threshold, it is determined that there is a risk of failure in the operation of the ADC chip, and a risk warning is issued.
[0106] The above embodiments offer several advantages. Traditional ADC fault diagnosis often relies solely on a single dimension, such as "whether the temperature exceeds the threshold" or "whether the accuracy exceeds the range," which can easily lead to missed or false diagnoses like "normal temperature but abnormal accuracy (e.g., temperature drift causing zero-point deviation to exceed the limit)" or "normal accuracy but temperature approaching the critical value (e.g., overheating of peripheral circuits leading to chip overheating)." This solution, through the fusion calculation of a first anomaly evaluation coefficient (temperature dimension) and a second anomaly evaluation coefficient (performance dimension), simultaneously covers both the ADC's "hardware temperature status" and "core performance status," ensuring a more comprehensive anomaly risk assessment and effectively avoiding the limitations of single-dimensional judgment. Quantitative calculation improves the accuracy of anomaly judgment and reduces subjective errors. The first anomaly evaluation coefficient combines an exponential function with the temperature range to non-linearly quantify the "degree of temperature deviation," avoiding the "insufficient risk perception near the critical temperature" caused by traditional "black and white" threshold judgments. The second anomaly evaluation coefficient uses "standard deviation analysis of multiple data sets" to statistically quantify the fluctuation stability of accuracy indicators, reducing false diagnoses caused by accidental fluctuations in single data sets. The combination of these two approaches transforms anomaly detection from a "qualitative judgment" to a "quantitative calculation," improving the consistency and accuracy of the results. In this embodiment, all parameters (temperature, zero-point deviation, gain error) are calculated based on "real-time acquired data." Furthermore, the first anomaly evaluation coefficient, the second anomaly evaluation coefficient, and the comprehensive anomaly evaluation coefficient are dynamically updated with real-time data. When the temperature of the ADC's peripheral circuitry rises sharply, or when changes in ambient temperature cause fluctuations in accuracy indicators, the system can capture these changes in real time and update the anomaly evaluation coefficients synchronously. This avoids the risk perception delay caused by traditional "fixed-cycle detection" and ensures a rapid response to sudden anomalies.
[0107] Meanwhile, the comprehensive anomaly evaluation coefficient (S) z The judgment logic can trigger an early warning in the early stage when the ADC chip is not completely failed but has already shown "temperature deviation from normal range + abnormal accuracy fluctuation". For example, if the chip temperature has not reached Wmax, but has already caused the zero-point deviation fluctuation to increase, Sz will exceed the threshold in advance, prompting the user to check the fault (such as heat dissipation problems of surrounding circuits, power fluctuations), so as to avoid subsequent data acquisition errors (such as data distortion in industrial testing and medical equipment) after the ADC is completely failed. This significantly improves the reliability of the entire data acquisition system and reduces fault repair costs and business interruption losses.
[0108] In another embodiment, compensating the original sampled value of the ADC based on the queried zero-point deviation and gain error includes:
[0109] Using the formula below, the original sampled values of the ADC are compensated based on the zero-point deviation and gain error obtained from the query.
[0110] V corrected =[V raw –Vos(T)]×Gain(T);
[0111] In the above formula, V raw V represents the raw sampled value of the ADC; corrected The value represents the compensated sampled value; T represents the real-time operating temperature; Vos(T) represents the zero-point deviation corresponding to the real-time operating temperature in the temperature drift characteristic database; Gain(T) represents the gain error corresponding to the real-time operating temperature in the temperature drift characteristic database.
[0112] The beneficial effects of the above embodiments are that whenever the analog-to-digital converter generates an original sample value, it queries the corresponding zero-point deviation and gain error from the temperature drift characteristic database based on the real-time operating temperature corresponding to the original sample value, and uses the above formula to perform temperature drift compensation on the original sample value to obtain the compensated sample value. The compensated sample value is then used in the motor control algorithm to achieve effective feedback control of motor operation and ensure the stability and reliability of motor operation.
[0113] In another embodiment, when the motor driver is in a system idle state, the temperature drift characteristic database is updated to perform dynamic continuous compensation for the ADC, including:
[0114] When the motor driver is in the system idle state, the input current of the motor driver is 0 and it is in a fixed PWM output state. At this time, the real-time operating temperature and real-time sampled value of the ADC are obtained.
[0115] Based on the ADC's real-time operating temperature and real-time sampled values, determine the ADC's current zero-point deviation and gain error;
[0116] After smoothing and updating the current zero-point deviation and gain error of the ADC, the data is written into the temperature drift characteristic database to update the zero-point deviation and gain error of the corresponding temperature in the temperature drift characteristic database.
[0117] When the motor driver is powered on again, the updated temperature drift characteristic database is used to compensate the original sampled value of the ADC, thereby realizing dynamic continuous compensation of the ADC.
[0118] The beneficial effects of the above embodiments are that, considering the motor is not always in operation, when the motor driver is in a system idle state (e.g., the motor driver does not need to perform the corresponding driving task), the input current of the motor driver is set to 0A (corresponding to the calibration zero point) and it is in a fixed PWM output state (corresponding to the calibration gain). At this time, the real-time operating temperature and real-time sampled value of the analog-to-digital converter are obtained. Based on the above real-time operating temperature and real-time sampled value, the current zero-point deviation and gain error of the analog-to-digital converter are calculated; where the current zero-point deviation of the analog-to-digital converter = real-time sampled value - 0; the current gain error of the analog-to-digital converter = (real-time sampled value / theoretical sampled value) - 1. Then, the current zero-point deviation and gain error of the analog-to-digital converter are smoothed and updated through parameter self-learning, and the updated parameters (new zero-point deviation and new gain error) are written into the temperature drift characteristic database; the above smoothing update process is a conventional technical means in this field and will not be described in detail. When the motor driver is powered on again, the original sampled value of the analog-to-digital converter is compensated accordingly using the updated temperature drift characteristic database according to the above operation process, thereby realizing dynamic continuous compensation of the ADC.
[0119] Please see Figure 2 As shown, an embodiment of this application provides a motor driver ADC temperature drift suppression system based on dynamic parameter correction. This motor driver ADC temperature drift suppression system based on dynamic parameter correction includes:
[0120] The database construction module is used to build a temperature drift characteristic database for the ADC of the motor driver; the temperature drift characteristic database stores the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
[0121] The ADC initialization module is used to load initial temperature drift compensation parameters onto the ADC when the motor driver is powered on.
[0122] The database query module is used to collect the real-time operating temperature of the ADC, and then query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
[0123] The compensation module is used to compensate the original sampled value of the ADC based on the queried zero-point deviation and gain error;
[0124] The database update module is used to update the temperature drift characteristic database when the motor driver is in a system idle state, so as to implement dynamic continuous compensation for the ADC.
[0125] In another embodiment, the database construction module is used to construct a database of the temperature drift characteristics of the ADC of the motor driver, including:
[0126] The zero-point deviation and gain error of the ADC output of the motor driver located in the temperature-controlled chamber are obtained under different temperature conditions and different input voltage conditions. The different temperature conditions include several temperature values that are equally distributed; the different input voltage conditions include several voltage values that are equally distributed from 0V to the full-scale voltage input.
[0127] The zero-point deviation and gain error of the ADC corresponding to all temperature and voltage values are fitted with polynomial or piecewise linear functions to obtain the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
[0128] In another embodiment, the database query module is used to acquire the real-time operating temperature of the ADC, and thereby query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database, including:
[0129] The operating temperatures of the ADC chip and its peripheral circuits are collected and compared, and the operating temperature with the higher value is taken as the real-time operating temperature of the ADC.
[0130] Based on the real-time operating temperature, query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
[0131] In another embodiment, the compensation module is used to compensate the original sampled value of the ADC based on the queried zero-point deviation and gain error, including:
[0132] Using the formula below, the original sampled values of the ADC are compensated based on the zero-point deviation and gain error obtained from the query.
[0133] V corrected =[V raw –Vos(T)]×Gain(T);
[0134] In the above formula, V raw V represents the raw sampled value of the ADC; corrected The value represents the compensated sampled value; T represents the real-time operating temperature; Vos(T) represents the zero-point deviation corresponding to the real-time operating temperature T in the temperature drift characteristic database; Gain(T) represents the gain error corresponding to the real-time operating temperature in the temperature drift characteristic database.
[0135] In another embodiment, the database update module is used to update the temperature drift characteristic database when the motor driver is in a system idle state, thereby performing dynamic continuous compensation for the ADC, including:
[0136] When the motor driver is in the system idle state, the input current of the motor driver is 0 and it is in a fixed PWM output state. At this time, the real-time operating temperature and real-time sampled value of the ADC are obtained.
[0137] Based on the ADC's real-time operating temperature and real-time sampled values, determine the ADC's current zero-point deviation and gain error;
[0138] After smoothing and updating the current zero-point deviation and gain error of the ADC, the data is written into the temperature drift characteristic database to update the zero-point deviation and gain error of the corresponding temperature in the temperature drift characteristic database.
[0139] The compensation module is also used to compensate the original sampled value of the ADC with the updated temperature drift characteristic database after the motor driver is powered on again, thereby realizing dynamic continuous compensation of the ADC.
[0140] The operation and effect of the motor driver ADC temperature drift suppression system based on dynamic parameter correction of the present invention are consistent with the above-mentioned motor driver ADC temperature drift suppression method based on dynamic parameter correction. Therefore, the description of the motor driver ADC temperature drift suppression system based on dynamic parameter correction will not be repeated here.
[0141] In summary, this method and system for suppressing ADC temperature drift in a motor driver based on dynamic parameter correction constructs a temperature drift characteristic database storing the zero-point deviation and gain error characteristic curves of the ADC at different temperatures. Based on the real-time operating temperature of the acquired ADC, the system queries the temperature drift characteristic database for the corresponding zero-point deviation and gain error to compensate for the ADC's original sampled values. When the motor driver is in an idle state, the temperature drift characteristic database is updated to perform dynamic and continuous compensation for the ADC. By constructing the temperature drift characteristic database, sufficient and accurate zero-point deviation and gain error parameters are provided for ADC temperature drift compensation, ensuring reliable temperature drift compensation correction during ADC operation. Furthermore, when the motor system is idle, self-learning calibration is performed to adapt to characteristic changes caused by ADC aging, updating the temperature drift characteristic database to ensure that the database's zero-point deviation and gain error highly match the actual operating state of the ADC. This achieves dynamic real-time compensation for ADC temperature drift, improving sampling accuracy by more than 30%, enhancing motor control performance, and improving stability in a wide temperature range operating environment.
[0142] The above is only one specific embodiment of the present invention, and any improvements made based on the concept of the present invention shall be considered within the scope of protection of the present invention.
Claims
1. A method for suppressing temperature drift in a motor driver ADC based on dynamic parameter correction, characterized in that, include: A temperature drift characteristic database of the ADC of the motor driver is constructed; wherein, the temperature drift characteristic database stores the zero-point deviation and gain error characteristic curves of the ADC at different temperatures; When the motor driver is powered on, the initial temperature drift compensation parameters are applied to the ADC; The real-time operating temperature of the ADC is collected, and the zero-point deviation and gain error corresponding to the real-time operating temperature are queried from the temperature drift characteristic database. Based on the zero-point deviation and gain error obtained from the query, the original sampled value of the ADC is compensated; When the motor driver is in a system idle state, the temperature drift characteristic database is updated to perform dynamic and continuous compensation for the ADC. This includes collecting the operating temperature of the ADC chip and its peripheral circuits, and determining whether there is a risk of malfunction in the current operation of the ADC chip based on the collected and compared operating temperatures. Real-time acquisition of the operating temperature of the ADC chip and its peripheral circuits; Retrieve the highest and lowest operating temperatures corresponding to the ADC chip and its peripheral circuits; Get the chip temperature of the ADC chip; The first anomaly evaluation coefficient is obtained by combining the chip temperature of the ADC chip with the highest and lowest operating temperatures. The first anomaly evaluation coefficient is obtained by the following formula: S01=[[exp(-Wx / Wref)]-1×(Wmax-Wmin) / Wx]-0.5; Where S01 represents the first anomaly evaluation coefficient; Wx represents the chip temperature of the ADC chip; Wmax and Wmin represent the highest and lowest operating temperatures, respectively; and Wref represents the preset chip reference temperature. Retrieve the zero-point deviation and gain error corresponding to each determined real-time operating temperature; The second difference is obtained based on the zero-point deviation and gain error corresponding to the determined real-time operating temperature each time. Common evaluation coefficient; The second anomaly evaluation coefficient is obtained using the following formula: Where S02 represents the second anomaly evaluation coefficient; n represents the total number of determinations of the zero-point deviation and gain error corresponding to the real-time operating temperature; Vos(T)gi and Gain(T)gi represent the values corresponding to the i-th determination of the zero-point deviation and gain error after normalization; Vos(T)ci and Gain(T)ci represent the standard deviation values corresponding to the n-th determination of the zero-point deviation and gain error after normalization. A comprehensive anomaly evaluation coefficient is obtained using the first anomaly evaluation coefficient and the second anomaly evaluation coefficient. The comprehensive anomaly evaluation coefficient is obtained using the following formula: Sz = S01 × S02; Where Sz represents the comprehensive anomaly evaluation coefficient; S01 represents the first anomaly evaluation coefficient; and S02 represents the second anomaly evaluation coefficient. The comprehensive anomaly evaluation coefficient is compared with a preset coefficient threshold. When the comprehensive anomaly evaluation coefficient exceeds the preset coefficient threshold, it is determined that there is a risk of failure in the operation of the ADC chip, and a risk warning is issued.
2. The method for suppressing temperature drift of a motor driver ADC based on dynamic parameter correction as described in claim 1, characterized in that: Construct a database of temperature drift characteristics for the ADC of the motor driver, including: The zero-point deviation and gain error of the ADC output are obtained for the motor driver located in the temperature-controlled chamber under different temperature conditions and different input voltage conditions; wherein, the different temperature conditions include several temperature values distributed at equal intervals; and the different input voltage conditions include several voltage values distributed at equal intervals from 0V to the full-scale voltage input. The zero-point deviation and gain error of the ADC for all temperature and voltage values are fitted with a polynomial or piecewise linear function to obtain the zero-point deviation of the ADC at different temperatures. Point deviation and gain error characteristic curves.
3. The method for suppressing temperature drift of a motor driver ADC based on dynamic parameter correction as described in claim 1, characterized in that: The real-time operating temperature of the ADC is collected, and the zero-point deviation and gain error corresponding to the real-time operating temperature are retrieved from the temperature drift characteristic database, including: The operating temperatures of the ADC chip and its peripheral circuits are collected and compared, and the operating temperature with the higher value is taken as the real-time operating temperature of the ADC. Based on the real-time operating temperature, query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
4. The method for suppressing temperature drift of a motor driver ADC based on dynamic parameter correction as described in claim 1, characterized in that: Based on the queried zero-point deviation and gain error, the original sampled value of the ADC is compensated, including: using the following formula, to compensate the original sampled value of the ADC based on the queried zero-point deviation and gain error. Vcorrected=[Vraw–Vos(T)]×Gain(T); In the above formula, Vraw represents the original sampled value of the ADC; Vcorrected represents the compensated sampled value; T represents the real-time operating temperature; Vos(T) represents the zero-point deviation corresponding to the real-time operating temperature in the temperature drift characteristic database; and Gain(T) represents the gain error corresponding to the real-time operating temperature in the temperature drift characteristic database.
5. The method for suppressing temperature drift of a motor driver ADC based on dynamic parameter correction as described in claim 1, characterized in that: When the motor driver is in a system idle state, the temperature drift characteristic database is updated to perform dynamic continuous compensation for the ADC, including: When the motor driver is in a system idle state, the input current of the motor driver is 0 and in a fixed PWM output state, at which time the real-time operating temperature and real-time sampled value of the ADC are obtained; Based on the real-time operating temperature and real-time sampled values of the ADC, determine the current zero-point deviation and gain error of the ADC; After smoothing and updating the current zero-point deviation and gain error of the ADC, the data is written into the temperature drift characteristic database to update the zero-point deviation and gain error of the corresponding temperature in the temperature drift characteristic database. When the motor driver is powered on again, the original sampled value of the ADC is compensated using the updated temperature drift characteristic database, thereby realizing dynamic continuous compensation of the ADC.
6. A motor driver ADC temperature drift suppression system based on dynamic parameter correction, characterized in that, include: A database construction module is used to construct a temperature drift characteristic database of the ADC of the motor driver; wherein, the temperature drift characteristic database stores the zero-point deviation and gain error characteristic curves of the ADC at different temperatures; An ADC initialization module is used to load initial temperature drift compensation parameters onto the ADC when the motor driver is powered on. The database query module is used to collect the real-time operating temperature of the ADC, and thereby query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database. The compensation module is used to compensate the original sampled values of the ADC based on the queried zero-point deviation and gain error. The database update module is used to update the temperature drift characteristic database when the motor driver is in a system idle state, so as to perform dynamic continuous compensation for the ADC. This includes collecting the operating temperature of the ADC chip and its peripheral circuits, and determining whether there is a risk of malfunction in the current operation of the ADC chip based on the collected and compared operating temperatures. Real-time acquisition of the operating temperature of the ADC chip and its peripheral circuits; Retrieve the highest and lowest operating temperatures corresponding to the ADC chip and its peripheral circuits; Get the chip temperature of the ADC chip; The first anomaly evaluation coefficient is obtained by combining the chip temperature of the ADC chip with the highest and lowest operating temperatures. The first anomaly evaluation coefficient is obtained by the following formula: S01=[[exp(-Wx / Wref)]-1×(Wmax-Wmin) / Wx]-0.5; Where S01 represents the first anomaly evaluation coefficient; Wx represents the chip temperature of the ADC chip; Wmax and Wmin represent the highest and lowest operating temperatures, respectively; and Wref represents the preset chip reference temperature. Retrieve the zero-point deviation and gain error corresponding to each determined real-time operating temperature; The second anomaly evaluation coefficient is obtained based on the zero-point deviation and gain error corresponding to the determined real-time operating temperature each time. The second anomaly evaluation coefficient is obtained using the following formula: Where S02 represents the second anomaly evaluation coefficient; n represents the total number of determinations of the zero-point deviation and gain error corresponding to the real-time operating temperature; Vos(T)gi and Gain(T)gi represent the values corresponding to the i-th determination of the zero-point deviation and gain error after normalization; Vos(T)ci and Gain(T)ci represent the standard deviation values corresponding to the n-th determination of the zero-point deviation and gain error after normalization. A comprehensive anomaly evaluation coefficient is obtained using the first anomaly evaluation coefficient and the second anomaly evaluation coefficient. The comprehensive anomaly evaluation coefficient is obtained using the following formula: Sz = S01 × S02; Where Sz represents the comprehensive anomaly evaluation coefficient; S01 represents the first anomaly evaluation coefficient; and S02 represents... Second anomaly evaluation coefficient; The comprehensive anomaly evaluation coefficient is compared with a preset coefficient threshold. When the comprehensive anomaly evaluation coefficient exceeds the preset coefficient threshold, it is determined that there is a risk of failure in the operation of the ADC chip, and a risk warning is issued.
7. The motor driver ADC temperature drift suppression system based on dynamic parameter correction as described in claim 6, characterized in that: The database construction module is used to construct a database of temperature drift characteristics of the ADC of the motor driver, including: The zero-point deviation and gain error of the ADC output are obtained for the motor driver located in the temperature-controlled chamber under different temperature conditions and different input voltage conditions; wherein, the different temperature conditions include several temperature values distributed at equal intervals; and the different input voltage conditions include several voltage values distributed at equal intervals from 0V to the full-scale voltage input. The zero-point deviation and gain error of the ADC corresponding to all temperature values and all voltage values are fitted with a polynomial or piecewise linear function to obtain the zero-point deviation and gain error characteristic curves of the ADC at different temperatures.
8. The motor driver ADC temperature drift suppression system based on dynamic parameter correction as described in claim 6, characterized in that: The database query module is used to collect the real-time operating temperature of the ADC, and thereby query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database, including: The operating temperatures of the ADC chip and its peripheral circuits are collected and compared, and the operating temperature with the higher value is taken as the real-time operating temperature of the ADC. Based on the real-time operating temperature, query the zero-point deviation and gain error corresponding to the real-time operating temperature from the temperature drift characteristic database.
9. The motor driver ADC temperature drift suppression system based on dynamic parameter correction as described in claim 6, characterized in that: The compensation module is used to compensate the original sampled values of the ADC based on the queried zero-point deviation and gain error, including: Using the following formula, the original sampled values of the ADC are compensated based on the queried zero-point deviation and gain error. Vcorrected=[Vraw–Vos(T)]×Gain(T); In the above formula, Vraw represents the original sampled value of the ADC; Vcorrected represents the compensated sampled value; T represents the real-time operating temperature; Vos(T) represents the zero-point deviation corresponding to the real-time operating temperature in the temperature drift characteristic database; and Gain(T) represents the gain error corresponding to the real-time operating temperature in the temperature drift characteristic database.
10. The motor driver ADC temperature drift suppression system based on dynamic parameter correction as described in claim 6, characterized in that: The database update module is used to update the temperature drift characteristic database when the motor driver is in a system idle state, thereby performing dynamic continuous compensation for the ADC, including: When the motor driver is in a system idle state, the input current of the motor driver is 0 and it is in a fixed PWM output state. At this time, the real-time operating temperature and real-time sampled value of the ADC are obtained. Based on the real-time operating temperature and real-time sampled values of the ADC, determine the current zero-point deviation and gain error of the ADC; After smoothing and updating the current zero-point deviation and gain error of the ADC, the data is written into the temperature drift characteristic database to update the zero-point deviation and gain error of the corresponding temperature in the temperature drift characteristic database. The compensation module is also used to compensate the original sampled value of the ADC using the updated temperature drift characteristic database after the motor driver is powered on again, thereby realizing the implementation of the ADC. Dynamic continuous compensation.
Citation Information
Patent Citations
Compensation circuit for sensitivity and zero temperature drift in Hall sensor integrated chip and compensation method thereof
CN110542870A
Motor control method, motor control device and motor control module
CN114070163A