BLDC (brushless direct current) rotor angle acquisition method and system for automatically compensating Hall sector error, medium and equipment

Through real-time error compensation and sector angle step calculation, the problem of angle error caused by uneven load in BLDC rotor angle acquisition is solved, and accurate rotor angle acquisition is achieved in the case of Hall sensor installation error and uneven load, simplifying algorithm and reduce resource requirements.

CN118677299APending Publication Date: 2024-09-20SUZHOU R&D CENT OF NO 214 RES INST OF CHINA NORTH IND GRP
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410943334.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-20

Smart Images

  • Figure CN118677299A
    Figure CN118677299A
Patent Text Reader

Abstract

The invention discloses a BLDC (brushless direct current) rotor angle acquisition method and system for automatically compensating a Hall sector error, a medium and equipment in the technical field of permanent magnet synchronous motors, and aims to solve the problem that the sector error in a dynamic environment cannot be automatically identified and compensated in the prior art. The method comprises the steps that the average rotating speed of the BLDC motor in the current state is acquired; acquiring a positioning angle and a rotor angle corresponding to the current Hall interruption, calculating an error between the positioning angle and the rotor angle, and performing real-time error compensation to obtain a compensated error; according to a standard sector angle, the average rotating speed of the BLDC motor and the compensated error, a sector angle stepping value is obtained through calculation; and calculating the real-time position of the rotor according to the sector angle stepping value, the positioning angle corresponding to the current Hall interruption and the rotor angle. According to the method, the rotor angle can be accurately obtained under the condition that errors exist in a sector due to installation errors of the Hall sensor, uneven loads and the like, the scheme is simple, occupied resources are few, and universality is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of permanent magnet synchronous motors, and in particular to a BLDC rotor angle acquisition method, system, medium and device for automatically compensating for Hall sector errors. Background Art

[0002] The existing BLDC rotor angle acquisition and error compensation methods are mainly aimed at compensating for the installation error of the Hall sensor in a static state, and the algorithm is complex, and the error compensation can only be completed under specific conditions; some technologies use a constant voltage-frequency ratio control method to keep the motor in a uniform speed operation state, and then divide one cycle into six sectors through the six rotor positions detected by the Hall sensor, and calculate an absolute reference position through the controller to correct the absolute deviation of the three Hall sensors. The compensation amount is found through the obtained absolute deviation, thereby indicating the actual position of the rotor, and by selecting three consecutive sectors to reflect all the information of the absolute error, and by establishing a minimum variance estimate to express the complete absolute position deviation correction equation, the controller's timer measures the corresponding time to calculate the relative position deviation, thereby performing position compensation; but the algorithm is relatively complex; the Hall sensor installation error compensation can only be completed under specific conditions; only static installation errors can be obtained and compensated, and the angle error caused by uneven load during motor operation cannot be identified and compensated. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a BLDC rotor angle acquisition method, system, medium and device that automatically compensates for Hall sector errors, which can accurately acquire the rotor angle when there are errors in the sectors caused by errors in the installation of the Hall sensor, uneven load, etc.

[0004] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions:

[0005] On the one hand, the present invention provides a BLDC rotor angle acquisition method for automatically compensating for Hall sector errors, comprising:

[0006] Get the average speed of the BLDC motor in the current state;

[0007] Get the positioning angle and rotor angle corresponding to the current Hall interrupt, calculate the error between the two and perform real-time error compensation to obtain the compensated error;

[0008] The sector angle step value is calculated according to the standard sector angle, the average rotation speed of the BLDC motor and the compensated error;

[0009] The real-time position of the rotor is calculated based on the sector angle step value, the positioning angle corresponding to the current Hall interruption, and the rotor angle.

[0010] Optionally, obtaining the average rotation speed of the BLDC motor in the current state includes:

[0011] Get the value of the BLDC motor speed counter, where each time the PWM is updated, the value of the BLDC motor speed counter is According to the following formula (1):

[0012] (1)

[0013] When the Hall update is interrupted and the positioning angle is 0 degrees, the value of the BLDC motor speed counter is Store in the buffer, sort all the data in the buffer, and take the middle value as the average speed of the BLDC motor in the current state ;

