Sensor angle nonlinear error checking method and system, electronic equipment and medium

Through the dynamic iterative verification method and the inductive angle integral algorithm, the reference and actual angle of the angle sensor are extracted and compared, and the non-linear error problem is solved, achieving high-precision error calibration and system adaptability.

CN120063104AActive Publication Date: 2025-05-30SHANGHAI FOURIER INTELLIGENCE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510551632.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-05-30
Estimated Expiration
2045-04-29

AI Technical Summary

Technical Problem

The angle sensor has nonlinear errors in the motor control system, resulting in positioning deviations and vibration abnormalities. The existing linear error compensation method cannot effectively deal with higher-order harmonic components and error time-varying.

Method used

The dynamic iterative verification method is used to extract the reference angle through the inductive angle integration algorithm, compare it with the actual angle, extract the basic error value, perform nonlinear error separation and compensation, and realize error calibration and verification.

Benefits of technology

The verification accuracy and system adaptability of the angle sensor are significantly improved, error convergence is achieved, and the verification success rate is increased to 99.7%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120063104A_ABST
    Figure CN120063104A_ABST
Patent Text Reader

Abstract

The invention discloses a sensor angle nonlinear error checking method and system, electronic equipment and a medium, and relates to the technical field of sensors. The method comprises the following steps: receiving a first reference angle of a motor provided with an angle sensor and a first actual angle of the angle sensor in the rotation process of the motor; determining a basic error value based on the first reference angle and the first actual angle, and calibrating the angle sensor according to the basic error value; a second reference angle and a second actual angle after calibration are obtained, the second actual angle is the sum of the first actual angle and the basic error value, the comparison value of the second reference angle and the second actual angle is determined, and when the maximum value of the comparison value is smaller than or equal to the preset value, verification is completed. The problem of nonlinear errors of the angle sensor can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sensors, and particularly to a method, a system, an electronic device, and a medium for calibrating the angular non-linear error of a sensor. Background Art

[0002] In an angular sensor, an accelerometer is used to detect the angle by measuring the gravity component. With the rapid development of industrial automation technology, angular sensors are widely used in precision control systems such as servo motors and robot joints. However, due to factors such as manufacturing process deviation, temperature drift, and mechanical installation error, angular sensors generally have non-linear angular detection errors, resulting in problems such as positioning deviation and abnormal vibration in the motor control system.

[0003] Currently, the mainstream calibration methods mainly focus on linear error compensation. For example, the linear calibration method of an angular sensor by the least squares method constructs a linear error model by collecting multiple groups of angular sample data. However, this method has two significant defects: Insufficient non-linear error processing: Only the linear error component is compensated, and the non-linear error caused by high-order harmonic components is not considered; Limitations of single calibration: The one-time calibration strategy is adopted, and the time-varying characteristics of the error caused by mechanical wear during the operation of the motor are not considered. In practical applications, frequent re-calibration is required.

[0004] There are also some methods that use an externally deployed high-precision encoder as a reference benchmark, which significantly increases the system complexity and hardware cost. Therefore, there is an urgent need to develop an angular sensor calibration method that can effectively eliminate non-linear errors, has an adaptive iterative calibration ability, and does not rely on expensive detection equipment to improve the long-term operation accuracy and stability of the motor control system. Summary of the Invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the purpose of the present invention is to provide a method, a system, an electronic device, and a medium for calibrating the angular non-linear error of a sensor to solve the non-linear error problem of the angular sensor.

[0006] The purpose of the present invention is achieved by the following technical solutions: The first aspect of the present invention discloses a method for calibrating the angular non-linear error of a sensor, which includes: Receiving the first reference angle of a motor equipped with an angular sensor and the first actual angle of the angular sensor during the rotation of the motor; Determining a basic error value based on the first reference angle and the first actual angle, and calibrating the angular sensor according to the basic error value; Obtain the calibrated second reference angle and the second actual angle, where the second actual angle is the sum of the first actual angle and the basic error value, determine the comparison value between the second reference angle and the second actual angle, and when the maximum value of the comparison value is less than or equal to the preset value, the verification is completed; Receive the first reference angle of the motor equipped with the angle sensor, including: Perform a zero-crossing detection on the angle sensor; When the angle sensor is at zero, after setting the first reference angle to zero, obtain the first reference angle of the rotation of the motor through the sensorless angle integration algorithm; When the angle sensor is not at zero, judge the number of zero-crossings of the angle sensor. When the number of zero-crossings is greater than 1, obtain the first reference angle of the rotation of the motor through the sensorless angle integration algorithm.

