CN103001560A - Control method for brushless direct current motor (BLDC) - Google Patents

Control method for brushless direct current motor (BLDC) Download PDF

Info

Publication number
CN103001560A
CN103001560A CN2012104672719A CN201210467271A CN103001560A CN 103001560 A CN103001560 A CN 103001560A CN 2012104672719 A CN2012104672719 A CN 2012104672719A CN 201210467271 A CN201210467271 A CN 201210467271A CN 103001560 A CN103001560 A CN 103001560A
Authority
CN
China
Prior art keywords
initialization
module
program
control
interruption
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
CN2012104672719A
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.)
Shenyang Hongda Information Technology Co Ltd
Original Assignee
Shenyang Hongda Information Technology 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 Shenyang Hongda Information Technology Co Ltd filed Critical Shenyang Hongda Information Technology Co Ltd
Priority to CN2012104672719A priority Critical patent/CN103001560A/en
Publication of CN103001560A publication Critical patent/CN103001560A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

The invention provides a control method for a BLDC and belongs to the technical field of motor control. The method includes controlling a main program of a system and initializing the program, wherein the main program control of the system mainly includes variable declaration, system initialization and interrupt vector table setting; and the program initialization includes the initialization for all parts of the whole digital signal processor (DSP). The control method has the advantages that the control system adopts a latest control chip special for the BLDC as a core to achieve the control for the motor motion, the timeliness is good, the control accuracy and the system reliability are high, and the like.

Description