[0014] Wherein, the value of the BLDC motor speed counter After being stored in the buffer, the value of the BLDC motor speed counter Cleared.

[0015] Optionally, the real-time error compensation includes:

[0016] During the first six Hall update interrupts of normal operation after the BLDC motor is powered on, the initial angle error of each sector is calculated based on the rotor angle and the positioning angle corresponding to the current Hall interrupt;

[0017] According to the preset acceptable sector error angle, the rotor angle and the positioning angle corresponding to the current Hall interrupt, at each Hall update interrupt of the BLDC motor operation, the initial angle error of each sector is compensated in real time to obtain the compensated error;

[0018] The calculation of the initial angle error of each sector is achieved by the following formula (2):

[0019] (2)

[0020] in, represents the initial angle error of the sector, Indicates the positioning angle corresponding to the current Hall interruption. Indicates the rotor angle;

[0021] The real-time error compensation for the initial angle errors of each sector is achieved by the following formula (3):

[0022] (3)

[0023] in, Indicates the preset acceptable sector error angle.

[0024] Optionally, the calculating the sector angle step value includes:

[0025] At each Hall update interrupt, the integer part and the remainder part of each sector angle step are calculated according to the standard sector angle, the average speed of the BLDC motor and the compensated error, wherein the standard sector angle is 60 degrees;

[0026] At each PWM update interrupt, each sector angle step value is calculated according to the integer part and the remainder part of each sector angle step, and the remainder part of the sector angle step is updated;

[0027] The calculation of the integer part of each sector angle step is implemented by the following formula (4):

[0028] (4)

[0029] in, represents the integer part of the sector angle step, Indicates the average speed of the BLDC motor in the current state, represents the error after compensation;

[0030] The calculation of the remainder of each sector angle step is implemented by the following formula (5):

[0031] (5)

[0032] in, Represents the remainder of the sector angle step, Indicates the average speed of the BLDC motor in the current state, represents the error after compensation;

[0033] The calculation of the angle step value of each sector is implemented by the following formula (6):

[0034] (6)

[0035] in, Indicates the sector angle step value, represents the integer part of the sector angle step, Represents the remainder of the sector angle step;

[0036] The remainder of the updated sector angle step is implemented by the following formula (7):

[0037] (7)

[0038] in, Represents the remainder of the sector angle step.

[0039] Optionally, the calculating the real-time position of the rotor includes:

[0040] When the Hall update is interrupted, the real-time rotor position is obtained by the following formula (8):

[0041] (8)

[0042] in, represents the rotor angle, Indicates the positioning angle corresponding to the current Hall interruption;

[0043] When the PWM update is interrupted, the real-time rotor position is obtained by the following formula (9):

[0044] (9)

[0045] in, represents the rotor angle, Indicates the sector angle step value.

[0046] In a second aspect, the present invention provides a BLDC rotor angle acquisition system for automatically compensating for Hall sector errors, comprising:

[0047] The speed acquisition module is used to: obtain the average speed of the BLDC motor in the current state;

[0048] The sector compensation module is used to obtain the positioning angle and rotor angle corresponding to the current Hall interrupt, calculate the error between the two and perform real-time error compensation to obtain the compensated error;

[0049] The sector angle step calculation module is used to calculate the sector angle step value according to the standard sector angle, the average speed of the BLDC motor and the compensated error;

[0050] The rotor position calculation module is used to calculate the real-time position of the rotor according to the sector angle step value, the positioning angle corresponding to the current Hall interruption and the rotor angle.

[0051] Optionally, the system includes three Hall sensors for obtaining the positioning angle corresponding to the current Hall interruption;

[0052] The three Hall sensors are installed at an interval of 120° electrical angle, dividing the BLDC motor operation process into 6 sectors, each sector corresponding to 60° electrical angle;

[0053] The system sets a Hall position update interrupt and a PWM update interrupt, wherein the Hall position update interrupt cycle is greater than the PWM update interrupt cycle.

[0054] In a third aspect, the present invention provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors as described in any one of the first aspects are implemented.

[0055] In a fourth aspect, the present invention provides a computer device / equipment / system, comprising:

[0056] Memory, for storing computer programs / instructions;