[0007] The sensor angle non-linear error verification method provided by the present invention adopts a dynamic iterative verification mechanism, extracts the first reference angle (theoretical value) in a sensorless manner, and compares it with the first actual angle collected by the angle sensor itself, so as to extract the basic error value containing high-order harmonic components, which can effectively identify the high-order harmonic errors that cannot be captured by traditional linear verification methods. Through the non-linear error separation and compensation technology, the verification accuracy and system adaptability are significantly improved. Then, the verification completion condition (verification step) is dynamically judged, and error convergence can be achieved without manual intervention. Compared with the single verification scheme, the verification success rate is increased to 99.7% (test sample N = 1000).

[0008] It can be verified and validated at the time of factory shipment, and the corresponding basic error value is stored in the memory. When in use, the system adds this basic error value on the basis of the actual data collected by the angle sensor to obtain the actual rotation angle of the motor or other rotating devices. In addition, when used in conjunction with the motor, periodic verification can also be set or non-periodic verification can be performed as needed. For example, the periodic verification can be performed once a month, and for non-periodic verification, a verification button can be set on the housing, and when needed, the verification button can be pressed to start the verification.

[0009] Through the sensorless angle integration algorithm, on the one hand, it emphasizes the user's insensitivity during the calibration process, and on the other hand, it directly calculates the true angle of the motor rotor through the sensorless angle integration algorithm, getting rid of the dependence on additional position sensors. The sensorless angle integration algorithm integrates the motor back electromotive force observer and can correct the integral cumulative error caused by sudden changes in speed in real time.

[0010] By performing zero-crossing detection to forcibly reset the reference angle at the zero point of the angle sensor, the angular cumulative error caused by temperature drift / noise in the traditional integration algorithm can be eliminated. After the number of zero-crossings is greater than 1, that is, when the motor rotates smoothly, the first reference angle and the first actual angle are obtained, thus ensuring the accuracy of calibration. The same method is used to obtain the second reference angle and the second actual angle.

[0011] In a preferred embodiment, the sensorless angle integration algorithm uses a non-linear flux observer.

[0012] The non-linear flux observer is used to accurately track the distortion of the motor back electromotive force waveform. Without sensors, it can also reduce the angle calculation error from ±1.2° of the traditional linear observer to ±0.15°, breaking through the speed bottleneck of the sensorless algorithm. The adaptive notch filter of the flux observer can suppress the PWM carrier harmonics in real time, significantly improving the signal-to-noise ratio of the angle calculation. When the non-linear flux observer is discretized, a single-cycle operation at the 10 μs level can be achieved, saving computing resources compared to the traditional model predictive control scheme and supporting deployment on low-cost MCUs.

[0013] In a preferred embodiment, a basic error value is determined based on the first reference angle and the first actual angle, and the angle sensor is calibrated according to the basic error value, including: Determining the basic error value based on the first reference angle and the first actual angle: Wherein, A e is the basic error value, A 1ij is the first reference angle of the i rd j sector of the A 2ij th i rotation of the motor, j is the first actual angle collected by the angle sensor corresponding to the i th m sector of the j th n rotation of the motor, 1 ≤ m ≤ n , 1 ≤ ≤ A 2 is the actual value collected by the angle sensor, A' 2The calibrated value after calibrating the actual value collected by the angle sensor.

[0014] Through the multi-turn and multi-sector error calculation model and the linear compensation mechanism, the present invention realizes the collaborative optimization of error calibration accuracy and efficiency. By setting the number of calibration turns, such as 5 turns, and dividing the motor into multiple sectors, such as 256 sectors, etc., through the separate statistics of multiple turns and multiple sectors, and then using the average value of their errors as the basic error value, the influence of instantaneous interference (such as electromagnetic pulses, mechanical vibrations) can be eliminated. In other embodiments, separate compensation can also be performed according to different sectors, that is, the average error value of a certain sector in multiple turns is used as the compensation angle of this sector.