Control method for brushless direct current motor
Technical field
The invention belongs to the electric machines control technology field, particularly a kind of control method for brushless direct current motor.
Background technology
20 beginnings of the century, it is ripe that the development of DC motor has been tending towards.Traditional direct current machine has good torque characteristics and speed adjusting performance, therefore is widely used in kinematic system.The development of novel power transistor, microprocessor technology, New Control Theory, and the appearance of the permanent magnetic material of low-cost, high energy product, solid foundation has been established in the extensive use that is brshless DC motor.At present, the brushless DC motor control system real-time is poor, control precision is low, so the development of new electric machine control system is the focus of current research.
Summary of the invention
Deficiency for prior art exists the invention provides a kind of control method for brushless direct current motor.
Technical scheme of the present invention is achieved in that by main control module, power driver module and brshless DC motor and forms that main control module is connected with power driver module, and power driver module is connected with brshless DC motor.Main control module by control chip, crystal oscillator reseting module, power module, external expansion module form, crystal oscillator power interface, the reset clock interface of reseting module, power module, external expansion module and main control chip be connected with external expansion interface; Power driver module is comprised of phase current testing circuit, rotor position detection circuit, optical coupling isolation circuit, Drive Protecting Circuit and driving inverter circuit; the phase current testing circuit, transfer position detecting circuit, Drive Protecting Circuit and brshless DC motor to and main control chip is connected; optical coupling isolation circuit is connected with main control chip and driving inverter circuit, drives inverter circuit and is connected with light-coupled isolation and brshless DC motor.The main control circuit part, the circuit take TMS320F2812DSP as core, it act as: measure rotating speed and phase current feedback value, finish the computing of speed ring and current loop controller, produce the pwm signal of control motor, control IGBT switch; Power varying circuit part is built by six IGBT, and its effect is under the control of pwm signal, and operating voltage is added on three phase windings of motor by rule, makes machine operation; Testing circuit mainly detects position signalling and the current feedback signal of motor, and delivers among the DSP; Protective circuit is mainly used in partly preventing IGBT because of overcurrent that short circuit or some other accident are burned, and mainly contain the over-and under-voltage protection, overcurrent protection, overheat protector.
This control method is divided into control system main program and initialize routine two parts;
The control system main program mainly finish variable declarations, system initialization, interrupt vector table etc. is set.This program may further comprise the steps:
1) variable and function declaration;
2) system initialization subprogram;
3) close interruption;
4) enable T2 cycle interruption and kernel interrupt INT 3;
5) open interruption;
6) BackTicker value of the every execution of circular wait adds 1;
7) check whether the T2 counter cycle is mated, do not mate execution in step 6;
8) interrupt service subroutine.
Initialize routine comprises the initialization to the each several part of whole DSP.At first task manager is carried out initialization, the timer T2 of task manager EVA begins timing.Initialization GPIO is that the PWM1~PWM6 pin for EVA is set to peripheral functionality, and enters interruption in the generating period coupling.Carry out respectively afterwards PWM initialization, journal file initialization, CAPl~CAP3 pin is arranged to the digital quantity input state.ADC module initialization, the initialization of speed computing module, trapping module initialization, speed by PID initialization, current PI D initialization.So since 2812 be the fixed point DSP in program, to carry out the Q format conversion.This program may further comprise the steps:
1) system initialization;
2) interrupt vector table initialization;
3) the timer 2 initialization of EVA;
4) PWM module initialization;
5) ADC module initialization;
6) speed calculation module initialization;
7) capture module initialization;
8) PID module initialization;
9) EP (end of program).
Advantage of the present invention: it is that core realizes the control to motor movement that control system adopts up-to-date brshless DC motor special integrated circuit, has that real-time is good, control precision is high, the system reliability advantages of higher.
Description of drawings
Fig. 1 is the control system structured flowchart;
Fig. 2 is the Control System Software flow chart;
Fig. 3 is the control system initialization flowchart.
Embodiment
Detailed construction of the present invention is illustrated in conjunction with the embodiments.
This control system structured flowchart as shown in Figure 1, Master control chip is selected TMS320LF2812, outside extended chip is selected IS61LV6416, power drive chip selection IR2132, the isolation optocoupler is selected 6N137.
Control system mainly is comprised of main control module, power driver module and brshless DC motor, the signal output port PWM1-PWM6 of main control module is connected with the signal input port V+ of optical coupling isolation circuit in the power driver module, and power driver module output signal port is connected with brshless DC motor.Main control module by control chip, crystal oscillator reseting module, power module, external expansion module form, crystal oscillator reseting module output, power module outlet, external expansion module output and main control chip power interface, reset clock interface X1 X2, CLKOUT and external expansion interface PS DS be connected; Power driver module is by the phase current testing circuit; rotor position detection circuit; optical coupling isolation circuit; Drive Protecting Circuit and driving inverter circuit form; the output port of phase current testing circuit; the output port that transfers position detecting circuit to; ADC port and the signal capture port of the output port of Drive Protecting Circuit and brshless DC motor body and main control chip are connected; the output of optical coupling isolation circuit; input port is connected with the input port of main control chip and the output port of driving inverter circuit, drives the input of inverter circuit; the output port of output port and light-coupled isolation and the winding of brshless DC motor are connected.The main control circuit part, the circuit take TMS320F2812DSP as core, it act as: measure rotating speed and phase current feedback value, finish the computing of speed ring and current loop controller, produce the pwm signal of control motor, control IGBT switch; Power varying circuit part is built by six IGBT, and its effect is under the control of pwm signal, and operating voltage is added on three phase windings of motor by rule, makes machine operation; Testing circuit mainly detects position signalling and the current feedback signal of motor, and delivers among the DSP; Protective circuit is mainly used in partly preventing IGBT because of overcurrent that short circuit or some other accident are burned, and mainly contain the over-and under-voltage protection, overcurrent protection, overheat protector.
The control system main program as shown in Figure 2, mainly finish variable declarations, system initialization, interrupt vector table etc. is set.This program may further comprise the steps:
9) variable and function declaration;
10) system initialization subprogram;
11) close interruption;
12) enable T2 cycle interruption and kernel interrupt INT 3;
13) open interruption;
14) BackTicker value of the every execution of circular wait adds 1;
15) check whether the T2 counter cycle is mated, do not mate execution in step 6;
16) interrupt service subroutine.
10) initialize routine comprises the initialization to the each several part of whole DSP as shown in Figure 3.At first task manager is carried out initialization, the timer T2 of task manager EVA begins timing.Initialization GPIO is that the PWM1~PWM6 pin for EVA is set to peripheral functionality, and enters interruption in the generating period coupling.Carry out respectively afterwards PWM initialization, journal file initialization, CAPl~CAP3 pin is arranged to the digital quantity input state.ADC module initialization, the initialization of speed computing module, trapping module initialization, speed by PID initialization, current PI D initialization.So since 2812 be the fixed point DSP in program, to carry out the Q format conversion.This program may further comprise the steps:
11) system initialization;
12) interrupt vector table initialization;
13) the timer 2 initialization of EVA;
14) PWM module initialization;
15) ADC module initialization;
16) speed calculation module initialization;
17) capture module initialization
18) PID module initialization
EP (end of program).

Claims (1)