[0057] A processor is used to execute the computer program / instructions to implement the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors as described in any one of the first aspects.

[0058] In a fifth aspect, the present invention provides a computer program product, comprising a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors as described in any one of the first aspects are implemented.

[0059] Compared with the prior art, the present invention has the following beneficial effects:

[0060] 1. The BLDC rotor angle acquisition method for automatically compensating for the Hall sector error provided by the present invention performs real-time error compensation on the error between the positioning angle corresponding to the current Hall interruption and the rotor angle, and obtains the real-time position of the rotor in combination with the average speed and standard sector angle of the BLDC motor. This method can accurately acquire the rotor angle when there is an error in the installation of the Hall sensor, uneven load, etc., which leads to an error in the sector. The scheme is simple, easy to transplant, and highly versatile, and the operating method requires fewer hardware and software resources;

[0061] 2. The BLDC rotor angle acquisition system for automatically compensating for Hall sector errors provided by the present invention realizes real-time acquisition of the rotor angle by setting a speed acquisition module, a sector compensation module, a sector angle step calculation module and a rotor position calculation module, which has practical significance and good application prospects;

[0062] 3. The computer-readable storage medium, computer device / equipment / system and computer program product provided by the present invention can execute the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors provided by the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1A flowchart of a BLDC rotor angle acquisition method for automatically compensating for Hall sector errors according to an embodiment of the present invention;

[0064] Figure 2 A structural block diagram of a BLDC rotor angle acquisition system for automatically compensating for Hall sector errors according to an embodiment of the present invention;

[0065] Figure 3 A schematic diagram of sectors and positioning angles provided according to an embodiment of the present invention;

[0066] Figure 4 A schematic diagram of obtaining a sector static error according to an embodiment of the present invention. DETAILED DESCRIPTION

[0067] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.

[0068] It should be noted that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0069] Embodiment 1:

[0070] The embodiment of the present invention discloses a BLDC rotor angle acquisition method for automatically compensating for Hall sector error, referring to Figure 1 As shown, the specific steps include:

[0071] S1, obtain the average speed of the BLDC motor in the current state;

[0072] S2, obtain the positioning angle and rotor angle corresponding to the current Hall interrupt, calculate the error between the two and perform real-time error compensation to obtain the compensated error;

[0073] S3, calculating a sector angle step value according to the standard sector angle, the average speed of the BLDC motor and the compensated error;

[0074] S4, calculating the real-time position of the rotor according to the sector angle step value, the positioning angle corresponding to the current Hall interruption and the rotor angle.

[0075] Specifically,

[0076] In step S1, obtaining the average speed of the BLDC motor in the current state includes:

[0077] Get the value of the BLDC motor speed counter, where each time the PWM is updated, the value of the BLDC motor speed counter is According to the following formula (1):

[0078] (1)

[0079] When the Hall update is interrupted and the positioning angle is 0 degrees, the value of the BLDC motor speed counter is Store in the buffer, sort all the data in the buffer, and take the middle value as the average speed of the BLDC motor in the current state ;

[0080] Wherein, the value of the BLDC motor speed counter After being stored in the buffer, the value of the BLDC motor speed counter Cleared.

[0081] Compared with the speed acquisition method of detecting Hall update by timer edge capture, the method of this embodiment has the advantage that the motor speed is reflected by the number of times the PWN interrupt is entered every 360° electrical cycle, which saves hardware resources and is convenient for transplantation to MCUs with tight peripheral resources; at the same time, the edge capture of the timer peripheral itself has a large error, and it is possible to collect erroneous data, which is not conducive to subsequent calculations.

[0082] Compared with the method of calculating the speed in each Hall interrupt cycle, the method of this embodiment has the advantage of calculating the speed in the Hall update interrupt with a positioning angle of 0 degrees, that is, calculating the speed once in every 6 Hall cycles, which reduces the MCU computing burden and facilitates transplantation to low-frequency MCUs; at the same time, refer to Figure 3 As shown, due to the installation position error, the angle corresponding to the two Hall interruption cycles is not necessarily 60°, while the angle corresponding to the two Hall update interruptions with a positioning angle of 0 degrees is definitely 360°. Therefore, the method of this embodiment can avoid inaccurate speed acquisition due to the installation position error of the Hall sensor.