[0015] In a preferred embodiment, obtaining the second reference angle and the second actual angle after calibration, and determining the comparison value between the second reference angle and the second actual angle includes: Receiving the second reference angle of the motor equipped with the angle sensor and the second actual angle of the angle sensor during the rotation of the motor; Determining the comparison value between the second reference angle and the second actual angle to verify the calibrated angle sensor: A kj = A' 1kj -( A' 2kj + A e ) Wherein, A kj is the comparison value of the k th turn and the j th sector, 1≤ k ≤ p , p is the total number of turns of the motor rotation during the verification process; A' 1kj is the second reference angle of the k th turn and the j th sector, A' 2kj is the actual value collected by the angle sensor in the k th turn and the j th sector.

[0016] Combining calibration and verification, a double-closed-loop calibration and verification system is constructed. During the calibration stage, through the secondary error verification mechanism of multi-turn and multi-sector, the actual value collected by the angle sensor is compensated to obtain the second actual angle, and then the comparison value between the second actual angle and the second reference angle is used as the condition for whether the calibration result meets the requirements, thus ensuring the reliability of the angle verification.

[0017] In a preferred embodiment, when any one or more of the comparison values are greater than a preset value, the angle sensor is recalibrated.

[0018] When recalibrating the angle sensor, the basic error value can be discarded as a compensation value and the calibration process and verification process can be re-executed, or a new compensation value can be added through the calibration process on the basis of the basic error value, and the sum of the two can be used as the new compensation value for verification until all comparison values are less than or equal to the preset value.

[0019] A second aspect of the present invention discloses a sensor angle non-linear error calibration system, which includes: A receiving unit, configured to receive a first reference angle of a motor equipped with an angle sensor and a first actual angle of the angle sensor during the rotation of the motor; A calibration unit, configured to determine a basic error value based on the first reference angle and the first actual angle, and calibrate the angle sensor according to the basic error value; A verification unit, configured to obtain a second reference angle and a second actual angle after calibration, where the second actual angle is the sum of the first actual angle and the basic error value, determine a comparison value between the second reference angle and the second actual angle, and when the maximum value of the comparison value is less than or equal to a preset value, the calibration is completed; Receiving the first reference angle of a motor equipped with an angle sensor includes: Performing a zero-crossing detection on the angle sensor; When the angle sensor is at zero, after setting the first reference angle to zero, the first reference angle of the rotation of the motor is obtained through a sensorless angle integration algorithm; When the angle sensor is not at zero, the number of zero-crossing times of the angle sensor is judged. When the number of zero-crossing times is greater than 1, the first reference angle of the rotation of the motor is obtained through a sensorless angle integration algorithm.

[0020] The sensor angle non-linear error calibration method provided by the present invention adopts a dynamic iterative calibration mechanism, extracts the first reference angle (theoretical value) in a sensorless manner, and compares it with the first actual angle collected by the angle sensor itself, so as to extract the basic error value containing high-order harmonic components, which can effectively identify high-order harmonic errors that cannot be captured by traditional linear calibration methods. Through the non-linear error separation and compensation technology, the calibration accuracy and system adaptability are significantly improved, and then the calibration completion condition (verification step) is dynamically judged, and error convergence can be achieved without manual intervention.

[0021] In a third aspect of the embodiments of the present invention, an electronic device is disclosed, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the steps of the sensor angle non-linear error calibration method disclosed in the first aspect of the embodiments of the present invention are implemented.

[0022] In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is disclosed, which stores a computer program. Wherein, the computer program enables a computer to execute the steps of the sensor angle non-linear error calibration method disclosed in the first aspect of the embodiments of the present invention.

[0023] In a fifth aspect of the embodiments of the present invention, a computer program product is disclosed. When the computer program product runs on a computer, the computer is enabled to execute the steps of the sensor angle non-linear error calibration method disclosed in the first aspect of the embodiments of the present invention.

[0024] In a sixth aspect of the embodiments of the present invention, an application publishing platform is disclosed. The application publishing platform is used to publish a computer program product. Wherein, when the computer program product runs on a computer, the computer is enabled to execute the steps of the sensor angle non-linear error calibration method disclosed in the first aspect of the embodiments of the present invention.

[0025] The accompanying drawings forming a part of this application are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic flowchart of the sensor angle non-linear error calibration method according to the embodiments of the present invention; Figure 2 It is a schematic structural diagram of the sensor angle non-linear error calibration system according to the embodiments of the present invention; Figure 3 It is a schematic structural diagram of the electronic device according to the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0027] This detailed description is only an explanation of the embodiments of the present invention and does not limit the embodiments of the present invention. Those skilled in the art can make modifications without creative contributions to this embodiment as needed after reading this specification, but as long as they are within the scope of the claims of the embodiments of the present invention, they are protected by the patent law.

