CN110988672B - Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor - Google Patents

Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor Download PDF

Info

Publication number
CN110988672B
CN110988672B CN201910719269.8A CN201910719269A CN110988672B CN 110988672 B CN110988672 B CN 110988672B CN 201910719269 A CN201910719269 A CN 201910719269A CN 110988672 B CN110988672 B CN 110988672B
Authority
CN
China
Prior art keywords
hall
filtering
permanent magnet
magnet synchronous
synchronous motor
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
CN201910719269.8A
Other languages
Chinese (zh)
Other versions
CN110988672A (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.)
BAIHENG PETROLEUM EQUIPMENT Co.,Ltd.
Original Assignee
Baiheng Petroleum Equipment 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 Baiheng Petroleum Equipment Co ltd filed Critical Baiheng Petroleum Equipment Co ltd
Priority to CN201910719269.8A priority Critical patent/CN110988672B/en
Publication of CN110988672A publication Critical patent/CN110988672A/en
Application granted granted Critical
Publication of CN110988672B publication Critical patent/CN110988672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/34Testing dynamo-electric machines
    • G01R31/343Testing dynamo-electric machines in operation

Abstract

The invention discloses a locked rotor anti-interference method and a locked rotor anti-interference device for signal acquisition of a Hall sensor of a permanent magnet synchronous motor, wherein the method comprises the following steps: filtering the Hall signal; comparing the Hall state before filtering with the Hall state after filtering; if the Hall state before filtering is the same as the Hall state after filtering, acquiring a locked rotor count; and when the locked rotor count is greater than a preset value, executing forced phase conversion. The signals collected by the Hall sensor are filtered, the required bandwidth frequency is screened out, useful signals are separated from noise, and the anti-interference performance and the signal-to-noise ratio of the signals are improved. And if the Hall signal is not changed after being filtered, judging that locked rotor occurs. When the locked rotor count exceeds the preset value, the forced commutation is executed, so that the permanent magnet synchronous motor can recover to rotate, and more effective locked rotor judgment and treatment are realized.