[0083] In step S2, this embodiment uses the error between the positioning angle corresponding to the current Hall interruption and the rotor angle to replace the error between the actual angle of each sector and the standard sector angle; the real-time error compensation includes:

[0084] During the first six Hall update interrupts of normal operation after the BLDC motor is powered on, the initial angle error of each sector is calculated based on the rotor angle and the positioning angle corresponding to the current Hall interrupt;

[0085] According to the preset acceptable sector error angle, rotor angle and positioning angle corresponding to the current Hall interrupt, at each Hall update interrupt of the BLDC motor operation, real-time error compensation is performed on the initial angle errors of each sector to adapt to the sector error caused by the changing load and obtain the compensated error.

[0086] refer to Figure 4 As shown, when the rotor runs to the position shown in the figure, a Hall update interruption occurs, and the rotor and positioning angle difference at this time is recorded. The difference is the sector static error of the sector where the current rotor is located. Therefore, the calculation of the initial angle error of each sector is implemented by the following formula (2):

[0087] (2)

[0088] in, represents the initial angle error of the sector, Indicates the positioning angle corresponding to the current Hall interruption. Indicates the rotor angle.

[0089] When the error angle is outside the acceptable range, the sector error angle is dynamically adjusted by self-increment and self-decrement; the real-time error compensation of the initial angle errors of each sector is implemented by the following formula (3):

[0090] (3)

[0091] in, Indicates the preset acceptable sector error angle.

[0092] Compared with the traditional sector compensation method, the method of this embodiment does not need to let the motor run in a specific state to determine the sector error; at the same time, the sector error is dynamically adjusted in real time during the operation of the motor to ensure the controller's response to external load changes.

[0093] In step S3, the sector angle step value is calculated using the dynamically adjusted sector error. To save MCU operating resources and ensure calculation accuracy, the sector angle step value, sector error, and speed count value are all integer data types. The calculation accuracy lost by the integer division is recovered in the form of remainder. The calculated sector angle step value includes:

[0094] At each Hall update interrupt, the integer part and the remainder part of each sector angle step are calculated according to the standard sector angle, the average speed of the BLDC motor and the compensated error, wherein the standard sector angle is 60 degrees;

[0095] At each PWM update interrupt, each sector angle step value is calculated according to the integer part and the remainder part of each sector angle step, and the remainder part of the sector angle step is updated.

[0096] The calculation of the integer part of each sector angle step is implemented by the following formula (4):

[0097] (4)

[0098] in, represents the integer part of the sector angle step, Indicates the average speed of the BLDC motor in the current state, Indicates the error after compensation.

[0099] The calculation of the remainder of each sector angle step is implemented by the following formula (5):

[0100] (5)

[0101] in, Represents the remainder of the sector angle step, Indicates the average speed of the BLDC motor in the current state, Indicates the error after compensation.

[0102] The calculation of the angle step value of each sector is implemented by the following formula (6):

[0103] (6)

[0104] in, Indicates the sector angle step value, represents the integer part of the sector angle step, Represents the remainder of the sector angle step.

[0105] The remainder of the updated sector angle step is implemented by the following formula (7):

[0106] (7)

[0107] in, Represents the remainder of the sector angle step.

[0108] In step S4, the calculation to obtain the real-time position of the rotor includes:

[0109] When the Hall update is interrupted, the real-time rotor position is obtained by the following formula (8):

[0110] (8)

[0111] in, represents the rotor angle, Indicates the positioning angle corresponding to the current Hall interruption;

[0112] When the PWM update is interrupted, the real-time rotor position is obtained by the following formula (9):

[0113] (9)

[0114] in, represents the rotor angle, Indicates the sector angle step value.

