CN106059400B - A kind of motor HALL rate smoothing processing method - Google Patents

A kind of motor HALL rate smoothing processing method Download PDF

Info

Publication number
CN106059400B
CN106059400B CN201610594455.XA CN201610594455A CN106059400B CN 106059400 B CN106059400 B CN 106059400B CN 201610594455 A CN201610594455 A CN 201610594455A CN 106059400 B CN106059400 B CN 106059400B
Authority
CN
China
Prior art keywords
hall
time
motor
current
speed
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.)
Active
Application number
CN201610594455.XA
Other languages
Chinese (zh)
Other versions
CN106059400A (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.)
Xian Flight Automatic Control Research Institute of AVIC
Original Assignee
Xian Flight Automatic Control Research Institute of AVIC
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 Xian Flight Automatic Control Research Institute of AVIC filed Critical Xian Flight Automatic Control Research Institute of AVIC
Priority to CN201610594455.XA priority Critical patent/CN106059400B/en
Publication of CN106059400A publication Critical patent/CN106059400A/en
Application granted granted Critical
Publication of CN106059400B publication Critical patent/CN106059400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/04Arrangements for controlling or regulating the speed or torque of more than one motor
    • 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

Abstract

The invention belongs to electric machines control technologies, and in particular to a kind of motor HALL rate smoothing processing method.Motor HALL rate smoothing processing method of the present invention, first calculate the time difference of one circle of motor HALL state rotation, the 360 ° of times added up divided by rotation time and smooth counter enclosed with rotation one, as current HALL speed, if current HALL state updates, the time that smoothing computation device adds up is zero;If current HALL state does not update, at this time smooth counter is started to add up, its smoothingtime to add up and rotation time are overlapped to obtain total time, and for calculating HALL speed, so that the step of HALL velocity jump 0 is jumped process processing is a smooth gradual change process.To preferably complete the speed ring control of motor, the jitter problem of motor is solved, the more ideal purpose of motor control is reached.

Description