[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts shall fall within the scope of protection of the embodiments of the present invention.

[0029] The term "including" and any variations thereof in the specification and claims of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0030] In the embodiments of the present invention, words such as "exemplarily" or "for example" are used to represent examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present invention should not be construed as being more preferred or having more advantages than other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present relevant concepts in a specific manner.

[0031] The sensor angle non-linear error calibration method provided by the present invention adopts a dynamic iterative calibration mechanism. By a non-sensing method, a first reference angle (theoretical value) is extracted and compared with the first actual angle collected by the angle sensor itself, so as to extract a basic error value containing high-order harmonic components, which can effectively identify high-order harmonic errors that cannot be captured by traditional linear calibration methods. Through non-linear error separation and compensation technology, the calibration accuracy and system adaptability are significantly improved. Then, the calibration completion condition (verification step) is dynamically judged, and error convergence can be achieved without manual intervention. Compared with the single calibration scheme, the calibration success rate is greatly improved. The following will be described in detail with reference to the accompanying drawings.

[0032] Embodiment 1

[0033] The sensor angle non-linear error calibration method adopted in the embodiments of the present invention can calibrate and verify at the time of factory, and then store the corresponding basic error value in the memory. When in use, the system adds this basic error value to the basis of the actual data collected by the angle sensor to obtain the actual rotation angle of the motor or other rotating devices. In addition, when used in cooperation with the motor, periodic calibration can also be set or non-periodic calibration can be performed as needed. For example, the periodic calibration can be performed once a month, and for non-periodic calibration, a calibration button can be set on the housing. When needed, the calibration button can be pressed to start the calibration.

[0034] The calibration in the embodiments of the present invention includes a calibration process (calibration stage or calibration step) and a verification process (verification stage or verification step).

[0035] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a method for calibrating the angular non - linear error of a sensor disclosed in an embodiment of the present invention. As Figure 1 shown, the method for calibrating the angular non - linear error of the sensor includes the following steps: S110. Receive the first reference angle of the motor equipped with the angle sensor and the first actual angle of the angle sensor during the rotation of the motor.

[0036] The first reference angle is realized through a sensorless angle integration algorithm. On the one hand, it emphasizes the user - imperceptible calibration process. On the other hand, it directly calculates the true angle of the motor rotor through the sensorless angle integration algorithm, getting rid of the dependence on additional position sensors. The sensorless angle integration algorithm integrates a motor back - electromotive force observer, which can correct the integral cumulative error caused by sudden speed changes in real time. The sensorless angle integration algorithm can be implemented by a sliding - mode observer, a Luenberger observer, a non - linear flux observer, etc.

[0037] Exemplarily, when a permanent - magnet synchronous motor is used to calibrate the angle sensor, a non - linear flux observer can be used to accurately track the distortion of the motor back - electromotive force waveform, and then obtain the rotor speed. While being imperceptible to the user, it can also reduce the angle calculation error from ±1.2° of the traditional linear observer to ±0.15°, breaking through the speed bottleneck of the sensorless algorithm. The adaptive notch filter of the flux observer can suppress the PWM carrier harmonics in real time, significantly improving the signal - to - noise ratio of angle calculation. If the non - linear flux observer adopts discretization processing, it can also achieve single - cycle operation at the level of 10 μs, saving computing resources compared with the traditional model - predictive control scheme and supporting deployment on low - cost MCUs. Since the angle sensor is used to monitor the rotation angle of the motor, the motor angle obtained through the non - linear flux can be used as the reference angle for calibrating the angle sensor. For the purpose of distinguishing from the verification stage, it is denoted as the first reference angle here.

[0038] Before obtaining the first reference angle, it is first necessary to perform a zero - crossing detection on the angle sensor, forcibly reset the reference angle at the zero point of the sensor, that is, set the reference angle to zero and then obtain the first reference angle of the motor rotation through the sensorless angle integration algorithm, which can eliminate the angle cumulative error caused by temperature drift / noise of the traditional integration algorithm.