Description

Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor
Technical Field
The invention relates to the technical field of permanent magnet synchronous motor control, in particular to a locked rotor anti-interference method and a locked rotor anti-interference device for signal acquisition of a Hall sensor of a permanent magnet synchronous motor.
Background
The permanent magnet synchronous motor has the advantages of simple structure, high power density, simple control and the like. In recent years, permanent magnet synchronous motors are increasingly widely used in the industrial fields of high-performance speed regulation systems, servo control systems and the like.
At present, most of permanent magnet synchronous motors rely on Hall sensors to obtain the position of a rotor, but the precision of the Hall sensors is low, and the phase change of the permanent magnet synchronous motors is realized by means of extracting the edge information of the Hall sensors in the prior art, so that an effective Hall state cannot be obtained in a low-speed operation or locked rotor state, and the phenomenon of back-and-forth locked rotor of the permanent magnet synchronous motors is caused.
Disclosure of Invention
In order to solve the technical problems, the invention provides a locked-rotor anti-interference method and a locked-rotor anti-interference device for signal acquisition of a Hall sensor of a permanent magnet synchronous motor, which aim to solve the problem that the permanent magnet synchronous motor is locked or stalled back and forth due to the fact that an effective Hall state cannot be obtained in a low-speed running or locked-rotor state in the prior art.
The invention adopts the following specific technical scheme:
a locked rotor anti-interference method for signal acquisition of a Hall sensor of a permanent magnet synchronous motor comprises the following steps:
filtering the Hall signal;
comparing the Hall state before filtering with the Hall state after filtering;
if the Hall state before filtering is different from the Hall state after filtering, comparing the Hall state before filtering with the Hall state before phase commutation;
if the Hall state before filtering is different from the Hall state before commutation, acquiring a filtering count;
and when the filter count is greater than a preset value, performing forced commutation.
Optionally, before filtering the hall signal, the method further includes:
acquiring an edge signal of a Hall sensor;
clearing an interrupt flag bit triggered by the edge signal;
comparing the current state of the Hall signal with an expected Hall state;
and if the current state is the same as the expected Hall state, executing normal commutation.
Optionally, after comparing the hall state before filtering with the hall state before commutation, the method further includes:
and if the Hall state before filtering is the same as the Hall state before commutation, executing normal commutation.
Optionally, before performing the forced phase conversion, the method further includes:
the filter count is reset.
Alternatively, the driving frequency of the permanent magnet synchronous motor is 16kHz every other
Figure GDA0003212961050000021
And collecting a primary Hall signal.
Optionally, filtering the hall signal comprises:
and performing delay filtering on the Hall signal, wherein the delay time is 1 ms.
Optionally, the filter count preset value ranges from 4 to 8.
The invention also provides a locked rotor anti-interference device for signal acquisition of the Hall sensor of the permanent magnet synchronous motor, which comprises:
the filtering module is used for filtering the Hall signal;
the first comparison module is used for comparing the Hall state before filtering with the Hall state after filtering;
the second comparison module is used for comparing the Hall state before filtering with the Hall state before phase commutation;
the acquisition module is used for acquiring a filtering count;
and the commutation module is used for executing forced commutation.
The embodiment of the invention has the following beneficial effects:
1. the signals collected by the Hall sensor are filtered, the required bandwidth frequency is screened out, useful signals are separated from noise, and the anti-interference performance and the signal-to-noise ratio of the signals are improved. The Hall signal is filtered and then changed, the Hall state before filtering is different from the Hall state after filtering, and the Hall state before filtering is different from the Hall state after filtering and the Hall state before phase commutation, so that the occurrence of stalling is determined, after filtering for a plurality of times, the Hall state still does not recover to the expected Hall state, the stalling of the permanent magnet synchronous motor is indicated and the permanent magnet synchronous motor can not recover automatically, forced phase commutation is executed to enable the permanent magnet synchronous motor to operate normally, and the problem of the stalling of the permanent magnet synchronous motor at low speed is effectively solved.
2. When the edge signal appears or does not appear in the Hall sensor, the Hall state is judged, and the accuracy of Hall state acquisition is improved.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
FIG. 2 is a Hall signal comparison graph of a desired Hall state and a locked-rotor state in an embodiment.
Fig. 3 is a block diagram of a locked rotor anti-interference device for collecting signals of a hall sensor of a permanent magnet synchronous motor in the embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
Example (b): as shown in fig. 1, a locked rotor anti-interference method and device for signal acquisition of a hall sensor of a permanent magnet synchronous motor includes:
and step S10, filtering the Hall signal.
In the embodiment, in the process of starting the permanent magnet synchronous motor at a low rotating speed, the signals collected by the Hall sensor are filtered, the required bandwidth frequency is screened out, useful signals are separated from noise, and the anti-interference performance and the signal-to-noise ratio of the signals are improved.
Step S20, comparing the hall state before filtering with the hall state after filtering.
In this embodiment, it is observed whether the hall state changes before and after filtering.
And step S30, if the Hall state before filtering is different from the Hall state after filtering, comparing the Hall state before filtering with the Hall state before phase change.
In this embodiment, as shown in fig. 2, if the hall state before filtering is different from the hall state after filtering, it may be determined that stalling may occur, and at this time, the hall state before filtering is compared with the hall state before phase commutation to determine whether stalling occurs.
In step S40, if the hall state before filtering is different from the hall state before commutation, a filtering count is obtained.
In this embodiment, it is determined that the hall state before filtering is different from the hall state after filtering and the hall state before commutation. And looping steps S10-S40 before the next commutation.
In step S50, when the filter count is greater than the preset value, a forced commutation is performed.
In this embodiment, after multiple filtering, the hall state still does not recover to the expected hall state, which indicates that the permanent magnet synchronous motor is locked and cannot recover by itself, and at this time, forced phase inversion is performed to make the permanent magnet synchronous motor operate normally, thereby effectively solving the problem of back-and-forth locking of the permanent magnet synchronous motor at low speed.
As an optional implementation manner, before step S10, the method further includes:
and step S01, acquiring an edge signal of the Hall sensor.
In step S02, the interrupt flag triggered by the edge signal is cleared.
Step S03, the current state of the hall signal is compared with the desired hall state.
And step S04, if the current state is the same as the expected Hall state, executing normal commutation.
In this embodiment, the order in which the hall states occur should be fixed under normal operation of the permanent magnet synchronous machine, i.e. the expected hall state after going into interruption is known. If the hall state after the interruption is inconsistent with the expected hall state, executing step S10; and if the Hall state after interruption is consistent with the expected Hall state, indicating that the permanent magnet synchronous motor normally operates, and executing normal phase change. When the edge signal appears or does not appear in the Hall sensor, the Hall state is judged, and the accuracy of Hall state acquisition is improved.
As an optional embodiment, after comparing the hall state before filtering with the hall state before commutation, the method further includes:
and if the Hall state before filtering is the same as the Hall state before commutation, executing normal commutation.
In this embodiment, the hall state before filtering is the same as the hall state before commutation, which indicates that no stalling occurs and the permanent magnet synchronous motor operates normally.
As an optional implementation manner, before performing the forced phase conversion, the method further includes: the filter count is reset.
In the present embodiment, the filter count is not additionally stored to reduce the system load.
As an alternative embodiment, the driving frequency of the permanent magnet synchronous motor is 16kHz and every other time
Figure GDA0003212961050000041
Figure GDA0003212961050000042
And collecting a primary Hall signal.
In this embodiment, the frequency of collecting the hall signals is consistent with the driving frequency of the permanent magnet synchronous motor, so that each hall signal is collected.
As an optional implementation, the filtering the hall signal includes: and performing delay filtering on the Hall signal, wherein the delay time is 1 ms. Filtering is carried out by delaying for 1ms, so that abnormal waveforms and repeated waveforms in low-speed locked rotor can be filtered, and effective Hall signals can be obtained finally.
In this embodiment, the hall sensor generates a discrete signal, and the hall signal is acquired through delay filtering to obtain an approximate approximation result, thereby improving the sampling precision.
As an alternative embodiment, the preset value ranges from 4 to 8.
In the embodiment, the preset value is set according to actual needs. As shown in fig. 2, the preset value is set to 5, and the locked rotor time is controlled to continue within the interval of 2 phase changes, so that the operation state of the permanent magnet synchronous motor can be quickly adjusted, and the load brought to the permanent magnet synchronous motor by locked rotor is reduced. In a specific embodiment, if the permanent magnet synchronous motor is in a continuous locked-rotor condition, forced commutation is triggered after 5 times of filtering; if the permanent magnet synchronous motor is in the condition of short-time locked rotor and is not in the filtering range of 5 times, forced phase change cannot be triggered; therefore, the preset value is set to 5, so that whether the permanent magnet synchronous motor is in a continuous locked rotor state or a short-time locked rotor state can be accurately judged, and the actual accurate control is facilitated.
As shown in fig. 3, an embodiment of the present invention further provides a locked rotor anti-interference device for collecting signals of a hall sensor of a permanent magnet synchronous motor, including a filtering module 1, a first comparing module 2, a second comparing module 3, an obtaining module 4 and a phase-changing module 5, wherein: the filtering module is used for filtering the Hall signal; the first comparison module is used for comparing the Hall state before filtering with the Hall state after filtering; the second comparison module is used for comparing the Hall state before filtering with the Hall state before phase commutation; the acquisition module is used for acquiring a filtering count; the commutation module is used for executing forced commutation.
In this embodiment, the input end of the delay filter is connected to the output end of the hall sensor, and the output end of the delay filter is connected to a group of serial ports of the single chip microcomputer; the other group of serial ports of the single chip microcomputer are connected with the output end of the Hall sensor. And the singlechip is used for comparing and operating the Hall state before filtering, the Hall state after filtering and the Hall state before phase commutation, and counting the filtering times. And the third group of serial ports of the singlechip are connected with a driving circuit of the permanent magnet synchronous motor and control the output of the driving circuit to realize forced phase commutation.
The specific details of the locked rotor anti-interference device for signal acquisition of the hall sensor of the permanent magnet synchronous motor can be understood by referring to the corresponding relevant description and effects in the embodiments shown in fig. 1 to 2, and are not described herein again.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (8)