A kind of motor HALL rate smoothing processing method
Technical field
The invention belongs to electric machines control technologies, and in particular to a kind of motor HALL rate smoothing processing method.
Background technique
The closed-loop control of motor is usually all controlled using the classical closed loop strategy such as position ring, speed ring, electric current loop, And the speed ring of motor (referring both to DC brushless motor herein), velocity feedback are the current HALL speed of motor.For electricity The HALL speed of machine calculates, and there are many kinds of methods, and method more classical at present is exactly directly to be rotated a circle using motor, HALL The time of transformation a cycle calculate the speed of current HALL.
In the control of motor, input of the HALL speed as feedback, the quality of quality directly influences the control of motor Quality, traditional method directly calculate HALL speed, and in the case where HALL state does not update, the speed for directly setting motor is 0, Therefore in the case where motor is static suddenly, motor speed just will appear one and jump from the larger value to 0 step, motor speed The control of ring just will appear a burr, to the phenomenon that motor is shaken at the time of stopping occur.It so solves above-mentioned Problem is how to allow the mutation of HALL speed to become more smooth at all.
It is traditional motor HALL speed calculation method shown in Fig. 1, this method is simply direct, is using current HALL state No variation carries out the calculating of HALL speed, if HALL state does not change, the HALL speed directly calculated is 0.If For the high-voltage motor of 160V, electric motor starting and stopping are controlled with PWM, is stopped in a flash in motor, high-voltage motor Movement is very fast, if velocity feedback drops to 0 from very big speed suddenly, in the control of motor, and the feedback of speed ring A bigger burr is just had, jitter phenomenon occurs so as to cause motor, the motor vibrating of high-voltage motor often causes The generation of burr electric current, big burr electric current often blow the winding of motor, burn out circuit board.
Under normal conditions, the control section driving of motor is all to be realized using FPGA, and the software in DSP is usually only used The control of closed loop is carried out, in this way in FPGA, software does not need to carry out the judgement of HALL state, is directly calculated with FPGA Speed.And current most of chip, all support individually control motor, the PWM of direct application chip to carry out the control of motor System, therefore software has to take into account that the calculation method of motor speed.How high-precision motor control is completed, it is how real with software The data smoothing of existing loop feedback is comprehensive, just becomes urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide one kind can effectively reduce motor HALL velocity jump, prevents the flat of motor vibrating Sliding processing method.
The technical scheme is that a kind of motor HALL rate smoothing processing method, first calculates motor HALL state The time difference of one circle of rotation, the 360 ° of times added up divided by rotation time and smooth counter enclosed with rotation one, as work as Preceding HALL speed, if current HALL state updates, the time that smoothing computation device adds up is zero;If current HALL State does not update, and starts to add up by smooth counter at this time, and the smoothingtime to add up is overlapped with rotation time Total time is obtained, for calculating HALL speed, so that the step of HALL velocity jump 0 is jumped process processing is a smooth gradual change Process.
The smoothing computation device accumulated counts be self accumulated counts is carried out on the basis of the frequency of periodic duty, and with from The small frame period of definition is multiplied to obtain smoothingtime.
The motor HALL rate smoothing processing method, detailed process is as follows:
Step 1): a HALL state of selected motor, record at the time of the state currently occurs HALL_TIME_NOW and HALL_TIME_LAST at the time of last time occurs;
Step 2): judging whether the HALL state of current motor has update, is then transferred to step 4) if any updating, is otherwise transferred to Step 3);
Step 3): smooth counter FADER_CNT starts to add up, smooth to count if smooth counter is more than threshold value δ The value of device FADER_CNT is δ, is transferred to step 5);
Step 4): when judging that this moment out current moment HALL_TIME_NOW and the last time of current motor HALL state occur Whether equal carve HALL_TIME_LAST, if equal, the numerical value of smooth counter is 1, and otherwise the value of smooth counter is 0, it is transferred to step 5);
Step 5): current HALL speed, the calculation formula of HALL speed are calculated are as follows:
360 °/[(HALL_TIME_NOW-HALL_TIME_LAST)+FADER_CNT*T], wherein T is customized small frame Period is transferred to step 6);
Step 6): the HALL velocity amplitude of calculating is exported.
The solution have the advantages that: the invention mainly relates to be HALL speed calculation method optimization, traditional On the basis of HALL speed calculation method, using the size of the small frame count of smooth counter come the slope for reduction of regulating the speed, into The processing of row HALL rate smoothing preferably completes the speed ring control of motor, solves the jitter problem of motor, reach motor control Make more ideal purpose.
Detailed description of the invention
Fig. 1 is traditional motor HALL speed schematic diagram of calculation flow;
Fig. 2 is motor HALL speed schematic diagram of calculation flow after present invention processing.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and examples:
Motor HALL rate smoothing processing method of the present invention first calculates the time difference of one circle of motor HALL state rotation, The 360 ° of times added up divided by rotation time and smooth counter enclosed with rotation one, as current HALL speed, if Current HALL state updates, and the time that smoothing computation device adds up is zero;If current HALL state does not update, at this time will Smooth counter starts to add up, and the smoothingtime to add up and rotation time are overlapped to obtain total time, based on HALL speed is calculated, so that the step of HALL velocity jump 0 is jumped process processing is a smooth gradual change process.Wherein, described flat Sliding calculator accumulated counts be self accumulated counts is carried out on the basis of the frequency of periodic duty, and with the customized small frame period Multiplication obtains smoothingtime.So as to handle mutating speed using smooth counter, realizes the control to motor speed, eliminate The shake of motor.
As shown in Fig. 2, in certain example: using certain chip MPC5644A on the market, dominant frequency is set as 120MHz, same to time control Two DC brushless motors are made, motor collocation HALL sensor, wherein HALL state 0x1~0x6 is normal condition, 0x0 and 0x7 For illegal state, CPU carries out the control of motor rotation by PWM wave.In the control of software, smooth counter fader_ is set Cnt, initial value 0, the upper limit threshold of smooth counter are set as 1000, and smooth counter does not have periodic accumulation 1, HALL state note Record chronomere is the second (s), and small frame cycle time is 2s, as follows using case step of the invention.
1) the current uniform rotation of motor selects HALL state 0x6 as the normal condition calculated, the HALL state currently clapped The time of 0x6 is 236.7512s, and the time that upper one claps HALL state 0x6 is 232.1953s.
2) current HALL state is 0x1, i.e. HALL state is changed.
3) HALL state 0x6 current time and the time of a upper bat is not identical, then smooth counter is 0 at this time, smoothly Time mutually should be 0.
4) HALL speed is calculated, using formula
360 °/[(HALL_TIME_NOW-HALL_TIME_LAST)+FADER_CNT*T]=
360 °/[(236.7512-232.1953)+0*0.002]=79.0184 °/s.
5) the output PWM of current motor is 0, and motor stops suddenly.And current motor HALL state be 0x2, upper one The motor HALL state of bat is also 0x2.
6) smooth counter starts to add up, and current smooth counter is added to 500.Current HALL is then calculated according to formula Speed is 360 °/[0+0*2*500]=0.36 °/s, i.e. HALL speed is slowly reduced to 0.36 °/s.
Alternatively, it is also possible to adjust the increased speed of smooth counter, the size of the smooth small frame count of counter adjusts speed Reduced slope is spent, the speed ring control of motor is further preferably completed, optimizes the control process of entire motor.

Claims (3)

