CN111541406A - Control method of brushless direct current motor control system - Google Patents

Control method of brushless direct current motor control system Download PDF

Info

Publication number
CN111541406A
CN111541406A CN202010248174.5A CN202010248174A CN111541406A CN 111541406 A CN111541406 A CN 111541406A CN 202010248174 A CN202010248174 A CN 202010248174A CN 111541406 A CN111541406 A CN 111541406A
Authority
CN
China
Prior art keywords
motor
module
executing
interrupt service
detection module
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010248174.5A
Other languages
Chinese (zh)
Inventor
罗淦恩
高宁
潘叶江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vatti Co Ltd
Original Assignee
Vatti Co Ltd
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 Vatti Co Ltd filed Critical Vatti Co Ltd
Priority to CN202010248174.5A priority Critical patent/CN111541406A/en
Publication of CN111541406A publication Critical patent/CN111541406A/en
Pending legal-status Critical Current

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/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position
    • H02P6/18Circuit arrangements for detecting position without separate position detecting elements
    • H02P6/182Circuit arrangements for detecting position without separate position detecting elements using back-emf in windings
    • 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/20Arrangements for starting

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

The invention discloses a control method of a brushless direct current motor control system, the brushless direct current motor control system comprises a Cortex-M0 processor, a PWM control module, a counter electromotive force detection module, a motor, a system voltage and current detection module, an LCD display module and a key module, wherein the Cortex-M0 processor is respectively and electrically connected with the PWM control module, the counter electromotive force detection module, the system voltage and current detection module, the LCD display module and the key module, the PWM control module and the counter electromotive force detection module are respectively and electrically connected with the motor, and the control method comprises the following steps: initializing a bottom layer drive; executing the main program execution flow; executing DMA interrupt service flow; executing a first timer interrupt service flow; and executing the second timer interrupt service flow. The cost is low, and the market competitiveness of the product is favorably improved.

Description

Control method of brushless direct current motor control system
Technical Field
The invention relates to the technical field of motors, in particular to a control method of a brushless direct current motor control system.
Background
In the related art, a permanent magnet synchronous motor with square wave excitation magnetic potential distribution is called a brushless direct current motor (BLDC), and this type of motor is often used in a direct current variable frequency range hood, and the control method of the brushless dc motor generally adopts the following two methods:
1. the Hall sensor is used for sensing the position of the motor rotor so as to calculate the switching time of the control signal, but the sensor is used for auxiliary detection, so that the cost of the product is increased;
2. the position of the motor rotor is obtained by detecting the state of the counter electromotive force of the motor phase voltage, so that the switching time of the control signal is calculated, a sensor is not needed for auxiliary detection, the cost is low, and the requirement on the processing capacity of the MCU processor is high. In addition, in order to obtain high stability of control, a Digital Signal Processor (DSP) is often used in a control core of the brushless dc motor, which has a main frequency processing speed greater than 100Mhz and abundant chip internal resources, but results in high chip cost, and on the other hand, the complex software and hardware design and the low compatibility result in high system debugging difficulty and high technical threshold.
Disclosure of Invention
The present invention is directed to solve at least one of the problems of the related art to a certain extent, and therefore, the present invention is to provide a control method for a brushless dc motor control system, which is low in cost and beneficial to improving the market competitiveness of the product.
The above purpose is realized by the following technical scheme:
a control method of a brushless direct current motor control system, the brushless direct current motor control system comprises a Cortex-M0 processor, a PWM control module, a counter electromotive force detection module, a motor, a system voltage and current detection module, an LCD display module and a key module, wherein the Cortex-M0 processor is respectively electrically connected with the PWM control module, the counter electromotive force detection module, the system voltage and current detection module, the LCD display module and the key module, the PWM control module and the counter electromotive force detection module are respectively electrically connected with the motor, and the control method comprises the following steps:
initializing a bottom layer drive;
executing the main program execution flow;
executing DMA interrupt service flow;
executing a first timer interrupt service flow;
and executing the second timer interrupt service flow.
In some embodiments, the step of initializing the underlying driver comprises:
an LCD GPIO configuration, a PWM timebase configuration, an ADC and DMA configuration, a first timer configuration, a second timer configuration, and a key GPIO configuration.
In some embodiments, the step of executing the main program execution flow includes:
initializing a bottom layer drive;
initializing LCD bottom layer drive;
performing LCD display initialization;
initializing system variables;
enabling a PWM control module;
and entering a motor running stage.
In some embodiments, the step after entering the motor run phase comprises:
the voltage, current, speed display and response key detection procedures are cycled during operation of the motor.
In some embodiments, the step of performing the DMA interrupt service flow comprises:
acquiring a collected motor back electromotive force value;
acquiring a collected power supply voltage value;
acquiring a collected motor current value;
the DMA generation interrupt informs the Cortex-M0 processor to record the motor back emf value, the supply voltage value, and the motor current value and perform back emf zero crossing detection to deduce the next commutation time.
In some embodiments, the step of executing the first timer interrupt service flow comprises:
judging whether the motor is in a running state;
if the motor is in the running state, judging whether the motor needs to be strongly dragged to start or not;
if the motor needs to be strongly dragged to start, a strong dragging frequency conversion program is executed;
if the motor does not need to be strongly dragged to start, judging whether the motor is in a closed-loop control stage;
and if the motor is in the closed-loop control stage, executing a closed-loop control program, and if the motor is not in the closed-loop control stage, quitting the interruption and waiting for the next first timer interruption service flow to continue to carry out motor strong dragging.
In some embodiments, the step of executing the second timer interrupt service flow comprises:
judging whether the motor is in a running state;
if the motor is not in the running state, the interruption service process is quitted, and if the motor is in the running state, the motor phase change program is executed to maintain the stable running of the motor.
Compared with the prior art, the invention at least comprises the following beneficial effects:
1. the control method of the brushless direct current motor control system provided by the invention constructs the control system by taking the low-end Cortex-M0 processor as a core, thereby reducing the cost of the brushless direct current motor control system and achieving the purpose of improving the market competitiveness of products;
2. by reasonably utilizing the chip internal resources of the Cortex-M0 processor, the reliability of the brushless direct current motor control system is improved, and the debugging is easy to realize.
Drawings
FIG. 1 is a block schematic diagram of a control system in an embodiment of the present invention;
FIG. 2 is a flow chart illustrating initialization of the underlying driver according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating the execution flow of a main program according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating the DMA interrupt service flow in the embodiment of the present invention;
FIG. 5 is a flow chart illustrating a first timer interrupt service flow according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a second timer interrupt service flow according to an embodiment of the present invention.
Detailed Description
The present invention is illustrated by the following examples, but the present invention is not limited to these examples. Modifications to the embodiments of the invention or equivalent substitutions of parts of technical features without departing from the spirit of the invention are intended to be covered by the scope of the claims of the invention.
The first embodiment is as follows: as shown in fig. 1 to 6, this embodiment provides a control method of a brushless dc motor control system, where the brushless dc motor control system includes a Cortex-M0 processor, a PWM control module, a back electromotive force detection module, a motor, a system voltage and current detection module, an LCD display module, and a key module, where the Cortex-M0 processor is electrically connected to the PWM control module, the back electromotive force detection module, the system voltage and current detection module, the LCD display module, and the key module, respectively, the PWM control module and the back electromotive force detection module are electrically connected to the motor, the Cortex-M0 processor includes an ADC, a DMA, a PWM, a first timer, and a second timer, and the control method includes the following steps:
initializing a bottom layer drive;
executing the main program execution flow;
executing DMA interrupt service flow;
executing a first timer interrupt service flow;
and executing the second timer interrupt service flow.
In the control method of the brushless direct current motor control system of the embodiment, the low-end Cortex-M0 processor is used as a core to construct the control system, so that the cost of the brushless direct current motor control system can be reduced, and the aim of improving the market competitiveness of products is fulfilled;
in addition, by reasonably utilizing the chip internal resources of the Cortex-M0 processor, the reliability of the brushless direct current motor control system is improved, and the debugging is easy to realize.
Specifically, a motor control system of the direct-current variable-frequency range hood is designed by taking a Cortex-M0 processor which is low in cost and widely used as a core, and a complex motor control function is realized by using fewer chip internal resources, so that the system design complexity is reduced, and the running stability of a motor is ensured.
The brushless direct current motor control system of the embodiment adopts a Cortex-M0 processor as a core in a hardware scheme, a key part comprises a PWM control module and a back electromotive force detection module, and an auxiliary part comprises a system voltage and current detection module, an LCD display module and a key module.
In the key hardware part, a Cortex-M0 processor continuously switches a power-on phase (namely, phase commutation) to output a PWM signal to a PWM control module, the PWM control module generates voltage with adjustable amplitude to drive a motor to rotate, and the counter electromotive force generated in the rotation process of the motor is transmitted to the Cortex-M0 processor through signal conversion by a counter electromotive force detection module.
The system comprises a hardware auxiliary part, a system voltage and current detection module, a button module, a Cortex-M0 processor and a system voltage and current display module, wherein the system voltage and current detection module detects whether the system voltage and current are normal or not and transmits the result to the Cortex-M0 processor, the button module detects button values corresponding to 4 states of turning on a motor, turning off the motor, increasing the rotating speed and reducing the rotating speed and transmits the button values to the Cortex-M0 processor, and the Cortex-M0 processor converts system voltage, current and motor rotating speed information into visual information and transmits the visual information to the LCD.
Further, as shown in fig. 2, the step of initializing the bottom layer driver includes:
an LCD GPIO configuration, a PWM timebase configuration, an ADC and DMA configuration, a first timer configuration, a second timer configuration, and a key GPIO configuration. The GPIO configuration refers to the definition of chip pins of a Cortex-M0 processor, the ADC and DMA configuration aims to utilize DMA to automatically move ADC data so as to avoid occupying the processing time of the Cortex-M0 processor, the first timer configuration aims to control forced dragging time sequence of a motor from static state to starting state, and the second timer configuration aims to control commutation time sequence of the motor in normal operation in a closed loop mode.
In some embodiments, as shown in FIG. 3, the step of executing the main program execution flow includes:
initializing a bottom layer drive;
initializing LCD bottom layer drive;
performing LCD display initialization;
initializing system variables;
enabling a PWM control module;
and entering a motor running stage.
Further, the voltage, current, speed display and response key detection procedures are cycled during operation of the motor. The response key detection program comprises key values corresponding to 4 states of detecting on and off of the motor, increasing the rotating speed and reducing the rotating speed and transmitting the key values to the Cortex-M0 processor.
In this embodiment, as shown in fig. 4, the step of executing the DMA interrupt service flow includes:
acquiring a collected motor back electromotive force value;
acquiring a collected power supply voltage value;
acquiring a collected motor current value;
the DMA generation interrupt informs the Cortex-M0 processor to record the motor back emf value, the supply voltage value, and the motor current value and perform back emf zero crossing detection to deduce the next commutation time.
Specifically, after the ADC acquires the back electromotive force value, the power voltage value, and the motor current value, the DMA interrupts the signal to notify the Cortex-M0 processor to record the back electromotive force value, the power voltage value, and the motor current value and perform back electromotive force zero crossing detection to calculate the next commutation time.
In this embodiment, the motor operation stage is divided into: a strong pull start phase and a closed loop control phase. In the strong dragging starting stage, the motor is rotated by forcibly converting the electrifying phase by software from rest to operation, and the frequency conversion rate is continuously increased to accelerate the rotation of the motor; in the closed-loop control stage, namely the motor reaches a certain rotating speed, after the position of the motor rotor can be accurately obtained by software, the commutation frequency can be controlled according to the actual rotating speed fed back by the motor, so that the motor can be maintained to stably run at the target rotating speed.
Further, as shown in fig. 5, the step of executing the first timer interrupt service flow includes:
judging whether the motor is in an operating state, specifically, judging whether the motor is in the operating state or not when a first timer interrupts a service process, namely, controlling a time sequence from static to starting of the motor, and when the process is entered, firstly judging whether the motor is in the operating state, as shown in fig. 5, specifically, starting the first timer to interrupt the service process, then eliminating an interrupt flag bit, and then detecting a system operation flag bit;
if the motor is in the running state, determining whether the motor needs to be strongly dragged to start, and if the motor is not in the running state, exiting the first timer interrupt service process, as shown in fig. 5, specifically, if a system running flag bit is detected, detecting the strongly dragged flag bit, and if the system running flag bit is not detected, exiting the first timer interrupt service process;
if the motor needs to be strongly dragged to start, executing a strong dragging frequency conversion program, as shown in fig. 5, specifically, if a strong dragging flag bit is detected, executing the strong dragging frequency conversion program, and then detecting a closed loop flag bit;
if the motor does not need to be strongly dragged to start, judging whether the motor is in a closed-loop control stage, specifically, judging whether the motor is started completely, namely, the motor enters a closed-loop control stage of stable operation, as shown in fig. 5, specifically, if the strong dragging mark position is not detected, detecting a closed-loop mark position;
if the motor is in the closed-loop control stage, executing a closed-loop control program, if the motor is not in the closed-loop control stage, exiting the interruption and waiting for the next first timer interruption service flow to continue to perform motor strong dragging, as shown in fig. 5, specifically, executing the closed-loop control program if a closed-loop flag bit is detected, and exiting the interruption and waiting for the next first timer interruption service flow to continue to perform motor strong dragging if the closed-loop flag bit is not detected.
Further, as shown in fig. 6, the step of executing the second timer interrupt service flow includes:
judging whether the motor is in an operating state, specifically, a second software timer interrupts a service flow, namely a closed-loop control stage, and firstly judging whether the motor is in the operating state;
if the motor is not in the running state, the motor is shut down, the interruption service process is directly exited, and if the motor is in the running state, a motor commutation program is executed to maintain the stable running of the motor, specifically, the commutation frequency is controlled according to the actual rotating speed fed back by the motor to maintain the stable running of the motor. As shown in fig. 6, specifically, the second timer interrupt service flow starts, then the interrupt flag bit is eliminated, then the system operation flag bit is detected, if the system operation flag bit is detected, the motor phase change program is executed until the second timer interrupt service flow ends; and if the system operation flag bit is not detected, ending the second timer interrupt service flow.
What has been described above are merely some embodiments of the present invention. It will be apparent to those skilled in the art that various changes and modifications can be made without departing from the inventive concept thereof, and these changes and modifications can be made without departing from the spirit and scope of the invention.

