CN112688603A - High-precision brush motor current loop control method - Google Patents

High-precision brush motor current loop control method Download PDF

Info

Publication number
CN112688603A
CN112688603A CN202011554652.1A CN202011554652A CN112688603A CN 112688603 A CN112688603 A CN 112688603A CN 202011554652 A CN202011554652 A CN 202011554652A CN 112688603 A CN112688603 A CN 112688603A
Authority
CN
China
Prior art keywords
current
motor
ref
value
term
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.)
Granted
Application number
CN202011554652.1A
Other languages
Chinese (zh)
Other versions
CN112688603B (en
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.)
CETC 43 Research Institute
Original Assignee
CETC 43 Research Institute
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 CETC 43 Research Institute filed Critical CETC 43 Research Institute
Priority to CN202011554652.1A priority Critical patent/CN112688603B/en
Publication of CN112688603A publication Critical patent/CN112688603A/en
Application granted granted Critical
Publication of CN112688603B publication Critical patent/CN112688603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P80/00Climate change mitigation technologies for sector-wide applications
    • Y02P80/10Efficient use of energy, e.g. using compressed air or pressurized fluid as energy carrier

Landscapes

  • Control Of Direct Current Motors (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The invention discloses a high-precision brush motor current loop control method in the field of servo motor control, which comprises the following steps: step 1: acquiring two-phase current signals of the motor at a set sampling moment; step 2: carrying out mean value processing on the two-phase current signals to obtain intermediate value current; and step 3: calculating the average current of any phase current of the motor in a PWM chopping period; and 4, step 4: repeating the steps 1-3 for N times, and calculating to obtain a corresponding relation between the average current and the median current; and 5: determining a model parameter of the motor through parameter identification, designing a control rule of output voltage, and introducing a speed compensation term, a feedforward reference compensation term, a proportional error term and an integral feedback term; step 6: and (5) equating the control voltage value of the motor to be a duty ratio and controlling the operation of the motor. The invention obviously improves the response speed of the current loop, improves the response capability of the loop on the premise of not influencing the current control precision, and further improves the control efficiency of the system.

Description

High-precision brush motor current loop control method
Technical Field
The invention relates to the field of servo motor control, in particular to a high-precision brush motor current loop control method.
Background
The current loop control of the motor plays a very important role in the servo closed-loop control, the phase current is generally required to be sampled based on the control method of the brush motor phase current, for a large-inductance motor, the phase current of the motor changes relatively slowly, and the phase current fluctuation in a PWM control period is generally very small, so that the requirement on the sampling moment of the current is not high, and the requirement on the closed-loop control is easily met; however, for a high-efficiency motor, the phase inductance of the motor is small, the phase current output of the motor is very close to the supply voltage waveform, and is in a square wave state, and the change of the current in one PWM control period is very large, which results in very short time for sampling the current, which makes it difficult to complete the sampling of the motor current and to realize the closed-loop control of the current.
The existing current loop control technology has the following defects: (1) the current sampling time is random, so that the current error between the current control and the actual requirement is large; (2) based on the traditional PID control method, the controlled object information cannot be utilized, and the accuracy and the efficiency of control are low.
Disclosure of Invention
The invention aims to provide a high-precision brush motor current loop control method to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme:
a high-precision brush motor current loop control method comprises the following steps:
step 1: setting a fixed sampling moment, and acquiring two-phase current signals of the motor;
step 2: carrying out mean value processing on the two-phase current signals to obtain intermediate value current;
and step 3: calculating the average current of any phase current of the motor in a PWM chopping period;
and 4, step 4: repeating the steps 1-3 for N times, and calculating to obtain a corresponding relation between the average current and the median current;
and 5: obtaining feedback current and a proportional coefficient according to the relational expression, determining a model parameter of the motor through parameter identification, designing a control rule of output voltage according to the model parameter, and introducing a speed compensation term, a feedforward reference compensation term, a proportional error term and an integral feedback term which are obtained through calculation according to the model parameter, the feedback current and the proportional coefficient into the control rule;
step 6: and equating the calculated control voltage value of the motor to be a duty ratio, and controlling the operation of the motor according to the duty ratio.
As a modified scheme of the invention, the step 1 comprises the following steps:
step 1.1: giving the motor a predetermined voltage um
Step 1.2: setting the sampling time of the current as the underflow interrupt time of PWM through a digital chip;
step 1.3: acquiring digital values N corresponding to two current sampling channels of the motorxAnd a corresponding digital value M when the current is zerox,x=a,b;
Step 1.4: the current two-phase current signal value of the motor is obtained by calculation as follows: i.e. ix=ki(Nx-Mx)=kiNx-kiMx,kiIs a scale factor for digital to analog conversion.
As an improvement of the present invention, in step 2, the formula for calculating the median current is:
Figure BDA0002858022730000021
ia、ibrespectively two-phase current signals.
As an improvement of the present invention, in step 4, the relation is: i.e. im=kcimid+bcWherein i ismRepresents the average current imidRepresenting the median current, kc、bcAll represent proportionality coefficients, and the calculation formula is as follows:
Figure BDA0002858022730000022
as a modified scheme of the invention, the step 5 comprises the following steps:
step 5.1: obtaining phase resistance R, phase inductance L and back electromotive force coefficient k of the motor through parameter identificationeAnd given a reference current irefThe angular velocity omega of the motor;
step 5.2: calculating to obtain the actual feedback current if,if=kcimid+bc
Step 5.3: calculating a reference current irefThe derivative of (a) of (b),
Figure BDA0002858022730000023
iref_pre、irefrespectively representing a previous value and a current value of the reference current, and delta T represents a time difference between the previous value and the current value;
step 5.4: calculating a velocity compensation term usFeedforward reference compensation term uFFProportional error term upIntegral feedback term uiWherein u iss=keω;
Figure BDA0002858022730000024
up=kp(if-iref),kpIs a scale factor; u. ofi=ui+kI(if-iref) dt, and uimin<ui<uimax,uimin、uimaxIs the upper and lower limits of the amplitude, kIIs an integral scale factor;
step 5.5: the reference value of the last time of updating is: i.e. iref_pre=iref
Step 5.6: the control rule of the output voltage obtained by calculation is as follows: u-us+uFF+up+uiAnd the width limit of the output voltage u is: u. ofmin<u<umax
AsAccording to a further development of the invention, step 6, the duty cycle δdutyExpressed as:
Figure BDA0002858022730000031
Vsand is expressed as the supply voltage of the direct current bus of the motor inverter bridge.
Has the advantages that: aiming at a model of the motor, the speed compensation term and the feedforward reference compensation term of the motor are introduced into a control rule, so that the response speed of a current loop is obviously improved; meanwhile, a proportional error term and an integral feedback term are introduced, so that the arbitrary convergence rate of the current loop can be adjusted theoretically, and meanwhile, the control precision of the current loop can be improved, so that the response capability of the loop is improved on the premise that the control precision of the current is not influenced, and the control efficiency of the system is improved.
Drawings
FIG. 1 is a flow chart of the steps of the present invention;
FIG. 2 is a flow chart of steps of an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for controlling a current loop of a high-precision brush motor includes the following steps:
step 1: setting a fixed sampling time to acquire two-phase current signals of a motor aiming at the problem that the current sampling time is random in the existing current loop control technology;
specifically, step 1 comprises:
step 1.1: giving the motor a predetermined voltage um
Step 1.2: setting the sampling time of the current as the underflow interrupt time of PWM through a digital chip;
step 1.3: acquiring digital values N corresponding to two current sampling channels of the motorxAnd a corresponding digital value M when the current is zeroxX is a, b; the phase current signals are converted into voltage signals through sampling resistors in the sampling channels, and the voltage signals are converted into clean voltage signals which can be identified by A/D through filtering and amplification processing for subsequent use.
Step 1.4: the current two-phase current signal value of the motor is obtained by calculation as follows: i.e. ix=ki(Nx-Mx)=kiNx-kiMx,kiIs a scale factor for digital to analog conversion.
Step 2: and (3) carrying out mean value processing on the two-phase current signals to obtain a median current, wherein the calculation formula of the median current is as follows:
Figure BDA0002858022730000041
ia、ibrespectively two-phase current signals.
And step 3: observing the phase current waveform of any phase of the motor through an oscilloscope, and calculating the average current i of the phase current in a PWM chopping periodm*
And 4, step 4: repeating the steps 1-3N times to obtain an average current im1~imNWith corresponding intermediate value current imid1~imidNAnd calculating the corresponding relation between the average current and the median current as follows:
im=kcimid+bc
wherein k isc、bcAll of which represent the scaling factors, are,
Figure BDA0002858022730000042
Figure BDA0002858022730000043
here, the more the number of repetitions is, the larger the calculation base of the relational expression is, and the higher the fitting accuracy of the curve corresponding to the relational expression to the actual current sample is.
And 5: obtaining feedback current and a proportional coefficient according to the relational expression, determining a model parameter of the motor through parameter identification, designing a control rule of output voltage according to the model parameter, and introducing a speed compensation term, a feedforward reference compensation term, a proportional error term and an integral feedback term which are obtained through calculation according to the model parameter, the feedback current and the proportional coefficient into the control rule; the speed compensation term is mainly used for compensating error offset caused by the rotating speed of the motor, the feedforward reference compensation term is used for compensating static inherent deviation caused by reference current, the proportional error term is used for improving the dynamic response rapidity of error compensation, and the integral term is used for eliminating the steady-state error of current; specifically, step 5 comprises:
step 5.1: obtaining phase resistance R, phase inductance L and back electromotive force coefficient k of the motor through parameter identificationeAnd given a reference current irefThe angular speed omega of the motor rotor;
step 5.2: calculating to obtain the actual feedback current if,if=kcimid+bc
Step 5.3: calculating a reference current irefThe derivative of (a) of (b),
Figure BDA0002858022730000044
iref_pre、irefrespectively representing a previous value and a current value of the reference current, and delta T represents a time difference between the previous value and the current value; the reference current of the motor is determined from the speed loop output.
Step 5.4: calculating a velocity compensation term usFeedforward reference compensation term uFFProportional error term upIntegral feedback term uiWherein u iss=keω;uFF=Riref+Liref;up=kp(if-iref),kpIs a scale factor; u. ofi=ui+kI(if-iref) dt, and uimin<ui<uimax,uimin、uimaxUpper and lower limits of amplitude for saturation limiting of the integral phase according to actual requirements of the inverted output, kIIs an integral scale factor;
step 5.5: the reference value of the last time of updating is: i.e. iref_pre=iref
Step 5.6: the control rule of the output voltage obtained by calculation is as follows: u-us+uFF+up+uiAnd the width limit of the output voltage u is: u. ofmin<u<umax
Step 6: the calculated control voltage value of the motor is equivalent to a duty ratio deltadutyExpressed as:
Figure BDA0002858022730000051
Vsthe control method is characterized in that the control method is represented as a motor inverter bridge direct current bus supply voltage, and the operation of a motor is controlled according to a duty ratio.
Aiming at a model of the motor, the speed compensation term and the feedforward reference compensation term of the motor are introduced into a control rule, so that the response speed of a current loop is obviously improved; meanwhile, a proportional error term and an integral feedback term are introduced, so that the arbitrary convergence rate of the current loop can be adjusted theoretically, and meanwhile, the control precision of the current loop can be improved, so that the response capability of the loop is improved on the premise that the control precision of the current is not influenced, and the control efficiency of the system is improved.
Although the present description is described in terms of embodiments, not every embodiment includes only a single embodiment, and such description is for clarity only, and those skilled in the art should be able to integrate the description as a whole, and the embodiments can be appropriately combined to form other embodiments as will be understood by those skilled in the art.
Therefore, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application; all changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.

Claims (6)

1. A high-precision brush motor current loop control method is characterized by comprising the following steps:
step 1: setting a fixed sampling moment, and acquiring two-phase current signals of the motor;
step 2: carrying out mean value processing on the two-phase current signals to obtain intermediate value current;
and step 3: calculating the average current of any phase current of the motor in a PWM chopping period;
and 4, step 4: repeating the steps 1-3 for N times, and calculating to obtain a corresponding relation between the average current and the median current;
and 5: obtaining feedback current and a proportional coefficient according to the relational expression, determining a model parameter of the motor through parameter identification, designing a control rule of output voltage according to the model parameter, and introducing a speed compensation term, a feedforward reference compensation term, a proportional error term and an integral feedback term which are obtained through calculation according to the model parameter, the feedback current and the proportional coefficient into the control rule;
step 6: and equating the calculated control voltage value of the motor to be a duty ratio, and controlling the operation of the motor according to the duty ratio.
2. The method for controlling the current loop of the high-precision brush motor according to claim 1, wherein the step 1 comprises the following steps:
step 1.1: giving the motor a predetermined voltage um
Step 1.2: setting the sampling time of the current as the underflow interrupt time of PWM through a digital chip;
step 1.3: acquiring digital values N corresponding to two current sampling channels of the motorxAnd a corresponding digital value M when the current is zerox,x=a,b;
Step 1.4: the current two-phase current signal value of the motor is obtained by calculation as follows: i.e. ix=ki(Nx-Mx)=kiNx-kiMx,kiIs a scale factor for digital to analog conversion.
3. The method for controlling the current loop of the high-precision brush motor according to claim 2, wherein in the step 2, the stepThe formula for calculating the interval current is as follows:
Figure FDA0002858022720000011
ia、ibrespectively two-phase current signals.
4. A high precision brush motor current loop control method according to claim 1, 2 or 3, characterized in that in step 4, the relation is: i.e. im=kcimid+bcWherein i ismRepresents the average current imidRepresenting the median current, kc、bcAll represent proportionality coefficients, and the calculation formula is as follows:
Figure FDA0002858022720000012
Figure FDA0002858022720000013
5. the method for controlling the current loop of the high-precision brush motor according to claim 4, wherein the step 5 comprises the following steps:
step 5.1: obtaining phase resistance R, phase inductance L and back electromotive force coefficient k of the motor through parameter identificationeAnd given a reference current irefThe angular speed omega of the motor rotor;
step 5.2: calculating to obtain the actual feedback current if,if=kcimid+bc
Step 5.3: calculating a reference current irefThe derivative of (a) of (b),
Figure FDA0002858022720000021
iref_pre、irefrespectively representing a previous value and a current value of the reference current, and delta T represents a time difference between the previous value and the current value;
step 5.4: calculating a velocity compensation term usFeedforward reference compensation term uFFProportional error term upIntegral feedback term uiWherein u iss=keω;
Figure FDA0002858022720000022
up=kp(if-iref),kpIs a scale factor; u. ofi=ui+kI(if-iref) dt, and uimin<ui<uimax,uimin、uimaxIs the upper and lower limits of the amplitude, kIIs an integral scale factor;
step 5.5: the reference value of the last time of updating is: i.e. iref_pre=iref
Step 5.6: the control rule of the output voltage obtained by calculation is as follows: u-us+uFF+up+uiAnd the width limit of the output voltage u is: u. ofmin<u<umax
6. A high precision brush motor current loop control method according to claim 5, characterized in that in step 6, the duty ratio δdutyExpressed as:
Figure FDA0002858022720000023
Vsand is expressed as the supply voltage of the direct current bus of the motor inverter bridge.
CN202011554652.1A 2020-12-24 2020-12-24 Brush motor current loop control method Active CN112688603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011554652.1A CN112688603B (en) 2020-12-24 2020-12-24 Brush motor current loop control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011554652.1A CN112688603B (en) 2020-12-24 2020-12-24 Brush motor current loop control method

Publications (2)

Publication Number Publication Date
CN112688603A true CN112688603A (en) 2021-04-20
CN112688603B CN112688603B (en) 2022-05-31

Family

ID=75452991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011554652.1A Active CN112688603B (en) 2020-12-24 2020-12-24 Brush motor current loop control method

Country Status (1)

Country Link
CN (1) CN112688603B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197796A (en) * 2005-01-12 2006-07-27 Mando Corp Current control method for actuator
CN102142694A (en) * 2011-03-18 2011-08-03 浙江大学 Rotational coordinate transformation based current decoupling control method for three-phase grid-connected inverter
CN104597368A (en) * 2015-01-15 2015-05-06 电子科技大学 Current based open-circuit fault detection method for three-phase inverter
CN105450126A (en) * 2015-12-17 2016-03-30 江苏经纬轨道交通设备有限公司 Vector control method for vehicle-mounted permanent magnet synchronous motor
CN108599663A (en) * 2018-05-07 2018-09-28 上海金脉电子科技有限公司 Automobile motor torque estimation algorithm and system
CN110601611A (en) * 2019-08-29 2019-12-20 南京理工大学 Position-free control system for compensating back electromotive force constant of brushless direct current motor
CN110798116A (en) * 2019-09-27 2020-02-14 清华大学 Motor vector composite controller based on armature model independent feedforward compensation
CN111555688A (en) * 2020-05-12 2020-08-18 中国电子科技集团公司第四十三研究所 High-bandwidth current loop digital control method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197796A (en) * 2005-01-12 2006-07-27 Mando Corp Current control method for actuator
CN102142694A (en) * 2011-03-18 2011-08-03 浙江大学 Rotational coordinate transformation based current decoupling control method for three-phase grid-connected inverter
CN104597368A (en) * 2015-01-15 2015-05-06 电子科技大学 Current based open-circuit fault detection method for three-phase inverter
CN105450126A (en) * 2015-12-17 2016-03-30 江苏经纬轨道交通设备有限公司 Vector control method for vehicle-mounted permanent magnet synchronous motor
CN108599663A (en) * 2018-05-07 2018-09-28 上海金脉电子科技有限公司 Automobile motor torque estimation algorithm and system
CN110601611A (en) * 2019-08-29 2019-12-20 南京理工大学 Position-free control system for compensating back electromotive force constant of brushless direct current motor
CN110798116A (en) * 2019-09-27 2020-02-14 清华大学 Motor vector composite controller based on armature model independent feedforward compensation
CN111555688A (en) * 2020-05-12 2020-08-18 中国电子科技集团公司第四十三研究所 High-bandwidth current loop digital control method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周美兰 等: "电动汽车辅助动力系统双向DC/DC变换器", 《电机与控制学报》 *

Also Published As

Publication number Publication date
CN112688603B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN109560736B (en) Permanent magnet synchronous motor control method based on second-order terminal sliding mode
CN108696210B (en) Parameter identification-based parameter self-tuning method for direct current motor current loop controller
CN110752806B (en) Sliding mode rotating speed control method of built-in permanent magnet synchronous motor with improved approach law
CN110572091A (en) optimized sensorless control method for permanent magnet synchronous motor
CN108390597A (en) Permanent magnet synchronous motor nonlinear predictive controller design with disturbance observer
CN106681134A (en) High-precision steering engine position control method
CN112532133B (en) Filtering compensation sliding mode active-disturbance-rejection control method suitable for permanent magnet synchronous motor
CN112688603B (en) Brush motor current loop control method
JPH01291684A (en) Servo circuit for magnetic disk
CN108448983B (en) Method for inhibiting nonlinear interference of servo system at extremely low speed
CN111555689A (en) Phase current flow sampling system and method based on Kalman filtering
CN111934585A (en) Permanent magnet synchronous motor servo control system based on fuzzy PI control
CN112019116A (en) Speed tracking control method for permanent magnet linear synchronous motor
CN112803860A (en) Permanent magnet motor control method based on output feedback sliding mode control and anti-saturation PI
CN111865158B (en) Speed sensorless control method of self-adaptive sliding mode gain permanent magnet synchronous motor
CN113890451A (en) Parameter adjusting method for first-order linear active disturbance rejection controller of permanent magnet synchronous motor
CN113315440A (en) Permanent magnet synchronous motor model-free prediction current control method based on current difference full update
CN108388539B (en) Newton interpolation-based state transition matrix solving method
CN112953323B (en) Control method and system of three-coordinate measuring machine
CN108540017B (en) A kind of motor tracking and controlling method on single-chip microcontroller based on Predictive function control
CN113176731B (en) Dual-neural-network self-learning IPMSM active disturbance rejection control method
CN113070735B (en) High-dynamic-response and high-precision alternating current servo motor hand wheel control method
CN113328663B (en) Parameter optimization-based permanent magnet synchronous motor double-closed-loop sliding mode control method
CN113141141B (en) Permanent magnet flux linkage observation method for memory motor
CN114006558B (en) Motor parameter online identification method only for bill parameters

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
GR01 Patent grant
GR01 Patent grant