[0115] In summary, the BLDC rotor angle acquisition method for automatically compensating for the Hall sector error proposed in this embodiment reflects the motor speed by the number of times the PWN interrupt is entered every 360° electrical cycle, saving hardware resources, and calculating the speed once every 6 Hall interrupt cycles, thereby reducing the MCU computing burden and facilitating transplantation to MCUs with tight peripheral resources; the sector angle step value is calculated using the dynamically adjusted sector error, and at the same time, in order to save MCU computing resources and ensure calculation accuracy, the integer error is retrieved in the form of a remainder, and the compensation parameters are dynamically adjusted to eliminate the accumulated sector error to adapt to periodically changing loads; the method is simple and easy to transplant, and the hardware and software resources required to run the method are relatively small; no specific conditions are required, and the Hall sensor installation error can be directly identified, so that the rotor angle can be accurately acquired when there is an error in the installation of the Hall sensor, uneven load, and other conditions that lead to errors in the sector.

[0116] Embodiment 2:

[0117] Based on the same inventive concept as the first embodiment, the present invention discloses a BLDC rotor angle acquisition system for automatically compensating for Hall sector errors, referring to Figure 2 As shown, specifically including:

[0118] The speed acquisition module is used to: obtain the average speed of the BLDC motor in the current state;

[0119] The sector compensation module is used to obtain the positioning angle and rotor angle corresponding to the current Hall interrupt, calculate the error between the two and perform real-time error compensation to obtain the compensated error;

[0120] The sector angle step calculation module is used to calculate the sector angle step value according to the standard sector angle, the average speed of the BLDC motor and the compensated error;

[0121] The rotor position calculation module is used to calculate the real-time position of the rotor according to the sector angle step value, the positioning angle corresponding to the current Hall interruption and the rotor angle.

[0122] Specifically, the system includes three Hall sensors for obtaining the positioning angle corresponding to the current Hall interrupt; in actual operation, the present embodiment sets the Hall position update interrupt and the PWM update interrupt, and the Hall position update interrupt cycle is much longer than the PWM update interrupt cycle; the three Hall sensors are installed at an electrical angle of 120° apart, dividing the motor operation process into 6 sectors, each sector corresponding to a 60° electrical angle, refer to Figure 3 As shown in (a), the boundaries of the two sectors are the locations of the Hall update interruption, that is, the Hall interruption occurs at 6 positioning positions; and when there is an error in the installation of the Hall position, refer to Figure 3 As shown in (b), the electrical angle corresponding to each sector is no longer 60°. At this time, there will be errors in calculating the rotor position according to the 60° angle. In addition, when the external load changes during the operation of the motor, the operating speed of each sector of the motor may be different. If the rotor angle is calculated according to the speed of the previous cycle or the average speed, the sector error will be accumulated.

[0123] The specific functional implementation of each of the above modules can be found in the relevant content of the method in Example 1 and will not be elaborated here.

[0124] Embodiment three:

[0125] This embodiment provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors as described in any one of the first embodiments are implemented.

[0126] Embodiment 4:

[0127] This embodiment provides a computer device / equipment / system, including:

[0128] Memory, for storing computer programs / instructions;

[0129] A processor is used to execute the computer program / instructions to implement the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors as described in any one of the first embodiments.

[0130] Embodiment five:

[0131] This embodiment provides a computer program product, including a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors as described in any one of the first embodiments are implemented.

[0132] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0133] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0136] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. A BLDC rotor angle acquisition method for automatically compensating for Hall sector error, characterized in that: include: Get the average speed of the BLDC motor in the current state; Get the positioning angle and rotor angle corresponding to the current Hall interrupt, calculate the error between the two and perform real-time error compensation to obtain the compensated error; The sector angle step value is calculated according to the standard sector angle, the average rotation speed of the BLDC motor and the compensated error; The real-time position of the rotor is calculated based on the sector angle step value, the positioning angle corresponding to the current Hall interruption, and the rotor angle.

2. The BLDC rotor angle acquisition method for automatically compensating for Hall sector error according to claim 1, characterized in that: The obtaining of the average speed of the BLDC motor in the current state includes: Get the value of the BLDC motor speed counter, where each time the PWM is updated, the value of the BLDC motor speed counter is According to the following formula (1): (1) When the Hall update is interrupted and the positioning angle is 0 degrees, the value of the BLDC motor speed counter is Store in the buffer, sort all the data in the buffer, and take the middle value as the average speed of the BLDC motor in the current state ; Wherein, the value of the BLDC motor speed counter After being stored in the buffer, the value of the BLDC motor speed counter Cleared.

