Motor drive control method, motor controller, system and lidars
By calculating the target period and target PWM signal in motor drive control, the problem of insufficient motor drive control accuracy is solved, motor drive with high step accuracy and low speed is achieved, and hardware costs are reduced.
Patent Information
- Application Number
- PCT/CN2023/104997
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-14
- Filing Date
- 2023-06-30
- Publication Date
- 2024-09-19
AI Technical Summary
In the existing technology, the step accuracy of motor drive control usually cannot exceed 1%, which cannot meet higher accuracy requirements, and improving accuracy requires higher hardware configurations, resulting in increased production costs.
By obtaining the current PWM signal, determining the current step accuracy and period, setting the target step accuracy, calculating the target period and target PWM signal, driving the motor to work, and achieving high step accuracy motor drive control without the need for hardware configuration improvements.
Realize motor drive control with high step accuracy, low speed and high torque under limited hardware configuration, saving hardware costs and improving motor accuracy and efficiency.
Smart Images

Figure CN2023104997_19092024_PF_FP_ABST
Abstract
Description
Motor drive control method, motor controller, system and laser radar
[0001] This application claims priority to the Chinese patent application filed with the Patent Office of China on March 14, 2023, with application number 202310305178.6, and invention name “Motor drive control method, motor controller, system and lidar”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of motor drive control, and in particular to a motor drive control method, a motor controller, a system and a laser radar. Background Art
[0003] In the prior art, pulse width modulation (PWM) control is usually used to achieve motor drive control. The inventors realized that due to the limitations of hardware configuration, the step accuracy of the motor can usually only be above 1% when performing motor drive control, and higher step accuracy cannot be achieved. For example, for a motor with a rotational speed of 10,000 rpm, a step accuracy of 1% means controlling the motor's rotational speed to 100 rpm, and a step accuracy of 1% is far from meeting the use requirements. In order to solve the problem of how to improve the step accuracy, the inventors found that the prior art usually uses a higher hardware configuration, for example, a higher configuration controller, to achieve a step accuracy higher than 1% for motor drive control. However, higher hardware configurations are usually more expensive, resulting in an increase in production costs.
[0004] In summary, based on the existing hardware configuration, how to achieve higher stepping accuracy, drive and control the motor with higher stepping accuracy, and save hardware costs, for example, using a stepping accuracy of 0.1% to achieve drive control of the motor, is a technical problem that needs to be solved.
[0005] Application Contents
[0006] The embodiments of the present application provide a motor drive control method, a motor controller, a system and a laser radar to solve the problem of how to achieve motor drive control with higher step accuracy based on limited hardware configuration.
[0007] A motor drive control method, comprising:
[0008] Get the current PWM signal, and determine the current step accuracy and current period based on the current PWM signal;
[0009] Get the target step accuracy;
[0010] Determining a target period according to the target step accuracy, the current step accuracy, and the current period;
[0011] A target PWM signal is determined based on the target period, the current period, and the current step accuracy, and the motor is driven to operate according to the target PWM signal.
[0012] A motor controller includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the motor drive control method is implemented.
[0013] A drive control system comprises the above-mentioned motor controller and a drive motor connected to the motor controller.
[0014] A laser radar comprises the above-mentioned drive control system.
[0015] A laser radar also includes a fixed base and a rotating platform. The fixed base is provided with a drive motor, the drive motor is connected to the rotating platform, and the drive motor is connected to the motor controller for driving the rotating platform to rotate under the control of the motor controller.
[0016] The motor drive control method, motor controller, system, and lidar described above determine a target period based on the target step accuracy, current step accuracy, and current period. Based on the target period, current period, and current step accuracy, they determine a target PWM signal, and drive the motor according to the target PWM signal. This method achieves motor drive control with a high target step accuracy within a limited hardware configuration. This method eliminates the need for hardware modifications, saving hardware costs while enabling high-step accuracy, low-speed, and high-torque motor drive control. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] FIG1 is a flow chart of a motor drive control method according to an embodiment of the present application;
[0019] FIG2 is another flow chart of a motor drive control method according to an embodiment of the present application;
[0020] FIG3 is another flow chart of a motor drive control method according to an embodiment of the present application;
[0021] FIG4 is another flow chart of a motor drive control method according to an embodiment of the present application;
[0022] FIG5 is a schematic diagram of a motor controller according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0024] The motor drive control method provided in the embodiment of the present application can be applied in a drive control system, which includes a motor controller and a drive motor, and is used to achieve motor drive control with high step accuracy based on limited hardware configuration.
[0025] In one embodiment, as shown in FIG1 , a motor drive control method is provided. The method is described by taking a motor controller in a drive control system as an example, and includes the following steps:
[0026] S101: Obtain the current PWM signal, and determine the current step accuracy and current period according to the current PWM signal;
[0027] S102: Obtain target step accuracy;
[0028] S103: Determine a target period according to the target step accuracy, the current step accuracy, and the current period;
[0029] S104: Determine a target PWM signal based on the target period, the current period, and the current step accuracy, and drive the motor to operate according to the target PWM signal.
[0030] The current PWM signal is a pulse-width modulated signal with a specific duty cycle. Under limited hardware configurations, the current PWM signal serves as the motor's drive control signal. In the prior art, under limited hardware configurations, the duty cycle of the generated current PWM signal is no less than 1%. The current step accuracy is the step accuracy used to control the motor's drive, determined based on the current PWM signal. Generally speaking, the current step accuracy is numerically equal to the duty cycle corresponding to the current PWM signal. The current period is the signal period of the current PWM signal.
[0031] As an example, in step S101, the motor controller obtains the current PWM signal and determines the current step accuracy and the current period based on the obtained current PWM signal. In this example, the motor controller obtains the current PWM signal and determines the current step accuracy and the current period of the current PWM signal based on signal characteristics such as the signal waveform of the current PWM signal. For example, the motor controller may determine the current period of the current PWM signal based on the signal width between two adjacent rising-edge transition signals in the current PWM signal. For another example, the motor controller may also determine the current period of the current PWM signal based on the signal width between two adjacent falling-edge transition signals in the current PWM signal. For example, the motor controller may determine the pulse width of a pulse signal in the current PWM signal, and then determine the duty cycle corresponding to the current PWM signal based on the ratio of the pulse width of the pulse signal to the current period, and determine the magnitude of the duty cycle as the current step accuracy. In this example, determining the current step accuracy and the current period based on the current PWM signal facilitates the subsequent determination of the target period based on the current step accuracy and the current period.
[0032] The target stepping accuracy is a pre-set stepping accuracy required for motor drive control. It is understood that the motor can be controlled to perform corresponding drive control based on the target stepping accuracy. For example, different target stepping accuracies can control the motor to achieve different speeds.
[0033] As an example, in step S102, the motor controller obtains the target step accuracy, so that the current step accuracy can be adjusted according to the target step accuracy, and the motor is controlled to achieve drive control according to the target step accuracy, thereby achieving drive control of the motor with higher step accuracy. For example, if the motor is to be driven and controlled with a step accuracy of 0.1%, it is necessary to pre-set the target step accuracy to 0.1%. If the current step accuracy of the motor is 1%, the motor speed can be controlled to 100rpm under the control of the current step accuracy. If the target step accuracy of 0.1% is used for motor drive control, the motor speed can be controlled to 10rpm. Therefore, obtaining the target step accuracy of 0.1% facilitates the subsequent control of the motor by the target step accuracy of 0.1%, and controls the motor to achieve drive control with higher accuracy than the current step accuracy of 1%.
[0034] The target period is the period of the PWM signal corresponding to the target step accuracy. It can be understood that if the motor is operating at the target step accuracy, a PWM signal corresponding to the target step accuracy should be generated to control the motor to achieve the target step accuracy. The period of the PWM signal corresponding to the target step accuracy is the target period.
[0035] As an example, in step S103, after obtaining the target step accuracy, the motor controller jointly determines the target period of the PWM signal corresponding to the target step accuracy based on the obtained target step accuracy, the current step accuracy corresponding to the current PWM signal, and the current period corresponding to the current PWM signal. For example, the quantitative relationship between the target period of the PWM signal corresponding to the target step accuracy and the current period of the current PWM signal can be determined based on the current step accuracy and the target step accuracy corresponding to the current PWM signal, and the target period is determined based on this quantitative relationship. In this example, the target period is determined based on the target step accuracy, the current step accuracy, and the current period. Using this method to determine the target period, a relatively accurate target period can be obtained without performing complex calculations. The process of obtaining the target period is relatively convenient and quick, and facilitates the subsequent determination of the target PWM signal based on the target period.
[0036] The target PWM signal refers to the PWM signal corresponding to the target step accuracy. It can be understood that if the motor operates at the target step accuracy, a PWM signal corresponding to the target step accuracy should be generated to control the motor to achieve the target step accuracy. The PWM signal corresponding to the target step accuracy is the target PWM signal.
[0037] As an example, in step S104, the motor controller determines a target PWM signal based on the target period, the current period, and the current stepping precision, and drives the motor to operate according to the target PWM signal. In this example, the motor controller may divide the target period into multiple current periods based on the quantitative relationship between the target period and the current period, and generate a corresponding PWM signal within each current period of the target period based on the target stepping precision, the current period, and the current stepping precision, ultimately ensuring that the stepping precision of the entire target period reaches the target stepping precision. The PWM signal corresponding to the entire target period is determined as the target PWM signal, and the motor is driven to operate according to the determined target PWM signal, so that the motor operates at the target stepping precision.
[0038] For example, if the target step accuracy is 0.1% and the current step accuracy is 1%, under the control of the current step accuracy, the motor speed can be controlled to 100rpm, and under the control of the target step accuracy of 0.1%, the motor speed can be controlled to 10rpm. Using the PWM signal corresponding to the target step accuracy of 0.1% to drive and control the motor, the motor speed can be controlled to be reduced to 10rpm, thereby achieving high step accuracy, low speed and high torque drive control of the motor.
[0039] In this example, the target PWM signal is determined based on the target period, current period, and current step accuracy. Based on the target PWM signal, the motor is driven to operate at the target step accuracy. Based on the limited hardware configuration, the motor drive control is performed with higher step accuracy to achieve high step accuracy, low speed, and high torque control of the motor. This not only saves hardware costs but also enables the motor drive control with high step accuracy.
[0040] The motor drive control method provided in this embodiment determines a target period based on the target stepping accuracy, the current stepping accuracy, and the current period. Based on the target period, the current period, and the current stepping accuracy, a target PWM signal is determined, and the motor is driven according to the target PWM signal. This method achieves motor drive control with a high target stepping accuracy within a limited hardware configuration. This method eliminates the need for hardware modifications, saving hardware costs while enabling motor drive control with high stepping accuracy, low speed, and high torque.
[0041] In one embodiment, as shown in FIG2 , step S103, determining a target period according to the target step accuracy, the current step accuracy, and the current period, includes:
[0042] S201: Determine a target ratio according to the target step accuracy and the current step accuracy;
[0043] S202: Determine a target period according to the target ratio and the current period.
[0044] The target ratio refers to the quantitative relationship between the target step accuracy and the current step accuracy, and the target ratio reflects the quantitative relationship between the target period and the current period.
[0045] As an example, in step S201, the motor controller determines the ratio of the current step accuracy to the target step accuracy as the target ratio. For example, if the current step accuracy is 1% and the target step accuracy is 0.1%, the target ratio is 10. In this example, determining the target ratio based on the target step accuracy and the current step accuracy makes it feasible to subsequently determine the target period based on the target ratio.
[0046] As an example, in step S202, the motor controller determines a target period based on the target ratio and the current period. In this example, the target period is determined as the product of the calculated target ratio and the current period. For example, if the target ratio is 10 and the current period is 10 ms, the target period is the product of the target ratio and the current period, which is 100 ms. In this example, determining the target period facilitates subsequent determination of a target PWM signal corresponding to the target period based on the target period.
[0047] The motor drive control method provided in this embodiment has the same quantitative relationship between the target period and the current period as the quantitative relationship between the target step precision corresponding to the target period and the current step precision corresponding to the current period. Therefore, a target ratio is determined based on the target step precision and the current step precision, and a target period is determined based on the target ratio and the current period, thereby adjusting the target period based on the current period. This method of obtaining the target period does not require complex calculations and is simple and convenient, making it feasible to subsequently determine the corresponding target PWM signal based on the target period to drive the motor.
[0048] In one embodiment, step S104, i.e., determining a target PWM signal based on the target period, the current period, and the current step accuracy, includes:
[0049] S1041A: In the first current cycle of the target cycle, a first PWM signal corresponding to the current step accuracy is formed. In the other current cycles of the target cycle, a second PWM signal with a step accuracy of 0 is formed. The first PWM signal and the second PWM signal constitute the target PWM signal.
[0050] The first PWM signal refers to a PWM signal generated in the first current cycle within the target cycle, and the second PWM signal refers to a PWM signal generated in another current cycle after the first current cycle within the target cycle.
[0051] As an example, in step S1041A, the motor controller generates a first PWM signal corresponding to the current step precision during the first current cycle of the target cycle, and generates a second PWM signal with a step precision of 0 during the remaining current cycles of the target cycle. The first PWM signal and the second PWM signal constitute the target PWM signal. It is understood that there is a quantitative relationship between the target cycle and the current cycle. The motor controller can divide the target cycle into multiple current cycles based on this quantitative relationship, generate the first PWM signal corresponding to the current step precision during the first current cycle of the target cycle, and generate the second PWM signal with a step precision of 0 during each remaining current cycle of the target cycle, ultimately ensuring that the step precision corresponding to the entire target cycle reaches the target step precision, and determine the first PWM signal and the second PWM signal as the target PWM signal. Because the period and step precision corresponding to the first PWM signal are completely consistent with the current period and step precision corresponding to the current PWM signal, the current PWM signal can be directly generated during the first current cycle of the target cycle and used as the first PWM signal. Since the second PWM signal is a signal with a step accuracy of 0, that is, the duty cycle corresponding to the second PWM signal is 0, it is possible to stop generating any signal in each current cycle other than the first current cycle in the target cycle and generate a second PWM signal corresponding to each current cycle other than the first current cycle.
[0052] Understandably, according to the quantitative relationship between the target cycle and the current cycle, if the target step accuracy is A and the current step accuracy is B, then the quantitative relationship between the target cycle and the current cycle is Therefore, the target cycle is formed by N current cycles. In the first current cycle, the current PWM signal is directly generated and used as the first PWM signal. During the remaining N-1 current cycles, any signal generation is stopped. The signals corresponding to the N current cycles form the target PWM signal corresponding to the target cycle. For example, if the target step accuracy is 0.1% and the current step accuracy is 1%, the target cycle is formed by 10 current cycles. In the first current cycle, the current PWM signal is directly generated and used as the first PWM signal. During the remaining 9 current cycles, any signal generation is stopped. The signals corresponding to the 10 current cycles form the target PWM signal corresponding to the target cycle, facilitating the motor to operate at the target step accuracy of 0.1% according to the target PWM signal.
[0053] The motor drive control method provided in this embodiment directly determines a first PWM signal based on the current cycle and the current step precision within a target cycle, and directly generates a second PWM signal with a step precision of 0 during the remaining current cycles within the target cycle. The target PWM signal is composed based on the first PWM signal and the second PWM signal. Based on a limited hardware configuration, a target PWM signal corresponding to a higher target step precision is generated. This method not only does not require improvement to the existing limited hardware configuration, thus saving hardware costs, but also eliminates the need for complex calculations to obtain the target PWM signal corresponding to the higher target step precision, making it more convenient and quick. At the same time, it facilitates subsequent control of the motor to operate at a higher target step precision based on the target PWM signal.
[0054] In another embodiment, step S104, i.e., determining the target PWM signal based on the target period, the current period, and the current step accuracy, further includes:
[0055] S1041B: Determine the pulse width based on the current cycle and current step accuracy;
[0056] S1042B: Generate a target pulse signal corresponding to the pulse width within the target period, and stop generating the signal during the remaining time of the target period to form a target PWM signal corresponding to the target period.
[0057] As an example, in step S1041B, the motor controller determines the pulse width of the current PWM signal based on the current period and the current step precision. In this example, the motor controller determines the pulse width of the current PWM signal based on the current period and the current step precision of the current PWM signal. If the current period is T and the current step precision is H, then the pulse width of the current PWM signal is For example, if the current cycle is 100ms and the current step accuracy is 1%, the pulse width of the current PWM signal is That is, the pulse width of the current PWM signal is 10ms. In this example, the pulse width is determined based on the current period and the current step accuracy, so that the target PWM signal corresponding to the target period can be generated based on the pulse width.
[0058] The target pulse signal refers to a pulse signal with a corresponding pulse width formed within a target period.
[0059] As an example, in step S1042B, the motor controller generates a target pulse signal corresponding to the pulse width within the target period, and ceases signal generation during the remainder of the target period, thereby forming a target PWM signal corresponding to the target period. Specifically, if the pulse width is R and the target period is M, then within the target period M, a pulse signal with a pulse width of R is first generated. During the remaining time MR, any signal generation ceases, ultimately forming a target PWM signal corresponding to the target period M.
[0060] For example, if the pulse width is determined to be 10ms and the target period is 1000ms, a pulse signal with a pulse width of 10ms is generated in the target period, and no signal is generated in the remaining 900ms, and finally a target PWM signal corresponding to the target period is formed. The step accuracy corresponding to the target PWM signal is 0.1%, achieving a relatively high step accuracy.
[0061] In this example, a target pulse signal corresponding to the pulse width is generated within the target period, and the signal generation is stopped during the remaining time of the target period to form a target PWM signal corresponding to the target period. Without improving the hardware configuration, not only the manufacturing cost is saved, but also the target PWM signal corresponding to a higher step accuracy is obtained.
[0062] The motor drive control method provided in this embodiment determines a pulse width based on the current cycle and current stepping accuracy. It then generates a target pulse signal corresponding to the pulse width within a target cycle and stops generating the signal during the remainder of the target cycle, thereby forming a target PWM signal corresponding to the target cycle. This method reduces manufacturing costs without requiring hardware configuration modifications, while also obtaining a target PWM signal corresponding to a higher stepping accuracy, facilitating subsequent motor control based on the target PWM signal.
[0063] In one embodiment, as shown in FIG3 , after step S202 , that is, after obtaining the target stepping accuracy, the motor drive control method further includes:
[0064] S301: Evaluate whether the target step accuracy meets the target evaluation condition based on the target step accuracy and the current step accuracy;
[0065] S302: If the target step accuracy meets the target evaluation condition, determine the target period according to the target step accuracy, the current step accuracy and the current period;
[0066] S303: If the target step accuracy does not meet the target evaluation condition, the motor is driven to operate based on the current PWM signal.
[0067] The target evaluation condition is used to determine whether the motor can be controlled to operate at the target step accuracy under the current limited hardware configuration state.
[0068] As an example, in step S301, after the motor controller obtains the target step accuracy, it evaluates and determines the target step accuracy based on the current step accuracy to determine whether the target step accuracy meets the target evaluation conditions. If the target step accuracy meets the target evaluation conditions, it indicates that the target step accuracy can be achieved under the current hardware configuration conditions; if the target step accuracy does not meet the target evaluation conditions, it indicates that the target step accuracy cannot be achieved under the current hardware configuration conditions. In this example, based on the target step accuracy and the current step accuracy, the target step accuracy is evaluated to determine whether it meets the target evaluation conditions. This facilitates the subsequent determination of the corresponding operation based on whether the target step accuracy meets the target evaluation conditions, thereby improving work efficiency.
[0069] As an example, in step S302, the motor controller evaluates and determines the target step accuracy based on the current step accuracy. If the target step accuracy meets the target evaluation conditions, the target period is determined based on the target step accuracy, the current step accuracy and the current period. Understandably, if the target step accuracy meets the target evaluation conditions, it indicates that the target step accuracy can be achieved, and step S103 is directly executed, that is, the target period is determined based on the target step accuracy, the current step accuracy and the current period. In this example, when it is determined that the target step accuracy meets the target evaluation conditions, the target period is determined based on the target step accuracy, the current step accuracy and the current period, so as to facilitate the subsequent determination of the target PWM signal based on the target period and achieve the target step accuracy.
[0070] As an example, in step S303, the motor controller evaluates and determines the target step accuracy based on the current step accuracy. If the target step accuracy does not meet the target evaluation conditions, the motor is driven to work based on the current PWM signal, that is, the motor is still controlled to drive at the current step accuracy. It can be understood that if the target step accuracy does not meet the target evaluation conditions, it means that the target step accuracy cannot be achieved. At this time, the motor is still controlled to work based on the current step accuracy. That is, the speed of the motor is still controlled by the current step accuracy. In this example, when it is determined that the target step accuracy does not meet the target evaluation conditions, the motor is driven to work based on the current PWM signal to facilitate the control of the motor to continue working.
[0071] The motor drive control method provided in this embodiment evaluates whether the target step accuracy meets the target evaluation conditions based on the target step accuracy and the current step accuracy. If the target step accuracy meets the target evaluation conditions, the target period is determined based on the target step accuracy, the current step accuracy and the current period. If the target step accuracy does not meet the target evaluation conditions, the motor is driven to work based on the current PWM signal. This method performs corresponding operations based on whether the target step accuracy meets the target evaluation conditions, thereby improving work efficiency.
[0072] In one embodiment, as shown in FIG4 , step S301, i.e., evaluating whether the target step accuracy meets the target evaluation condition based on the target step accuracy and the current step accuracy, includes:
[0073] S401: If the target step accuracy is higher than the current step accuracy, and the current step accuracy is an integer multiple of the target step accuracy, then the target step accuracy meets the target evaluation condition;
[0074] S402: If the target step accuracy is not higher than the current step accuracy, or the current step accuracy is not an integer multiple of the target step accuracy, the target step accuracy does not meet the target evaluation condition.
[0075] As an example, in step S401, the motor controller determines that the target step accuracy satisfies the target evaluation condition when it determines that the target step accuracy is higher than the current step accuracy and that the current step accuracy is an integer multiple of the target step accuracy. Understandably, under current limited hardware configurations, the preset target step accuracy can be achieved when the current step accuracy is an integer multiple of the target step accuracy. Furthermore, depending on the actual conditions of motor drive control, the goal of controlling the motor with higher step accuracy can be achieved, which is of practical significance.
[0076] For example, if the target step accuracy is 0.1% and the current step accuracy is 1%, then the target step accuracy of 0.1% is higher than the current step accuracy of 1%, and since the precision value of the current step accuracy is 10 times the precision value of the target step accuracy, the current step accuracy is an integer multiple of the target step accuracy. Since the target step accuracy of 0.1% is higher than the current step accuracy of 1%, and the current step accuracy is an integer multiple of the target step accuracy, it can be determined that the target step accuracy meets the target evaluation condition. In this example, when the target step accuracy is higher than the current step accuracy and the current step accuracy is an integer multiple of the target step accuracy, it is determined that the target step accuracy meets the target evaluation condition, which facilitates the operation of determining when the target step accuracy meets the target evaluation condition and improves work efficiency.
[0077] As an example, in step S402, when the motor controller determines that the target step accuracy is not higher than the current step accuracy, or when it determines that the current step accuracy is not an integer multiple of the target step accuracy, it determines that the target step accuracy does not meet the target evaluation condition. It is understandable that when the target step accuracy is not higher than the current step accuracy, it has no practical significance for the motor drive control. Therefore, if the target step accuracy is not higher than the current step accuracy, it is determined that the target step accuracy does not meet the target evaluation condition. Alternatively, when it is determined that the current step accuracy is not an integer multiple of the target step accuracy, it is determined that the corresponding target step accuracy cannot be achieved under the current limited hardware configuration conditions, and it is also determined that the target step accuracy does not meet the target evaluation condition.
[0078] For example, if the target step accuracy is 1% and the current step accuracy is also 1%, or the target step accuracy is 10% and the current step accuracy is also 1%, then the target step accuracy is not higher than the current step accuracy, and the target step accuracy has no practical significance for motor drive control. It is determined that the target step accuracy does not meet the target evaluation conditions.
[0079] In this example, when the target step accuracy is not less than the current step accuracy, or when the current step accuracy is not an integer multiple of the target step accuracy, it is determined that the target step accuracy does not meet the target evaluation conditions, which facilitates the operation when the target step accuracy does not meet the target evaluation conditions and improves work efficiency.
[0080] The motor drive control method provided in this embodiment determines whether the target step accuracy meets the target evaluation conditions based on the accuracy relationship and multiple relationship between the target step accuracy and the current step accuracy, thereby facilitating the determination of corresponding operations based on whether the target step accuracy meets the target evaluation conditions and improving work efficiency.
[0081] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0082] In one embodiment, as shown in FIG5 , a motor controller is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the motor drive control method described above is implemented. For example, S101-S104 shown in FIG1 , or as shown in FIG2 through FIG4 , are not described again here to avoid repetition.
[0083] In one embodiment, a drive control system is provided, including the above-mentioned motor controller and a drive motor connected to the motor controller, for implementing the motor drive control method in the above-mentioned embodiment, such as S101-S104 shown in Figure 1, or as shown in Figures 2 to 4. To avoid repetition, they are not repeated here.
[0084] In one embodiment, a laser radar is provided, comprising the above-mentioned drive control system.
[0085] In another embodiment, a laser radar is provided, which also includes a fixed base and a rotating platform. A drive motor is provided on the fixed base, the drive motor is connected to the rotating platform, and the drive motor is connected to a motor controller for driving the rotating platform to rotate under the control of the motor controller.
[0086] As an example, a laser radar includes a fixed base and a rotating platform. The fixed base is equipped with a drive motor, which is connected to the rotating platform. The drive motor is then connected to a motor controller and is configured to rotate the rotating platform under the control of the motor controller. The drive motor can operate at a high target step accuracy, driving the rotating platform to rotate, enabling more accurate positioning of the laser radar. For example, when the current step accuracy of the drive motor is 1%, the current speed of the drive motor is 100 rpm. However, when the target step accuracy is 0.1%, the target speed of the drive motor can be 10 rpm. This target step accuracy is higher than the current step accuracy, and the target speed corresponding to the target step accuracy is lower than the current speed corresponding to the current step accuracy. Therefore, if the drive motor is controlled by a target PWM signal corresponding to the target step accuracy, high-precision and low-speed control of the drive motor can be achieved. In the laser radar, operating the drive motor at the target step accuracy can drive the rotating platform to rotate at a lower speed, resulting in more detailed pulse signals generated during the rotation of the rotating platform, making the laser radar positioning more accurate and achieving better positioning results.
[0087] The laser radar provided in this embodiment includes a drive motor, which realizes high-precision and low-speed control under high step precision control, so that the laser radar can be positioned more accurately during operation and has a better positioning effect.
[0088] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium. When the computer 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 in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various 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).
[0089] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A motor drive control method, in, include: Get the current PWM signal, and determine the current step accuracy and current cycle based on the current PWM signal; Get the target step accuracy; Determining a target period according to the target stepping precision, the current stepping precision and the current period; A target PWM signal is determined based on the target period, the current period and the current stepping accuracy, and the motor is driven to operate according to the target PWM signal.
2. The motor drive control method according to claim 1, in, The step of determining a target period according to the target stepping precision, the current stepping precision and the current period comprises: Determining a target ratio according to the target step accuracy and the current step accuracy; A target period is determined according to the target ratio and the current period.
3. The motor drive control method according to claim 1, in, The step of determining a target PWM signal based on the target period, the current period, and the current stepping precision includes: In a first current cycle of the target cycle, a first PWM signal corresponding to the current step precision is formed, and in other current cycles of the target cycle, a second PWM signal with a step precision of 0 is formed, and the first PWM signal and the second PWM signal constitute the target PWM signal.
4. The motor drive control method according to claim 1, in, The determining of the target PWM signal based on the target period, the current period and the current step accuracy further includes: Determining a pulse width according to the current cycle and the current step accuracy; In the target period, a target pulse signal corresponding to the pulse width is generated, and in the remaining time of the target period, the signal generation is stopped to form a target PWM signal corresponding to the target period.
5. The motor drive control method according to claim 1, in, After obtaining the target stepping accuracy, the motor drive control method further includes: According to the target stepping accuracy and the current stepping accuracy, evaluating whether the target stepping accuracy meets a target evaluation condition; If the target stepping precision satisfies the target evaluation condition, determining the target period according to the target stepping precision, the current stepping precision and the current period is performed; If the target stepping accuracy does not meet the target evaluation condition, the motor is driven to operate based on the current PWM signal.
6. The motor drive control method according to claim 5, in, The step of evaluating whether the target step accuracy satisfies a target evaluation condition according to the target step accuracy and the current step accuracy includes: If the target step precision is higher than the current step precision, and the current step precision is an integer multiple of the target step precision, then the target step precision satisfies the target evaluation condition; If the target step precision is not higher than the current step precision, or the current step precision is not an integer multiple of the target step precision, then the target step precision does not meet the target evaluation condition.
7. A motor controller comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, in, When the processor executes the computer program, the motor drive control method according to any one of claims 1 to 6 is implemented.
8. A drive control system, in, It comprises the motor controller as claimed in claim 7 and a driving motor connected to the motor controller.
9. A laser radar, in, Includes the drive control system as described in claim 8.
10. A laser radar, in, It also includes a fixed base and a rotating platform. The fixed base is provided with a driving motor, the driving motor is connected to the rotating platform, and the driving motor is connected to the motor controller to drive the rotating platform to rotate under the control of the motor controller.
Citation Information
Patent Citations
Control method, device and system for direct current brushless motor pulse width modulation
CN104767431A
Motor control device, control method and control system
CN112217425A
Motor drive control method, motor controller, system and laser radar
CN116317737A
Laser radar and sweeping robot
CN209915878U
Optical disk device and method of detecting step-out of stepping motor
JP2007129811A