1. a control method for brushless direct current motor is characterized in that: be divided into control system main program and initialize routine two parts;
The control system main program mainly finish variable declarations, system initialization, interrupt vector table is set, this program may further comprise the steps:
(1) variable and function declaration;
(2) system initialization subprogram;
(3) close interruption;
(4) enable T2 cycle interruption and kernel interrupt INT 3;
(5) open interruption;
(6) BackTicker value of the every execution of circular wait adds 1;
(7) check whether the T2 counter cycle is mated, do not mate execution in step 6;
(8) interrupt service subroutine;
Initialize routine comprises the initialization to the each several part of whole DSP, at first task manager is carried out initialization, the timer T2 of task manager EVA begins timing, initialization GPIO, be that PWM1~PWM6 pin for EVA is set to peripheral functionality, and in the generating period coupling, enter interruption; Carry out respectively afterwards PWM initialization, journal file initialization, CAPl~CAP3 pin is arranged to the digital quantity input state; ADC module initialization, the initialization of speed computing module, trapping module initialization, speed by PID initialization, current PI D initialization, thus since 2812 be the fixed point DSP in program, to carry out the Q format conversion, this program may further comprise the steps:
(1) system initialization;
(2) interrupt vector table initialization;
(3) the timer 2 initialization of EVA;
(4) PWM module initialization;
(5) ADC module initialization;
(6) speed calculation module initialization;
(7) capture module initialization;
(8) PID module initialization;
(9) EP (end of program).
CN2012104672719A 2012-11-19 2012-11-19 Control method for brushless direct current motor (BLDC) Pending CN103001560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104672719A CN103001560A (en) 2012-11-19 2012-11-19 Control method for brushless direct current motor (BLDC)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104672719A CN103001560A (en) 2012-11-19 2012-11-19 Control method for brushless direct current motor (BLDC)

Publications (1)

Publication Number Publication Date
CN103001560A true CN103001560A (en) 2013-03-27

Family

ID=47929788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104672719A Pending CN103001560A (en) 2012-11-19 2012-11-19 Control method for brushless direct current motor (BLDC)

Country Status (1)

Country Link
CN (1) CN103001560A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104149029A (en) * 2014-09-01 2014-11-19 广州大学 Automatic grinding control method and system
CN109324995A (en) * 2018-08-24 2019-02-12 江西洪都航空工业集团有限责任公司 A method of configuration DSP initialization

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104149029A (en) * 2014-09-01 2014-11-19 广州大学 Automatic grinding control method and system
CN109324995A (en) * 2018-08-24 2019-02-12 江西洪都航空工业集团有限责任公司 A method of configuration DSP initialization

Similar Documents

Publication Publication Date Title
CN100581044C (en) Integrated circuit special for controlling switch reluctance motor
CN106533280B (en) Using the Brush-Less DC motor control circuit of position-sensor-free
CN204013310U (en) Brushless dual-feed motor direct Torque Control
CN204669256U (en) Based on the motor servo control system of industrial flat bed sewing machine
CN201113873Y (en) Electric bicycle control system
CN202833210U (en) Inducted draft fan driven by direct current motor
CN109728754A (en) A kind of embedded dual core electric machine control system and its working method
CN105356796A (en) Permanent magnet brushless DC Motor position sensorless control system
CN201869153U (en) Drive controller for permanent magnet synchronous motor of electromobile
CN203193563U (en) A brushless DC motor electronic speed regulator based on STM32
WO2013177899A1 (en) Halbach array permanent magnet, high-efficiency, energy-saving, textile-manufacturing motor
CN103001560A (en) Control method for brushless direct current motor (BLDC)
CN103001559A (en) Control system for brushless direct current motor (BLDC)
CN105007007A (en) Two-phase switch reluctance motor controller and control method thereof
CN202550947U (en) Efficient control device for direct-current brushless motor based on phase current cutoff angle
CN201789468U (en) Digital single phase motor controller
CN202997989U (en) Permanent magnet synchronous motor speed regulation and control device based on current hysteresis
CN103107750A (en) Control method for brushless direct current motor
CN206004562U (en) A kind of sensorless control system of high-voltage permanent magnet synchronous motor
CN205004974U (en) Double -phase switched reluctance motor controller
CN203027174U (en) Control unit of brushless DC motor
CN203800852U (en) Permanent magnet synchronous motor speed regulating device
CN203645590U (en) Driving device of stepping motor
CN109617457A (en) A kind of vent cabinet automatically-controlled door digital servo energy-saving controller
CN101986549A (en) Control circuit of electric bicycle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130327