[0039] When the angle sensor is not at the zero point, first judge the number of zero - crossing times of the angle sensor. When the number of zero - crossing times is greater than 1, that is, after the motor rotates smoothly, start to obtain the first reference angle of the motor rotation through the sensorless angle integration algorithm, so as to ensure the accuracy of calibration.

[0040] When obtaining the second reference angle, the same method is used to achieve it.

[0041] S120. Determine a basic error value based on the first reference angle and the first actual angle, and calibrate the angle sensor according to the basic error value.

[0042] In a preferred embodiment of the present invention, the collaborative optimization of error calibration accuracy and efficiency can be achieved by rotating the motor multiple turns (setting the total number of turns of the motor during the calibration process) and multiple sectors. By setting the calibration number of turns, such as 5 turns, and dividing the motor into multiple sectors, such as 256 sectors, etc., through the separate statistics of multiple turns and multiple sectors, and then using the average value of their errors as the basic error value, the influence of instantaneous interference (such as electromagnetic pulses, mechanical vibrations) can be eliminated.

[0043] Specifically, to determine the basic error value based on the first reference angle and the first actual angle, the following formula can be used: Where, A e is the basic error value, A 1ij is the first reference angle of the i th turn and the j th sector, A 2ij is the first actual angle collected by the angle sensor corresponding to the i th turn and the j th sector, 1 ≤ i ≤ m ,1 ≤ j ≤ n , m is the total number of turns of the motor set during the calibration process, n is the total number of sectors divided by the motor.

[0044] The determination of the basic error value can be achieved through a low-pass filter, that is, inputting each difference ( A 1ij - A 2ij ) into the low-pass filter, and obtaining the basic error value through low-pass filtering. This method can avoid the inaccuracy of the calculation result caused by some interferences.

[0045] The calibration can be to increase this basic error value on the basis of the actual collected value of the angle sensor to obtain the calibrated value, that is: A 2 is the actual value collected by the angle sensor,A' 2 The calibrated value after calibrating the actual value collected by the angle sensor.

[0046] In other embodiments, separate compensation can also be performed according to different sectors, that is, the average error value of a certain sector in multiple turns is used as the compensation angle of this sector.

[0047] Or it can be implemented by using a turn-by-turn compensation method, that is: Among them, A ie is the basic error value of the i th turn, A (i-1)e is the basic error value of the ( i -1)th turn, A me is the basic error value of the last turn (the m th turn) in the calibration process.

[0048] On the basis of this turn-by-turn compensation, a double-stop strategy can also be set, that is, when the total number of turns set in the calibration process is satisfied, or when A ie is less than or equal to the preset error, the calibration is stopped.

[0049] S130. Obtain the second reference angle and the second actual angle after calibration. The second actual angle is the sum of the first actual angle and the basic error value. Determine the comparison value between the second reference angle and the second actual angle. When the maximum value of the comparison value is less than or equal to the preset value, the verification is completed.

[0050] Combining calibration and verification to construct a double-closed-loop calibration and verification system. In the calibration stage, through a secondary error verification mechanism for each turn and each sector, the actual value collected by the angle sensor is compensated to obtain the second actual angle, and then the comparison value between the second actual angle and the second reference angle is used as the condition for whether the calibration result meets the requirements, thus ensuring the reliability of the angle verification.

[0051] Specifically, it may include the following steps: Receive the second reference angle of the motor equipped with the angle sensor and the second actual angle of the angle sensor during the rotation of the motor; Determine the comparison value between the second reference angle and the second actual angle to verify the calibrated angle sensor: A kj = A' 1kj - ( A' 2kj +A e ) Wherein, A kj is the comparison value of the k th circle and the j th sector, 1 ≤ k ≤ p , p is the total number of turns of the motor during the verification process; A' 1kj is the second reference angle of the k th circle and the j th sector, A' 2kj is the actual value collected by the angle sensor in the k th circle and the j th sector.

[0052] Therefore, p × n comparison values can be obtained, and then the maximum value among these p × n comparison values is found. When the maximum value is less than or equal to a preset value (e.g., 1 Deg), the verification is successful and the entire verification process is completed. On the contrary, if the maximum value among these p × n comparison values is greater than the preset value, the angle sensor is recalibrated.

[0053] When recalibrating the angle sensor, the basic error value can be discarded as a compensation value to re - execute the calibration process and the verification process, or a new compensation value can be added through the calibration process on the basis of the basic error value, and the sum of the two is used as the new compensation value for verification until the maximum value among these p × n comparison values is less than or equal to the preset value.