Claims (7)

1. A control method of a brushless direct current motor control system is characterized in that the brushless direct current motor control system comprises a Cortex-M0 processor, a PWM control module, a counter electromotive force detection module, a motor, a system voltage and current detection module, an LCD display module and a key module, wherein the Cortex-M0 processor is respectively electrically connected with the PWM control module, the counter electromotive force detection module, the system voltage and current detection module, the LCD display module and the key module, the PWM control module and the counter electromotive force detection module are respectively electrically connected with the motor, and the control method comprises the following steps:
initializing a bottom layer drive;
executing the main program execution flow;
executing DMA interrupt service flow;
executing a first timer interrupt service flow;
and executing the second timer interrupt service flow.
2. The method of claim 1, wherein the step of initializing the bottom layer driver comprises:
an LCD GPIO configuration, a PWM timebase configuration, an ADC and DMA configuration, a first timer configuration, a second timer configuration, and a key GPIO configuration.
3. The method of claim 1, wherein the step of executing the main program execution flow comprises:
initializing a bottom layer drive;
initializing LCD bottom layer drive;
performing LCD display initialization;
initializing system variables;
enabling a PWM control module;
and entering a motor running stage.
4. The method of claim 3, wherein the step of entering the motor operation phase comprises:
the voltage, current, speed display and response key detection procedures are cycled during operation of the motor.
5. The method of claim 1, wherein the step of performing the DMA interrupt service routine comprises:
acquiring a collected motor back electromotive force value;
acquiring a collected power supply voltage value;
acquiring a collected motor current value;
the DMA generation interrupt informs the Cortex-M0 processor to record the motor back emf value, the supply voltage value, and the motor current value and perform back emf zero crossing detection to deduce the next commutation time.
6. The method of claim 1, wherein the step of performing the first timer interrupt service routine comprises:
judging whether the motor is in a running state;
if the motor is in the running state, judging whether the motor needs to be strongly dragged to start or not;
if the motor needs to be strongly dragged to start, a strong dragging frequency conversion program is executed;
if the motor does not need to be strongly dragged to start, judging whether the motor is in a closed-loop control stage;
and if the motor is in the closed-loop control stage, executing a closed-loop control program, and if the motor is not in the closed-loop control stage, quitting the interruption and waiting for the next first timer interruption service flow to continue to carry out motor strong dragging.
7. The method of claim 6, wherein the step of performing the second timer interrupt service routine comprises:
judging whether the motor is in a running state;
if the motor is not in the running state, the interruption service process is quitted, and if the motor is in the running state, the motor phase change program is executed to maintain the stable running of the motor.
CN202010248174.5A 2020-04-01 2020-04-01 Control method of brushless direct current motor control system Pending CN111541406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010248174.5A CN111541406A (en) 2020-04-01 2020-04-01 Control method of brushless direct current motor control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010248174.5A CN111541406A (en) 2020-04-01 2020-04-01 Control method of brushless direct current motor control system