3. The BLDC rotor angle acquisition method for automatically compensating for Hall sector error according to claim 1, characterized in that: The real-time error compensation includes: During the first six Hall update interrupts of normal operation after the BLDC motor is powered on, the initial angle error of each sector is calculated based on the rotor angle and the positioning angle corresponding to the current Hall interrupt; According to the preset acceptable sector error angle, the rotor angle and the positioning angle corresponding to the current Hall interrupt, at each Hall update interrupt of the BLDC motor operation, the initial angle error of each sector is compensated in real time to obtain the compensated error; The calculation of the initial angle error of each sector is implemented by the following formula (2): (2) in, represents the initial angle error of the sector, Indicates the positioning angle corresponding to the current Hall interruption. Indicates the rotor angle; The real-time error compensation for the initial angle errors of each sector is achieved by the following formula (3): (3) in, Indicates the preset acceptable sector error angle.

4. The BLDC rotor angle acquisition method for automatically compensating for Hall sector errors according to claims 2 and 3, characterized in that: The calculation to obtain the sector angle step value includes: At each Hall update interrupt, the integer part and the remainder part of each sector angle step are calculated according to the standard sector angle, the average speed of the BLDC motor and the compensated error, wherein the standard sector angle is 60 degrees; At each PWM update interrupt, each sector angle step value is calculated according to the integer part and the remainder part of each sector angle step, and the remainder part of the sector angle step is updated; The calculation of the integer part of each sector angle step is implemented by the following formula (4): (4) in, represents the integer part of the sector angle step, Indicates the average speed of the BLDC motor in the current state, represents the error after compensation; The calculation of the remainder of each sector angle step is implemented by the following formula (5): (5) in, Represents the remainder of the sector angle step, Indicates the average speed of the BLDC motor in the current state, represents the error after compensation; The calculation of the angle step value of each sector is implemented by the following formula (6): (6) in, Indicates the sector angle step value, represents the integer part of the sector angle step, Represents the remainder of the sector angle step; The remainder of the updated sector angle step is implemented by the following formula (7): (7) in, Represents the remainder of the sector angle step.

5. The BLDC rotor angle acquisition method for automatically compensating for Hall sector error according to claim 4, characterized in that: The calculation to obtain the real-time position of the rotor includes: When the Hall update is interrupted, the real-time rotor position is obtained by the following formula (8): (8) in, represents the rotor angle, Indicates the positioning angle corresponding to the current Hall interruption; When the PWM update is interrupted, the real-time rotor position is obtained by the following formula (9): (9) in, represents the rotor angle, Indicates the sector angle step value.

6. A BLDC rotor angle acquisition system for automatically compensating for Hall sector errors, characterized in that: include: The speed acquisition module is used to: obtain the average speed of the BLDC motor in the current state; The sector compensation module is used to obtain the positioning angle and rotor angle corresponding to the current Hall interrupt, calculate the error between the two and perform real-time error compensation to obtain the compensated error; The sector angle step calculation module is used to calculate the sector angle step value according to the standard sector angle, the average speed of the BLDC motor and the compensated error; The rotor position calculation module is used to calculate the real-time position of the rotor according to the sector angle step value, the positioning angle corresponding to the current Hall interruption and the rotor angle.

7. The BLDC rotor angle acquisition system for automatically compensating for Hall sector errors according to claim 6, characterized in that: The system includes three Hall sensors for obtaining the positioning angle corresponding to the current Hall interruption; The three Hall sensors are installed at an interval of 120° electrical angle, dividing the BLDC motor operation process into 6 sectors, each sector corresponding to 60° electrical angle; The system sets a Hall position update interrupt and a PWM update interrupt, wherein the Hall position update interrupt cycle is greater than the PWM update interrupt cycle.

8. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors as described in any one of claims 1 to 5 are implemented.

9. A computer device / equipment / system, characterized in that: include: Memory, for storing computer programs / instructions; A processor is used to execute the computer program / instructions to implement the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors according to any one of claims 1 to 5.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the BLDC rotor angle acquisition method for automatically compensating for Hall sector errors described in any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Motor angle determination method and device, electronic equipment and storage medium

    CN120034073A

  • Method for compensating installation error of Hall sensor in motor and motor controller

    CN120454559A