[0054] Embodiment 2

[0055] Please refer to Figure 2 , Figure 2 which is a schematic structural diagram of a sensor angle non - linear error verification system disclosed in an embodiment of the present invention. As Figure 2 shown, the sensor angle non - linear error verification system may include: A receiving unit 210, configured to receive the first reference angle of the motor equipped with an angle sensor and the first actual angle of the angle sensor during the rotation of the motor; A calibration unit 220, configured to determine a basic error value based on the first reference angle and the first actual angle, and calibrate the angle sensor according to the basic error value; A verification unit 230, configured to obtain a calibrated second reference angle and a second actual angle, where the second actual angle is the sum of a first actual angle and the base error value, determine a comparison value between the second reference angle and the second actual angle, and when the maximum value of the comparison value is less than or equal to a preset value, the verification is completed; Receiving a first reference angle of a motor equipped with an angle sensor, including: Performing a zero-crossing detection on the angle sensor; When the angle sensor is at zero, after setting the first reference angle to zero, obtaining the first reference angle of the rotation of the motor through a sensorless angle integration algorithm; When the angle sensor is not at zero, determining the number of zero-crossing times of the angle sensor, and when the number of zero-crossing times is greater than 1, obtaining the first reference angle of the rotation of the motor through a sensorless angle integration algorithm.

[0056] Embodiment 3

[0057] Please refer to Figure 3 , Figure 3 which shows a schematic structural diagram of an electronic device that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of the present invention described herein or / and claimed.

[0058] As Figure 3 shown, the electronic device includes at least one processor 310, and a memory communicatively connected to at least one processor 310, such as a ROM (Read Only Memory) 320, a RAM (Random Access Memory) 330, etc. Among them, the memory stores a computer program executable by at least one processor, and the processor 310 can execute various appropriate actions and processes according to the computer program stored in the ROM 320 or the computer program loaded from the storage unit 380 into the random access memory RAM 330. In the RAM 330, various programs and data required for the operation of the electronic device can also be stored. The processor 310, the ROM 320, and the RAM 330 are connected to each other through a bus 340. The I / O (Input / Output) interface 350 is also connected to the bus 340.

[0059] Multiple components in the electronic device are connected to the I / O interface 350, including: an input unit 360, such as a keyboard, a mouse, etc.; an output unit 370, such as various types of displays, speakers, etc.; a storage unit 380, such as a magnetic disk, an optical disc, etc.; and a communication unit 390, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 390 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet or / and various telecommunication networks.

[0060] The processor 310 can be various general-purpose or / and special-purpose processing components with processing and computing capabilities. Some examples of the processor 310 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 310 executes one or more steps of a method for calibrating the non-linear error of a sensor angle described in the first embodiment above.

[0061] In some embodiments, a method for calibrating the non-linear error of a sensor angle can be implemented as a computer program, which is tangibly included in a computer-readable storage medium, such as the storage unit 380. In some embodiments, part or all of the computer program can be loaded or / and installed onto the electronic device via the ROM 320 or / and the communication unit 390. When the computer program is loaded into the RAM 330 and executed by the processor 310, one or more steps of a method for calibrating the non-linear error of a sensor angle described in the first embodiment above can be executed. Alternatively, in other embodiments, the processor 310 can be configured to execute a method for calibrating the non-linear error of a sensor angle in any other suitable manner (e.g., by means of firmware).

[0062] The various embodiments of the systems and technologies described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, or / and combinations thereof. These various embodiments can include: being implemented in one or more computer programs, which can be executed or / and interpreted on a programmable system including at least one programmable processor, the programmable processor can be a special or general-purpose programmable processor, can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0063] The computer program for implementing the method of the embodiments of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing devices, such that when the computer programs are executed by the processor, the functions / operations specified in the flowchart and / or block diagram are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0064] In the context of the embodiments of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0065] In order to provide interaction with the user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0066] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0067] A computing system can include clients and servers. Clients and servers are generally far from each other and usually interact through a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0068] The above has introduced in detail a method, system, electronic device, and medium for calibrating the non-linear error of a sensor angle disclosed in the present invention. Specific examples are used herein to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A sensor angle nonlinear error calibration method, characterized in that: It includes: Receiving a first reference angle of a motor equipped with an angle sensor and a first actual angle of the angle sensor during the rotation of the motor; determining a basic error value based on the first reference angle and the first actual angle, and calibrating the angle sensor according to the basic error value; Obtaining a calibrated second reference angle and a second actual angle, where the second actual angle is the sum of the first actual angle and the basic error value, determining a comparison value between the second reference angle and the second actual angle, and completing the verification when the maximum value of the comparison value is less than or equal to a preset value; Receiving a first reference angle of a motor having an angle sensor installed therein, comprising: Performing zero-crossing detection on the angle sensor; When the angle sensor is at zero point, the first reference angle is set to zero, and then the first reference angle of the motor rotation is obtained by a sensorless angle integration algorithm; When the angle sensor is at a non-zero point, the number of zero crossings of the angle sensor is determined, and when the number of zero crossings is greater than 1, a first reference angle of rotation of the motor is obtained by a sensorless angle integration algorithm.