1. A locked rotor anti-interference method for signal acquisition of a Hall sensor of a permanent magnet synchronous motor is characterized by comprising the following steps:
the method comprises the following steps: filtering the Hall signal;
step two: comparing the Hall state before filtering with the Hall state after filtering;
step three: judging the comparison result of the second step, and if the Hall state before filtering is different from the Hall state after filtering, comparing the Hall state before filtering with the Hall state before phase change;
step four: judging the comparison result of the third step, and if the Hall state before filtering is different from the Hall state before commutation, acquiring a filtering count;
step five: and when the filtering count in the fourth step is greater than the preset value, performing forced commutation.
2. The locked rotor anti-interference method for the signal acquisition of the permanent magnet synchronous motor Hall sensor according to claim 1, characterized in that before the step one, the following operations are further performed:
1) acquiring an edge signal of a Hall sensor;
2) clearing an interrupt flag bit triggered by the edge signal;
3) comparing the current state of the Hall signal with an expected Hall state;
4) and if the current state is the same as the expected Hall state, executing normal commutation.
3. The locked rotor anti-interference method for collecting signals of the permanent magnet synchronous motor Hall sensor according to claim 1, wherein in the third step, if the Hall state before filtering is the same as the Hall state before commutation, normal commutation is performed.
4. The locked rotor anti-interference method for collecting the signals of the permanent magnet synchronous motor Hall sensor according to claim 1, wherein in the fifth step, when the filter count is greater than a preset value, the filter count is reset and then forced phase commutation is performed.
5. The locked rotor anti-interference method for collecting signals of the Hall sensor of the permanent magnet synchronous motor according to claim 1, wherein the driving frequency of the permanent magnet synchronous motor is 16kHz and every other interval
Figure FDA0003212961040000011
And collecting the Hall signal once.
6. The locked rotor anti-interference method for collecting the signal of the hall sensor of the permanent magnet synchronous motor according to claim 1, wherein in the first step, the hall signal is subjected to delay filtering, and the delay time is 1 ms.
7. The locked rotor anti-interference method for collecting the signals of the permanent magnet synchronous motor Hall sensor according to claim 1, wherein the preset value of the filtering count in the fifth step is set to be 4-8.
8. A locked rotor anti-interference device for signal acquisition of a Hall sensor of a permanent magnet synchronous motor is used for realizing the method of claim 1, and is characterized by comprising the following steps: the filtering module is used for filtering the Hall signal;
the first comparison module is used for comparing the Hall state before filtering with the Hall state after filtering;
the second comparison module is used for comparing the Hall state before filtering with the Hall state before phase commutation;
the acquisition module is used for acquiring a filtering count;
and the commutation module is used for executing forced commutation.
CN201910719269.8A 2019-08-05 2019-08-05 Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor Active CN110988672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910719269.8A CN110988672B (en) 2019-08-05 2019-08-05 Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910719269.8A CN110988672B (en) 2019-08-05 2019-08-05 Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor

Publications (2)

Publication Number Publication Date
CN110988672A CN110988672A (en) 2020-04-10
CN110988672B true CN110988672B (en) 2021-10-19

Family

ID=70081595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910719269.8A Active CN110988672B (en) 2019-08-05 2019-08-05 Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor

Country Status (1)

Country Link
CN (1) CN110988672B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55107905A (en) * 1979-02-12 1980-08-19 Mitsubishi Electric Corp Detector for position and speed of electric motor
WO2005116587A1 (en) * 2004-05-19 2005-12-08 Hr Textron Inc. Noise reduction in digital hall sensors for position detection in motors
CN101018034A (en) * 2007-02-02 2007-08-15 浙江大学 Pure hardware separation system of non sensor brushless DC motor zero start
CN202261131U (en) * 2011-09-15 2012-05-30 威海克莱特机电有限公司 Driving device for integrated brushless direct current motor
CN104378026A (en) * 2014-11-24 2015-02-25 江苏科技大学 Brushless DC motor high-speed torque pulse control device and method
CN108429409A (en) * 2018-02-11 2018-08-21 北京精密机电控制设备研究所 A kind of detection of multi-channel linear Hall rotor-position and compensation correction system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9960716B2 (en) * 2016-02-29 2018-05-01 Allegro Microsystems, Llc Control timing and sequencing for a multi-phase electric motor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55107905A (en) * 1979-02-12 1980-08-19 Mitsubishi Electric Corp Detector for position and speed of electric motor
WO2005116587A1 (en) * 2004-05-19 2005-12-08 Hr Textron Inc. Noise reduction in digital hall sensors for position detection in motors
CN101018034A (en) * 2007-02-02 2007-08-15 浙江大学 Pure hardware separation system of non sensor brushless DC motor zero start
CN202261131U (en) * 2011-09-15 2012-05-30 威海克莱特机电有限公司 Driving device for integrated brushless direct current motor
CN104378026A (en) * 2014-11-24 2015-02-25 江苏科技大学 Brushless DC motor high-speed torque pulse control device and method
CN108429409A (en) * 2018-02-11 2018-08-21 北京精密机电控制设备研究所 A kind of detection of multi-channel linear Hall rotor-position and compensation correction system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Hall sensor-based Locking Electric Differential System for BLDC motor driven electric vehicles;Milad Gougani et al;《2012 IEEE International Electric Vehicle Conference》;20120416;第1-7页 *
基于两相正交型开关霍尔转子位置预估方法;荀倩 等;《电工技术学报》;20160229;第31卷(第3期);第81-88页 *
步进电机期望控制脉冲的无抖动输出方法;张元飞 等;《电机与控制学报》;20180228;第22卷(第2期);第17-23页 *

