A method, device and system for automatic correction of motor Hall sensor
Through the automatic correction method, the problem of inaccurate rotor position detection caused by the installation deviation of the Hall sensor is solved, the stable output of the motor is achieved, the correction process is simplified, and the efficiency is improved.
Patent Information
- Application Number
- CN202410713758.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-04
AI Technical Summary
In brushless DC motors, the installation deviation of the Hall sensor leads to inaccurate detection of the rotor position, which in turn affects the stable output of the motor. The existing technology manually adjusts the hardware, but the process is complicated and the accuracy is low.
Provide an automatic correction method for the motor Hall sensor. By receiving the motor starting command, it determines whether the actual angle is stored. If not, determines the initial angle range of the rotor and the phase sequence of the Hall sensor, and determines the zero-crossing phase of the back electromotive force and the rising edge phase difference. Calculate the actual angle and store it for subsequent control of motor operation.
It achieves precise angle locking of the Hall sensor, ensuring accurate detection of the rotor position, providing stable output, and eliminating the need for manual operation, saving manpower and improving calibration efficiency.
Smart Images

Figure CN118282257B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method, device and system for automatically correcting a motor Hall sensor. Background Art
[0002] Brushless DC motors are gradually being used in power tools, replacing traditional brushed DC motors, improving the performance of power tools, reducing power consumption, and extending the service life of power tools.
[0003] A Hall sensor is installed in a brushless DC motor to detect the rotor position for phase change, thereby ensuring continuous and stable output of the brushless DC motor. However, when producing the motor, there will inevitably be installation deviations when installing the Hall sensor. This deviation will cause the Hall sensor to detect the rotor position inaccurately, making it difficult for the motor to accurately change phases to provide stable output. In this regard, the existing technology solves this problem by manually adjusting the Hall sensor, but directly adjusting the hardware requires multiple manual calibrations, the adjustment process is complicated, and the adjustment accuracy is low. Summary of the invention
[0004] Based on this, it is necessary to provide a motor operating state self-adaptive method, device and system to address the above-mentioned problems.
[0005] The embodiment of the present invention is implemented by providing a method for automatically correcting a motor Hall sensor, the method comprising:
[0006] S1: After receiving the motor start command, determine whether the actual angle of the Hall sensor is stored;
[0007] S2: If the actual angle has been stored, the motor is started and the operation of the motor is controlled according to the actual angle of the motor;
[0008] S3: If the actual angle is not stored, determine the initial angle range of the rotor, and then determine the motor phase sequence where the Hall sensor is located;
[0009] S4: Start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located;
[0010] S5: Determine the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor;
[0011] S6: Determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point;
[0012] S7: The actual angle of the Hall sensor is stored so that the operation of the motor can be controlled according to the actual angle of the motor after the motor is started.
[0013] In one embodiment, the present invention provides a device for automatically correcting a motor Hall sensor, the device comprising:
[0014] A judgment module, used for receiving a motor start instruction and judging whether an actual angle of the Hall sensor is stored;
[0015] A first processing module, for starting the motor if the actual angle has been stored, and controlling the operation of the motor according to the actual angle of the motor;
[0016] A second processing module is used to determine the initial angle range of the rotor if the actual angle is not stored, and then determine the motor phase sequence where the Hall sensor is located;
[0017] The third processing module is used to start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located;
[0018] A fourth processing module, used to determine a phase difference between a phase corresponding to a zero-crossing point of the back electromotive force and a phase corresponding to a rising edge of the Hall sensor;
[0019] A correction module, used to determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point;
[0020] The storage module is used to store the actual angle of the Hall sensor so that after the motor is started, the operation of the motor can be controlled according to the actual angle of the motor.
[0021] In one embodiment, the present invention provides a motor Hall sensor automatic calibration system, the system comprising:
[0022] A motor having a Hall sensor installed therein;
[0023] The control circuit is connected to the motor and is used to control the motor; the control circuit includes a computer device for executing the automatic correction method of the motor Hall sensor.
[0024] The present invention provides a method, device and system for automatic correction of a motor Hall sensor, the method comprising: receiving a motor start instruction, judging whether an actual angle of the Hall sensor is stored; if the actual angle is stored, starting the motor, and controlling the operation of the motor according to the actual angle of the motor; if the actual angle is not stored, determining the initial angle range of the rotor, and then determining the motor phase sequence where the Hall sensor is located; starting the motor, determining the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located; determining the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor; determining the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero-crossing point; storing the actual angle of the Hall sensor for controlling the operation of the motor according to the actual angle of the motor after the motor is subsequently started; in the present application, the actual installation angle of the Hall sensor can be accurately locked, the operation of the motor can be controlled according to the actual angle, the Hall sensor can accurately detect the rotor position for accurate phase switching, so as to provide a stable output, and in the entire process of determining the actual angle, no manual operation of the hardware is required, which saves manpower and improves the correction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A first flow chart of a method for automatic calibration of a motor Hall sensor provided in one embodiment;
[0026] Figure 2 A second flow chart of a method for automatically calibrating a motor Hall sensor provided in one embodiment;
[0027] Figure 3 A schematic diagram of each back electromotive force of a motor Hall sensor automatic correction method provided in one embodiment;
[0028] Figure 4 A module diagram of a motor Hall sensor automatic calibration device provided in one embodiment;
[0029] Figure 5 A schematic diagram of an automatic calibration system for a motor Hall sensor provided in one embodiment;
[0030] Figure 6 FIG. 4 is a block diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0032] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script without departing from the scope of the present invention.
[0033] like Figure 1-2 As shown, in one embodiment, a method for automatic calibration of a motor Hall sensor is proposed, the method comprising:
[0034] S1: After receiving the motor start command, determine whether the actual angle of the Hall sensor is stored;
[0035] S2: If the actual angle has been stored, the motor is started and the operation of the motor is controlled according to the actual angle of the motor;
[0036] S3: If the actual angle is not stored, determine the initial angle range of the rotor, and then determine the motor phase sequence where the Hall sensor is located;
[0037] S4: Start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located;
[0038] S5: Determine the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor;
[0039] S6: Determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point;
[0040] S7: The actual angle of the Hall sensor is stored so that the operation of the motor can be controlled according to the actual angle of the motor after the motor is started.
[0041] In this embodiment, the method is executed in a computer device, which can be an independent physical server or terminal, or a server cluster composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage and CDN; the motor controlled by the method is a brushless DC motor, which is connected to the computer device. The brushless DC motor uses an electronic controller instead of a mechanical commutator to achieve changes in the rotor magnetic field, so no brushes are required for commutation. This makes the brushless DC motor more reliable and more efficient, and also reduces maintenance costs; a brushless DC motor usually has three stator windings, namely, a U-phase stator winding, a V-phase stator winding and a W-phase stator winding. The three-phase stator windings are interconnected, and through timely current control, the motor rotor can rotate clockwise or counterclockwise; the motor phase sequence is the pre-set phase sequence of the three-phase windings in the motor, such as the U-phase is the first phase, the V-phase is the second phase, and the W-phase is the third phase; a corresponding Hall sensor can be set in each phase of the motor, and the method of this embodiment can be applied to each Hall sensor for angle correction; determining the motor phase sequence in which the Hall sensor is located is to determine the phase of the stator winding in which the Hall sensor is located.
[0042] In this embodiment, the main function of the Hall sensor is to identify the phase position information of the motor winding and convert it into an electrical signal. The driver obtains the position information of the rotor by reading the output level signal of the Hall element. The logic switch completes the correct commutation according to the rotor position information of the motor, and supplies current to the corresponding winding of the motor to form an air gap rotating magnetic field so that the motor can run continuously. When producing the motor, there will inevitably be installation deviations when installing the Hall sensor, that is, there will be a deviation between the installation angle of the Hall sensor input to the computer device (that is, the installation phase) and the actual angle of the Hall sensor (that is, the actual phase). If the position of the rotor is determined based on its installation angle, the rotor position will be inaccurately detected, making it difficult for the motor to perform accurate commutation and thus difficult to provide stable output. The purpose of this application is to automatically detect the actual angle of the Hall sensor and store it to cover the initial installation phase input, thereby achieving correction of the wrong installation phase.
[0043] In the present application, the actual installation angle of the Hall sensor can be accurately locked, and the operation of the motor can be controlled based on the actual angle. The Hall sensor can accurately detect the rotor position for accurate phase switching to provide stable output, and in the entire process of determining the actual angle, there is no need for personnel to perform any manual operation on the hardware, which saves manpower and improves correction efficiency.
[0044] As a preferred embodiment, determining the initial angle range of the rotor includes:
[0045] Applying a number of current pulses with a peak current of a preset value to the stator winding;
[0046] During any one current pulse application, the time taken for the current value in the stator winding to rise from zero to a preset value is recorded;
[0047] The sizes of the various time consumptions are compared to determine the initial angle range of the rotor.
[0048] The step of applying a plurality of current pulses of a preset magnitude to the stator winding comprises:
[0049] Apply a current pulse in the UV direction to the U-phase stator winding;
[0050] Apply a current pulse in the UW direction to the U-phase stator winding;
[0051] Apply a current pulse in the VW direction to the V-phase stator winding;
[0052] Apply a current pulse in the VU direction to the V-phase stator winding;
[0053] Apply a current pulse in the WU direction to the W-phase stator winding;
[0054] A current pulse in the WV direction is applied to the W-phase stator winding.
[0055] The comparing of the sizes of the time consumptions to determine the initial angle range of the rotor includes:
[0056] Judge T UV Is it greater than T UW ;
[0057] If T UV Greater than T UW , then judge T WU Is it greater than T WV , if T WU Greater than T WV , then the initial rotor angle range is 0~60 degrees; if T WU Not greater than T WV , then judge T VU Is it greater than T VW , if T VU Not greater than T VW , then the initial rotor angle range is 60~120 degrees. If T VU Greater than T VW , the initial rotor angle range is 120~180 degrees.
[0058] If T UV Not greater than T UW , then judge T WU Is it greater than T WV , if T WUGreater than T WV , then the initial rotor angle range is 180~240 degrees; if T WU Not greater than T WV , then judge T VU Is it greater than T VW , if T VU Not greater than T VW , then the initial rotor angle range is 240~300 degrees. If T VU Greater than T VW , then the initial rotor angle range is 300~360 degrees;
[0059] Among them, T UV is the time taken to apply a current pulse in the UV direction to the U-phase stator winding;
[0060] T UW is the time taken to apply a current pulse in the UW direction to the U-phase stator winding;
[0061] T WU is the time taken when a current pulse in the WU direction is applied to the W-phase stator winding;
[0062] T WV is the time taken when a current pulse in the WV direction is applied to the W-phase stator winding;
[0063] T VU is the time taken to apply a current pulse in the VU direction to the V-phase stator winding;
[0064] T VW It is the time taken to apply a current pulse in the VW direction to the V-phase stator winding.
[0065] In this embodiment, the UV direction current is from the U-phase stator winding to the V-phase stator winding, and the same applies to other directions; a pulse generator is provided in the motor, the pulse generator is connected to the stator winding, and communicates with the computer device, and the pulse generator can apply current pulses to the stator winding under the control of the computer device; a current sensor is connected to the winding, which can monitor the current changes in the winding in real time and transmit the current changes to the computer device in real time. The computer device starts timing when the current begins to change, and stops timing when the current reaches a preset value. The time duration is the elapsed time; because the rotor position determines the connection path of the magnetic flux, the rotor position will directly affect the magnetic flux distribution in the stator coil, thereby affecting the size and distribution of the stator winding inductance. Therefore, the time required to reach the same peak current after applying current pulses to different stator windings is different, and the position range of the rotor can be reversely determined based on this elapsed time.
[0066] As a preferred embodiment, determining the motor phase sequence where the Hall sensor is located includes:
[0067] Get the level status of the Hall sensor;
[0068] The motor phase sequence of the Hall sensor is determined based on the level state of the Hall sensor, the initial angle range of the rotor, and a preset rotor angle range and level state relationship table, wherein the rotor angle range and level state relationship table includes the level state of the Hall sensor in each motor phase sequence when the rotor is in any rotor angle range.
[0069] In this embodiment, the relationship between the rotor angle range and the level state is shown in the following table:
[0070]
[0071] Among them, HU is the level state of the Hall sensor in the U-phase stator winding, HV is the level state of the Hall sensor in the V-phase stator winding, and HW is the level state of the Hall sensor in the W-phase stator winding; 0 represents a low level (such as 0~0.8V), and 1 represents a high level (such as 2~5V); each Hall sensor communicates with the computer device;
[0072] In this embodiment, the level state of each Hall sensor is obtained, and then according to the determined rotor angle range, it can be determined in which phase sequence each Hall sensor is installed.
[0073] As a preferred embodiment, the phase of the zero-crossing point of the back electromotive force of the motor phase sequence in which the Hall sensor is located includes:
[0074] Monitor the back electromotive force of the stator winding at each phase of the motor phase sequence where the Hall sensor is located;
[0075] When the back electromotive force crosses zero, the corresponding phase is output.
[0076] Determining the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor includes:
[0077] Monitor the level state of the Hall sensor to obtain the rising edge of the Hall sensor;
[0078] Calculate the time difference between the rising edge of the Hall sensor and the zero crossing point of the back EMF;
[0079] The phase difference is calculated according to the following formula:
[0080]
[0081] in, is the phase difference, is the motor rotation period, is the time difference;
[0082] Determining the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point includes:
[0083] The actual angle is obtained by adding the phase of the zero-crossing point of the back EMF to the phase difference.
[0084] In this embodiment, an electromotive force sensor is provided in each phase stator winding, and the electromotive force sensor communicates with the computer device, and when the motor is running, it can monitor the back electromotive force of each phase; Figure 3 As shown, U U is the back electromotive force of the U-phase stator winding, U V is the back electromotive force of the V-phase stator winding, U W is the back electromotive force of the W-phase stator winding. When the back electromotive force of a certain phase stator winding changes from positive to negative (or from negative to positive), it is the zero-crossing point. The phase at this time is output, that is, the phase of the zero-crossing point of the back electromotive force. In this embodiment, the motor runs for one cycle, that is, the phase changes by 360°. The phase difference between the phase corresponding to the zero-crossing point and the phase corresponding to the rising edge of the Hall sensor can be obtained by the proportion of the time difference to the cycle. When the inductive magnetic field generated by the motor is running, it directly performs electromagnetic induction on the winding at the position of the Hall sensor, and the Hall sensor is on the rising edge, that is, the position of the Hall sensor is consistent with the phase corresponding to the rising edge of the Hall sensor. Therefore, the position of the Hall sensor, that is, the actual angle, can be obtained by adding the phase difference to the phase of the zero-crossing point.
[0085] like Figure 4 As shown, in one embodiment, a motor Hall sensor automatic correction device is provided, the device comprising:
[0086] A judgment module, used for receiving a motor start instruction and judging whether an actual angle of the Hall sensor is stored;
[0087] A first processing module, for starting the motor if the actual angle has been stored, and controlling the operation of the motor according to the actual angle of the motor;
[0088] A second processing module is used to determine the initial angle range of the rotor if the actual angle is not stored, and then determine the motor phase sequence where the Hall sensor is located;
[0089] The third processing module is used to start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located;
[0090] A fourth processing module, used to determine a phase difference between a phase corresponding to a zero-crossing point of the back electromotive force and a phase corresponding to a rising edge of the Hall sensor;
[0091] A correction module, used to determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point;
[0092] The storage module is used to store the actual angle of the Hall sensor so that after the motor is started, the operation of the motor can be controlled according to the actual angle of the motor.
[0093] The process of each module in the motor Hall sensor automatic calibration device provided in the embodiment of the present application realizing its own function can be specifically referred to the aforementioned Figure 1 The description of the illustrated embodiment will not be repeated here.
[0094] like Figure 5 As shown, in one embodiment, a motor Hall sensor automatic calibration system is provided, the system comprising:
[0095] A motor having a Hall sensor installed therein;
[0096] The control circuit is connected to the motor and is used to control the motor; the control circuit includes a computer device for executing the automatic correction method of the motor Hall sensor.
[0097] In this embodiment, the control circuit also includes components such as a current sensor, an electromotive force sensor, and a pulse generator. The computer device is connected to these components and cooperates with each other to execute the method of the present application. It is capable of accurately locking the actual installation angle of the Hall sensor and controlling the operation of the motor based on the actual angle. The Hall sensor can accurately detect the rotor position for accurate phase switching to provide a stable output. In the entire process of determining the actual angle, there is no need for personnel to perform any manual operation on the hardware, which saves manpower and improves correction efficiency.
[0098] Figure 6 FIG. 2 shows an internal structure diagram of a computer device in one embodiment. Figure 6As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the motor Hall sensor automatic correction method provided in the embodiment of the present invention. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the motor Hall sensor automatic correction method provided in the embodiment of the present invention. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0099] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0100] In one embodiment, the motor Hall sensor automatic calibration device provided by the embodiment of the present invention can be implemented in the form of a computer program. The computer program can be Figure 6 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the automatic correction device for the motor Hall sensor, for example, Figure 4 The judgment module, the first processing module, the second processing module, the third processing module, the fourth processing module, the correction module and the storage module shown in the figure. The computer program composed of each program module enables the processor to execute the steps of the motor Hall sensor automatic correction method of each embodiment of the present invention described in this specification.
[0101] For example, Figure 6 The computer device shown can be Figure 4 The judgment module in the motor Hall sensor automatic correction device shown executes step S1; the computer device can execute step S2 through the first processing module; the computer device can execute step S3 through the second processing module; the computer device can execute step S4 through the third processing module; the computer device can execute step S5 through the fourth processing module; the computer device can execute step S6 through the correction module; the computer device can execute step S7 through the storage module.
[0102] In one embodiment, a computer device is provided, the computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0103] S1: After receiving the motor start command, determine whether the actual angle of the Hall sensor is stored;
[0104] S2: If the actual angle has been stored, the motor is started and the operation of the motor is controlled according to the actual angle of the motor;
[0105] S3: If the actual angle is not stored, determine the initial angle range of the rotor, and then determine the motor phase sequence where the Hall sensor is located;
[0106] S4: Start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located;
[0107] S5: Determine the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor;
[0108] S6: Determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point;
[0109] S7: The actual angle of the Hall sensor is stored so that the operation of the motor can be controlled according to the actual angle of the motor after the motor is started.
[0110] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0111] S1: After receiving the motor start command, determine whether the actual angle of the Hall sensor is stored;
[0112] S2: If the actual angle has been stored, the motor is started and the operation of the motor is controlled according to the actual angle of the motor;
[0113] S3: If the actual angle is not stored, determine the initial angle range of the rotor, and then determine the motor phase sequence where the Hall sensor is located;
[0114] S4: Start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located;
[0115] S5: Determine the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor;
[0116] S6: Determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point;
[0117] S7: The actual angle of the Hall sensor is stored so that the operation of the motor can be controlled according to the actual angle of the motor after the motor is started.
[0118] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0119] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0120] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0121] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for automatic calibration of a motor Hall sensor, characterized in that: The method comprises: S1: After receiving the motor start command, determine whether the actual angle of the Hall sensor is stored; S2: If the actual angle has been stored, the motor is started and the operation of the motor is controlled according to the actual angle of the motor; S3: If the actual angle is not stored, determine the initial angle range of the rotor, and then determine the motor phase sequence where the Hall sensor is located; S4: Start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located; S5: Determine the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor; S6: Determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point; S7: storing the actual angle of the Hall sensor so as to control the operation of the motor according to the actual angle of the motor after the motor is started; Determining the initial angle range of the rotor includes: Applying a number of current pulses with a peak current of a preset value to the stator winding; During any one current pulse application process, the time taken for the current value in the stator winding to rise from zero to a preset value is recorded; Compare the durations of each time consumption to determine the initial angle range of the rotor; The step of applying a plurality of current pulses with a peak current of a preset value to the stator winding comprises: Apply a current pulse in the UV direction to the U-phase stator winding; Apply a current pulse in the UW direction to the U-phase stator winding; Apply a current pulse in the VW direction to the V-phase stator winding; Apply a current pulse in the VU direction to the V-phase stator winding; Apply a current pulse in the WU direction to the W-phase stator winding; Apply a current pulse in the WV direction to the W-phase stator winding; The comparing of the sizes of the time consumptions to determine the initial angle range of the rotor includes: Judge T UV Is it greater than T UW ; If T UV Greater than T UW , then judge T WU Is it greater than T WV , if T WU Greater than T WV , then the initial rotor angle range is 0~60 degrees; if T WU Not greater than T WV , then judge T VU Is it greater than T VW , if T VU Not greater than T VW , then the initial rotor angle range is 60~120 degrees. If T VU Greater than T VW , then the initial rotor angle range is 120~180 degrees; If T UV Not greater than T UW , then judge T WU Is it greater than T WV , if T WU Greater than T WV , then the initial rotor angle range is 180~240 degrees; if T WU Not greater than T WV , then judge T VU Is it greater than T VW , if T VU Not greater than T VW , then the initial rotor angle range is 240~300 degrees. If T VU Greater than T VW , then the initial rotor angle range is 300~360 degrees; Among them, T UV is the time taken to apply a current pulse in the UV direction to the U-phase stator winding; T UW is the time taken to apply a current pulse in the UW direction to the U-phase stator winding; T WU is the time taken when a current pulse in the WU direction is applied to the W-phase stator winding; T WV is the time taken when a current pulse in the WV direction is applied to the W-phase stator winding; T VU is the time taken to apply a current pulse in the VU direction to the V-phase stator winding; T VW is the time taken to apply a current pulse in the VW direction to the V-phase stator winding; Determining the motor phase sequence where the Hall sensor is located includes: Get the level status of the Hall sensor; The motor phase sequence of the Hall sensor is determined based on the level state of the Hall sensor, the initial angle range of the rotor, and a preset rotor angle range and level state relationship table, wherein the rotor angle range and level state relationship table includes the level state of the Hall sensor in each motor phase sequence when the rotor is in any rotor angle range.
2. The method according to claim 1, characterized in that: Determining the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located includes: Monitor the back electromotive force of the stator winding at each phase of the motor phase sequence where the Hall sensor is located; When the back electromotive force crosses zero, the corresponding phase is output.
3. The method according to claim 2, characterized in that Determining the phase difference between the phase corresponding to the zero-crossing point of the back electromotive force and the phase corresponding to the rising edge of the Hall sensor includes: Monitor the level state of the Hall sensor to obtain the rising edge of the Hall sensor; Calculate the time difference between the rising edge of the Hall sensor and the zero crossing point of the back EMF; The phase difference is calculated according to the following formula: in, is the phase difference, is the motor rotation period, For the time difference.
4. The method according to claim 3, characterized in that Determining the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point includes: The actual angle is obtained by adding the phase of the zero-crossing point of the back EMF to the phase difference.
5. An automatic calibration device for a motor Hall sensor, characterized in that: The device comprises: A judgment module, used for receiving a motor start instruction and judging whether an actual angle of the Hall sensor is stored; A first processing module, for starting the motor if the actual angle has been stored, and controlling the operation of the motor according to the actual angle of the motor; A second processing module is used to determine the initial angle range of the rotor if the actual angle is not stored, and then determine the motor phase sequence where the Hall sensor is located; The third processing module is used to start the motor and determine the phase of the zero-crossing point of the back electromotive force of the motor phase sequence where the Hall sensor is located; A fourth processing module, used to determine a phase difference between a phase corresponding to a zero-crossing point of the back electromotive force and a phase corresponding to a rising edge of the Hall sensor; A correction module, used to determine the actual angle of the Hall sensor according to the phase difference and the phase corresponding to the zero crossing point; A storage module is used to store the actual angle of the Hall sensor so as to control the operation of the motor according to the actual angle of the motor after the motor is started; Determining the initial angle range of the rotor includes: Applying a number of current pulses with a peak current of a preset value to the stator winding; During any one current pulse application process, the time taken for the current value in the stator winding to rise from zero to a preset value is recorded; Compare the durations of each time consumption to determine the initial angle range of the rotor; The step of applying a plurality of current pulses with a peak current of a preset value to the stator winding comprises: Apply a current pulse in the UV direction to the U-phase stator winding; Apply a current pulse in the UW direction to the U-phase stator winding; Apply a current pulse in the VW direction to the V-phase stator winding; Apply a current pulse in the VU direction to the V-phase stator winding; Apply a current pulse in the WU direction to the W-phase stator winding; Apply a current pulse in the WV direction to the W-phase stator winding; The comparing of the sizes of the time consumptions to determine the initial angle range of the rotor includes: Judge T UV Is it greater than T UW ; If T UV Greater than T UW , then judge T WU Is it greater than T WV , if T WU Greater than T WV , then the initial rotor angle range is 0~60 degrees; if T WU Not greater than T WV , then judge T VU Is it greater than T VW , if T VU Not greater than T VW , then the initial rotor angle range is 60~120 degrees. If T VU Greater than T VW , then the initial rotor angle range is 120~180 degrees; If T UV Not greater than T UW , then judge T WU Is it greater than T WV , if T WU Greater than T WV , then the initial rotor angle range is 180~240 degrees; if T WU Not greater than T WV , then judge T VU Is it greater than T VW , if T VU Not greater than T VW , then the initial rotor angle range is 240~300 degrees. If T VU Greater than T VW , then the initial rotor angle range is 300~360 degrees; Among them, T UV is the time taken to apply a current pulse in the UV direction to the U-phase stator winding; T UW is the time taken to apply a current pulse in the UW direction to the U-phase stator winding; T WU is the time taken when a current pulse in the WU direction is applied to the W-phase stator winding; T WV is the time taken when a current pulse in the WV direction is applied to the W-phase stator winding; T VU is the time taken to apply a current pulse in the VU direction to the V-phase stator winding; T VW is the time taken to apply a current pulse in the VW direction to the V-phase stator winding; Determining the motor phase sequence where the Hall sensor is located includes: Get the level status of the Hall sensor; The motor phase sequence of the Hall sensor is determined based on the level state of the Hall sensor, the initial angle range of the rotor, and a preset rotor angle range and level state relationship table, wherein the rotor angle range and level state relationship table includes the level state of the Hall sensor in each motor phase sequence when the rotor is in any rotor angle range.
6. A motor Hall sensor automatic calibration system, characterized in that: The system comprises: A motor having a Hall sensor installed therein; A control circuit is connected to the motor and is used to control the motor; the control circuit includes a computer device for executing the motor Hall sensor automatic correction method as described in any one of claims 1 to 4.