Publications (1)

Publication Number Publication Date
CN111541406A true CN111541406A (en) 2020-08-14

Family

ID=71980041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010248174.5A Pending CN111541406A (en) 2020-04-01 2020-04-01 Control method of brushless direct current motor control system

Country Status (1)

Country Link
CN (1) CN111541406A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN203193563U (en) * 2012-12-26 2013-09-11 广西师范大学 A brushless DC motor electronic speed regulator based on STM32
CN105515458A (en) * 2014-10-18 2016-04-20 杨利 Brushless direct current motor control system
CN105743399A (en) * 2016-05-13 2016-07-06 深圳市高科润电子有限公司 Direct-current brushless motor position-free control system and control method thereof
CN109347374A (en) * 2018-10-27 2019-02-15 宁德职业技术学院 A kind of novel brushless direct current motor sensorless control system and method
CN110154030A (en) * 2019-06-13 2019-08-23 哈尔滨玄智科技有限公司 A kind of robot control method, robot and controlling terminal
CN110190784A (en) * 2019-07-04 2019-08-30 北京航远动力科技有限责任公司 A kind of brushless DC motor without sensor varying load progress control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203193563U (en) * 2012-12-26 2013-09-11 广西师范大学 A brushless DC motor electronic speed regulator based on STM32
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN105515458A (en) * 2014-10-18 2016-04-20 杨利 Brushless direct current motor control system
CN105743399A (en) * 2016-05-13 2016-07-06 深圳市高科润电子有限公司 Direct-current brushless motor position-free control system and control method thereof
CN109347374A (en) * 2018-10-27 2019-02-15 宁德职业技术学院 A kind of novel brushless direct current motor sensorless control system and method
CN110154030A (en) * 2019-06-13 2019-08-23 哈尔滨玄智科技有限公司 A kind of robot control method, robot and controlling terminal
CN110190784A (en) * 2019-07-04 2019-08-30 北京航远动力科技有限责任公司 A kind of brushless DC motor without sensor varying load progress control method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
温路佳: "无刷直流电机驱动器及无位置控制技术研究与实现", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
郑直: "基于STM32的无传感器无刷直流电机闭环控制***", 《电子设计工程》 *

Similar Documents

Publication Publication Date Title
TWI392216B (en) Sensorless starting method and related device for a 3-phase brushless direct-current motor
CN105529967A (en) Fan start state detection and start control method
US8093845B2 (en) Controller and MCU chip for controlling 3-phase brushless DC motor
TW201412009A (en) Method for driving inductive brushless direct current motor
CN104378030A (en) Permanent magnet brushless motor sensorless starting method
CN105763109A (en) Brushless DC motor phase conversion control method and brushless DC motor control system
US20140111127A1 (en) Sensorless Dynamic Driving Method and System for Single Phase Alternating Current Permanent Magnet Motor
CN111181450A (en) Fault-tolerant control device and control method for Hall sensor of brushless direct current motor
US20130009577A1 (en) System for controlling a motor
CN103401488A (en) Elevator door motor control method
JP6337211B2 (en) Start control method and system of air conditioner and outdoor fan thereof
CN111541406A (en) Control method of brushless direct current motor control system
CN110247588B (en) Single-pulse control method and system of Hall motor
CN105978416A (en) Hall-free ceiling fan motor controller and starting method thereof
US7710055B2 (en) DC motor variable kick-start
CN112332719A (en) Control method and system of electric tool and electric tool
CN112994540B (en) Motor control method and device, motor controller, motor and household appliance
CN106788032B (en) Alternating current generator rotary speed tracing control method
JP5762794B2 (en) Power converter for motor drive
CN114268248A (en) Method for monitoring back electromotive force voltage of ultra-high-speed BLDC motor
CN109302108B (en) Asynchronous motor power generation control method and system
CN115589176A (en) Motor driving method of food processor and food processor
KR100977085B1 (en) Sensorless Blushless motor High-speed startup algorithm with Smart align Process
JP2012090429A (en) Motor drive device
JP2010284013A (en) Inverter controller, electric compress unit and electrical household apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200814