Method and system for adjusting electrical angle of motor rotor and driver
By acquiring the first and second type signals of the motor rotor, determining the starting angle of the deviation and the relative rotation angle, and performing electrical angle correction, the problem of low stability and low efficiency caused by inaccurate electrical angles in the magnetic field oriented control of the motor rotor is solved. , achieving highly stable operation of the motor rotor.
Patent Information
- Application Number
- CN202410862011.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-08
AI Technical Summary
In the motor rotor field orientation control, the inaccuracy of the electrical angle will lead to motor heating, low efficiency and unstable operation. It is difficult to effectively solve this problem with existing technology.
By acquiring the first type signal and the second type signal of the motor rotor, the deviation starting angle and relative rotation angle are determined, and the angle compensation value is used to adjust the electrical angle during the rotation of the motor rotor to ensure the accuracy of the electrical angle.
It improves the accuracy of the electrical angle of the motor rotor, avoids the problems of unstable motor operation and low efficiency caused by sudden changes in electrical angle, and enhances the stability of the motor.
Smart Images

Figure CN118748526A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of equipment control, and in particular to a method, system and driver for adjusting the electrical angle of a motor rotor. Background Art
[0002] In order to better realize the field oriented control (FOC) or vector control of the motor rotor, it is usually necessary to pre-position the rotor before the motor closed-loop start, that is, to determine the electrical angle of the motor rotor through the encoder. In addition, the accuracy of the electrical angle is crucial to the subsequent start-up and operation of the motor. If the electrical angle is inaccurate, it will cause the motor to heat up and have low efficiency. Summary of the invention
[0003] The main purpose of the present application is to provide a method, system and driver for adjusting the electrical angle of a motor rotor, aiming to improve the stability of the motor operation.
[0004] In a first aspect, the present application provides a method for adjusting the electrical angle of a motor rotor, the method comprising the following steps:
[0005] Acquire a first type of signal of the motor rotor to be subjected to an electrical angle adjustment operation, and determine a deviation starting angle of the motor rotor according to the first type of signal;
[0006] Controlling the motor rotor to rotate, and determining the relative rotation angle of the motor rotor according to the second type of signal during the rotation of the motor rotor;
[0007] When the signal jump information of the first type of signal is obtained, the angle compensation value of the motor rotor is determined according to the relative rotation angle and the deviation starting angle, so that when the angle compensation value meets a preset condition, the electrical angle of the motor rotor is adjusted according to the angle compensation value.
[0008] In a second aspect, the present application further provides a driver, characterized in that the driver is used to execute a method for adjusting the electrical angle of a motor rotor as described in any one of the embodiments of the present application.
[0009] In a third aspect, the present application also provides a system for adjusting the electrical angle of a motor rotor, the system comprising a motor and a driver as described in the embodiments of the present application; the motor comprising a first type of device for generating a first type of signal and a second type of device for generating a second type of signal; the driver is communicatively connected to the motor, and the driver is used to obtain the first type of signal and the second type of signal to process the first type of signal and the second type of signal, and to drive and control the motor.
[0010] In a fourth aspect, the present application also provides a mobile robot, comprising a robot body and a drive control system for a motor as described in an embodiment of the present application, wherein the drive control system for the motor is electrically connected to the robot body.
[0011] In a fifth aspect, the present application also provides a computer program product, which, when running on a computer device, is used to execute the method for adjusting the electrical angle of the motor rotor as described above.
[0012] The present application provides a method, system and driver for adjusting the electrical angle of a motor rotor. The present application determines the deviation starting angle of the motor rotor with an error according to a first type of signal before the motor rotor starts to rotate, determines the relative rotation angle according to a second type of signal when the motor rotor rotates, and corrects the electrical angle of the motor rotor according to the deviation starting angle and the relative rotation angle when the first type of signal jumps. Since the accurate relative rotation angle can be obtained according to the second type of signal, the deviation starting angle with an error is corrected by the relative rotation angle when the first type of signal jumps, thereby improving the accuracy of the electrical angle of the motor rotor and avoiding unstable motor operation due to sudden changes in the electrical angle. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0014] Figure 1 A schematic flow chart of a method for adjusting the electrical angle of a motor rotor provided in one embodiment of the present application;
[0015] Figure 2 A schematic diagram of sector division provided in an embodiment of the present application;
[0016] Figure 3 A schematic diagram of the torque of a motor rotor provided in an embodiment of the present application;
[0017] Figure 4 A schematic diagram of a target sector provided in an embodiment of the present application;
[0018] Figure 5a , Figure 5b They are schematic diagrams of adjusting the electrical angle provided in an embodiment of the present application;
[0019] Figure 6A schematic diagram of adjusting the electrical angle of a motor rotor provided in an embodiment of the present application;
[0020] Figure 7 A schematic diagram of adjusting the electrical angle of a motor rotor provided in an embodiment of the present application;
[0021] Figure 8 This is a schematic block diagram of the structure of a driver involved in an embodiment of the present application;
[0022] Fig. 9 A schematic diagram of the working process of a drive control system for a motor provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0025] Embodiments of the present application provide a method, system, and driver for adjusting the electrical angle of a motor rotor.
[0026] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0027] Please refer to Figure 1 , Figure 1 A flow chart of a method for adjusting the electrical angle of a motor rotor provided in an embodiment of the present application. The method for adjusting the electrical angle of a motor rotor can be used in a driver connected to a motor for driving and controlling the motor through the driver to improve the stability of the motor operation.
[0028] like Figure 1 As shown, the method for adjusting the electrical angle of the motor rotor includes steps S101 to S103.
[0029] Step S101, obtaining a first type of signal of the motor rotor to be subjected to an electrical angle adjustment operation, and determining a deviation starting angle of the motor rotor according to the first type of signal.
[0030] The motor can be configured with a first type of device, and the first type of device is used to generate a first type of signal. The motor is connected to the driver in communication, and when the first type of device generates the first type of signal, the driver can obtain the first type of signal. The first type of signal can be used to represent the current position information of the motor rotor.
[0031] Exemplarily, after the driver is powered on, the driver can receive the first type of signal to determine the current position of the motor rotor according to the first type of signal, so as to further determine the deviation starting angle of the motor rotor, and then the driver can send a drive signal to the motor to make the motor rotor start to rotate. In other words, after the driver is powered on and before sending a drive signal to the motor, the driver can obtain the first type of signal generated by the first type of device configured in the motor to determine the deviation starting angle of the electronic rotor according to the first type of signal.
[0032] In one embodiment, the first type of signal mentioned above can further indicate the sector in which the motor rotor is currently located. Figure 2 , Figure 2 A schematic diagram of sector division provided in an embodiment of the present application.
[0033] like Figure 2 As shown, the 360° rotation range of the motor rotor is divided into 6 sectors, and the angle range corresponding to each sector is 60°. Among them, the angle range corresponding to the first sector is 330°-30°, the angle range corresponding to the second sector is 30°-90°, the angle range corresponding to the third sector is 90°-150°, the angle range corresponding to the fourth sector is 150°-210°, the angle range corresponding to the fifth sector is 210°-270°, and the angle range corresponding to the sixth sector is 270°-330°. In addition, when the motor rotor rotates to the position at the intersection of the sectors, for example, when it rotates to the position of 30° between the first sector and the second sector, the jump of the first type of signal will be triggered, and the first type of signal will jump from the value corresponding to the first sector to the value corresponding to the second sector. By analogy, the first type of signal will jump at the positions of 30°, 90°, 150°, 210°, 270°, and 330°.
[0034] Exemplarily, determining the deviation starting angle of the motor rotor according to the first type of signal may be to determine any angle within the electrical angle range corresponding to the sector where the motor rotor is located as the deviation starting angle of the motor rotor. For example, if it is determined according to the first type of signal that the motor rotor is located in the first sector, any angle between 330°-30° may be determined as the deviation starting angle of the motor rotor.
[0035] It is understandable that the deviation starting angle is the electrical angle of the electrical rotor at the start, estimated based on the first type of signal before the motor starts to rotate, and is not the actual electrical angle when the motor starts to rotate. Therefore, there may be a certain error between the deviation starting angle and the actual starting angle of the motor rotor.
[0036] Specifically, when the angle of the motor rotor is deviated, its torque will be different accordingly, which will cause problems such as large vibration and heat generation when the motor is running. Figure 3 To show the torque represented by the deviation starting angle and the actual starting angle of the motor rotor, Figure 3 A schematic diagram of the torque of a motor rotor provided in one embodiment of the present application.
[0037] As mentioned above, there is an error between the deviation starting angle and the actual starting angle. After the motor starts to rotate, it will run based on the deviation starting angle with error.
[0038] like Figure 3 As shown in FIG. 1 , if the electrical angle a is determined as the deviation starting angle of the motor rotor according to the first type of signal, and the actual starting angle of the motor rotor may be any angle within the angle range of the sector in which it is located, assuming that the actual starting angle of the motor rotor is the electrical angle b, then there is a difference between the torque a determined according to the electrical angle a and the torque b determined according to the electrical angle b. Figure 3 The difference shown in the figure will lead to problems such as low operating efficiency and heat generation if the motor runs for a long time when the operating torque is different from the actual optimal torque.
[0039] In some embodiments, the first type of device includes a Hall phase sensor, the first type of signal includes a Hall phase signal, and determining the deviation starting angle of the motor rotor according to the first type of signal includes:
[0040] Determining the target sector where the motor rotor is currently located according to the Hall phase signal;
[0041] The deviation starting angle of the motor rotor is determined according to the electrical angle range corresponding to the target sector.
[0042] For example, the first type of signal may be a Hall phase signal. The area where the rotor rotates is divided into multiple sectors, and a Hall phase sensor is set at the intersection of the sectors. When the motor rotor passes through the Hall phase sensor, the Hall phase signal will jump. For example, Figure 2The value of the Hall phase signal corresponding to the first sector is 1, the value of the Hall phase signal corresponding to the second sector is 2, ..., the value of the Hall phase signal corresponding to the sixth sector is 6, and so on. When the motor rotor rotates counterclockwise to the position of 30°, the Hall phase signal jumps from 1 to 2. In this way, the sector where the motor rotor is located can be determined according to the value of the Hall phase signal, and the specific position of the motor rotor can also be determined when the Hall phase signal jumps.
[0043] Exemplarily, in the method for adjusting the electrical angle of a motor rotor provided in an embodiment of the present application, the target sector in which the motor rotor is located is determined based on the Hall phase signal before the motor rotor starts to rotate, so as to determine the deviation starting angle of the motor rotor based on the electrical angle range of the target sector. If the Hall phase signal is obtained after the motor starts to rotate, the sector in which the motor rotor is located may have changed, and the Hall phase signal no longer indicates the sector in which the motor rotor was located when it started to rotate. Therefore, it is necessary to obtain the Hall phase signal of the motor rotor before or while the motor rotor starts to rotate to ensure the accuracy of the target sector.
[0044] In some implementations, determining the deviation starting angle of the motor rotor according to the electrical angle range corresponding to the target sector includes:
[0045] The deviation starting angle of the motor rotor is determined according to the median of the electrical angle range corresponding to the target sector.
[0046] Exemplarily, the angle value of the midpoint of the target sector where the motor rotor is located is used as the deviation starting angle of the motor rotor.
[0047] Please refer to Figure 4 , Figure 4 A schematic diagram of a target sector provided in an embodiment of the present application.
[0048] like Figure 4 As shown, assuming that the electrical angle range corresponding to the target sector is 30°-90°, the embodiment of the present application uses the median of the electrical angle range as the deviation starting angle of the motor rotor in the target sector, that is, 60° is used as the deviation starting angle, while the actual starting angle of the motor rotor may be less than 60°, located in the range of 30°-60°, or may be greater than 60°, located in the range of 60°-90°. Therefore, there is a certain error between the deviation starting angle and the actual starting angle.
[0049] Exemplarily, other angle values within the target sector may also be used as the deviation starting angle, which is not limited here.
[0050] Step S102: Control the motor rotor to rotate, and determine the relative rotation angle of the motor rotor according to the second type of signal during the rotation of the motor rotor.
[0051] The motor is provided with a second type of device, which is used to generate a second type of signal, and the second type of signal is used to characterize the angle increment during the rotation of the motor rotor.
[0052] Exemplarily, the driver sends a driving signal to the motor, and after the motor receives the driving signal, its motor rotor starts to rotate. At this time, the second type of device generates a second type of signal, and when the driver receives the second type of signal, the angle increment of the electronic rotor during the rotation process can be continuously detected according to the second type of signal. Among them, the angle increment corresponding to the start of the rotation of the electronic rotor to the current moment can be called the relative rotation angle, which is also the rotation angle of the motor rotor during the rotation process.
[0053] In some embodiments, the second type of device includes an orthogonal incremental encoder, the second type of signal includes an orthogonal pulse signal, and determining the relative rotation angle of the motor rotor according to the second type of signal during the rotation of the motor rotor includes:
[0054] Acquiring an orthogonal pulse signal during the rotation of the motor rotor;
[0055] The relative rotation angle of the rotor is determined according to the number of the orthogonal pulse signals and the detection accuracy of the orthogonal incremental encoder.
[0056] Exemplarily, the second type of signal may be an orthogonal pulse signal obtained by an orthogonal incremental encoder. The orthogonal incremental encoder may be, for example, an AB encoder, and the orthogonal pulse signal may be, for example, an AB signal. The AB encoder outputs an A pulse signal and a B pulse signal, and the direction and angle of rotation of the motor rotor may be determined according to the phase difference between the A pulse signal and the B pulse signal.
[0057] Specifically, the relative rotation angle of the motor rotor = (number of orthogonal pulse signals / detection accuracy of the orthogonal incremental encoder) * 360°. Detection accuracy refers to the smallest unit of angle change that the orthogonal incremental encoder can detect. Assuming that the detection accuracy of the orthogonal incremental encoder is 1000PPR (Pulse Per Ring), and 500 pulses are received during the rotation of the rotor, the relative rotation angle is (500 / 1000) * 360° = 180°, that is, when the detection accuracy of the orthogonal incremental encoder is 1000PPR, receiving 500 pulse signals means that the rotor has rotated 180°.
[0058] Step S103: When the signal jump information of the first type of signal is obtained, the angle compensation value of the motor rotor is determined according to the relative rotation angle and the deviation starting angle, so that when the angle compensation value meets a preset condition, the electrical angle of the motor rotor is adjusted according to the angle compensation value.
[0059] For example, based on the first type of signal, usually only the sector in which the motor rotor is located can be determined, but the exact position of the motor rotor cannot be determined, unless the first type of signal jumps, which means that the motor rotor is at the intersection angle between two sectors. At this time, the electrical angle of the motor rotor is determined, and the electrical angle of the motor rotor can be adjusted according to this determined electrical angle, the relative rotation angle and the deviation starting angle.
[0060] Exemplarily, if the error between the deviation starting angle and the actual starting angle is small, for example, the actual starting angle of the motor rotor is the deviation starting angle, then the electrical angle of the motor rotor does not need to be adjusted. Therefore, the electrical angle of the motor rotor is adjusted only when the angle compensation value meets a preset condition, wherein the preset condition may be, for example, that the difference between the deviation starting angle and the actual starting angle is greater than or equal to a preset threshold value, and the value of the preset threshold value may be set according to actual needs and is not limited here.
[0061] In some implementations, determining the angle compensation value of the motor rotor according to the relative rotation angle and the deviation starting angle includes:
[0062] Determine the deviation angle between the motor rotor and the sector junction according to the deviation starting angle;
[0063] Determine the actual angle between the motor rotor and the sector junction according to the relative rotation angle of the first type of signal when the signal jump information is obtained;
[0064] An angle compensation value of the motor rotor is determined according to a difference between the deviation angle and the actual angle.
[0065] Exemplarily, since the deviation starting angle is determined according to the electrical angle range of the target sector, the distance between the deviation starting angle and the edge of the target sector is also determined. In an embodiment of the present application, the deviation starting angle is located at the midpoint of the target sector, and the size of the target sector is 60°, so the distance between the deviation starting angle and the edge of the target sector is 30°. Theoretically, when the relative rotation angle is equal to 30°, the first type of signal will jump. However, since the actual starting angle of the motor rotor may be greater than or less than the deviation starting angle, the relative rotation angle when the first type of signal jumps may also be greater than or less than 30°. Therefore, the difference between the relative rotation angle when the first type of signal jumps and 30° is the difference between the deviation starting angle and the actual starting angle of the motor rotor, that is, the angle compensation value.
[0066] Exemplarily, the sign of the angle compensation value can be determined according to the rotation direction of the motor rotor and the direction of the angle compensation value. If the rotation direction of the motor rotor is opposite to the direction of the angle compensation value, for example, the rotation direction of the motor rotor is clockwise, and the direction of the angle compensation value is counterclockwise, then the sign of the compensation value is negative; conversely, if the rotation direction of the motor rotor is the same as the direction of the angle compensation value, for example, the rotation direction of the motor rotor is clockwise, and the direction of the angle compensation value is also clockwise, then the sign of the compensation value is positive.
[0067] In some implementations, adjusting the electrical angle of the motor rotor according to the angle compensation value includes:
[0068] Determine the angle adjustment step length according to the target compensation times and the angle compensation value;
[0069] The electrical angle of the motor rotor is adjusted based on the target compensation times and the angle adjustment step.
[0070] Exemplarily, the target number of compensation times can be predetermined. When the angle compensation value is large, the angle adjustment step of each compensation is relatively large, and vice versa. By determining the angle adjustment step of each time, the deviation value of the electrical angle can be gradually reduced during the rotation of the motor rotor, thereby reducing the amplitude of each electrical angle change without affecting the normal operation of the motor rotor. If the electrical angle of the motor rotor is increased or decreased directly according to the angle compensation value, due to the large amplitude of the electrical angle change of the motor rotor, the torque of the motor operation changes suddenly, which may cause the motor to make abnormal noises and result in a poor user experience. Please refer to Figure 5, Figure 5a , Figure 5b They are schematic diagrams of adjusting the electrical angle provided in an embodiment of the present application.
[0071] like Figure 5aAs shown in the figure, in an ideal situation, the size of the electrical angle changes periodically within a range of 360°, and the electrical angle of the motor rotor changes synchronously with the change of the mechanical angle. However, due to the error in the deviation starting angle, there is also an error in the changing electrical angle, which will cause a sudden change in the electrical angle of the motor rotor. Therefore, the electrical angle needs to be adjusted, such as Figure 5b As shown in the figure, a sudden change in the electrical angle will cause the motor to make abnormal noise, affecting the user experience and the stability of the motor.
[0072] In order to avoid this situation, the method for adjusting the electrical angle of the motor rotor provided in the embodiment of the present application adjusts the electrical angle of the motor rotor in small amounts and multiple times according to the angle compensation value, thereby avoiding large changes in the electrical angle.
[0073] Please refer to Figure 6 , Figure 6 A schematic diagram of adjusting the electrical angle of a motor rotor provided in an embodiment of the present application.
[0074] like Figure 6 As shown, if the target compensation times is n, the angle compensation value is divided into n parts, and the angle adjustment step length for adjusting the electrical angle within n angle compensation cycles is obtained, wherein the angle adjustment step length of each angle compensation cycle can be the same, that is, the angle compensation value is evenly divided into n parts, or it can be different, which is not limited here. Divide t1-t(n) into n angle compensation cycles, and compensate the electrical angle according to the angle compensation value in each angle compensation cycle. In this way, the electrical angle of the motor rotor can be adjusted to the actual electrical angle value at time t(n).
[0075] In some implementations, adjusting the electrical angle of the motor rotor based on the target compensation times and the angle adjustment step size includes:
[0076] The current electrical angle of the rotor is adjusted based on the angle adjustment step until the number of adjustments reaches the target number of compensations.
[0077] Exemplarily, the electrical angle is adjusted n times, and the amplitude of each adjustment is the angle adjustment step. After the n adjustments are completed, the electrical angle of the motor rotor will be equal to the actual electrical angle.
[0078] Exemplarily, the target compensation times is greater than or equal to a preset value. In order to reduce the variation of the electrical angle during each adjustment, the target compensation times should be as large as possible, for example, greater than 10,000 times, but this is not limited to this and is not limited here.
[0079] Specifically, if the target compensation times is 100000 and the PWM frequency for performing compensation is 20KHz, that is, 20K compensations are performed per second, the time required to complete the angle compensation is 100000 / 20k=5s, and the motor completes the compensation of the electrical angle of the motor rotor within 5s.
[0080] Please refer to Figure 7 , Figure 7 A schematic diagram of adjusting the electrical angle of a motor rotor provided in an embodiment of the present application.
[0081] like Figure 7 As shown, the electrical angle is adjusted by using the method for adjusting the electrical angle of the motor rotor provided in the embodiment of the present application, and Figure 5a Compared with this, it can avoid sudden changes in the electrical angle of the motor rotor, that is, avoid Figure 7 The mutation shown by the dotted line in the middle realizes the smooth adjustment of the electrical angle, so that the electrical angle changes smoothly in the form of a curve, thereby avoiding abnormal noise caused by the sudden change of the electrical angle in the motor.
[0082] In some implementations, after adjusting the electrical angle of the motor rotor according to the angle compensation value, the method further includes:
[0083] Determining a current direct-axis current and a current quadrature-axis current of the motor rotor in a rotating coordinate system according to the adjusted target electrical angle;
[0084] A target direct-axis current and a target quadrature-axis current are determined according to a preset speed, and the current direct-axis current and the current quadrature-axis current are adjusted based on the target direct-axis current and the target quadrature-axis current so that the motor rotor rotates at the preset speed.
[0085] Exemplarily, to implement Field-Oriented Control (FOC) of the motor according to the target electrical angle of the motor rotor, the three-phase current of the motor needs to be converted into components on the direct axis (d axis) and the quadrature axis (q axis). For example, the direct axis component and the quadrature axis component of the three-phase current can be determined according to the following formula:
[0086]
[0087] Among them, i d Represents the direct axis component of the three-phase current, i q Represents the quadrature axis component of the three-phase current, i a 、i b 、i c Indicates three-phase current.
[0088] Exemplarily, based on the following formula, according to the target electrical angle of the rotor, the direct-axis component and the quadrature-axis component of the three-phase current are converted to a rotating coordinate system synchronized with the rotor position to obtain the current direct-axis current and the current quadrature-axis current:
[0089] i drot =i d cos(θ)+i q sin(θ)
[0090] i qrot =-i d sin(θ)+i q cos(θ)
[0091] Where θ is the current electrical angle of the motor rotor, i drot and i qrot are the current direct-axis current and the current quadrature-axis current in the rotating coordinate system.
[0092] Exemplarily, after determining the current direct-axis current and the current quadrature-axis current of the rotor based on the three-phase current and the target electrical angle, the rotor current is adjusted according to the target direct-axis current and the target quadrature-axis current corresponding to the target speed, so that the speed of the motor rotor is increased or decreased to reach a preset speed.
[0093] The method for adjusting the electrical angle of the motor rotor provided in the above embodiment determines the deviation starting angle of the motor rotor with an error by using the first type of signal before the motor rotor starts to rotate, and then determines the relative rotation angle when the motor rotor rotates according to the second type of signal, and when the jump information of the first type of signal is obtained during the rotation of the motor rotor, the electrical angle of the motor rotor is corrected according to the deviation starting angle and the relative rotation angle. Before the motor rotor starts to rotate, the deviation starting angle of the motor rotor with an error is determined according to the first type of signal, and the relative rotation angle is determined according to the second type of signal when the motor rotor rotates, and the electrical angle of the motor rotor is corrected according to the deviation starting angle and the relative rotation angle when the first type of signal jumps. Since the accurate relative rotation angle can be obtained according to the second type of signal, the deviation starting angle with an error is corrected by the relative rotation angle when the first type of signal jumps, thereby improving the accuracy of the electrical angle of the motor rotor and avoiding unstable motor operation due to sudden changes in the electrical angle.
[0094] Exemplarily, the above method can be implemented by a computer program product. The computer program product can be implemented by Figure 8 It can also be stored in a computer-readable storage medium, and when it is needed, the computer program product is read from the computer-readable storage medium by a processor, and the computer program product may include computer program code, so that the processor executes the computer program code.
[0095] See also Figure 8 , Figure 8 A schematic block diagram of the structure of a driver provided in an embodiment of the present application.
[0096] like Figure 8 As shown, the driver includes a control module, a memory and a network interface connected via a system bus, wherein the memory may include a storage medium and an internal memory.
[0097] The storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any method for adjusting the electrical angle of the motor rotor.
[0098] The control module is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0099] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the control module can execute any method for adjusting the electrical angle of the motor rotor.
[0100] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application 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.
[0101] It should be understood that the control module may be a central processing unit (CPU), and the control module may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0102] Exemplarily, the driver includes a communication connection with the motor through a network interface, and the motor is connected with a first type of device and a second type of device. The network interface can receive a first type of signal and a second type of signal, and can also send a drive signal to the motor. The driver also includes a control module, and when the driver executes the above-mentioned method for adjusting the electrical angle of the motor rotor, the following operations are specifically performed:
[0103] After the driver is powered on, it receives the first type of signal generated by the first type of device through the network interface;
[0104] The control module is used to determine the deviation starting angle of the motor rotor according to the first type of signal;
[0105] The driver sends a driving signal to the motor through a network interface, and the driving signal is used to control the rotation of the motor rotor;
[0106] receiving a second type of signal generated by a second type of device through a network interface;
[0107] The control module is also used to determine the relative rotation angle of the motor rotor according to the second type of signal; and,
[0108] When the signal jump information is identified according to the first type of signal, it is determined whether the electrical angle of the motor rotor needs to be adjusted according to the deviation starting angle and the relative rotation angle;
[0109] If so, the electrical angle of the motor rotor is adjusted according to the angle compensation value determined by the deviation starting angle and the relative rotation angle.
[0110] In one embodiment, the first type of signal includes a Hall phase signal, and the control module is further configured to perform the following operations:
[0111] Determining the target sector where the motor rotor is currently located according to the Hall phase signal;
[0112] The deviation starting angle of the motor rotor is determined according to the electrical angle range corresponding to the target sector.
[0113] In one embodiment, the control module is further configured to perform the following operations:
[0114] The deviation starting angle of the motor rotor is determined according to the median of the electrical angle range corresponding to the target sector.
[0115] In one embodiment, the second type of signal includes an orthogonal pulse signal, and the control module is further configured to perform the following operations:
[0116] Acquiring an orthogonal pulse signal during the rotation of the motor rotor;
[0117] The relative rotation angle of the rotor is determined according to the number of the orthogonal pulse signals and the resolution detection accuracy of the orthogonal incremental encoder.
[0118] In one embodiment, the control module is further configured to perform the following operations:
[0119] Determine the deviation angle between the motor rotor and the sector junction according to the deviation starting angle;
[0120] Determine the actual angle between the motor rotor and the sector junction according to the relative rotation angle of the first type of signal when the signal jump information is obtained;
[0121] An angle compensation value of the motor rotor is determined according to a difference between the deviation angle and the actual angle.
[0122] In one embodiment, the control module is further configured to perform the following operations:
[0123] Determining the angle adjustment step length of each angle compensation cycle according to the target compensation times and the angle compensation value;
[0124] The electrical angle of the motor rotor is adjusted based on the target compensation times and the angle adjustment step.
[0125] In one embodiment, the driver further includes a current sampling module and a current processing module;
[0126] The current sampling module is used to collect the current direct-axis current and the current quadrature-axis current of the motor;
[0127] The current processing module is used to determine the target direct-axis current and the target quadrature-axis current according to the preset rotation speed;
[0128] The control module is used to adjust the current direct-axis current and the current quadrature-axis current based on the target direct-axis current and the target quadrature-axis current, so that the motor rotor rotates at the preset speed.
[0129] In one embodiment, when the control module determines that the electrical angle of the motor rotor does not need to be adjusted, or when it is determined that the electrical angle adjustment of the motor rotor is completed, the step of adjusting the electrical angle of the motor rotor is no longer performed, and the motor is directly controlled.
[0130] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of adjusting the electrical angle of the motor rotor described above can refer to the corresponding process in the aforementioned embodiment of the motor rotor electrical angle adjustment control method, and will not be repeated here.
[0131] The embodiment of the present application also provides a drive control system for a motor, the drive control system for a motor includes a motor and a driver as described in the embodiment of the present application. The motor includes a first type of device and a second type of device, wherein the first type of device is used to generate a first type of signal, and the second type of device is used to generate a second type of signal. The driver is connected to the motor in communication.
[0132] The above-mentioned drive control system for the motor performs the following operations:
[0133] The driver receives a first type of signal generated by a first type of device, and determines a deviation starting angle of the motor rotor according to the first type of signal;
[0134] Sending a drive signal to the motor, the drive signal is used to control the rotation of the motor rotor;
[0135] When the motor receives the driving signal, the motor rotor starts to rotate, and the second type of device generates a second type of signal;
[0136] The driver receives the second type of signal and determines the relative rotation angle of the motor rotor according to the second type of signal;
[0137] When the first type of signal generates a signal jump, the driver obtains the signal jump information of the first type of signal, and determines whether the electrical angle of the motor rotor needs to be adjusted according to the relative rotation angle and the deviation starting angle;
[0138] If so, the electrical angle of the motor rotor is adjusted according to the angle compensation value determined by the relative rotation angle and the deviation starting angle.
[0139] The driver determines whether to adjust the electrical angle, and the specific method of adjustment can refer to the contents mentioned in the above embodiment, which will not be described here.
[0140] Exemplarily, the first type of device may include a Hall sensor, and accordingly, the first type of signal includes a Hall phase signal; the second type of device may include an orthogonal incremental encoder, and accordingly, the second type of signal includes an orthogonal pulse signal.
[0141] Exemplarily, the driver is communicatively connected to the motor. During the operation of the motor, the driver can obtain the Hall phase signal and orthogonal pulse signal of the motor, and obtain the electrical angle of the motor rotor by accumulating the orthogonal pulse signal of the orthogonal incremental encoder. The working torque of the motor rotor is determined according to the electrical angle of the motor rotor, thereby realizing the driving of the motor.
[0142] See also Fig. 9 , Fig. 9 A schematic diagram of the working process of a drive control system for a motor provided in an embodiment of the present application.
[0143] like Fig. 9As shown, after the motor is started, it is detected whether the processor has completed the electrical angle adjustment operation. If the electrical angle adjustment operation has been completed, a normal accumulation operation is performed on the electrical angle according to the orthogonal pulse signal; otherwise, it is further determined whether the Hall phase signal of the Hall sensor jumps when the motor rotor starts to rotate. In the case where the Hall phase signal jumps, the position of the motor rotor can be directly determined based on the Hall phase signals before and after the jump; if the Hall phase signal does not jump when the motor rotor starts to rotate, the Hall phase signal is continuously monitored during the rotation of the motor rotor. When the Hall phase signal jumps for the first time, it is determined whether there is an error in the deviation starting angle. If there is an error in the deviation starting angle, the angle compensation value is determined, and the electrical angle is compensated according to the angle compensation value during the execution of the orthogonal pulse signal accumulation operation.
[0144] An embodiment of the present application also provides a mobile robot, including the above-mentioned drive control system for the motor and a robot body, wherein the motor and the driver included in the drive control system are electrically connected to the robot body respectively for controlling the movement of the mobile robot.
[0145] Exemplarily, the mobile robot may be used for item delivery. For example, a delivery cabin may be provided in the robot housing to accommodate items to be delivered. Of course, the present invention is not limited thereto and is not limited thereto herein.
[0146] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the method for adjusting the electrical angle of the motor rotor of the present application.
[0147] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0148] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0149] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0150] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for adjusting the electrical angle of a motor rotor, characterized in that: The method comprises: Acquire a first type of signal of the motor rotor to be subjected to an electrical angle adjustment operation, and determine a deviation starting angle of the motor rotor according to the first type of signal; Controlling the motor rotor to rotate, and determining the relative rotation angle of the motor rotor according to the second type of signal during the rotation of the motor rotor; When the signal jump information of the first type of signal is obtained, the angle compensation value of the motor rotor is determined according to the relative rotation angle and the deviation starting angle, so that when the angle compensation value meets a preset condition, the electrical angle of the motor rotor is adjusted according to the angle compensation value.
2. The method for adjusting the electrical angle of a motor rotor according to claim 1, characterized in that: The first type of signal includes a Hall phase signal, and determining the deviation starting angle of the motor rotor according to the first type of signal includes: Determining the target sector where the motor rotor is currently located according to the Hall phase signal; The deviation starting angle of the motor rotor is determined according to the electrical angle range corresponding to the target sector.
3. The method for adjusting the electrical angle of a motor rotor according to claim 2, characterized in that: The step of determining the deviation starting angle of the motor rotor according to the electrical angle range corresponding to the target sector includes: The deviation starting angle of the motor rotor is determined according to the median of the electrical angle range corresponding to the target sector.
4. The method for adjusting the electrical angle of a motor rotor according to claim 1, characterized in that: The second type of signal includes an orthogonal pulse signal, and determining the relative rotation angle of the motor rotor according to the second type of signal during the rotation of the motor rotor includes: Acquiring an orthogonal pulse signal during the rotation of the motor rotor; The relative rotation angle of the rotor is determined according to the number of the orthogonal pulse signals and the detection accuracy of the orthogonal incremental encoder.
5. The method for adjusting the electrical angle of a motor rotor according to claim 1, characterized in that: The step of determining the angle compensation value of the motor rotor according to the relative rotation angle and the deviation starting angle comprises: Determine the deviation angle between the motor rotor and the sector junction according to the deviation starting angle; Determine the actual angle between the motor rotor and the sector junction according to the relative rotation angle of the first type of signal when the signal jump information is obtained; An angle compensation value of the motor rotor is determined according to a difference between the deviation angle and the actual angle.
6. The method for adjusting the electrical angle of a motor rotor according to any one of claims 1 to 5, characterized in that: The step of adjusting the electrical angle of the motor rotor according to the angle compensation value comprises: Determine the angle adjustment step length according to the target compensation times and the angle compensation value; The electrical angle of the motor rotor is adjusted based on the target compensation times and the angle adjustment step.
7. The method for adjusting the electrical angle of a motor rotor according to claim 6, characterized in that: The step of adjusting the electrical angle of the motor rotor based on the target compensation times and the angle adjustment step size includes: The current electrical angle of the motor rotor is adjusted based on the angle adjustment step until the number of adjustments reaches the target compensation number.
8. The method for adjusting the electrical angle of a motor rotor according to any one of claims 1 to 5, characterized in that: After the electrical angle of the motor rotor is adjusted according to the angle compensation value, the method further includes: Determining a current direct-axis current and a current quadrature-axis current of the motor rotor in a rotating coordinate system according to the adjusted target electrical angle; A target direct-axis current and a target quadrature-axis current are determined according to a preset speed, and the current direct-axis current and the current quadrature-axis current are adjusted based on the target direct-axis current and the target quadrature-axis current so that the motor rotor rotates at the preset speed.
9. A driver, characterized in that: The driver is used to execute the method for adjusting the electrical angle of the motor rotor according to any one of claims 1 to 8.
10. A drive control system for a motor, the drive control system comprising a motor and a driver as claimed in claim 9; The motor includes a first type of device for generating a first type of signal and a second type of device for generating a second type of signal; The driver is communicatively connected to the motor, and is used to obtain the first type of signal and the second type of signal, so as to process the first type of signal and the second type of signal, and to drive and control the motor.