Also Published As

Publication number Publication date
CN110988672A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN107942244B (en) New energy automobile motor locked-rotor fault detection method
EP1982409A1 (en) Method and circuit arrangement for determining the rotor position of an ec motor in the standstill state
DE102015120845B4 (en) Method for driving brushless motors, corresponding device, motor and computer program product
CN110380654B (en) Jitter anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor
CN112865021B (en) Motor protection method, device, equipment and storage medium
CN110988672B (en) Locked-rotor anti-interference method and device for signal acquisition of Hall sensor of permanent magnet synchronous motor
CN110806225B (en) System and method for detecting disconnection position of incremental encoder
DE102004043904A1 (en) Engine control unit
CN112630515A (en) Current sampling method, device and system and unmanned aerial vehicle
CN107561306B (en) Method for measuring rotating speed of wound-rotor motor based on rotor current
CN107482968B (en) control method for improving motion precision of direct current motor
CN110635726A (en) Speed detection method and detection circuit for non-inductive brushless motor
CN110890740A (en) Motor phase loss detection method
CN112067991B (en) Motor locked rotor detection method, detection device, terminal equipment and storage medium
CN212875697U (en) Speed regulation control circuit and seat
CN110661455A (en) Sensorless control device and control method for brushless direct current motor
CN110768591B (en) Switching method and device for double-mode control of brushless direct current motor
CN110311598B (en) Phase changing method and device for single-phase brushless direct current motor
CN113049956B (en) Locked rotor detection method and device of motor and terminal equipment
JP2001249154A (en) Disconnection detecting device for encoder and method for disconnection detection
JP5016637B2 (en) Stepping motor step-out detection device
US5185563A (en) Error detecting unit for a rotational detector
CN110799807B (en) Orthogonal encoder signal filtering method, device and system
CN114216488B (en) Control method, control system and equipment of rotary encoder
CN111682827B (en) Motor control method, device, terminal and storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210929

Address after: 152000 south of Xi'an East 10th Road, Guihua 2nd Road, Hadaqi industrial corridor, Anda City, Suihua City, Heilongjiang Province

Applicant after: BAIHENG PETROLEUM EQUIPMENT Co.,Ltd.

Address before: 212003, No. 2, Mengxi Road, Zhenjiang, Jiangsu

Applicant before: JIANGSU University OF SCIENCE AND TECHNOLOGY

GR01 Patent grant
GR01 Patent grant