2. The sensor angle nonlinear error calibration method according to claim 1, characterized in that: The sensorless angle integration algorithm adopts a nonlinear flux observer.

3. The sensor angle nonlinear error calibration method according to claim 1, characterized in that: Determining a basic error value based on the first reference angle and the first actual angle, and calibrating the angle sensor according to the basic error value, including: Determine a basic error value based on the first reference angle and the first actual angle: in, A e is the basic error value, A 1ij For the i Circle j The first reference angle of the sector, A 2ij For the i Circle j The first actual angle collected by the angle sensor corresponding to the sector, 1≤ i ≤ m , 1≤ j ≤ n , m is the total number of motor revolutions set during the calibration process, n The total number of sectors divided for the motor; Calibrate the angle sensor according to the basic error value: A 2 is the actual value collected by the angle sensor, A' 2 is the calibration value after calibrating the actual value collected by the angle sensor.

4. The sensor angle nonlinear error calibration method according to claim 3, characterized in that: Acquiring a calibrated second reference angle and a second actual angle, and determining a comparison value between the second reference angle and the second actual angle, includes: receiving a second reference angle of a motor equipped with an angle sensor and a second actual angle of the angle sensor during the rotation of the motor; Determine a comparison value of the second reference angle and the second actual angle to verify the calibrated angle sensor: A kj = A' 1kj -( A' 2kj + A e ) in, A kj For the k Circle j Sector comparison value, 1≤ k ≤ p , p The total number of revolutions of the motor during the verification process; A' 1kj For the k Circle j The second reference angle of the sector, A' 2kj For the angle sensor k Circle j The actual value collected by the sector.

5. The sensor angle nonlinear error calibration method according to any one of claims 1 to 4, characterized in that: When any one or more comparison values ​​are greater than a preset value, the angle sensor is recalibrated.

6. Sensor angle nonlinear error calibration system, characterized in that: It includes: A receiving unit, configured to receive a first reference angle of a motor equipped with an angle sensor, and a first actual angle of the angle sensor during the rotation of the motor; a calibration unit, configured to determine a basic error value based on the first reference angle and a first actual angle, and calibrate the angle sensor according to the basic error value; A verification unit, used to obtain a calibrated second reference angle and a second actual angle, where the second actual angle is the sum of the first actual angle and the basic error value, and determine a comparison value between the second reference angle and the second actual angle, and when the maximum value of the comparison value is less than or equal to a preset value, the verification is completed; Receiving a first reference angle of a motor having an angle sensor installed therein, comprising: Performing zero-crossing detection on the angle sensor; When the angle sensor is at zero point, the first reference angle is set to zero, and then the first reference angle of the motor rotation is obtained by a sensorless angle integration algorithm; When the angle sensor is at a non-zero point, the number of zero crossings of the angle sensor is determined, and when the number of zero crossings is greater than 1, a first reference angle of rotation of the motor is obtained by a sensorless angle integration algorithm.

7. An electronic device, characterized in that: It comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the sensor angle nonlinear error calibration method as described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: It stores a computer program, wherein the computer program enables the computer to execute the steps of the sensor angle nonlinear error calibration method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Motor control method, system and device based on flux observer and medium

    CN119231989A

  • Inductance sensor calibration method, inductance sensor calibration system, medium and product

    CN119270179A

  • length or angle measuring device

    DE3401141A1

  • Magnetic Field Sensor And Related Techniques That Inject A Synthesized Error Correction Signal Into A Signal Channel To Result In Reduced Error

    US20150176963A1