WO2021212520A1 - Control method and apparatus for motor, device, and storage medium - Google Patents

Control method and apparatus for motor, device, and storage medium Download PDF

Info

Publication number
WO2021212520A1
WO2021212520A1 PCT/CN2020/086870 CN2020086870W WO2021212520A1 WO 2021212520 A1 WO2021212520 A1 WO 2021212520A1 CN 2020086870 W CN2020086870 W CN 2020086870W WO 2021212520 A1 WO2021212520 A1 WO 2021212520A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
angular velocity
current
electrical angular
voltage
Prior art date
Application number
PCT/CN2020/086870
Other languages
French (fr)
Chinese (zh)
Inventor
李福�
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202080005660.2A priority Critical patent/CN112956126A/en
Priority to PCT/CN2020/086870 priority patent/WO2021212520A1/en
Publication of WO2021212520A1 publication Critical patent/WO2021212520A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/06Arrangements for speed regulation of a single motor wherein the motor speed is measured and compared with a given physical value so as to adjust the motor speed
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/08Arrangements for controlling the speed or torque of a single motor

Definitions

  • This application relates to the technical field of motor control, and in particular to a method, device, equipment, and storage medium for controlling a motor.
  • Permanent magnet motors are widely used in unmanned aerial vehicles, electric vehicles, industrial inverters and other fields.
  • the control of the motor running status mainly includes two methods. One is the control based on the position sensor, and the control is given by the position sensor. The position signal and the calculated rotational speed signal control the motor; the other is the control without position sensor.
  • the motor For a motor without a position sensor, the motor is in a high-speed and remote-rotation state when it is started, and the switch drag or high-frequency injection method used in general conditions will generate a huge current impact, which will cause damage to the motor equipment. It will take a certain amount of time to wait for the motor to stop and start again. For certain scenarios, serious accidents may occur. For example, the motor stopping of the drone will directly cause the drone to crash.
  • the present application provides a motor control method, device, equipment, and storage medium, aiming to improve the accuracy and reliability of motor control, so as to improve the safety of the equipment.
  • the present application provides a method for controlling a motor.
  • the motor has no position sensor, including:
  • the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
  • the present application also provides a motor control device, the motor control device including a memory and a processor;
  • the memory is used to store a computer program
  • the processor is configured to execute the computer program and, when executing the computer program, implement the following steps:
  • the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
  • the present application also provides a motor device, the motor device includes:
  • a motor arranged in the housing
  • the motor control device is in communication connection with the motor.
  • this application also provides a movable platform, which includes:
  • a power system is provided in the body, the power system is used to provide power to the movable platform, and the power system includes a motor;
  • processors configured to obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor before starting the motor; if the electrical angular velocity is greater than or equal to a first preset threshold, Then, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein, the first preset threshold is greater than zero.
  • the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the control of the motor as described above. method.
  • the embodiments of the present application provide a motor control method, device, equipment, and storage medium.
  • the motor has no position sensor.
  • the current electrical angular velocity of the motor is obtained by collecting the current voltage of the motor. It is greater than or equal to the first preset threshold, that is, when the motor is running fast, the current electrical angular velocity of the motor is used as a feedback signal to perform a closed-loop control of the motor to start the motor. There is no need to wait for the motor to stop and then restart the motor. It avoids motor deceleration, motor stalling, current impact, etc. caused by open-loop control or dragging by high-frequency injection method, so that the motor in high-speed rotation can be quickly controlled without stopping or current impact. Therefore, The accuracy and reliability of motor control are improved, which in turn improves the safety of the equipment.
  • FIG. 1 is a schematic block diagram of the structure of a motor device provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of steps of a method for controlling a motor provided by an embodiment of the present application
  • FIG. 3 is a schematic flowchart of sub-steps of the motor control method in FIG. 1;
  • FIG. 4 is a schematic flowchart of sub-steps of the motor control method in FIG. 1;
  • Fig. 5 is a schematic block diagram of a control circuit of a motor device provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of steps of another motor control method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a flow of starting a motor according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of the structure of a motor control device provided by an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of the structure of a movable platform provided by an embodiment of the present application.
  • the microcontroller When the motor is rotating at high speed, the microcontroller is reset due to a short interruption of power supply, the microcontroller is reset by electromagnetic interference, the prime mover drags the motor to a higher speed, etc. If the motor is rotating at high speed when the microcontroller is started Status, for permanent magnet motors controlled by a position sensorless control algorithm, if the microcontroller restarts due to reset when the motor is in a high-speed rotation state, because there is no position signal provided by the position sensor, the microcontroller's PWM cannot be directly enabled (Pulse Width Modulation) output, otherwise it may cause overcurrent of the switch tube and motor, causing damage to components or equipment. Therefore, when the microcontroller is started, the control program cannot determine whether the motor is rotating.
  • the motor speed is zero by default at this time.
  • Open-loop control is performed directly or the motor is driven to a certain speed by high-frequency injection. In this control mode, If the motor is actually running at high speed, there will be a higher rotor back-EMF at the motor end, so when the motor is driven by open-loop control or high-frequency injection, a large inrush current will be generated, which will make the motor speed down quickly. It may even cause damage to the electrical equipment.
  • the specification of this application provides a motor control method, device, equipment, and storage medium.
  • the motor control method can be applied to electrical equipment.
  • FIG. 1 A schematic block diagram of the structure, as shown in Figure 1, the electrical equipment includes a housing 100, and a motor control device 200, a motor control circuit 300, and a motor 400 arranged in the housing 100.
  • the motor 400 is used to provide power to the electrical equipment.
  • the motor control device 200 and the motor control circuit 300 are used to control the operation of the motor 400.
  • the motor control circuit 300 includes a power supply (such as a DC power supply), an inverter circuit, a current sampling circuit, and a voltage sampling circuit.
  • the inverter circuit includes a three-phase inverter bridge.
  • the power supply is connected to the motor 400 via the three-phase inverter bridge.
  • the motor 400 is respectively connected to a current sampling circuit and a voltage sampling circuit.
  • the current sampling circuit is used to collect the current of the motor
  • the voltage sampling circuit is used to collect the voltage of the motor; the motor control device 200 can obtain the current electrical angular velocity of the motor through the current voltage of the motor. If the electrical angular velocity is greater than or equal to the first preset threshold, the current electrical angular velocity of the motor is used as a feedback signal to perform closed-loop control on the motor to start the motor.
  • electrical equipment includes electric vehicles, electric ships, unmanned vehicles, mobile robots, and drones.
  • the unmanned aerial vehicle may have one or more propulsion units to allow the unmanned aerial vehicle to fly in the air.
  • the one or more propulsion units can make the drone move at one or more, two or more, three or more, four or more, five or more, six or more free angles .
  • the drone can rotate around one, two, three, or more rotation axes.
  • the rotation axes may be perpendicular to each other.
  • the rotation axis can be maintained perpendicular to each other during the entire flight of the UAV.
  • the rotation axis may include a pitch axis, a roll axis, and/or a yaw axis.
  • the drone can move in one or more dimensions.
  • a drone can move upward due to the lifting force generated by one or more rotors.
  • the drone can move along the Z axis (upward relative to the drone direction), X axis, and/or Y axis (which can be lateral).
  • the drone can move along one, two or three axes that are perpendicular to each other.
  • the drone can be a rotorcraft.
  • the drone may be a multi-rotor aircraft that may include multiple rotors. Multiple rotors can rotate to generate lift for the drone.
  • the rotor can be a propulsion unit, allowing the drone to move freely in the air.
  • the rotor can rotate at the same rate and/or can generate the same amount of lift or thrust.
  • the rotor can rotate at different speeds at will, generating different amounts of lifting force or thrust and/or allowing the drone to rotate.
  • one, two, three, four, five, six, seven, eight, nine, ten or more rotors can be provided on the drone. These rotors can be arranged such that their rotation axes are parallel to each other. In some cases, the rotation axis of the rotors can be at any angle relative to each other, which can affect the movement of the drone.
  • the drone can have multiple rotors.
  • the rotor can be connected to the main body of the drone, and the main body can include a control unit, an inertial measurement unit (IMU), a processor, a battery, a power supply, and/or other sensors.
  • the rotor may be connected to the body by one or more arms or extensions branching from the central part of the body.
  • one or more arms may extend radially from the central body of the drone, and may have rotors at or near the end of the arms.
  • the motor control method provided in the embodiments of the present application will be described in detail below based on the electrical equipment, the control device of the motor in the electrical equipment, and the motor in the electrical equipment. It should be understood that the motor equipment in FIG. 1 does not constitute a limitation on the application scenario of the motor control method.
  • FIG. 2 is a schematic flowchart of a method for controlling a motor provided by an embodiment of the present application. This method can be used in the motor control device provided in the above embodiments to improve the accuracy and reliability of motor control, thereby improving the safety of the motor equipment.
  • the motor control method specifically includes steps S101 to S103.
  • the PWM signal for controlling the motor is not enabled or the power signal for driving the motor is not connected.
  • the collected current electrical angular velocity of the motor is greater than 0, that is, the rotation speed of the motor is not zero before starting.
  • the current voltage of the motor corresponds to the voltage of the motor line of the motor, for example, the voltage of the coil of the rotor winding of the motor.
  • the motor has no position sensor, that is, it is impossible to calculate the rotation speed of the motor through the position signal collected by the position sensor, and then to control the motor.
  • the motor includes but is not limited to a permanent magnet synchronous motor. When starting the motor, first collect the current voltage of the motor.
  • the collected current voltage of the motor is a three-phase voltage.
  • the motor is connected to a voltage sampling circuit, and the current voltage of the motor is collected through the voltage sampling circuit.
  • the input line of the rotor winding of the motor is connected to the voltage collection circuit to obtain the voltage of each winding.
  • the voltage sampling circuit includes a resistance component and an analog-to-digital converter.
  • the current three-phase voltage analog signal of the motor can be collected through the resistance component, and the current three-phase voltage of the analog signal can be converted into a digital signal by the analog-digital converter.
  • the current three-phase voltage is connected to a voltage sampling circuit, and the current voltage of the motor is collected through the voltage sampling circuit.
  • the input line of the rotor winding of the motor is connected to the voltage collection circuit to obtain the voltage of each winding.
  • the voltage sampling circuit includes a resistance component and an analog-to-digital converter.
  • the current three-phase voltage analog signal of the motor can be collected through the resistance component, and the current three-phase voltage of the analog signal can be converted into a digital signal by the analog-
  • the motor control circuit between the motor and the DC power supply is provided with a three-phase inverter bridge
  • the collecting the current voltage of the motor includes: controlling the disabled PWM (Pulse) of the three-phase inverter bridge.
  • width modulation (pulse width modulation) signal respectively collect the voltage of the negative terminal of the three-phase motor line of the motor relative to the DC bus of the DC power supply to obtain three opposite electromotive forces.
  • the power supply is a DC power supply
  • the motor is connected to the DC power supply via a three-phase inverter bridge through a three-phase motor line.
  • the PWM signal of the three-phase inverter bridge is not enabled, and then separately collect the voltage of the three-phase motor line of the motor relative to the negative terminal of the DC bus to obtain the three counter electromotive force of the motor.
  • the three counter electromotive force is the current three-phase voltage of the motor.
  • the collecting the current voltage of the motor includes: collecting the line voltage between any two-phase motor lines of the three-phase motor line of the motor to obtain three line voltages.
  • the three line voltages of the motor are obtained by collecting the line voltage between any two phases of the three-phase motor line of the motor, and the three line voltages are used as the current voltage of the motor.
  • the vector sum of the three-line voltages is zero, it is possible or only to collect any two line voltages among the three line voltages, and calculate the other line voltage based on the collected two line voltages.
  • the three-phase motor line of the motor includes the first-phase motor line, the second-phase motor line, and the third-phase motor line.
  • the second line voltage between the motor line and the third phase motor line is calculated based on the first line voltage and the second line voltage.
  • the step S101 includes:
  • the voltage vector synthesized by the three-phase voltage is determined, and the amplitude and phase of the voltage vector are obtained.
  • the method further includes: performing Clarke transformation on the three opposite electromotive forces to generate a voltage vector, and obtaining the voltage amplitude and phase of the voltage vector.
  • the current three counter electromotive force of the motor includes the first counter electromotive force, the second counter electromotive force and the third counter electromotive force.
  • the first counter electromotive force, the second counter electromotive force and the third counter electromotive force are used as input parameters.
  • the second and third opposite electromotive forces perform Clarke transformation to generate a corresponding voltage vector, and obtain the voltage amplitude and phase of the voltage vector.
  • the method further includes: performing Clarke transformation on the three-wire voltage to generate a voltage vector to obtain the voltage amplitude and phase of the voltage vector.
  • the collected current voltage of the motor is the line voltage
  • the collected current line voltage of the motor includes the first line voltage, the second line voltage and the third line voltage
  • the first line voltage, the second line voltage and the third line voltage are used as input parameters.
  • the electrical angular velocity of the motor is calculated according to the voltage amplitude corresponding to the current voltage of the motor.
  • the calculating the electrical angular velocity according to the voltage amplitude includes: obtaining the flux linkage parameter value of the motor; dividing the voltage amplitude by the flux linkage parameter value to calculate and obtain the electrical angular velocity Angular velocity.
  • the flux parameter ⁇ f is the motor parameter, which represents the magnetic flux of the motor.
  • the step S101 includes:
  • the preset duration can be set based on actual conditions, which is not specifically limited in this application.
  • the first voltage of the motor is collected by a voltage sampling circuit
  • the second voltage of the motor is collected by the voltage sampling circuit after a preset period of time. Set the duration.
  • the first phase of the motor is determined according to the first voltage, that is, the voltage vector generated after the clark transformation of the first three-phase voltage is determined, and the phase of the voltage vector is obtained as the first phase of the motor; according to the second three-phase voltage Determine the second phase of the motor, that is, determine the voltage vector generated by the clark transformation of the second three-phase voltage, and obtain the phase of the voltage vector as the second phase of the motor; determine the motor's phase according to the first and second phases The amount of phase change is to determine the difference between the first phase and the second phase, and use the difference between the first phase and the second phase as the phase change of the motor.
  • the difference between the first phase and the second phase is used as the phase change amount of the motor divided by the preset duration to calculate the electrical angular velocity of the motor.
  • the motor flux parameter ⁇ f that is, the workload of obtaining the electrical angular velocity of the motor is reduced.
  • the electrical angular velocity is greater than or equal to a first preset threshold, use the electrical angular velocity as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
  • the first preset threshold corresponding to the electrical angular velocity of the motor used for quick start control of the operation of the motor is preset, and after the current electrical angular velocity of the motor is obtained, the electrical angular velocity is compared with the first preset threshold to determine the two The size of the person. If the current electrical angular velocity of the motor is greater than or equal to the first preset threshold, that is, when the motor is running at a high speed, the electrical angular velocity of the motor is used as a feedback signal to perform closed-loop control of the motor to start the motor.
  • the control device for setting the motor is configured with a position observer, a speed controller, a current controller, and SVM (Support Vector Machine).
  • the current electrical angular velocity of the motor is Phase is Electrical angular velocity And phase
  • the position observer will As a feedback signal to the speed controller, combined with the electrical angular velocity And input control signal, such as the speed command w * , the speed controller outputs the corresponding current signal To the current controller, the current controller according to Output the corresponding voltage signal u ⁇ to the position observer, and enable the PWM signal of the three-phase inverter bridge through the SVM, and use the position observer to calculate the position of the motor rotor and the electrical angular velocity of the motor according to the back EMF method to control the motor switching To the calculated position of the motor rotor and the electrical angular velocity of the motor.
  • the electrical angular velocity is used as a feedback signal, and the motor performs closed-loop control to start the motor.
  • the electrical angular velocity and the phase are used as feedback signals to perform closed-loop control on the motor. To start the motor.
  • the difference between this embodiment and the closed-loop control in the above-mentioned embodiment is that the electrical angular velocity and phase of the motor are used as feedback signals to perform closed-loop control on the motor to start the motor.
  • the specific closed-loop control process can refer to the process of closed-loop control using the electrical angular velocity of the motor as the feedback signal, so I will not repeat it here.
  • the feedback signal includes the electrical angular velocity and phase of the motor, the reliability of the closed-loop control of the motor is further improved.
  • control method of the motor further includes: collecting the current current of the motor, and correcting the electrical angular velocity and the phase through the current until the electrical angular velocity and the electrical angular velocity are corrected.
  • the phase is floating within a preset range.
  • the current current of the motor is collected by the current sampling circuit.
  • a current sensor is provided on the current sampling circuit, and collecting the current current of the motor is specifically collecting the current current of the motor through the current sensor.
  • the electrical angular velocity and phase of the motor are corrected according to the current of the motor until the electrical angular velocity and phase of the corrected motor float within a preset range.
  • the current voltage of the motor used to obtain the electrical angular velocity of the motor is the collected and detected voltage, and the PWM signal of the three-phase inverter bridge is still not enabled at this time.
  • the current sampling circuit collects the current three-phase current of the motor, takes the three-phase current as the input parameter and performs Clarke transformation to generate the corresponding current vector i ⁇ , and the motor is adjusted according to the current vector i ⁇ .
  • the electrical angular velocity and phase are corrected until the corrected electrical angular velocity and phase of the motor float within the preset range.
  • the electrical angular velocity and phase of the motor are continuously corrected based on the current of the motor until after the correction.
  • the electrical angular velocity of the motor is floating in the first preset range, and the phase is floating in the second preset range.
  • the reliability is further improved.
  • the method further includes:
  • the above-mentioned control of the motor is directed to the control of the motor in the case of high-speed operation, that is, the control of the motor in the case that the electrical angular velocity of the motor is greater than the first preset threshold. It should be noted that since the current electrical angular velocity of the motor is greater than 0, and the motor control device does not apply (ie, disable) the PWM signal of the three-phase inverter bridge, the current electrical angular velocity of the motor will decrease over time. The following specifically describes the control of the motor when the electrical angular velocity of the motor is less than the first preset threshold. In order to avoid a large inrush current when the motor is being dragged, a second preset threshold corresponding to the electrical angular velocity of the motor is also preset.
  • the first preset threshold is greater than the second preset threshold.
  • the electrical angular velocity of the motor is less than the first preset threshold and greater than the second preset threshold
  • the current voltage of the motor is continuously collected, and the electrical angular velocity of the motor is calculated and determined according to the collected current voltage of the motor, and the electrical angular velocity of the motor is compared with the first
  • the preset threshold value is compared with the second preset threshold value until the current latest electrical angular velocity of the motor is less than or equal to the second preset threshold value.
  • S104 When the electrical angular velocity is less than or equal to the second preset threshold, open-loop control or use a high-frequency injection method to run the motor to a preset rotation speed.
  • the open-loop control or the high-frequency injection method is used to run the motor to the preset speed.
  • the open loop control or high frequency injection method to drive the motor is a conventional technology, so I won't repeat it here.
  • the specific value of the preset speed can be flexibly set according to the actual situation, and there is no restriction here.
  • the closed-loop control is used to control the motor.
  • the electrical angular velocity of the motor is obtained by the back-EMF method, and then the electrical angular velocity of the motor is used as a feedback signal to perform closed-loop control on the operation of the motor.
  • the motor startup control process is as follows:
  • the PWM signal of the three-phase inverter bridge is first disabled to collect the current voltage of the motor, and obtain the voltage amplitude and phase corresponding to the current voltage of the motor, and determine the current electrical angular velocity of the motor according to the current voltage of the motor. Then it is judged whether the electrical angular velocity is greater than the first preset threshold, that is, whether the electrical angular velocity of the motor meets the requirements of the motor's fast start.
  • the output of the observer, or the position observer according to the vector current to correct the electrical angular velocity and phase calculated from the vector voltage output the final electrical angular velocity and phase, and enable the PWM signal of the three-phase inverter bridge.
  • the motor is switched to the position of the motor rotor calculated based on the back-EMF method and the electrical angular velocity (or rotation speed) of the motor, and the motor is closed-loop controlled. Conversely, if it is judged that the electrical angular velocity is less than the first preset threshold, that is, it is judged that the electrical angular velocity of the motor does not meet the requirements for quick start of the motor, then it is judged whether the electrical angular velocity of the motor is less than or equal to the second preset threshold, that is, whether the electrical angular velocity of the motor is When the safe speed is reached, if the electrical angular speed of the motor is greater than the second preset threshold, that is, the electrical angular speed of the motor does not reach the safe speed, the electrical angular speed of the motor is continuously collected until the electrical angular speed of the motor is less than or equal to the second preset threshold.
  • the electrical angular speed of the motor reaches the safe speed.
  • the PWM signal of the three-phase inverter bridge is enabled, and then the open-loop control or high-frequency injection method is used to obtain the position of the motor rotor to drive the motor to the preset speed. Then switch the motor to the position of the motor rotor and the electrical angular velocity (or rotation speed) of the motor calculated based on the back-EMF method to perform closed-loop control of the motor.
  • the method for controlling the motor further includes: when the motor is started, obtaining the current electrical angular velocity of the motor by obtaining the actual output voltage signal used to control the motor, and using the electrical angular velocity The motor is controlled as a feedback signal.
  • the actual output voltage signal used to control the motor is obtained, for example, the voltage signal u ⁇ output by the current controller as shown in Fig. 5 is based on the actual output voltage used to control the motor Signal to obtain the current electrical angular velocity of the motor.
  • the current controller outputs a voltage signal u ⁇ to the position observer, and the position observer obtains the current electrical angular velocity of the motor based on the voltage signal u ⁇ .
  • the electrical angular velocity of the motor is used as a feedback signal to control the operation of the motor in a closed loop.
  • the method of obtaining the electrical angular velocity and the method of using the electrical angular velocity of the motor as the feedback signal to perform the closed-loop control of the motor can refer to the above-mentioned operation during the starting process of the motor, so it will not be repeated here. That is, after the motor is started, closed-loop control is also performed according to the electrical angular velocity of the motor as a feedback signal, thus improving the reliability of the operation after the motor is started.
  • the motor has no position sensor.
  • the current electrical angular velocity of the motor is obtained by collecting the current voltage of the motor. If the electrical angular velocity is greater than or equal to the first preset threshold, that is When the motor is running fast, the current electrical angular velocity of the motor is used as the feedback signal to perform closed-loop control of the motor to start the motor. It is not necessary to wait for the motor to stop before restarting the motor, and it also avoids open-loop control or the use of high frequency
  • the injection method generates a large inrush current when the motor is dragged. Therefore, the accuracy and reliability of the motor control are improved, and the safety of the motor equipment is further improved.
  • FIG. 8 is a schematic block diagram of a structure of a motor control device provided by an embodiment of the present application.
  • the motor control device 800 includes a processor 801 and a memory 802, and the processor 801 and the memory 802 are connected through a bus 803.
  • the bus 803 is, for example, an I2C (Inter-integrated Circuit) bus.
  • the motor control device 800 is applied to motor equipment.
  • the motor equipment includes a motor control circuit and a motor.
  • the motor is used to provide power to the motor equipment.
  • the motor control device 800 and the circuit control circuit are used to control the operation of the motor.
  • the motor control circuit includes power supply. Power supply (such as DC power supply), inverter circuit, current sampling circuit and voltage sampling circuit.
  • the inverter circuit includes a three-phase inverter bridge.
  • the power supply is connected to the motor through the three-phase inverter bridge.
  • the motor is connected to the current sampling circuit and the voltage sampling circuit respectively. Circuit connection, the current sampling circuit is used to collect the current of the motor, and the voltage sampling circuit is used to collect the voltage of the motor; the motor control device can obtain the current electrical angular velocity of the motor through the current voltage of the motor, if the electrical angular velocity is greater than or equal to the first preset Threshold, the current electrical angular velocity of the motor is used as the feedback signal to perform closed-loop control of the motor to start the motor. In this way, it avoids the large inrush current when the motor is driven by the open loop control or the high frequency injection method, and there is no need to wait for the motor to stop before restarting the motor. Therefore, the accuracy and reliability of the motor control are improved. , Thereby improving the safety of electrical equipment.
  • electrical equipment includes electric vehicles, electric ships, unmanned vehicles, mobile robots, and drones.
  • the unmanned aerial vehicle may have one or more propulsion units to allow the unmanned aerial vehicle to fly in the air.
  • the one or more propulsion units can make the drone move at one or more, two or more, three or more, four or more, five or more, six or more free angles .
  • the drone can rotate around one, two, three, or more rotation axes.
  • the rotation axes may be perpendicular to each other.
  • the rotation axis can be maintained perpendicular to each other during the entire flight of the UAV.
  • the rotation axis may include a pitch axis, a roll axis, and/or a yaw axis.
  • the drone can move in one or more dimensions.
  • drones can move upwards due to the lifting force generated by one or more rotors.
  • the drone can move along the Z axis (upward relative to the drone direction), X axis, and/or Y axis (which can be lateral).
  • the drone can move along one, two or three axes that are perpendicular to each other.
  • the drone can be a rotorcraft.
  • the drone may be a multi-rotor aircraft that may include multiple rotors. Multiple rotors can rotate to generate lift for the drone.
  • the rotor can be a propulsion unit, allowing the drone to move freely in the air.
  • the rotor can rotate at the same rate and/or can generate the same amount of lift or thrust.
  • the rotor can rotate at different speeds at will, generating different amounts of lifting force or thrust and/or allowing the drone to rotate.
  • one, two, three, four, five, six, seven, eight, nine, ten or more rotors can be provided on the drone. These rotors can be arranged such that their rotation axes are parallel to each other. In some cases, the rotation axis of the rotors can be at any angle relative to each other, which can affect the movement of the drone.
  • the drone can have multiple rotors.
  • the rotor can be connected to the main body of the drone, and the main body can include a control unit, an inertial measurement unit (IMU), a processor, a battery, a power supply, and/or other sensors.
  • the rotor may be connected to the body by one or more arms or extensions branching from the central part of the body.
  • one or more arms may extend radially from the central body of the drone, and may have rotors at or near the end of the arms.
  • the processor 801 may be a micro-controller unit (MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
  • MCU micro-controller unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 802 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
  • the processor 801 is configured to run a computer program stored in the memory 802, and implement the following steps when executing the computer program:
  • the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
  • the processor when the processor implements the acquisition of the current electrical angular velocity of the motor, it specifically implements:
  • the electrical angular velocity is calculated.
  • the motor is connected to a voltage sampling circuit, and when the processor implements the collection of the current voltage of the motor, it specifically implements:
  • a three-phase inverter bridge is provided on the line between the motor and the power supply, and when the processor implements the collection of the current voltage of the motor, it specifically implements:
  • the PWM signal of the three-phase inverter bridge is controlled to disable, and the voltage of the three-phase motor line of the motor relative to the negative terminal of the DC bus is respectively collected to obtain three opposite electromotive forces.
  • the processor after the processor implements the collection of the current voltage of the motor, it further implements:
  • Clarke transforms the three opposite electromotive forces to generate a voltage vector, and obtains the voltage amplitude and phase of the voltage vector.
  • the processor when the processor implements the collection of the current voltage of the motor, it specifically implements:
  • the processor after the processor implements the collection of the current voltage of the motor, it further implements:
  • the processor performs closed-loop control of the motor using the electrical angular velocity as a feedback signal to start the motor; wherein, when the first preset threshold is greater than zero, Implementation:
  • the electrical angular velocity and the phase are used as feedback signals to perform closed-loop control on the motor to start the motor; wherein, the first preset threshold is greater than zero.
  • the processor when the processor implements the calculation of the electrical angular velocity according to the voltage amplitude, it specifically implements:
  • the voltage amplitude is divided by the flux linkage parameter value to obtain the electrical angular velocity by calculation.
  • the processor when the processor implements the acquisition of the current electrical angular velocity of the motor, it specifically implements:
  • the phase change value is divided by the preset duration to obtain the electrical angular velocity by calculation.
  • the processor further implements when executing the computer program:
  • the motor is connected to a current sensor, and when the processor implements the collection of the current current of the motor, it specifically implements:
  • the current current of the motor is collected by the current sensor.
  • the processor further implements when executing the computer program:
  • the current electrical angular velocity of the motor is obtained by obtaining the actual output voltage signal used to control the motor, and the electrical angular velocity is used as a feedback signal to control the motor.
  • a three-phase inverter bridge is provided on the line between the motor and the power supply, and after the processor realizes the acquisition of the current electrical angular velocity of the motor, it further realizes:
  • the motor When the motor is started, if the electrical angular velocity is less than the first preset threshold and greater than the second preset threshold, the electrical angular velocity is continuously collected until the electrical angular velocity is less than or equal to the second preset Threshold
  • the motor When the electrical angular velocity is less than or equal to the second preset threshold, the motor is operated to a preset rotation speed through open-loop control or a high-frequency injection method;
  • the closed-loop control is used to control the motor again;
  • the first preset threshold is greater than the second preset threshold.
  • FIG. 9 is a schematic block diagram of the structure of a movable platform provided by an embodiment of the present application.
  • the movable platform includes a body 901, a power system 902 provided in the body 901, and one or more A processor 903.
  • the power system 902 is used to provide power for the movable platform, the power system 902 includes one or more motors; the one or more processors 903 are used to start the motors of the power system 902 by collecting the current The voltage obtains the current electrical angular velocity of the motor, and if the electrical angular velocity is greater than or equal to the first preset threshold, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor.
  • the movable platform may also perform wireless communication with the remote control device and the display device.
  • the UAV 110 also includes a flight control system and a frame.
  • the frame may include a fuselage and a tripod (also called a landing gear).
  • the fuselage may include a center frame and one or more arms connected to the center frame, and the one or more arms extend radially from the center frame.
  • the tripod is connected to the fuselage and is used for supporting the UAV when landing.
  • the power system 902 may also include an electronic governor (referred to as an ESC for short) and one or more propellers.
  • an electronic governor referred to as an ESC for short
  • one or more processors 903 may be provided in the electronic governor, and one or more propellers correspond to one or more propellers.
  • Multiple motors the motor is connected between the electronic governor and the propeller, the motor and the propeller are arranged on the corresponding arm; the electronic governor is used to receive the driving signal generated by the flight control system, and provide the driving current to the motor according to the driving signal To control the speed of the motor.
  • the motor is used to drive the propeller to rotate to provide power for the flight of the UAV 110. This power enables the UAV 110 to achieve one or more degrees of freedom of movement.
  • the motor may be a DC motor or an AC motor.
  • the motor can be a brushless motor or a brush motor.
  • the voltage sampling circuit corresponding to the motor By setting the voltage sampling circuit corresponding to the motor, it is used to collect the voltage of the motor.
  • the inverter bridge When a movable platform such as a drone is flying in the air, when the motor needs to be restarted due to signal interference and other reasons, the inverter bridge will be disabled first.
  • the current voltage of the motor is collected by the voltage sampling circuit to obtain the current electrical angular velocity of the motor, and when the electrical angular velocity is greater than or equal to the first preset threshold, that is, when the motor is running at high speed, the current electrical angular velocity of the motor is used as feedback Signal, the closed-loop control of the motor, start the motor, do not need to wait for the motor to stop and then restart the motor, so as to avoid the situation of the drone and other movable platforms falling due to the motor stop;
  • open-loop control is directly carried out or the high-frequency injection method is directly used to drag the motor, which causes the problem of damage to the movable platform such as drones due to the current impact, which can realize the rapid control of the permanent magnet motor in high-speed rotation. Therefore, the safety and stability of flying on movable platforms such as unmanned aerial vehicles are improved.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the foregoing implementation
  • the example provides the steps of the motor control method.
  • the computer-readable storage medium may be the electrical equipment or the control device of the motor or the internal storage unit of the movable platform described in any of the foregoing embodiments, for example, the electrical equipment or the control device of the motor or the internal storage unit of the movable platform. Hard disk or memory.
  • the computer-readable storage medium may also be the electrical equipment or the control device of the motor or the external storage device of the movable platform, for example, the electrical equipment or the control device of the motor or the plug-in hard disk equipped on the movable platform, Smart Memory Card (Smart Media Card, SMC), Secure Digital (SD) card, Flash Card (Flash Card), etc.

Abstract

A control method and apparatus for a motor, a motor device, and a storage medium, wherein the motor does not have a position sensor. The method comprises: before a motor starts up, acquiring the current electric angular velocity of the motor by means of collecting the current voltage of the motor (S101); if the electric angular velocity is greater than or equal to a first preset threshold, then carrying out closed loop control on the motor by using the electric angular velocity as a feedback signal, so as to start up the motor, the first preset threshold being greater than zero (S102). The described solution increases the precision and reliability of motor control, thus improving the safety of the device.

Description

电机的控制方法、装置、设备及存储介质Motor control method, device, equipment and storage medium 技术领域Technical field
本申请涉及电机控制技术领域,尤其涉及一种电机的控制方法、装置、设备及存储介质。This application relates to the technical field of motor control, and in particular to a method, device, equipment, and storage medium for controlling a motor.
背景技术Background technique
永磁电机,被广泛应用于无人机、电动汽车、工业变频器等领域,目前,对于电机运转状态的控制主要包括两种方式,一种是基于位置传感器的控制,使用位置传感器给出的位置信号和由此计算的转速信号对电机进行控制;另一种是无位置传感器的控制。Permanent magnet motors are widely used in unmanned aerial vehicles, electric vehicles, industrial inverters and other fields. At present, the control of the motor running status mainly includes two methods. One is the control based on the position sensor, and the control is given by the position sensor. The position signal and the calculated rotational speed signal control the motor; the other is the control without position sensor.
对于无位置传感器的电机,当启动时电机处于高速远转状态,采用一般情况使用的开关拖动或高频注入法会产生巨大的电流冲击,从而造成电机设备损害。而等待电机自行停转后再启动,会耗费一定的时间,对于特定场景会发生严重事故,比如无人机的电机停转会直接导致无人机坠毁。For a motor without a position sensor, the motor is in a high-speed and remote-rotation state when it is started, and the switch drag or high-frequency injection method used in general conditions will generate a huge current impact, which will cause damage to the motor equipment. It will take a certain amount of time to wait for the motor to stop and start again. For certain scenarios, serious accidents may occur. For example, the motor stopping of the drone will directly cause the drone to crash.
因此,如何实现对电机进行精准可靠控制,以提高无人机等设备的安全性成为亟待解决的问题。Therefore, how to achieve precise and reliable control of motors to improve the safety of UAVs and other equipment has become an urgent problem to be solved.
发明内容Summary of the invention
基于此,本申请提供了一种电机的控制方法、装置、设备及存储介质,旨在提高电机控制的精准可靠性,以提高设备的安全性。Based on this, the present application provides a motor control method, device, equipment, and storage medium, aiming to improve the accuracy and reliability of motor control, so as to improve the safety of the equipment.
第一方面,本申请提供了一种电机的控制方法,所述电机无位置传感器,包括:In a first aspect, the present application provides a method for controlling a motor. The motor has no position sensor, including:
在对所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度;Before starting the motor, obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor;
若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。If the electrical angular velocity is greater than or equal to a first preset threshold, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
第二方面,本申请还提供了一种电机的控制装置,所述电机的控制装置包 括存储器和处理器;In the second aspect, the present application also provides a motor control device, the motor control device including a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store a computer program;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and, when executing the computer program, implement the following steps:
在对所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度;Before starting the motor, obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor;
若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。If the electrical angular velocity is greater than or equal to a first preset threshold, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
第三方面,本申请还提供了一种电机设备,所述电机设备包括:In the third aspect, the present application also provides a motor device, the motor device includes:
壳体;case;
设于所述壳体内的电机;A motor arranged in the housing;
以及如上述的电机的控制装置,所述电机的控制装置与所述电机通信连接。As well as the above-mentioned motor control device, the motor control device is in communication connection with the motor.
第四方面,本申请还提供了一种可移动平台,所述可移动平台包括:In a fourth aspect, this application also provides a movable platform, which includes:
机体;Body
动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力,所述动力系统包括电机;A power system is provided in the body, the power system is used to provide power to the movable platform, and the power system includes a motor;
以及一个或多个处理器,用于在对所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度;若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。And one or more processors, configured to obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor before starting the motor; if the electrical angular velocity is greater than or equal to a first preset threshold, Then, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein, the first preset threshold is greater than zero.
第五方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上述的电机的控制方法。In a fifth aspect, the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the control of the motor as described above. method.
本申请实施例提供了一种电机的控制方法、装置、设备及存储介质,其中电机无位置传感器,当对该电机进行启动时,通过采集电机当前的电压获取电机当前的电角速度,若电角速度大于或等于第一预设阈值,也即电机运转快时,以电机当前的电角速度作为反馈信号,对电机进行闭环控制,以启动电机,既不需等待电机停转后再重新启动电机,也避免了在进行开环控制或使用高频注入法拖动导致的电机减速、电机停转、电流冲击等,让高速旋转中的电机快速 受控,无需停转也不会出现电流冲击,因此,提高了电机控制的精准可靠性,进而提高了设备的安全性。The embodiments of the present application provide a motor control method, device, equipment, and storage medium. The motor has no position sensor. When the motor is started, the current electrical angular velocity of the motor is obtained by collecting the current voltage of the motor. It is greater than or equal to the first preset threshold, that is, when the motor is running fast, the current electrical angular velocity of the motor is used as a feedback signal to perform a closed-loop control of the motor to start the motor. There is no need to wait for the motor to stop and then restart the motor. It avoids motor deceleration, motor stalling, current impact, etc. caused by open-loop control or dragging by high-frequency injection method, so that the motor in high-speed rotation can be quickly controlled without stopping or current impact. Therefore, The accuracy and reliability of motor control are improved, which in turn improves the safety of the equipment.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
附图说明Description of the drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本申请实施例提供的一种电机设备的结构示意性框图;FIG. 1 is a schematic block diagram of the structure of a motor device provided by an embodiment of the present application;
图2是本申请实施例提供的一种电机的控制方法的步骤示意流程图;2 is a schematic flowchart of steps of a method for controlling a motor provided by an embodiment of the present application;
图3是图1中的电机控制方法的子步骤示意流程图;3 is a schematic flowchart of sub-steps of the motor control method in FIG. 1;
图4是图1中的电机控制方法的子步骤示意流程图;4 is a schematic flowchart of sub-steps of the motor control method in FIG. 1;
图5是本申请实施例提供的一种电机设备的控制电路示意性框图;Fig. 5 is a schematic block diagram of a control circuit of a motor device provided by an embodiment of the present application;
图6是本申请实施例提供的另一种电机的控制方法的步骤示意流程图;6 is a schematic flowchart of steps of another motor control method provided by an embodiment of the present application;
图7是本申请实施例提供的一种电机启动的流程示意图;FIG. 7 is a schematic diagram of a flow of starting a motor according to an embodiment of the present application;
图8是本申请实施例提供的一种电机的控制装置的结构示意性框图;8 is a schematic block diagram of the structure of a motor control device provided by an embodiment of the present application;
图9是本申请实施例提供的一种可移动平台的结构示意性框图。FIG. 9 is a schematic block diagram of the structure of a movable platform provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
电机在高速旋转时微控制器因供电发生短时间的中断而复位、微控制器受到电磁干扰而复位、原动机拖动此电机到较高转速等,如果在微控制器启动时电机处于高速旋转状态,对于使用无位置传感器控制算法进行控制的永磁电机,若电机处于高速旋转状态时微控制器因复位而重新启动,由于没有位置传感器提供的位置信号,不能直接使能微控制器的PWM(Pulse Width Modulation)输出,否则可能导致开关管和电机过流,造成元件或设备损坏。所以在微控制器启动时,控制程序无法确定电机是否正在旋转,一般默认此时电机转速为零,直接进行开环控制或使用高频注入法拖动电机到一定转速,在此控制方式中,若电机实际处于高速运转状态,电机端会有较高的转子反电势,那么在进行开环控制或使用高频注入法拖动电机时,会产生很大的冲击电流,使电机快速降速,甚至造成电机设备损坏。When the motor is rotating at high speed, the microcontroller is reset due to a short interruption of power supply, the microcontroller is reset by electromagnetic interference, the prime mover drags the motor to a higher speed, etc. If the motor is rotating at high speed when the microcontroller is started Status, for permanent magnet motors controlled by a position sensorless control algorithm, if the microcontroller restarts due to reset when the motor is in a high-speed rotation state, because there is no position signal provided by the position sensor, the microcontroller's PWM cannot be directly enabled (Pulse Width Modulation) output, otherwise it may cause overcurrent of the switch tube and motor, causing damage to components or equipment. Therefore, when the microcontroller is started, the control program cannot determine whether the motor is rotating. Generally, the motor speed is zero by default at this time. Open-loop control is performed directly or the motor is driven to a certain speed by high-frequency injection. In this control mode, If the motor is actually running at high speed, there will be a higher rotor back-EMF at the motor end, so when the motor is driven by open-loop control or high-frequency injection, a large inrush current will be generated, which will make the motor speed down quickly. It may even cause damage to the electrical equipment.
对于这种情况,一种解决方式在于,等待电机自行停转,然后再重新启动电机,然而电机的停转和再启动过程在有些场合下可能耗时较长,比如大型电机的停转和再启动过程需要耗时几分钟至几小时,这对于在有些应用场景下是不允许的,比如无人机的电机停转会直接导致无人机坠毁。For this situation, one solution is to wait for the motor to stop by itself, and then restart the motor. However, the process of stopping and restarting the motor may take a long time in some situations, such as the stopping and restarting of a large motor. The startup process takes several minutes to several hours, which is not allowed in some application scenarios. For example, the stalling of the drone's motor will directly cause the drone to crash.
基于上述问题,本申请说明书提供一种电机的控制方法、装置、设备及存储介质,该电机的控制方法可以应用于电机设备,请参阅图1,图1是本申请实施例提供的电机设备的结构示意性框图,如图1所示,该电机设备包括壳体100、以及设于壳体100内的电机的控制装置200、电机控制电路300和电机400,电机400用于给电机设备提供动力,该电机的控制装置200和电机控制电路300用于控制电机400运行。其中,电机控制电路300包括供电电源(如直流电源)、逆变电路、电流采样电路和电压采样电路,逆变电路包括三相逆变桥,供电电源经三相逆变桥连接电机400,该电机400分别与电流采样电路和电压采样电路连接,电流采样电路用于采集电机的电流,电压采样电路用于采集电机的电压;电机的控制装置200可以通过电机当前的电压获取电机当前的电角速度,若电角速度大于或等于第一预设阈值,以电机当前的电角速度作为反馈信号,对电机进行闭环控制,以启动电机。通过该方式避免了在进行开环控制或使用高频注入法拖动电机时产生很大的冲击电流,也不需等待电机停转后再重新启动电机,因此,提高了电机控制的精准可靠性,进而提高了电机设备的安全性。Based on the above problems, the specification of this application provides a motor control method, device, equipment, and storage medium. The motor control method can be applied to electrical equipment. Please refer to FIG. 1. A schematic block diagram of the structure, as shown in Figure 1, the electrical equipment includes a housing 100, and a motor control device 200, a motor control circuit 300, and a motor 400 arranged in the housing 100. The motor 400 is used to provide power to the electrical equipment. The motor control device 200 and the motor control circuit 300 are used to control the operation of the motor 400. Wherein, the motor control circuit 300 includes a power supply (such as a DC power supply), an inverter circuit, a current sampling circuit, and a voltage sampling circuit. The inverter circuit includes a three-phase inverter bridge. The power supply is connected to the motor 400 via the three-phase inverter bridge. The motor 400 is respectively connected to a current sampling circuit and a voltage sampling circuit. The current sampling circuit is used to collect the current of the motor, and the voltage sampling circuit is used to collect the voltage of the motor; the motor control device 200 can obtain the current electrical angular velocity of the motor through the current voltage of the motor. If the electrical angular velocity is greater than or equal to the first preset threshold, the current electrical angular velocity of the motor is used as a feedback signal to perform closed-loop control on the motor to start the motor. In this way, a large inrush current is avoided when the motor is driven by the open-loop control or the high-frequency injection method, and there is no need to wait for the motor to stop before restarting the motor. Therefore, the accuracy and reliability of the motor control are improved. , Thereby improving the safety of electrical equipment.
其中,电机设备包括电动汽车、电动船舶、无人驾驶汽车、可移动机器人 和无人机等。Among them, electrical equipment includes electric vehicles, electric ships, unmanned vehicles, mobile robots, and drones.
以电机设备为无人机为例,无人机可具有一个或多个推进单元,以允许无人机可在空中飞行。该一个或多个推进单元可使得无人机以一个或多个、两个或多个、三个或多个、四个或多个、五个或多个、六个或多个自由角度移动。在某些情形下,无人机可以绕一个、两个、三个或多个旋转轴旋转。旋转轴可彼此垂直。旋转轴在无人机的整个飞行过程中可维持彼此垂直。旋转轴可包括俯仰轴、横滚轴和/或偏航轴。无人机可沿一个或多个维度移动。例如,无人机能够因一个或多个旋翼产生的提升力而向上移动。在某些情形下,无人机可沿Z轴(可相对无人机方向向上)、X轴和/或Y轴(可为横向)移动。无人机可沿彼此垂直的一个、两个或三个轴移动。Taking the electrical equipment as an unmanned aerial vehicle as an example, the unmanned aerial vehicle may have one or more propulsion units to allow the unmanned aerial vehicle to fly in the air. The one or more propulsion units can make the drone move at one or more, two or more, three or more, four or more, five or more, six or more free angles . In some cases, the drone can rotate around one, two, three, or more rotation axes. The rotation axes may be perpendicular to each other. The rotation axis can be maintained perpendicular to each other during the entire flight of the UAV. The rotation axis may include a pitch axis, a roll axis, and/or a yaw axis. The drone can move in one or more dimensions. For example, a drone can move upward due to the lifting force generated by one or more rotors. In some cases, the drone can move along the Z axis (upward relative to the drone direction), X axis, and/or Y axis (which can be lateral). The drone can move along one, two or three axes that are perpendicular to each other.
无人机可以是旋翼飞机。在某些情形下,无人机可以是可包括多个旋翼的多旋翼飞行器。多个旋翼可旋转而为无人机产生提升力。旋翼可以是推进单元,可使得无人机在空中自由移动。旋翼可按相同速率旋转和/或可产生相同量的提升力或推力。旋翼可按不同的速率随意地旋转,产生不同量的提升力或推力和/或允许无人机旋转。在某些情形下,在无人机上可提供一个、两个、三个、四个、五个、六个、七个、八个、九个、十个或更多个旋翼。这些旋翼可布置成其旋转轴彼此平行。在某些情形下,旋翼的旋转轴可相对于彼此呈任意角度,从而可影响无人机的运动。The drone can be a rotorcraft. In some cases, the drone may be a multi-rotor aircraft that may include multiple rotors. Multiple rotors can rotate to generate lift for the drone. The rotor can be a propulsion unit, allowing the drone to move freely in the air. The rotor can rotate at the same rate and/or can generate the same amount of lift or thrust. The rotor can rotate at different speeds at will, generating different amounts of lifting force or thrust and/or allowing the drone to rotate. In some cases, one, two, three, four, five, six, seven, eight, nine, ten or more rotors can be provided on the drone. These rotors can be arranged such that their rotation axes are parallel to each other. In some cases, the rotation axis of the rotors can be at any angle relative to each other, which can affect the movement of the drone.
无人机可具有多个旋翼。旋翼可连接至无人机的本体,本体可包含控制单元、惯性测量单元(inertial measuring unit,IMU)、处理器、电池、电源和/或其他传感器。旋翼可通过从本体中心部分分支出来的一个或多个臂或延伸而连接至本体。例如,一个或多个臂可从无人机的中心本体放射状延伸出来,而且在臂末端或靠近末端处可具有旋翼。The drone can have multiple rotors. The rotor can be connected to the main body of the drone, and the main body can include a control unit, an inertial measurement unit (IMU), a processor, a battery, a power supply, and/or other sensors. The rotor may be connected to the body by one or more arms or extensions branching from the central part of the body. For example, one or more arms may extend radially from the central body of the drone, and may have rotors at or near the end of the arms.
可以理解的,上述对于电机设备各部件的命名仅仅出于标识的目的,并不因此对本申请实施例进行限制。It can be understood that the above-mentioned naming of the components of the electrical equipment is only for identification purposes, and therefore does not limit the embodiments of the present application.
以下将基于电机设备、所述电机设备中的电机的控制装置和所述电机设备中的电机对本申请的实施例提供的电机的控制方法进行详细介绍。需知,图1中的电机设备并不构成对该电机的控制方法的应用场景的限定。The motor control method provided in the embodiments of the present application will be described in detail below based on the electrical equipment, the control device of the motor in the electrical equipment, and the motor in the electrical equipment. It should be understood that the motor equipment in FIG. 1 does not constitute a limitation on the application scenario of the motor control method.
请参阅图2,图2是本申请的实施例提供的一种电机的控制方法的示意流程图。该方法可以用于上述实施例提供的电机的控制装置中,以实现提高电机 控制的精准可靠性,进而提高电机设备的安全性。Please refer to FIG. 2, which is a schematic flowchart of a method for controlling a motor provided by an embodiment of the present application. This method can be used in the motor control device provided in the above embodiments to improve the accuracy and reliability of motor control, thereby improving the safety of the motor equipment.
如图2所示,该电机的控制方法具体包括步骤S101至步骤S103。As shown in Figure 2, the motor control method specifically includes steps S101 to S103.
S101、在所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度。S101: Before starting the motor, obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor.
其中,所述电机进行启动之前为控制电机的PWM信号未使能或驱动电机的电源信号未接入前。Wherein, before the motor is started, the PWM signal for controlling the motor is not enabled or the power signal for driving the motor is not connected.
在一个实施方式中,采集到的所述电机当前的电角速度大于0,即启动前电机的转速并不为零。In one embodiment, the collected current electrical angular velocity of the motor is greater than 0, that is, the rotation speed of the motor is not zero before starting.
其中,所述电机当前的电压对应所述电机的电机线的电压,例如,电机的转子绕组的线圈的电压。Wherein, the current voltage of the motor corresponds to the voltage of the motor line of the motor, for example, the voltage of the coil of the rotor winding of the motor.
其中,电机无位置传感器,也即无法通过位置传感器采集位置信号来计算电机的转速,进而对电机进行控制,电机包括但不限于永磁同步电机。在对该电机进行启动时,首先采集获取电机当前的电压。可选地,采集的电机当前的电压为三相电压。Among them, the motor has no position sensor, that is, it is impossible to calculate the rotation speed of the motor through the position signal collected by the position sensor, and then to control the motor. The motor includes but is not limited to a permanent magnet synchronous motor. When starting the motor, first collect the current voltage of the motor. Optionally, the collected current voltage of the motor is a three-phase voltage.
示例性的,该电机与电压采样电路连接,通过该电压采样电路采集电机当前的电压,例如,将电机的转子绕组的输入线与所述电压采集电路连接以获取各个绕组的电压。可选地,电压采样电路包括电阻组件和模数转换器,通过电阻组件可以采集得到电机的当前三相电压的模拟信号,通过模数转换器可以将模拟信号的当前三相电压转换为数字信号的当前三相电压。Exemplarily, the motor is connected to a voltage sampling circuit, and the current voltage of the motor is collected through the voltage sampling circuit. For example, the input line of the rotor winding of the motor is connected to the voltage collection circuit to obtain the voltage of each winding. Optionally, the voltage sampling circuit includes a resistance component and an analog-to-digital converter. The current three-phase voltage analog signal of the motor can be collected through the resistance component, and the current three-phase voltage of the analog signal can be converted into a digital signal by the analog-digital converter. The current three-phase voltage.
在一些实施方式中,电机与直流供电电源间的电机控制电路上设有三相逆变桥,所述采集所述电机当前的电压,包括:控制失能所述三相逆变桥的PWM(Pulse width modulation,脉冲宽度调制)信号,分别采集所述电机的三相电机线相对于直流供电电源的直流母线负端的电压,获取三相反电动势。In some embodiments, the motor control circuit between the motor and the DC power supply is provided with a three-phase inverter bridge, and the collecting the current voltage of the motor includes: controlling the disabled PWM (Pulse) of the three-phase inverter bridge. width modulation (pulse width modulation) signal, respectively collect the voltage of the negative terminal of the three-phase motor line of the motor relative to the DC bus of the DC power supply to obtain three opposite electromotive forces.
在此实施方式中,供电电源为直流电源,电机通过三相电机线经三相逆变桥连接直流电源,为了采集到电机当前的电压,控制失能三相逆变桥的PWM信号,也即将三相逆变桥的PWM信号未使能,然后分别采集电机的三相电机线相对于直流母线负端的电压,获取电机的三相反电动势,该三相反电动势即为电机当前的三相电压。In this embodiment, the power supply is a DC power supply, and the motor is connected to the DC power supply via a three-phase inverter bridge through a three-phase motor line. In order to collect the current voltage of the motor and control the PWM signal of the disabled three-phase inverter bridge, that is, The PWM signal of the three-phase inverter bridge is not enabled, and then separately collect the voltage of the three-phase motor line of the motor relative to the negative terminal of the DC bus to obtain the three counter electromotive force of the motor. The three counter electromotive force is the current three-phase voltage of the motor.
在另一些实施方式中,所述采集所述电机当前的电压,包括:采集所述电机的三相电机线中任意两相电机线间的线电压,获取三个线电压。In some other implementation manners, the collecting the current voltage of the motor includes: collecting the line voltage between any two-phase motor lines of the three-phase motor line of the motor to obtain three line voltages.
与前述实施方式不同,在此实施方式中,通过采集电机的三相电机线中任意两相电机线间的线电压,获取电机的三个线电压,将该三个线电压作为电机当前的电压。可选地,由于三线电压的矢量和为零,因此可以也只需采集三个线电压中的任意两个线电压,根据采集的两个线电压计算出另外一个线电压。Different from the previous embodiment, in this embodiment, the three line voltages of the motor are obtained by collecting the line voltage between any two phases of the three-phase motor line of the motor, and the three line voltages are used as the current voltage of the motor. . Optionally, since the vector sum of the three-line voltages is zero, it is possible or only to collect any two line voltages among the three line voltages, and calculate the other line voltage based on the collected two line voltages.
例如,电机的三相电机线包括第一相电机线、第二相电机线和第三相电机线,采集第一相电机线、第二相电机线间的第一线电压,以及第二相电机线、第三相电机线间的第二线电压,根据第一线电压和第二线电压,计算出第三线电压。For example, the three-phase motor line of the motor includes the first-phase motor line, the second-phase motor line, and the third-phase motor line. Collect the first-line voltage between the first-phase motor line and the second-phase motor line, and the second phase The second line voltage between the motor line and the third phase motor line is calculated based on the first line voltage and the second line voltage.
之后,根据电机当前的电压获取电机当前的电角速度。示例性的,如图3所示,所述步骤S101包括:After that, the current electrical angular velocity of the motor is obtained according to the current voltage of the motor. Exemplarily, as shown in FIG. 3, the step S101 includes:
S1011、获取所述电机当前的电压对应的电压幅值。S1011. Obtain a voltage amplitude corresponding to the current voltage of the motor.
以获取电机的三相电压为例,具体地,根据电机当前的三相电压,确定该三相电压合成的电压矢量,并获取该电压矢量的幅值和相位。Taking obtaining the three-phase voltage of the motor as an example, specifically, according to the current three-phase voltage of the motor, the voltage vector synthesized by the three-phase voltage is determined, and the amplitude and phase of the voltage vector are obtained.
在一些实施方式中,所述采集所述电机当前的电压之后,还包括:将所述三相反电动势进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。In some embodiments, after collecting the current voltage of the motor, the method further includes: performing Clarke transformation on the three opposite electromotive forces to generate a voltage vector, and obtaining the voltage amplitude and phase of the voltage vector.
例如,电机当前的三相反电动势包括第一相反电动势、第二相反电动势和第三相反电动势,将第一相反电动势、第二相反电动势和第三相反电动势作为输入参数,对第一相反电动势、第二相反电动势和第三相反电动势进行Clarke(克拉克)变换,生成对应的电压矢量,并获得该电压矢量的电压幅值和相位。For example, the current three counter electromotive force of the motor includes the first counter electromotive force, the second counter electromotive force and the third counter electromotive force. The first counter electromotive force, the second counter electromotive force and the third counter electromotive force are used as input parameters. The second and third opposite electromotive forces perform Clarke transformation to generate a corresponding voltage vector, and obtain the voltage amplitude and phase of the voltage vector.
在另一些实施方式中,所述采集所述电机当前的电压之后,还包括:将所述三线电压进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。In some other implementation manners, after collecting the current voltage of the motor, the method further includes: performing Clarke transformation on the three-wire voltage to generate a voltage vector to obtain the voltage amplitude and phase of the voltage vector.
若采集的电机当前的电压为线电压,例如,采集电机当前的线电压包括第一线电压、第二线电压和第三线电压,将第一线电压、第二线电压和第三线电压作为输入参数,对第一线电压、第二线电压和第三线电压进行Clarke(克拉克)变换,生成对应的电压矢量,并获得该电压矢量的电压幅值和相位。If the collected current voltage of the motor is the line voltage, for example, the collected current line voltage of the motor includes the first line voltage, the second line voltage and the third line voltage, and the first line voltage, the second line voltage and the third line voltage are used as input parameters. Perform Clarke transformation on the first line voltage, the second line voltage and the third line voltage to generate the corresponding voltage vector, and obtain the voltage amplitude and phase of the voltage vector.
S1012、根据所述电压幅值,计算所述电角速度。S1012. Calculate the electrical angular velocity according to the voltage amplitude.
在一些实施方式中,是根据电机当前的电压对应的电压幅值,计算电机的电角速度。具体地,所述根据所述电压幅值,计算所述电角速度,包括:获取 所述电机的磁链参数值;将所述电压幅值除以所述磁链参数值,计算获得所述电角速度。In some embodiments, the electrical angular velocity of the motor is calculated according to the voltage amplitude corresponding to the current voltage of the motor. Specifically, the calculating the electrical angular velocity according to the voltage amplitude includes: obtaining the flux linkage parameter value of the motor; dividing the voltage amplitude by the flux linkage parameter value to calculate and obtain the electrical angular velocity Angular velocity.
其中,磁链参数λf为电机参数,代表电机的磁通量,通过获取电机当前的电压对应的电压幅值,以及电机的磁链参数λf对应的磁链参数值,将电压幅值除以磁链参数λf对应的磁链参数值,计算获得电机的电角速度。Among them, the flux parameter λf is the motor parameter, which represents the magnetic flux of the motor. By obtaining the voltage amplitude corresponding to the current voltage of the motor and the flux parameter value corresponding to the motor flux parameter λf, the voltage amplitude is divided by the flux parameter λf corresponds to the flux linkage parameter value, and calculates the electrical angular velocity of the motor.
在另一些实施方式中,如图4所示,所述步骤S101包括:In other embodiments, as shown in FIG. 4, the step S101 includes:
S1013、检测预设时长内所述电机的相位变化值。S1013: Detect a phase change value of the motor within a preset time period.
S1014、将所述相位变化值除以所述预设时长,计算获得所述电角速度。S1014. Divide the phase change value by the preset duration to obtain the electrical angular velocity by calculation.
在此实施方式中,不需要获取电机的磁链参数λf对应的磁链参数值,而只是需要检测在预设时长内电机的相位变化值,将相位变化值除以预设时长,计算获得电机的电角速度。其中,预设时长可基于实际情况进行设置,本申请对此不做具体限定。例如,通过电压采样电路采集电机的第一电压,在经过预设时长后,通过电压采样电路采集电机的第二电压,其中,第一电压的采集时刻点与第二电压的采集时刻点间隔预设时长。In this embodiment, there is no need to obtain the flux parameter value corresponding to the flux parameter λf of the motor, but it is only necessary to detect the phase change value of the motor within the preset time period, and divide the phase change value by the preset time period to calculate the motor Electrical angular velocity. Among them, the preset duration can be set based on actual conditions, which is not specifically limited in this application. For example, the first voltage of the motor is collected by a voltage sampling circuit, and the second voltage of the motor is collected by the voltage sampling circuit after a preset period of time. Set the duration.
具体地,根据第一电压确定电机的第一相位,即确定第一三相电压进行clark变换后生成的电压矢量,获取所述电压矢量的相位作为电机的第一相位;根据第二三相电压确定所述电机的第二相位,即确定第二三相电压进行clark变换后生成的电压矢量,获取所述电压矢量的相位作为电机的第二相位;根据第一相位和第二相位确定电机的相位变化量,即确定第一相位与第二相位的差值,并将第一相位与第二相位的差值作为电机的相位变化量。之后将第一相位与第二相位的差值作为电机的相位变化量除以预设时长,计算获得电机的电角速度。在该方式中,不需要获取电机磁链参数λf,也即减少了获得电机的电角速度的工作量。Specifically, the first phase of the motor is determined according to the first voltage, that is, the voltage vector generated after the clark transformation of the first three-phase voltage is determined, and the phase of the voltage vector is obtained as the first phase of the motor; according to the second three-phase voltage Determine the second phase of the motor, that is, determine the voltage vector generated by the clark transformation of the second three-phase voltage, and obtain the phase of the voltage vector as the second phase of the motor; determine the motor's phase according to the first and second phases The amount of phase change is to determine the difference between the first phase and the second phase, and use the difference between the first phase and the second phase as the phase change of the motor. Then, the difference between the first phase and the second phase is used as the phase change amount of the motor divided by the preset duration to calculate the electrical angular velocity of the motor. In this way, there is no need to obtain the motor flux parameter λf, that is, the workload of obtaining the electrical angular velocity of the motor is reduced.
S102、若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。S102. If the electrical angular velocity is greater than or equal to a first preset threshold, use the electrical angular velocity as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
预先设置用于对电机的运行进行快速启动控制的电机的电角速度对应的第一预设阈值,在获取到电机当前的电角速度后,将该电角速度与第一预设阈值进行比较,判断两者的大小。若电机当前的电角速度大于或等于第一预设阈值,也即电机高速运转时,以电机的电角速度作为反馈信号,对电机进行闭环控制, 启动电机。The first preset threshold corresponding to the electrical angular velocity of the motor used for quick start control of the operation of the motor is preset, and after the current electrical angular velocity of the motor is obtained, the electrical angular velocity is compared with the first preset threshold to determine the two The size of the person. If the current electrical angular velocity of the motor is greater than or equal to the first preset threshold, that is, when the motor is running at a high speed, the electrical angular velocity of the motor is used as a feedback signal to perform closed-loop control of the motor to start the motor.
具体地,如图5所示,设定电机的控制装置中配置有位置观测器、转速控制器、电流控制器、SVM(Support Vector Machine,支持向量机),电机当前的电角速度为
Figure PCTCN2020086870-appb-000001
相位为
Figure PCTCN2020086870-appb-000002
把电角速度
Figure PCTCN2020086870-appb-000003
和相位
Figure PCTCN2020086870-appb-000004
作为初值赋值给位置观测器,位置观测器将电角速度
Figure PCTCN2020086870-appb-000005
作为反馈信号输送给转速控制器,结合该电角速度
Figure PCTCN2020086870-appb-000006
和输入控制信号,如转速指令w *,转速控制器输出对应的电流信号
Figure PCTCN2020086870-appb-000007
至电流控制器,电流控制器根据
Figure PCTCN2020086870-appb-000008
输出对应的电压信号u αβ至位置观测器,并通过SVM使能三相逆变桥的PWM信号,使用位置观测器依据反电势法计算出的电机转子的位置和电机的电角速度,控制电机切换至计算出的电机转子的位置和电机的电角速度。其中,依据反电势法计算出的电机转子的位置和电机的电角速度(或转速)已是很成熟的技术手段,故在此不再赘述。
Specifically, as shown in Figure 5, the control device for setting the motor is configured with a position observer, a speed controller, a current controller, and SVM (Support Vector Machine). The current electrical angular velocity of the motor is
Figure PCTCN2020086870-appb-000001
Phase is
Figure PCTCN2020086870-appb-000002
Electrical angular velocity
Figure PCTCN2020086870-appb-000003
And phase
Figure PCTCN2020086870-appb-000004
As the initial value assigned to the position observer, the position observer will
Figure PCTCN2020086870-appb-000005
As a feedback signal to the speed controller, combined with the electrical angular velocity
Figure PCTCN2020086870-appb-000006
And input control signal, such as the speed command w * , the speed controller outputs the corresponding current signal
Figure PCTCN2020086870-appb-000007
To the current controller, the current controller according to
Figure PCTCN2020086870-appb-000008
Output the corresponding voltage signal u αβ to the position observer, and enable the PWM signal of the three-phase inverter bridge through the SVM, and use the position observer to calculate the position of the motor rotor and the electrical angular velocity of the motor according to the back EMF method to control the motor switching To the calculated position of the motor rotor and the electrical angular velocity of the motor. Among them, the position of the motor rotor and the electrical angular velocity (or rotation speed) of the motor calculated according to the back EMF method are already very mature technical means, so I will not repeat them here.
在一些实施方式中,以所述电角速度作为反馈信号,所述电机进行闭环控制,以启动所述电机具体为:以所述电角速度和所述相位作为反馈信号,对所述电机进行闭环控制,以启动所述电机。In some embodiments, the electrical angular velocity is used as a feedback signal, and the motor performs closed-loop control to start the motor. Specifically, the electrical angular velocity and the phase are used as feedback signals to perform closed-loop control on the motor. To start the motor.
在此实施方式中与上述实施方式中闭环控制的区别在于,是将电机的电角速度和相位作为反馈信号,对电机进行闭环控制来启动电机的。具体闭环控制过程可参考以电机的电角速度作为反馈信号进行闭环控制的过程,故在此不再赘述。在该实施方式中,由于反馈信号包括了电机的电角速度和相位,因此,对电机进行闭环控制的可靠性更进一步提高。The difference between this embodiment and the closed-loop control in the above-mentioned embodiment is that the electrical angular velocity and phase of the motor are used as feedback signals to perform closed-loop control on the motor to start the motor. The specific closed-loop control process can refer to the process of closed-loop control using the electrical angular velocity of the motor as the feedback signal, so I will not repeat it here. In this embodiment, since the feedback signal includes the electrical angular velocity and phase of the motor, the reliability of the closed-loop control of the motor is further improved.
在一些实施方式中,所述电机的控制方法还包括:采集所述电机当前的电流,并通过所述电流对所述电角速度和所述相位进行修正,直至修正后的所述电角速度和所述相位在预设的范围内浮动。In some embodiments, the control method of the motor further includes: collecting the current current of the motor, and correcting the electrical angular velocity and the phase through the current until the electrical angular velocity and the electrical angular velocity are corrected. The phase is floating within a preset range.
在该实施方式中,通过电流采样电路采集电机当前的电流,示例性的,电流采样电路上设有电流传感器,采集电机当前的电流具体为通过该电流传感器采集电机当前的电流。In this embodiment, the current current of the motor is collected by the current sampling circuit. Illustratively, a current sensor is provided on the current sampling circuit, and collecting the current current of the motor is specifically collecting the current current of the motor through the current sensor.
通过采集电机的电流,根据电机的电流对电机的电角速度和相位进行修正,直至修正后的电机的电角速度和相位在预设的范围内浮动。需要说明的是,获取电机的电角速度使用的电机当前的电压是采集检测的电压,且此时三相逆变桥的PWM信号仍未使能。具体地,例如,如图5中所示,电流采样电路采集电机当前的三相电流,将三相电流作为输入参数进行Clarke变换,生成对应的 电流矢量i αβ,根据该电流矢量i αβ对电机的电角速度和相位进行修正,直至修正后的电机的电角速度和相位在预设的范围内浮动。 By collecting the current of the motor, the electrical angular velocity and phase of the motor are corrected according to the current of the motor until the electrical angular velocity and phase of the corrected motor float within a preset range. It should be noted that the current voltage of the motor used to obtain the electrical angular velocity of the motor is the collected and detected voltage, and the PWM signal of the three-phase inverter bridge is still not enabled at this time. Specifically, for example, as shown in Figure 5, the current sampling circuit collects the current three-phase current of the motor, takes the three-phase current as the input parameter and performs Clarke transformation to generate the corresponding current vector i αβ , and the motor is adjusted according to the current vector i αβ. The electrical angular velocity and phase are corrected until the corrected electrical angular velocity and phase of the motor float within the preset range.
例如,预设电机的电角速度对应的第一预设范围和相位对应的第二预设范围,通过不断采集电机的电流,基于电机的电流对电机的电角速度和相位不断进行修正,直至修正后的电机的电角速度在第一预设范围内浮动,且相位在第二预设范围内浮动为止。然后以修正后的电机的电角速度和相位作为反馈信号,对电机进行闭环控制来启动电机的,也即以稳定的电角速度和相位作为反馈信号,对电机进行闭环控制,因此对电机进行闭环控制的可靠性更进一步提高。For example, preset the first preset range corresponding to the electrical angular velocity of the motor and the second preset range corresponding to the phase. By continuously collecting the current of the motor, the electrical angular velocity and phase of the motor are continuously corrected based on the current of the motor until after the correction. The electrical angular velocity of the motor is floating in the first preset range, and the phase is floating in the second preset range. Then use the corrected electrical angular velocity and phase of the motor as the feedback signal to perform closed-loop control on the motor to start the motor, that is, use the stable electrical angular velocity and phase as the feedback signal to perform closed-loop control on the motor, so the motor is closed-loop controlled The reliability is further improved.
在一些实施方式中,如图6所示,所述步骤S101之后,还包括:In some embodiments, as shown in FIG. 6, after the step S101, the method further includes:
S103、若所述电角速度小于所述第一预设阈值且大于第二预设阈值,则持续采集所述电角速度,直至所述电角速度小于或等于所述第二预设阈值。S103: If the electrical angular velocity is less than the first preset threshold and greater than the second preset threshold, continue to collect the electrical angular velocity until the electrical angular velocity is less than or equal to the second preset threshold.
上述对电机的控制是针对电机高速运转情况下的控制,也即在电机的电角速度大于第一预设阈值情况下对电机的控制。需要说明的是,由于电机当前的电角速度大于0,并且电机的控制装置没有施加(即,失能)三相逆变桥的PWM信号,因此,电机当前的电角速度会随着时间降低。下面具体介绍在电机的电角速度小于第一预设阈值时对电机的控制。为了避免拖动电机时产生很大的冲击电流,还预先设置电机的电角速度对应的第二预设阈值。其中,第一预设阈值大于所述第二预设阈值。当电机的电角速度小于第一预设阈值且大于第二预设阈值时,持续采集电机当前的电压,并根据采集的电机当前的电压计算确定电机的电角速度,将电机的电角速度与第一预设阈值和第二预设阈值进行比较,直至电机当前最新的电角速度小于或等于第二预设阈值。The above-mentioned control of the motor is directed to the control of the motor in the case of high-speed operation, that is, the control of the motor in the case that the electrical angular velocity of the motor is greater than the first preset threshold. It should be noted that since the current electrical angular velocity of the motor is greater than 0, and the motor control device does not apply (ie, disable) the PWM signal of the three-phase inverter bridge, the current electrical angular velocity of the motor will decrease over time. The following specifically describes the control of the motor when the electrical angular velocity of the motor is less than the first preset threshold. In order to avoid a large inrush current when the motor is being dragged, a second preset threshold corresponding to the electrical angular velocity of the motor is also preset. Wherein, the first preset threshold is greater than the second preset threshold. When the electrical angular velocity of the motor is less than the first preset threshold and greater than the second preset threshold, the current voltage of the motor is continuously collected, and the electrical angular velocity of the motor is calculated and determined according to the collected current voltage of the motor, and the electrical angular velocity of the motor is compared with the first The preset threshold value is compared with the second preset threshold value until the current latest electrical angular velocity of the motor is less than or equal to the second preset threshold value.
S104、当所述电角速度小于或等于所述第二预设阈值时,开环控制或采用高频注入法方式将所述电机运转至预设转速。S104: When the electrical angular velocity is less than or equal to the second preset threshold, open-loop control or use a high-frequency injection method to run the motor to a preset rotation speed.
当电机的电角速度小于或等于第二预设阈值时,也即电机的电角速度达到安全转速时,开环控制或采用高频注入法方式将电机运转至预设转速。采用开环控制或高频注入法方式拖动电机是常规技术,故在此不再赘述。或其中,预设转速的具体值可根据实际情况进行灵活设置,在此不做限制。When the electrical angular velocity of the motor is less than or equal to the second preset threshold, that is, when the electrical angular velocity of the motor reaches a safe speed, the open-loop control or the high-frequency injection method is used to run the motor to the preset speed. Using open loop control or high frequency injection method to drive the motor is a conventional technology, so I won't repeat it here. Or, the specific value of the preset speed can be flexibly set according to the actual situation, and there is no restriction here.
S105、当所述电机运转至所述预设转速时,重新采用闭环控制对所述电机进行控制。S105: When the motor runs to the preset speed, the closed-loop control is used to control the motor again.
将电机拖动至预设转速进行运转后,再采用闭环控制对电机进行控制。例 如,以反电势法获取所述电机的电角速度,再以电机的电角速度作为反馈信号,对电机的运转进行闭环控制。After the motor is dragged to the preset speed for operation, the closed-loop control is used to control the motor. For example, the electrical angular velocity of the motor is obtained by the back-EMF method, and then the electrical angular velocity of the motor is used as a feedback signal to perform closed-loop control on the operation of the motor.
例如,如图7所示,电机的启动控制过程具体如下:For example, as shown in Figure 7, the motor startup control process is as follows:
在电机系统初始化后,首先失能三相逆变桥的PWM信号来采集电机当前的电压,并获取电机当前的电压对应的电压幅值和相位,根据电机当前的电压确定电机当前的电角速度。然后判断电角速度是否大于第一预设阈值,也即判断电机的电角速度是否达到电机快速启动要求,若是,则把电机的电角速度和相位作为初值赋值给位置观测器,直接作为所述位置观测器的输出,或者通过位置观测器根据矢量电流对根据矢量电压计算得到的电角速度和相位进行修正处理,输出最终的电角速度和相位,并使能三相逆变桥的PWM信号,之后将电机切换至基于反电势法计算出的电机转子的位置和电机的电角速度(或转速),对电机进行闭环控制。反之,若判断电角速度小于第一预设阈值,也即判断电机的电角速度未达到电机快速启动要求,则判断电机的电角速度是否小于或等于第二预设阈值,也即电机的电角速度是否达到安全转速,若电机的电角速度大于第二预设阈值,也即电机的电角速度未达到安全转速,则持续采集电机的电角速度,直至电机的电角速度小于或等于第二预设阈值,也即电机的电角速度达到安全转速,此时,使能三相逆变桥的PWM信号,之后开环控制或采用高频注入法方式获得电机转子的位置拖动电机运转至预设转速。再将电机切换至基于反电势法计算出的电机转子的位置和电机的电角速度(或转速),对电机进行闭环控制。After the motor system is initialized, the PWM signal of the three-phase inverter bridge is first disabled to collect the current voltage of the motor, and obtain the voltage amplitude and phase corresponding to the current voltage of the motor, and determine the current electrical angular velocity of the motor according to the current voltage of the motor. Then it is judged whether the electrical angular velocity is greater than the first preset threshold, that is, whether the electrical angular velocity of the motor meets the requirements of the motor's fast start. The output of the observer, or the position observer according to the vector current to correct the electrical angular velocity and phase calculated from the vector voltage, output the final electrical angular velocity and phase, and enable the PWM signal of the three-phase inverter bridge. The motor is switched to the position of the motor rotor calculated based on the back-EMF method and the electrical angular velocity (or rotation speed) of the motor, and the motor is closed-loop controlled. Conversely, if it is judged that the electrical angular velocity is less than the first preset threshold, that is, it is judged that the electrical angular velocity of the motor does not meet the requirements for quick start of the motor, then it is judged whether the electrical angular velocity of the motor is less than or equal to the second preset threshold, that is, whether the electrical angular velocity of the motor is When the safe speed is reached, if the electrical angular speed of the motor is greater than the second preset threshold, that is, the electrical angular speed of the motor does not reach the safe speed, the electrical angular speed of the motor is continuously collected until the electrical angular speed of the motor is less than or equal to the second preset threshold. That is, the electrical angular speed of the motor reaches the safe speed. At this time, the PWM signal of the three-phase inverter bridge is enabled, and then the open-loop control or high-frequency injection method is used to obtain the position of the motor rotor to drive the motor to the preset speed. Then switch the motor to the position of the motor rotor and the electrical angular velocity (or rotation speed) of the motor calculated based on the back-EMF method to perform closed-loop control of the motor.
在一些实施方式中,所述电机的控制方法还包括:当所述电机启动后,通过获取用于控制所述电机的实际输出电压信号获取所述电机当前的电角速度,并以所述电角速度作为反馈信号对所述电机进行控制。In some embodiments, the method for controlling the motor further includes: when the motor is started, obtaining the current electrical angular velocity of the motor by obtaining the actual output voltage signal used to control the motor, and using the electrical angular velocity The motor is controlled as a feedback signal.
在通过上述控制方式对电机进行启动后,获取用于控制电机的实际输出电压信号,例如,如图5所示中电流控制器输出的电压信号u αβ,基于该用于控制电机的实际输出电压信号,获取电机当前的电角速度。具体地,仍以图5所示为例,电流控制器输出电压信号u αβ至位置观测器,位置观测器基于该电压信号u αβ获取电机当前的电角速度。之后,以电机的电角速度作为反馈信号,对电机的运转进行闭环控制。获取电角速度的方式,以及以电机的电角速度作为反馈信号对电机进行闭环控制的方式可参考上述在电机进行启动过程中的操 作,故在此不再赘述。也即在电机启动后,也根据电机的电角速度作为反馈信号进行闭环控制,因此,提高了电机启动后运转的可靠性。 After the motor is started by the above control method, the actual output voltage signal used to control the motor is obtained, for example, the voltage signal u αβ output by the current controller as shown in Fig. 5 is based on the actual output voltage used to control the motor Signal to obtain the current electrical angular velocity of the motor. Specifically, still taking Figure 5 as an example, the current controller outputs a voltage signal u αβ to the position observer, and the position observer obtains the current electrical angular velocity of the motor based on the voltage signal u αβ. After that, the electrical angular velocity of the motor is used as a feedback signal to control the operation of the motor in a closed loop. The method of obtaining the electrical angular velocity and the method of using the electrical angular velocity of the motor as the feedback signal to perform the closed-loop control of the motor can refer to the above-mentioned operation during the starting process of the motor, so it will not be repeated here. That is, after the motor is started, closed-loop control is also performed according to the electrical angular velocity of the motor as a feedback signal, thus improving the reliability of the operation after the motor is started.
上述实施例提供的电机的控制方法,电机无位置传感器,当对该电机进行启动时,通过采集电机当前的电压获取电机当前的电角速度,若电角速度大于或等于第一预设阈值,也即电机运转快时,以电机当前的电角速度作为反馈信号,对电机进行闭环控制,以启动电机,既不需等待电机停转后再重新启动电机,也避免了在进行开环控制或使用高频注入法拖动电机时产生很大的冲击电流,因此,提高了电机控制的精准可靠性,进而提高了电机设备的安全性。In the motor control method provided in the above embodiment, the motor has no position sensor. When the motor is started, the current electrical angular velocity of the motor is obtained by collecting the current voltage of the motor. If the electrical angular velocity is greater than or equal to the first preset threshold, that is When the motor is running fast, the current electrical angular velocity of the motor is used as the feedback signal to perform closed-loop control of the motor to start the motor. It is not necessary to wait for the motor to stop before restarting the motor, and it also avoids open-loop control or the use of high frequency The injection method generates a large inrush current when the motor is dragged. Therefore, the accuracy and reliability of the motor control are improved, and the safety of the motor equipment is further improved.
请参阅图8,图8是本申请实施例提供的一种电机的控制装置的结构示意性框图。该电机的控制装置800包括处理器801和存储器802,处理器801和存储器802通过总线803连接,该总线803比如为I2C(Inter-integrated Circuit)总线。该电机的控制装置800应用于电机设备,电机设备包括电机控制电路和电机,电机用于给电机设备提供动力,该电机的控制装置800和电路控制电路用于控制电机运行,电机控制电路包括供电电源(如直流电源)、逆变电路、电流采样电路和电压采样电路,逆变电路包括三相逆变桥,供电电源经三相逆变桥连接电机,该电机分别与电流采样电路和电压采样电路连接,电流采样电路用于采集电机的电流,电压采样电路用于采集电机的电压;电机的控制装置可以通过电机当前的电压获取电机当前的电角速度,若电角速度大于或等于第一预设阈值,以电机当前的电角速度作为反馈信号,对电机进行闭环控制,以启动电机。通过该方式避免了在进行开环控制或使用高频注入法拖动电机时产生很大的冲击电流,也不需等待电机停转后再重新启动电机,因此,提高了电机控制的精准可靠性,进而提高了电机设备的安全性。Please refer to FIG. 8, which is a schematic block diagram of a structure of a motor control device provided by an embodiment of the present application. The motor control device 800 includes a processor 801 and a memory 802, and the processor 801 and the memory 802 are connected through a bus 803. The bus 803 is, for example, an I2C (Inter-integrated Circuit) bus. The motor control device 800 is applied to motor equipment. The motor equipment includes a motor control circuit and a motor. The motor is used to provide power to the motor equipment. The motor control device 800 and the circuit control circuit are used to control the operation of the motor. The motor control circuit includes power supply. Power supply (such as DC power supply), inverter circuit, current sampling circuit and voltage sampling circuit. The inverter circuit includes a three-phase inverter bridge. The power supply is connected to the motor through the three-phase inverter bridge. The motor is connected to the current sampling circuit and the voltage sampling circuit respectively. Circuit connection, the current sampling circuit is used to collect the current of the motor, and the voltage sampling circuit is used to collect the voltage of the motor; the motor control device can obtain the current electrical angular velocity of the motor through the current voltage of the motor, if the electrical angular velocity is greater than or equal to the first preset Threshold, the current electrical angular velocity of the motor is used as the feedback signal to perform closed-loop control of the motor to start the motor. In this way, it avoids the large inrush current when the motor is driven by the open loop control or the high frequency injection method, and there is no need to wait for the motor to stop before restarting the motor. Therefore, the accuracy and reliability of the motor control are improved. , Thereby improving the safety of electrical equipment.
其中,电机设备包括电动汽车、电动船舶、无人驾驶汽车、可移动机器人和无人机等。Among them, electrical equipment includes electric vehicles, electric ships, unmanned vehicles, mobile robots, and drones.
以电机设备为无人机为例,无人机可具有一个或多个推进单元,以允许无人机可在空中飞行。该一个或多个推进单元可使得无人机以一个或多个、两个或多个、三个或多个、四个或多个、五个或多个、六个或多个自由角度移动。在某些情形下,无人机可以绕一个、两个、三个或多个旋转轴旋转。旋转轴可彼此垂直。旋转轴在无人机的整个飞行过程中可维持彼此垂直。旋转轴可包括俯仰轴、横滚轴和/或偏航轴。无人机可沿一个或多个维度移动。例如,无人机 能够因一个或多个旋翼产生的提升力而向上移动。在某些情形下,无人机可沿Z轴(可相对无人机方向向上)、X轴和/或Y轴(可为横向)移动。无人机可沿彼此垂直的一个、两个或三个轴移动。Taking the electrical equipment as an unmanned aerial vehicle as an example, the unmanned aerial vehicle may have one or more propulsion units to allow the unmanned aerial vehicle to fly in the air. The one or more propulsion units can make the drone move at one or more, two or more, three or more, four or more, five or more, six or more free angles . In some cases, the drone can rotate around one, two, three, or more rotation axes. The rotation axes may be perpendicular to each other. The rotation axis can be maintained perpendicular to each other during the entire flight of the UAV. The rotation axis may include a pitch axis, a roll axis, and/or a yaw axis. The drone can move in one or more dimensions. For example, drones can move upwards due to the lifting force generated by one or more rotors. In some cases, the drone can move along the Z axis (upward relative to the drone direction), X axis, and/or Y axis (which can be lateral). The drone can move along one, two or three axes that are perpendicular to each other.
无人机可以是旋翼飞机。在某些情形下,无人机可以是可包括多个旋翼的多旋翼飞行器。多个旋翼可旋转而为无人机产生提升力。旋翼可以是推进单元,可使得无人机在空中自由移动。旋翼可按相同速率旋转和/或可产生相同量的提升力或推力。旋翼可按不同的速率随意地旋转,产生不同量的提升力或推力和/或允许无人机旋转。在某些情形下,在无人机上可提供一个、两个、三个、四个、五个、六个、七个、八个、九个、十个或更多个旋翼。这些旋翼可布置成其旋转轴彼此平行。在某些情形下,旋翼的旋转轴可相对于彼此呈任意角度,从而可影响无人机的运动。The drone can be a rotorcraft. In some cases, the drone may be a multi-rotor aircraft that may include multiple rotors. Multiple rotors can rotate to generate lift for the drone. The rotor can be a propulsion unit, allowing the drone to move freely in the air. The rotor can rotate at the same rate and/or can generate the same amount of lift or thrust. The rotor can rotate at different speeds at will, generating different amounts of lifting force or thrust and/or allowing the drone to rotate. In some cases, one, two, three, four, five, six, seven, eight, nine, ten or more rotors can be provided on the drone. These rotors can be arranged such that their rotation axes are parallel to each other. In some cases, the rotation axis of the rotors can be at any angle relative to each other, which can affect the movement of the drone.
无人机可具有多个旋翼。旋翼可连接至无人机的本体,本体可包含控制单元、惯性测量单元(inertial measuring unit,IMU)、处理器、电池、电源和/或其他传感器。旋翼可通过从本体中心部分分支出来的一个或多个臂或延伸而连接至本体。例如,一个或多个臂可从无人机的中心本体放射状延伸出来,而且在臂末端或靠近末端处可具有旋翼。The drone can have multiple rotors. The rotor can be connected to the main body of the drone, and the main body can include a control unit, an inertial measurement unit (IMU), a processor, a battery, a power supply, and/or other sensors. The rotor may be connected to the body by one or more arms or extensions branching from the central part of the body. For example, one or more arms may extend radially from the central body of the drone, and may have rotors at or near the end of the arms.
具体地,处理器801可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 801 may be a micro-controller unit (MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
具体地,存储器802可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 802 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
其中,所述处理器801用于运行存储在存储器802中的计算机程序,并在执行所述计算机程序时实现如下步骤:Wherein, the processor 801 is configured to run a computer program stored in the memory 802, and implement the following steps when executing the computer program:
在对所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度;Before starting the motor, obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor;
若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。If the electrical angular velocity is greater than or equal to a first preset threshold, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
在一些实施例中,所述处理器在实现所述获取所述电机当前的电角速度时,具体实现:In some embodiments, when the processor implements the acquisition of the current electrical angular velocity of the motor, it specifically implements:
获取所述电机当前的电压对应的电压幅值;Acquiring a voltage amplitude corresponding to the current voltage of the motor;
根据所述电压幅值,计算所述电角速度。According to the voltage amplitude, the electrical angular velocity is calculated.
在一些实施例中,所述电机与电压采样电路连接,所述处理器在实现所述采集所述电机当前的电压时,具体实现:In some embodiments, the motor is connected to a voltage sampling circuit, and when the processor implements the collection of the current voltage of the motor, it specifically implements:
通过所述电压采样电路采集所述电机当前的所述电压。Collect the current voltage of the motor through the voltage sampling circuit.
在一些实施例中,所述电机与供电电源间的线路上设有三相逆变桥,所述处理器在实现所述采集所述电机当前的电压时,具体实现:In some embodiments, a three-phase inverter bridge is provided on the line between the motor and the power supply, and when the processor implements the collection of the current voltage of the motor, it specifically implements:
控制失能所述三相逆变桥的PWM信号,分别采集所述电机的三相电机线相对于直流母线负端的电压,获取三相反电动势。The PWM signal of the three-phase inverter bridge is controlled to disable, and the voltage of the three-phase motor line of the motor relative to the negative terminal of the DC bus is respectively collected to obtain three opposite electromotive forces.
在一些实施例中,所述处理器在实现所述采集所述电机当前的电压之后,还实现:In some embodiments, after the processor implements the collection of the current voltage of the motor, it further implements:
将所述三相反电动势进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。Clarke transforms the three opposite electromotive forces to generate a voltage vector, and obtains the voltage amplitude and phase of the voltage vector.
在一些实施例中,所述处理器在实现所述采集所述电机当前的电压时,具体实现:In some embodiments, when the processor implements the collection of the current voltage of the motor, it specifically implements:
采集所述电机的三相电机线中任意两相电机线间的线电压,获取三线电压。Collect the line voltage between any two-phase motor lines in the three-phase motor lines of the motor to obtain the three-line voltage.
在一些实施例中,所述处理器在实现所述采集所述电机当前的电压之后,还实现:In some embodiments, after the processor implements the collection of the current voltage of the motor, it further implements:
将所述三线电压进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。Perform Clarke transformation on the three-wire voltage to generate a voltage vector, and obtain the voltage amplitude and phase of the voltage vector.
在一些实施例中,所述处理器在实现所述以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零时,具体实现:In some embodiments, the processor performs closed-loop control of the motor using the electrical angular velocity as a feedback signal to start the motor; wherein, when the first preset threshold is greater than zero, Implementation:
以所述电角速度和所述相位作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。The electrical angular velocity and the phase are used as feedback signals to perform closed-loop control on the motor to start the motor; wherein, the first preset threshold is greater than zero.
在一些实施例中,所述处理器在实现所述根据所述电压幅值,计算所述电角速度时,具体实现:In some embodiments, when the processor implements the calculation of the electrical angular velocity according to the voltage amplitude, it specifically implements:
获取所述电机的磁链参数值;Obtaining the value of the flux linkage parameter of the motor;
将所述电压幅值除以所述磁链参数值,计算获得所述电角速度。The voltage amplitude is divided by the flux linkage parameter value to obtain the electrical angular velocity by calculation.
在一些实施例中,所述处理器在实现所述获取所述电机当前的电角速度时, 具体实现:In some embodiments, when the processor implements the acquisition of the current electrical angular velocity of the motor, it specifically implements:
检测预设时长内所述电机的相位变化值;Detecting the phase change value of the motor within a preset time period;
将所述相位变化值除以所述预设时长,计算获得所述电角速度。The phase change value is divided by the preset duration to obtain the electrical angular velocity by calculation.
在一些实施例中,所述处理器在执行所述计算机程序时还实现:In some embodiments, the processor further implements when executing the computer program:
采集所述电机当前的电流,并通过所述电流对所述电角速度和所述相位进行修正,直至修正后的所述电角速度和所述相位在预设的范围内浮动。Collect the current current of the motor, and correct the electrical angular velocity and the phase through the current until the corrected electrical angular velocity and the phase float within a preset range.
在一些实施例中,所述电机与电流传感器连接,所述处理器在实现所述采集所述电机当前的电流时,具体实现:In some embodiments, the motor is connected to a current sensor, and when the processor implements the collection of the current current of the motor, it specifically implements:
通过所述电流传感器采集所述电机当前的所述电流。The current current of the motor is collected by the current sensor.
在一些实施例中,所述处理器在执行所述计算机程序时还实现:In some embodiments, the processor further implements when executing the computer program:
当所述电机启动后,通过获取用于控制所述电机的实际输出电压信号获取所述电机当前的电角速度,并以所述电角速度作为反馈信号对所述电机进行控制。After the motor is started, the current electrical angular velocity of the motor is obtained by obtaining the actual output voltage signal used to control the motor, and the electrical angular velocity is used as a feedback signal to control the motor.
在一些实施例中,所述电机与供电电源间的线路上设有三相逆变桥,所述处理器在实现所述获取所述电机当前的电角速度之后,还实现:In some embodiments, a three-phase inverter bridge is provided on the line between the motor and the power supply, and after the processor realizes the acquisition of the current electrical angular velocity of the motor, it further realizes:
在所述电机启动时,若所述电角速度小于所述第一预设阈值且大于第二预设阈值,则持续采集所述电角速度,直至所述电角速度小于或等于所述第二预设阈值;When the motor is started, if the electrical angular velocity is less than the first preset threshold and greater than the second preset threshold, the electrical angular velocity is continuously collected until the electrical angular velocity is less than or equal to the second preset Threshold
当所述电角速度小于或等于所述第二预设阈值时,通过开环控制或采用高频注入法使得所述电机运转至预设转速;When the electrical angular velocity is less than or equal to the second preset threshold, the motor is operated to a preset rotation speed through open-loop control or a high-frequency injection method;
当所述电机运转至所述预设转速时,重新采用闭环控制对所述电机进行控制;When the motor runs to the preset speed, the closed-loop control is used to control the motor again;
其中,所述第一预设阈值大于所述第二预设阈值。Wherein, the first preset threshold is greater than the second preset threshold.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的电机的控制装置的具体工作过程,可以参考前述电机的控制方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working process of the motor control device described above can refer to the corresponding process in the foregoing motor control method embodiment. This will not be repeated here.
本申请的实施例中还提供一种可移动平台,可移动平台可以为UAV 110无人机等。请参阅图9,图9是本申请实施例提供的可移动平台的结构示意性框图,如图9所示,该可移动平台包括机体901、设于机体901内的动力系统902以及一个或多个处理器903。其中,动力系统902用于为可移动平台提供动力, 动力系统902包括一个或多个电机;一个或多个处理器903用于在对动力系统902的电机进行启动时,通过采集该电机当前的电压获取该电机当前的电角速度,若电角速度大于或等于第一预设阈值,则以电角速度作为反馈信号,对该电机进行闭环控制,以启动电机。The embodiments of the present application also provide a movable platform, and the movable platform may be a UAV 110 drone or the like. Please refer to FIG. 9, which is a schematic block diagram of the structure of a movable platform provided by an embodiment of the present application. As shown in FIG. 9, the movable platform includes a body 901, a power system 902 provided in the body 901, and one or more A processor 903. Wherein, the power system 902 is used to provide power for the movable platform, the power system 902 includes one or more motors; the one or more processors 903 are used to start the motors of the power system 902 by collecting the current The voltage obtains the current electrical angular velocity of the motor, and if the electrical angular velocity is greater than or equal to the first preset threshold, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor.
示例性的,可移动平台还可以与遥控装置和显示设备进行无线通信。Exemplarily, the movable platform may also perform wireless communication with the remote control device and the display device.
具体地,以可移动平台为UAV 110无人机为例,UAV 110无人机还包括飞行控制系统和机架。机架可以包括机身和脚架(也称为起落架)。机身可以包括中心架以及与中心架连接的一个或多个机臂,一个或多个机臂呈辐射状从中心架延伸出。脚架与机身连接,用于在无人机着陆时起支撑作用。Specifically, taking the UAV 110 as the movable platform as an example, the UAV 110 also includes a flight control system and a frame. The frame may include a fuselage and a tripod (also called a landing gear). The fuselage may include a center frame and one or more arms connected to the center frame, and the one or more arms extend radially from the center frame. The tripod is connected to the fuselage and is used for supporting the UAV when landing.
动力系统902还可以包括电子调速器(简称为电调)、一个或多个螺旋桨,其中,一个或多个处理器903可以设置于电子调速器内,一个或多个螺旋桨相对应一个或多个电机,电机连接在电子调速器与螺旋桨之间,电机和螺旋桨设置在对应的机臂上;电子调速器用于接收飞行控制系统产生的驱动信号,并根据驱动信号提供驱动电流给电机,以控制电机的转速。电机用于驱动螺旋桨旋转,从而为UAV 110无人机的飞行提供动力,该动力使得UAV 110无人机能够实现一个或多个自由度的运动。应理解,电机可以是直流电机,也可以交流电机。另外,电机可以是无刷电机,也可以有刷电机。The power system 902 may also include an electronic governor (referred to as an ESC for short) and one or more propellers. Among them, one or more processors 903 may be provided in the electronic governor, and one or more propellers correspond to one or more propellers. Multiple motors, the motor is connected between the electronic governor and the propeller, the motor and the propeller are arranged on the corresponding arm; the electronic governor is used to receive the driving signal generated by the flight control system, and provide the driving current to the motor according to the driving signal To control the speed of the motor. The motor is used to drive the propeller to rotate to provide power for the flight of the UAV 110. This power enables the UAV 110 to achieve one or more degrees of freedom of movement. It should be understood that the motor may be a DC motor or an AC motor. In addition, the motor can be a brushless motor or a brush motor.
需要说明的是,为了描述的方便和简洁,可移动平台中电机的具体工作过程,可以参考前述电机的控制方法实施例中的对应过程,在此不再赘述。It should be noted that, for the convenience and conciseness of description, the specific working process of the motor in the movable platform can refer to the corresponding process in the foregoing embodiment of the motor control method, which will not be repeated here.
通过设置电机对应的电压采样电路,用于采集电机的电压,当无人机等可移动平台在空中飞行的过程中,由于发生信号干扰等原因导致电机需要重启时,首先失能逆变桥的所有PWM信号,通过电压采样电路采集电机当前的电压来获得电机当前的电角速度,并在电角速度大于或等于第一预设阈值,也即电机高速运转快时,以电机当前的电角速度作为反馈信号,对电机进行闭环控制,启动电机,不需等待电机停转后再重新启动电机,从而避免出现由于电机停转而导致无人机等可移动平台坠落的情况;并且,也避免了在电机快速起动过程中直接进行开环控制或直接使用高频注入法拖动电机时产生电流冲击而造成无人机等可移动平台损坏的问题,能够实现高速旋转中的永磁电机快速受控。因此,提高了无人机等可移动平台飞行的安全性和稳定性。By setting the voltage sampling circuit corresponding to the motor, it is used to collect the voltage of the motor. When a movable platform such as a drone is flying in the air, when the motor needs to be restarted due to signal interference and other reasons, the inverter bridge will be disabled first. For all PWM signals, the current voltage of the motor is collected by the voltage sampling circuit to obtain the current electrical angular velocity of the motor, and when the electrical angular velocity is greater than or equal to the first preset threshold, that is, when the motor is running at high speed, the current electrical angular velocity of the motor is used as feedback Signal, the closed-loop control of the motor, start the motor, do not need to wait for the motor to stop and then restart the motor, so as to avoid the situation of the drone and other movable platforms falling due to the motor stop; In the process of quick start, open-loop control is directly carried out or the high-frequency injection method is directly used to drag the motor, which causes the problem of damage to the movable platform such as drones due to the current impact, which can realize the rapid control of the permanent magnet motor in high-speed rotation. Therefore, the safety and stability of flying on movable platforms such as unmanned aerial vehicles are improved.
本申请的实施例中还提供一种计算机可读存储介质,所述计算机可读存储 介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的电机的控制方法的步骤。The embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the foregoing implementation The example provides the steps of the motor control method.
其中,所述计算机可读存储介质可以是前述任一实施例所述的电机设备或电机的控制装置或可移动平台的内部存储单元,例如所述电机设备或电机的控制装置或可移动平台的硬盘或内存。所述计算机可读存储介质也可以是所述电机设备或电机的控制装置或可移动平台的外部存储设备,例如所述电机设备或电机的控制装置或可移动平台上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the computer-readable storage medium may be the electrical equipment or the control device of the motor or the internal storage unit of the movable platform described in any of the foregoing embodiments, for example, the electrical equipment or the control device of the motor or the internal storage unit of the movable platform. Hard disk or memory. The computer-readable storage medium may also be the electrical equipment or the control device of the motor or the external storage device of the movable platform, for example, the electrical equipment or the control device of the motor or the plug-in hard disk equipped on the movable platform, Smart Memory Card (Smart Media Card, SMC), Secure Digital (SD) card, Flash Card (Flash Card), etc.
应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in the specification of this application and the appended claims, unless the context clearly indicates other circumstances, the singular forms "a", "an" and "the" are intended to include plural forms.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the items listed in the associated and all possible combinations, and includes these combinations.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (31)

  1. 一种电机的控制方法,其特征在于,所述电机无位置传感器,所述控制方法包括:A control method of a motor, characterized in that the motor has no position sensor, and the control method includes:
    在所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度;Before starting the motor, obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor;
    若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。If the electrical angular velocity is greater than or equal to a first preset threshold, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述电机当前的电角速度,包括:The method according to claim 1, wherein the obtaining the current electrical angular velocity of the motor comprises:
    获取所述电机当前的电压对应的电压幅值;Acquiring a voltage amplitude corresponding to the current voltage of the motor;
    根据所述电压幅值,计算所述电角速度。According to the voltage amplitude, the electrical angular velocity is calculated.
  3. 根据权利要求1所述的方法,其特征在于,所述电机与电压采样电路连接,所述采集所述电机当前的电压,包括:The method according to claim 1, wherein the motor is connected to a voltage sampling circuit, and the collecting the current voltage of the motor comprises:
    通过所述电压采样电路采集所述电机当前的所述电压。Collect the current voltage of the motor through the voltage sampling circuit.
  4. 根据权利要求1所述的方法,其特征在于,所述电机与直流供电电源间的线路上设有三相逆变桥,所述采集所述电机当前的电压,包括:The method according to claim 1, wherein a three-phase inverter bridge is provided on the line between the motor and the DC power supply, and the collecting the current voltage of the motor includes:
    控制失能所述三相逆变桥的PWM信号,分别采集所述电机的三相电机线相对于所述直流供电电源的直流母线负端的电压,获取三相反电动势。The PWM signal of the three-phase inverter bridge is controlled to disable, and the voltage of the negative terminal of the three-phase motor line of the motor relative to the negative terminal of the DC bus of the DC power supply is respectively collected to obtain three opposite electromotive forces.
  5. 根据权利要求4所述的方法,其特征在于,所述采集所述电机当前的电压之后,还包括:The method according to claim 4, wherein after the collecting the current voltage of the motor, the method further comprises:
    将所述三相反电动势进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。Clarke transforms the three opposite electromotive forces to generate a voltage vector, and obtains the voltage amplitude and phase of the voltage vector.
  6. 根据权利要求1所述的方法,其特征在于,所述采集所述电机当前的电压,包括:The method according to claim 1, wherein the collecting the current voltage of the motor comprises:
    采集所述电机的三相电机线中任意两相电机线间的线电压,获取三个线电压。Collect the line voltages between any two-phase motor lines in the three-phase motor lines of the motor to obtain three line voltages.
  7. 根据权利要求6所述的方法,其特征在于,所述采集所述电机当前的电 压之后,还包括:The method according to claim 6, wherein after the collecting the current voltage of the motor, the method further comprises:
    将所述三个线电压进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。Perform Clarke transformation on the three line voltages to generate a voltage vector, and obtain the voltage amplitude and phase of the voltage vector.
  8. 根据权利要求5或7所述的方法,其特征在于,所述以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机具体为:The method according to claim 5 or 7, wherein the using the electrical angular velocity as a feedback signal to perform closed-loop control on the motor to start the motor specifically includes:
    以所述电角速度和所述相位作为反馈信号,对所述电机进行闭环控制,以启动所述电机。The electrical angular velocity and the phase are used as feedback signals to perform closed-loop control on the motor to start the motor.
  9. 根据权利要求2所述的方法,其特征在于,所述根据所述电压幅值,计算所述电角速度,包括:The method according to claim 2, wherein the calculating the electrical angular velocity according to the voltage amplitude comprises:
    获取所述电机的磁链参数值;Obtaining the value of the flux linkage parameter of the motor;
    将所述电压幅值除以所述磁链参数值,计算获得所述电角速度。The voltage amplitude is divided by the flux linkage parameter value to obtain the electrical angular velocity by calculation.
  10. 根据权利要求1所述的方法,其特征在于,所述获取所述电机当前的电角速度,包括:The method according to claim 1, wherein the obtaining the current electrical angular velocity of the motor comprises:
    检测预设时长内所述电机的相位变化值;Detecting the phase change value of the motor within a preset time period;
    将所述相位变化值除以所述预设时长,计算获得所述电角速度。The phase change value is divided by the preset duration to obtain the electrical angular velocity by calculation.
  11. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    采集所述电机当前的电流,并通过所述电流对所述电角速度和所述相位进行修正,直至修正后的所述电角速度和所述相位在预设的范围内浮动。Collect the current current of the motor, and correct the electrical angular velocity and the phase through the current until the corrected electrical angular velocity and the phase float within a preset range.
  12. 根据权利要求11所述的方法,其特征在于,所述电机与电流传感器连接,所述采集所述电机当前的电流具体为:The method according to claim 11, wherein the motor is connected to a current sensor, and the collecting the current current of the motor specifically includes:
    通过所述电流传感器采集所述电机当前的所述电流。The current current of the motor is collected by the current sensor.
  13. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述电机启动后,通过获取用于控制所述电机的实际输出电压信号获取所述电角速度,并以所述电角速度作为反馈信号对所述电机进行控制。After the motor is started, the electrical angular velocity is obtained by obtaining the actual output voltage signal used to control the motor, and the electrical angular velocity is used as a feedback signal to control the motor.
  14. 根据权利要求1所述的方法,其特征在于,所述获取所述电机当前的电角速度之后,还包括:The method according to claim 1, wherein after the obtaining the current electrical angular velocity of the motor, the method further comprises:
    在所述电机进行启动之前,若所述电角速度小于所述第一预设阈值且大于第二预设阈值,则持续采集所述电角速度,直至所述电角速度小于或等于所述第二预设阈值;Before the motor is started, if the electrical angular velocity is less than the first preset threshold and greater than the second preset threshold, the electrical angular velocity is continuously collected until the electrical angular velocity is less than or equal to the second preset threshold. Set threshold
    当所述电角速度小于或等于所述第二预设阈值时,通过开环控制或采用高 频注入法使得所述电机运转至预设转速;When the electrical angular velocity is less than or equal to the second preset threshold, the motor is operated to the preset rotation speed through open-loop control or a high-frequency injection method;
    当所述电机运转至所述预设转速时,重新采用闭环控制对所述电机进行控制;When the motor runs to the preset speed, the closed-loop control is used to control the motor again;
    其中,所述第一预设阈值大于所述第二预设阈值。Wherein, the first preset threshold is greater than the second preset threshold.
  15. 一种电机的控制装置,其特征在于,所述电机的控制装置包括存储器和处理器;A control device of a motor, characterized in that the control device of the motor includes a memory and a processor;
    所述存储器用于存储计算机程序;The memory is used to store a computer program;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and, when executing the computer program, implement the following steps:
    在对所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度;Before starting the motor, obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor;
    若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。If the electrical angular velocity is greater than or equal to a first preset threshold, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein the first preset threshold is greater than zero.
  16. 根据权利要求15所述的装置,其特征在于,所述处理器在实现所述获取所述电机当前的电角速度时,具体实现:The device according to claim 15, wherein when the processor implements the acquisition of the current electrical angular velocity of the motor, it specifically implements:
    获取所述电机当前的电压对应的电压幅值;Acquiring a voltage amplitude corresponding to the current voltage of the motor;
    根据所述电压幅值,计算所述电角速度。According to the voltage amplitude, the electrical angular velocity is calculated.
  17. 根据权利要求15所述的装置,其特征在于,所述电机与电压采样电路连接,所述处理器在实现所述采集所述电机当前的电压时,具体实现:The device according to claim 15, wherein the motor is connected to a voltage sampling circuit, and when the processor implements the collection of the current voltage of the motor, it specifically implements:
    通过所述电压采样电路采集所述电机当前的所述电压。Collect the current voltage of the motor through the voltage sampling circuit.
  18. 根据权利要求15所述的装置,其特征在于,所述电机与直流供电电源间的线路上设有三相逆变桥,所述处理器在实现所述采集所述电机当前的电压时,具体实现:The device according to claim 15, wherein a three-phase inverter bridge is provided on the line between the motor and the DC power supply, and when the processor realizes the collection of the current voltage of the motor, it specifically implements :
    控制失能所述三相逆变桥的PWM信号,分别采集所述电机的三相电机线相对于所述直流供电电源的直流母线负端的电压,获取三相反电动势。The PWM signal of the three-phase inverter bridge is controlled to disable, and the voltage of the negative terminal of the three-phase motor line of the motor relative to the negative terminal of the DC bus of the DC power supply is respectively collected to obtain three opposite electromotive forces.
  19. 根据权利要求18所述的装置,其特征在于,所述处理器在实现所述采集所述电机当前的电压之后,还实现:The device according to claim 18, wherein after the processor implements the collection of the current voltage of the motor, it further implements:
    将所述三相反电动势进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。Clarke transforms the three opposite electromotive forces to generate a voltage vector, and obtains the voltage amplitude and phase of the voltage vector.
  20. 根据权利要求15所述的装置,其特征在于,所述处理器在实现所述采集所述电机当前的电压时,具体实现:The device according to claim 15, wherein when the processor implements the collection of the current voltage of the motor, it specifically implements:
    采集所述电机的三相电机线中任意两相电机线间的线电压,获取三个线电压。Collect the line voltages between any two-phase motor lines in the three-phase motor lines of the motor to obtain three line voltages.
  21. 根据权利要求20所述的装置,其特征在于,所述处理器在实现所述采集所述电机当前的电压之后,还实现:The device according to claim 20, wherein after the processor implements the collection of the current voltage of the motor, it further implements:
    将所述三个线电压进行Clarke变换生成电压矢量,获得所述电压矢量的电压幅值和相位。Perform Clarke transformation on the three line voltages to generate a voltage vector, and obtain the voltage amplitude and phase of the voltage vector.
  22. 根据权利要求19或21所述的装置,其特征在于,所述处理器在实现所述以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机,具体实现:The device according to claim 19 or 21, wherein the processor implements the closed-loop control of the motor by using the electrical angular velocity as a feedback signal to start the motor, which specifically implements:
    以所述电角速度和所述相位作为反馈信号,对所述电机进行闭环控制,以启动所述电机。The electrical angular velocity and the phase are used as feedback signals to perform closed-loop control on the motor to start the motor.
  23. 根据权利要求16所述的装置,其特征在于,所述处理器在实现所述根据所述电压幅值,计算所述电角速度时,具体实现:The device according to claim 16, wherein when the processor implements the calculation of the electrical angular velocity according to the voltage amplitude, it specifically implements:
    获取所述电机的磁链参数值;Obtaining the value of the flux linkage parameter of the motor;
    将所述电压幅值除以所述磁链参数值,计算获得所述电角速度。The voltage amplitude is divided by the flux linkage parameter value to obtain the electrical angular velocity by calculation.
  24. 根据权利要求15所述的装置,其特征在于,所述处理器在实现所述获取所述电机当前的电角速度时,具体实现:The device according to claim 15, wherein when the processor implements the acquisition of the current electrical angular velocity of the motor, it specifically implements:
    检测预设时长内所述电机的相位变化值;Detecting the phase change value of the motor within a preset time period;
    将所述相位变化值除以所述预设时长,计算获得所述电角速度。The phase change value is divided by the preset duration to obtain the electrical angular velocity by calculation.
  25. 根据权利要求22所述的装置,其特征在于,所述处理器在执行所述计算机程序时,还实现:The device according to claim 22, wherein when the processor executes the computer program, it further implements:
    采集所述电机当前的电流,并通过所述电流对所述电角速度和所述相位进行修正,直至修正后的所述电角速度和所述相位在预设的范围内浮动。Collect the current current of the motor, and correct the electrical angular velocity and the phase through the current until the corrected electrical angular velocity and the phase float within a preset range.
  26. 根据权利要求25所述的装置,其特征在于,所述电机与电流传感器连接,所述处理器在实现所述采集所述电机当前的电流时,具体实现:The device according to claim 25, wherein the motor is connected to a current sensor, and when the processor implements the collection of the current current of the motor, it specifically implements:
    通过所述电流传感器采集所述电机当前的所述电流。The current current of the motor is collected by the current sensor.
  27. 根据权利要求15所述的装置,其特征在于,所述处理器在执行所述计算机程序时,还实现:The device according to claim 15, wherein when the processor executes the computer program, it further implements:
    当所述电机启动后,通过获取用于控制所述电机的实际输出电压信号获取所述电机当前的电角速度,并以所述电角速度作为反馈信号对所述电机进行控制。After the motor is started, the current electrical angular velocity of the motor is obtained by obtaining the actual output voltage signal used to control the motor, and the electrical angular velocity is used as a feedback signal to control the motor.
  28. 根据权利要求15所述的装置,其特征在于,所述处理器在实现所述获取所述电机当前的电角速度之后,还实现:The device according to claim 15, wherein after the processor implements said obtaining the current electrical angular velocity of the motor, it further implements:
    在所述电机启动时,若所述电角速度小于所述第一预设阈值且大于第二预设阈值,则持续采集所述电角速度,直至所述电角速度小于或等于所述第二预设阈值;When the motor is started, if the electrical angular velocity is less than the first preset threshold and greater than the second preset threshold, the electrical angular velocity is continuously collected until the electrical angular velocity is less than or equal to the second preset Threshold
    当所述电角速度小于或等于所述第二预设阈值时,通过开环控制或采用高频注入法使得所述电机运转至预设转速;When the electrical angular velocity is less than or equal to the second preset threshold, the motor is operated to the preset rotation speed through open-loop control or a high-frequency injection method;
    当所述电机运转至所述预设转速时,重新采用闭环控制对所述电机进行控制;When the motor runs to the preset speed, the closed-loop control is used to control the motor again;
    其中,所述第一预设阈值大于所述第二预设阈值。Wherein, the first preset threshold is greater than the second preset threshold.
  29. 一种电机设备,其特征在于,所述电机设备包括:An electrical equipment, characterized in that, the electrical equipment includes:
    壳体;case;
    设于所述壳体内的电机;A motor arranged in the housing;
    以及如权利要求15至28中任一项所述的电机的控制装置,所述电机的控制装置与所述电机通信连接。And the motor control device according to any one of claims 15 to 28, wherein the motor control device is in communication connection with the motor.
  30. 一种可移动平台,其特征在于,所述可移动平台包括:A movable platform, characterized in that, the movable platform includes:
    机体;Body
    动力系统,设于所述机体,所述动力系统用于为所述可移动平台提供动力,所述动力系统包括电机;A power system is provided in the body, the power system is used to provide power to the movable platform, and the power system includes a motor;
    以及一个或多个处理器,用于在对所述电机进行启动之前,通过采集所述电机当前的电压获取所述电机当前的电角速度;若所述电角速度大于或等于第一预设阈值,则以所述电角速度作为反馈信号,对所述电机进行闭环控制,以启动所述电机;其中,所述第一预设阈值大于零。And one or more processors, configured to obtain the current electrical angular velocity of the motor by collecting the current voltage of the motor before starting the motor; if the electrical angular velocity is greater than or equal to a first preset threshold, Then, the electrical angular velocity is used as a feedback signal to perform closed-loop control on the motor to start the motor; wherein, the first preset threshold is greater than zero.
  31. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1至14中任一项所述的电机的控制方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes as described in any one of claims 1 to 14 The control method of the motor described.
PCT/CN2020/086870 2020-04-24 2020-04-24 Control method and apparatus for motor, device, and storage medium WO2021212520A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080005660.2A CN112956126A (en) 2020-04-24 2020-04-24 Motor control method, device, equipment and storage medium
PCT/CN2020/086870 WO2021212520A1 (en) 2020-04-24 2020-04-24 Control method and apparatus for motor, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/086870 WO2021212520A1 (en) 2020-04-24 2020-04-24 Control method and apparatus for motor, device, and storage medium

Publications (1)

Publication Number Publication Date
WO2021212520A1 true WO2021212520A1 (en) 2021-10-28

Family

ID=76236220

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/086870 WO2021212520A1 (en) 2020-04-24 2020-04-24 Control method and apparatus for motor, device, and storage medium

Country Status (2)

Country Link
CN (1) CN112956126A (en)
WO (1) WO2021212520A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113859554B (en) * 2021-09-22 2022-12-09 北京三快在线科技有限公司 Unmanned equipment control method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624322A (en) * 2012-04-01 2012-08-01 杭州洲钜电子科技有限公司 Motor control system and method without position sensor
CN103051271A (en) * 2012-12-29 2013-04-17 东南大学 Permanent magnet synchronous motor unposition sensor control method
CN103138664A (en) * 2012-11-14 2013-06-05 海尔集团公司 Permanent magnet motor starting method, device and system
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN105245147A (en) * 2015-10-08 2016-01-13 江苏科技大学 Stator flux linkage setting method for shortening starting time of permanent magnet synchronous motor
US9369073B1 (en) * 2015-03-20 2016-06-14 Linestream Technologies Load-adaptive smooth startup method for sensorless field-oriented control of permanent magnet synchronous motors
CN205384727U (en) * 2015-11-25 2016-07-13 深圳市大疆创新科技有限公司 Remote controller, movable platform , movable platform system and unmanned vehicles
CN105900330A (en) * 2014-01-10 2016-08-24 大金工业株式会社 Motor control device
CN110601613A (en) * 2019-10-28 2019-12-20 广东华芯微特集成电路有限公司 BLDCM closed-loop starting method and device without position sensor and BLDCM control equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385208A (en) * 2016-11-29 2017-02-08 深圳市道通智能航空技术有限公司 Permanent magnet synchronous motor (PMSM) starting method and device and unmanned aerial vehicle
CN109981018B (en) * 2017-12-27 2021-01-29 上海大郡动力控制技术有限公司 Starting and vector control method of permanent magnet synchronous motor without position sensor
CN110971166A (en) * 2019-12-06 2020-04-07 长沙奥托自动化技术有限公司 Method for acquiring rotor position of permanent magnet synchronous generator and control system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624322A (en) * 2012-04-01 2012-08-01 杭州洲钜电子科技有限公司 Motor control system and method without position sensor
CN103138664A (en) * 2012-11-14 2013-06-05 海尔集团公司 Permanent magnet motor starting method, device and system
CN103051271A (en) * 2012-12-29 2013-04-17 东南大学 Permanent magnet synchronous motor unposition sensor control method
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN105900330A (en) * 2014-01-10 2016-08-24 大金工业株式会社 Motor control device
US9369073B1 (en) * 2015-03-20 2016-06-14 Linestream Technologies Load-adaptive smooth startup method for sensorless field-oriented control of permanent magnet synchronous motors
CN105245147A (en) * 2015-10-08 2016-01-13 江苏科技大学 Stator flux linkage setting method for shortening starting time of permanent magnet synchronous motor
CN205384727U (en) * 2015-11-25 2016-07-13 深圳市大疆创新科技有限公司 Remote controller, movable platform , movable platform system and unmanned vehicles
CN110601613A (en) * 2019-10-28 2019-12-20 广东华芯微特集成电路有限公司 BLDCM closed-loop starting method and device without position sensor and BLDCM control equipment

Also Published As

Publication number Publication date
CN112956126A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN106414238B (en) Drone configuration and battery augmentation for drone internal combustion engine, and related systems and methods
JP3454210B2 (en) Position sensorless control method for synchronous motor
WO2019233001A1 (en) Overcurrent stalling protection method and apparatus for electric motor, and electronic speed regulator and unmanned aerial vehicle
WO2021207988A1 (en) Motor control method and apparatus, movable platform, and storage medium
EP3550717B1 (en) Permanent magnet synchronous motor starting method, device, power system and unmanned aerial vehicle
US20150326154A1 (en) Motor Control for Stability and Power Supply Protection
JP2007259551A (en) Controller of motor
CN110429891B (en) Position-sensor-free permanent magnet motor direct-drive power generation control method
WO2021212520A1 (en) Control method and apparatus for motor, device, and storage medium
CN108445910B (en) Method and device for controlling motor acceleration of unmanned aerial vehicle and electronic speed regulator
JP6999290B2 (en) Flight equipment, flight methods and flight programs
CN105186956A (en) Sensorless permanent-magnet synchronous motor starting control method and corresponding system
CN115755983A (en) Multi-rotor unmanned aerial vehicle propeller locking positioning method and device
WO2019233021A1 (en) Motor control method and apparatus, electronic governor, and unmanned aerial vehicle
EP2752986A1 (en) Inverter device
WO2019169850A1 (en) Motor control method and device and unmanned aerial vehicle control system
KR20160015014A (en) Motor drive system
CN109150020A (en) Unmanned plane current of electric closed loop dragging method, device, equipment and storage medium
JP7417899B2 (en) Power tool systems, control methods, and programs
CN113541559A (en) Non-inductive motor starting method and system based on closed-loop control logic
CN111987942A (en) Unmanned aerial vehicle motor dragging method and system
CN108964552A (en) Unmanned plane current of electric closed loop dragging method, device, equipment and storage medium
WO2019042095A1 (en) Given rotational speed calculating method, device, electronic speed controller, power system, and unmanned aerial vehicle
CN218986975U (en) Many rotors load unmanned aerial vehicle
Przeniosło et al. Efficient electronic speed controller algorithm for multirotor flying vehicles

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20932074

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20932074

Country of ref document: EP

Kind code of ref document: A1