1. a kind of motor HALL rate smoothing processing method, which is characterized in that first calculate one circle of motor HALL state rotation Time difference, the 360 ° of times added up divided by rotation time and smooth counter enclosed with rotation one, as current HALL speed Degree, if current HALL state updates, the time that smooth counter adds up is zero;If current HALL state is not more Newly, at this time smooth counter is started to add up, when the smoothingtime to add up and rotation time are overlapped to obtain total Between, for calculating HALL speed, so that the step of HALL velocity jump 0 is jumped process processing is a smooth gradual change process.
2. motor HALL rate smoothing processing method according to claim 1, which is characterized in that the smooth counter is tired Adding counting is self accumulated counts to be carried out on the basis of the frequency of periodic duty, and be multiplied and put down with the customized small frame period The sliding time.
3. motor HALL rate smoothing processing method according to claim 1, which is characterized in that detailed process is as follows:
Step 1): a HALL state of selected motor records HALL_TIME_NOW and upper one at the time of the state currently occurs Secondary HALL_TIME_LAST at the time of occur;
Step 2): judging whether the HALL state of current motor has update, is then transferred to step 4) if any updating, is otherwise transferred to step 3);
Step 3): smooth counter FADER_CNT starts to add up, if smooth counter is more than threshold value δ, smooth counter The value of FADER_CNT is δ, is transferred to step 5);
Step 4): judge current motor HALL state goes out current moment HALL_TIME_NOW and last current moment out this moment Whether HALL_TIME_LAST is equal, if equal, the numerical value of smooth counter is 1, and otherwise the value of smooth counter is 0, It is transferred to step 5);
Step 5): current HALL speed, the calculation formula of HALL speed are calculated are as follows:
360 °/[(HALL_TIME_NOW-HALL_TIME_LAST)+FADER_CNT*T], wherein T is customized small frame week Phase is transferred to step 6);
Step 6): the HALL velocity amplitude of calculating is exported.
CN201610594455.XA 2016-07-26 2016-07-26 A kind of motor HALL rate smoothing processing method Active CN106059400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610594455.XA CN106059400B (en) 2016-07-26 2016-07-26 A kind of motor HALL rate smoothing processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610594455.XA CN106059400B (en) 2016-07-26 2016-07-26 A kind of motor HALL rate smoothing processing method

Publications (2)

Publication Number Publication Date
CN106059400A CN106059400A (en) 2016-10-26
CN106059400B true CN106059400B (en) 2018-12-14

Family

ID=57417727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610594455.XA Active CN106059400B (en) 2016-07-26 2016-07-26 A kind of motor HALL rate smoothing processing method

Country Status (1)

Country Link
CN (1) CN106059400B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112906851B (en) * 2021-03-24 2023-09-19 中国兵器装备集团自动化研究所有限公司 Counting method based on segment proportion jump threshold judgment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6621242B2 (en) * 2001-10-01 2003-09-16 Silicon Touch Technology Inc. Motor speed control circuit having a synchronous PWM signal
JP2003264990A (en) * 2002-03-08 2003-09-19 Sanyo Electric Co Ltd Method for calculating rotational speed of brushless motor
CN101764553A (en) * 2010-01-21 2010-06-30 上海大学 Method for controlling permanent magnet synchronous motor for Hall switch sensor
CN102946220B (en) * 2012-11-21 2016-03-30 北京信息科技大学 Speed Regulation System Based on DC Motor and method for control speed
CN103475294A (en) * 2013-09-03 2013-12-25 清华大学 Fault-tolerant control algorithm for hall sensors of permanent magnet synchronous motor
CN105099290A (en) * 2015-07-29 2015-11-25 合肥工业大学 Control method for permanent magnet brushless direct current motor

Also Published As

Publication number Publication date
CN106059400A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
Xia et al. Implementation of finite-state model predictive control for commutation torque ripple minimization of permanent-magnet brushless DC motor
CN104767448B (en) Control system and method for electronic three-phase variable speed electric motors, particularly
CN109462352B (en) Motor control method, device and computer readable storage medium
CN103296940B (en) Self-adaptive PI (proportional-integral) control method and self-adaptive PI control system
CN103339850B (en) Electromotor control circuit
CN106059400B (en) A kind of motor HALL rate smoothing processing method
CN111342733B (en) Method and device for starting control of variable frequency compressor and computer storage medium
CN103607149B (en) A kind of ultrasonic motor rudder servo system and control method thereof
Rebouh et al. Adaptive backstepping speed control for a permanent magnet synchronous motor
US10833606B2 (en) Current sampling and processing device and method for an inverter
KR101561372B1 (en) Pwm signal generating circuit, printer and pwm signal generating method
Kang et al. Predictive current control with torque ripple minimization for PMSM of electric vehicles
US9188966B2 (en) Host controller generating position control gain
CN109696825B (en) Control response method and device of steering engine and steering engine
CN105269583A (en) Robot motion control method and device and robot
CN202026270U (en) Fan motor control device
CN103809636A (en) Constant-voltage constant-current state switching method and control circuit for programmable power supply
CN107294460B (en) Control method for soft and hard start adjustment of electric bicycle controller
CN102939715B (en) Motor drive device, and motor drive method
Zhang et al. Fuzzy PID speed control of BLDC motor based on model design
CN111464094B (en) Brushless direct current motor model prediction controller and construction method thereof
CN104242755B (en) Motor driving device and power module
JP4500155B2 (en) Simulation method
JP5371714B2 (en) Positioning function generator and method, and electric motor using the same
WO2020078046A1 (en) Operation control method and system for washing machine motor, washing machine, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant