CN107482968B - control method for improving motion precision of direct current motor - Google Patents
control method for improving motion precision of direct current motor Download PDFInfo
- Publication number
- CN107482968B CN107482968B CN201710764888.XA CN201710764888A CN107482968B CN 107482968 B CN107482968 B CN 107482968B CN 201710764888 A CN201710764888 A CN 201710764888A CN 107482968 B CN107482968 B CN 107482968B
- Authority
- CN
- China
- Prior art keywords
- hall signal
- signal
- hall
- level state
- falling edge
- 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
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P7/00—Arrangements for regulating or controlling the speed or torque of electric DC motors
- H02P7/0094—Arrangements for regulating or controlling the speed or torque of electric DC motors wherein the position is detected using the ripple of the current caused by the commutator
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Motors That Do Not Use Commutators (AREA)
Abstract
the invention discloses a control method for improving the motion precision of a direct current motor, which comprises the following steps: (a) when the rising edge and the falling edge of the Hall signal A or the Hall signal B are normal trigger signals respectively, the counter is increased by one counting unit, and level state values of the Hall signal A and the Hall signal B corresponding to the Hall signal A or the Hall signal B in front of the rising edge and the falling edge are recorded; and if the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A or the Hall signal B do not correspond to the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A or the Hall signal B as the normal trigger signal, the signal is an abnormal trigger signal, and the counter is decreased by one counting unit. The invention optimizes the acquisition of Hall signals, thereby realizing the accurate control of the motion precision of the direct current motor.
Description
Technical Field
the invention belongs to the technical field of electromechanical control, and particularly relates to a control method for improving the motion precision of a direct current motor.
background
the motor can output a Hall signal every time the motor rotates a preset angle, and the rotating speed, the running step length and the like of the motor can be calculated by counting the number of the Hall signals output by the motor, so that the motor is correspondingly controlled. The motor is controlled by the controller, and Hall signals output by the motor are collected by the controller. In the prior art, each time a controller collects a group of rising edges and falling edges, the controller considers that the motor outputs one Hall signal, and the number of the Hall signals output by the motor is counted by counting the number of the rising edges and the falling edges. The signal processing mode is that the edge triggering of two paths of Hall signals is used as the basis of counting, thereby realizing the control of the motor.
However, under the influence of the performance and working environment of the motor, an interference signal (for example, a narrow pulse signal) is often mixed in the hall signal output by the motor, and when the hall signal has the interference signal and the motor rotates forward and reversely, the hall signal is counted for many times, and as a result, the counting deviation is increased. Therefore, the number of hall signals obtained by counting by adopting the method for detecting the rising edge and the falling edge cannot accurately reflect the number of hall signals actually output by the motor, so that errors occur in the motor rotating speed or the operation step length and the like calculated according to the counting result, and the subsequent control errors of the motor are caused.
Disclosure of Invention
in order to solve the problems, the invention provides a control method for improving the motion precision of a direct current motor, which optimizes the acquisition of Hall signals and realizes the precise control of the motion precision of the direct current motor.
the technical scheme of the invention is as follows: a control method for improving motion precision of a direct current motor comprises the following steps:
(a) when the rising edge and the falling edge of the Hall signal A are normal trigger signals respectively, the counter increases a counting unit, and level state values of the Hall signal A and the Hall signal B corresponding to the Hall signal A in the front of the rising edge and the falling edge are recorded;
(b) when the rising edge and the falling edge of the Hall signal B are normal trigger signals respectively, the counter increases a counting unit, and level state values of the Hall signal A and the Hall signal B corresponding to the Hall signal B in front of the rising edge and the falling edge are recorded;
(c) if the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A do not correspond to the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A as a normal trigger signal, the signal is an abnormal trigger signal, and the counter is decreased by one counting unit;
(d) And if the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal B do not correspond to the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal B as the normal trigger signal, the signal is an abnormal trigger signal, and the counter is decreased by one counting unit.
The invention judges the direction of the rising edge and the falling edge of the Hall signal A and the Hall signal B, if the direction judgment is accurate, the signals are normal trigger signals, for example, if the normal trigger signals are forward rotation trigger signals, the abnormal trigger signals are reverse rotation trigger signals.
Preferably, the method for detecting the normal trigger signal in the step (a) and the step (b) includes:
(1) Reading a high level state value and a low level state value of the Hall signal A and the Hall signal B as initial values;
(2) when the rising edge of the Hall signal A is detected, judging that the Hall signal A is a normal trigger signal according to the high-level state value and the low-level state value of the Hall signal A in the step (1), increasing a counting unit by the numerical value of a counter, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the rising edge of the Hall signal A at this time;
(3) When the rising edge of the Hall signal B is detected, judging that the Hall signal B is a normal trigger signal according to the Hall signal A and the level state value of the Hall signal B recorded in the step (2), increasing a counting unit by the counter value, and recording the Hall signal A and the level state value of the Hall signal B corresponding to the rising edge of the Hall signal B at the time;
(4) when the falling edge of the Hall signal A is detected, judging that the Hall signal A is a normal trigger signal according to the level state values of the Hall signal A and the Hall signal B recorded in the step (3), increasing a counting unit by the counter value, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A at this time;
(5) and (4) when the falling edge of the Hall signal B is detected, judging that the Hall signal B is a normal trigger signal according to the Hall signal A and the level state value of the Hall signal B recorded in the step (4), increasing a counting unit by the counter value, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal B at this time.
Compared with the prior art, the invention has the beneficial effects that:
compared with the traditional edge counting, the method increases one-time direction judgment, thereby realizing the filtering effect, having more accurate counting, and avoiding the accumulated deviation of pulse calculation caused by external interference or repeated switching of positive and negative rotation. Therefore, the invention optimizes the acquisition of the Hall signal, thereby realizing the accurate control of the motion precision of the direct current motor.
Drawings
fig. 1 is a waveform diagram of a hall signal without jitter and interference when a clock motor of the present invention is operated.
FIG. 2 is a waveform diagram of Hall signals when the motor of the present invention is in operation and is subject to interference.
fig. 3 is a waveform diagram of hall signals under the condition of commutation jitter when the motor of the invention is in operation.
Detailed Description
Example 1 (case without jitter and interference)
When the motor is operated in the forward direction and no vibration or interference exists, fig. 1 is a waveform diagram of a hall signal under the condition of no vibration or interference. The detection steps are as follows:
(1) Reading a high level state value and a low level state value of the Hall signal A and the Hall signal B as initial values;
(2) When the rising edge of the Hall signal A is detected, judging that the Hall signal A is a forward rotation trigger signal according to the high level state value and the low level state value of the Hall signal A in the step (1), increasing a counting unit by the numerical value of a counter, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the rising edge of the Hall signal A at this time;
(3) When the rising edge of the Hall signal B is detected, judging that the Hall signal B is a forward rotation trigger signal according to the Hall signal A and the level state value of the Hall signal B recorded in the step (2), increasing a counting unit by the counter value, and recording the Hall signal A and the level state value of the Hall signal B corresponding to the Hall signal B before the rising edge;
(4) When the falling edge of the Hall signal A is detected, judging that the Hall signal A is a forward rotation trigger signal according to the level state values of the Hall signal A and the Hall signal B recorded in the step (3), increasing a counting unit by the counter value, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A at this time;
(5) And (4) when the falling edge of the Hall signal B is detected, judging that the Hall signal B is a forward rotation trigger signal according to the Hall signal A and the level state value of the Hall signal B recorded in the step (4), increasing a counting unit by the counter value, and recording the Hall signal A and the level state value of the Hall signal B corresponding to the falling edge of the Hall signal B at the time.
example 2 (case of interference)
when the motor of the embodiment is operated in the forward rotation mode and encounters interference, fig. 2 is a waveform diagram of a hall signal under the interference condition, and the detection steps are as follows:
The pulse state of the Hall signal A and the pulse state of the Hall signal B before the interference signal 1 are that the Hall signal A is in a high level position state, the Hall signal B is in a low level position state, when the Hall signal B receives a rising edge signal of the interference signal 1, the Hall signal A and the Hall signal B are both in the high level position state, the state of the last forward rotation trigger signal is compared, the forward rotation signal is judged, so that the counter is increased by a counting unit, and the signal state values of the Hall signal A and the Hall signal B at this time are recorded again; then detecting the falling edge of the Hall signal B, comparing the state of the last forward rotation trigger signal, and judging that the falling edge is the reverse rotation trigger signal, so that the counter is reduced by one unit, and re-recording the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal B; the interference section is followed by the rising edge of the hall signal B, and likewise, a forward rotation trigger signal is detected, and the counter is incremented by one count unit.
The interference section of the interference signal 2 is preceded by a state that the Hall signal A and the Hall signal B are both in low level positions, the first interference trigger is the rising edge of the Hall signal A, the signal can be judged to be a forward trigger signal by comparing the state of the forward trigger signal at the last time, the counter is added with a counting unit and then is the falling edge of the Hall signal A, the same method is adopted to compare to obtain a reverse trigger signal, the counter subtracts one counting unit and then is the rising edge of the Hall signal A, and the counter is added with one unit.
from the above, the final count of the interference signals 1 and 2 is increased by one count unit and then decreased by another count unit, as in the case of no interference.
Example 3 (case of reversing with dithering)
if the motor is commutating during operation in embodiment 1, fig. 3 is a waveform diagram of hall signals during commutation jitter of the motor.
in this embodiment, as shown in fig. 3, before the phase-change jitter state, the states of the hall signal a and the hall signal B are the state where the hall signal a is at the high level and the state where the hall signal B is at the low level, respectively. The jittering signals are all signals of the Hall signal B and are respectively a rising edge, a falling edge, a rising edge and a falling edge. Also, the contrast state is normal rotation, reverse rotation, normal rotation, reverse rotation. The total number of count units counted by the final counter remains unchanged as the positive rotation increases and the negative rotation decreases.
Claims (1)
1. A control method for improving motion precision of a direct current motor is characterized by comprising the following steps:
(a) When the rising edge and the falling edge of the Hall signal A are normal trigger signals respectively, the counter increases a counting unit, and level state values of the Hall signal A and the Hall signal B corresponding to the Hall signal A in the front of the rising edge and the falling edge are recorded;
(b) When the rising edge and the falling edge of the Hall signal B are normal trigger signals respectively, the counter increases a counting unit, and level state values of the Hall signal A and the Hall signal B corresponding to the Hall signal B in front of the rising edge and the falling edge are recorded;
(c) If the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A do not correspond to the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A as a normal trigger signal, the signal is an abnormal trigger signal, and the counter is decreased by one counting unit;
(d) If the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal B do not correspond to the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal B as a normal trigger signal, the signal is an abnormal trigger signal, and the counter is decreased by one counting unit;
The method for detecting the normal trigger signal in the step (a) and the step (b) comprises the following steps:
(1) reading a high level state value and a low level state value of the Hall signal A and the Hall signal B as initial values;
(2) When the rising edge of the Hall signal A is detected, judging that the Hall signal A is a normal trigger signal according to the high-level state value and the low-level state value of the Hall signal A in the step (1), increasing a counting unit by the numerical value of a counter, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the rising edge of the Hall signal A at this time;
(3) when the rising edge of the Hall signal B is detected, judging that the Hall signal B is a normal trigger signal according to the Hall signal A and the level state value of the Hall signal B recorded in the step (2), increasing a counting unit by the counter value, and recording the Hall signal A and the level state value of the Hall signal B corresponding to the rising edge of the Hall signal B at the time;
(4) When the falling edge of the Hall signal A is detected, judging that the Hall signal A is a normal trigger signal according to the level state values of the Hall signal A and the Hall signal B recorded in the step (3), increasing a counting unit by the counter value, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal A at this time;
(5) and (4) when the falling edge of the Hall signal B is detected, judging that the Hall signal B is a normal trigger signal according to the Hall signal A and the level state value of the Hall signal B recorded in the step (4), increasing a counting unit by the counter value, and recording the level state values of the Hall signal A and the Hall signal B corresponding to the falling edge of the Hall signal B at this time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710764888.XA CN107482968B (en) | 2017-08-30 | 2017-08-30 | control method for improving motion precision of direct current motor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710764888.XA CN107482968B (en) | 2017-08-30 | 2017-08-30 | control method for improving motion precision of direct current motor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107482968A CN107482968A (en) | 2017-12-15 |
CN107482968B true CN107482968B (en) | 2019-12-17 |
Family
ID=60603236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710764888.XA Active CN107482968B (en) | 2017-08-30 | 2017-08-30 | control method for improving motion precision of direct current motor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107482968B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109780983A (en) * | 2019-03-21 | 2019-05-21 | 安图实验仪器(郑州)有限公司 | Stepper motor real time position detection system and its method with Adding Direction-Judging Function |
CN110142965B (en) * | 2019-05-17 | 2021-07-27 | 珠海赛纳三维科技有限公司 | Servo motor drive circuit and 3D printing device |
CN116080745A (en) * | 2023-01-05 | 2023-05-09 | 北京汽车集团越野车有限公司 | Control method capable of improving position accuracy of electric adjustment steering column and automobile |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227162A (en) * | 2007-01-17 | 2008-07-23 | 凌阳科技股份有限公司 | Method and apparatus for driving under random connection and automatically distinguishing phase of brushless DC motor |
CN105790652A (en) * | 2016-04-28 | 2016-07-20 | 广东威灵电机制造有限公司 | Hall signal identification method used for motor control system and apparatus thereof |
CN107092956A (en) * | 2017-04-27 | 2017-08-25 | 佛山三电智能科技有限公司 | A kind of incremental encoder counting device |
CN108226563A (en) * | 2018-01-08 | 2018-06-29 | 燕山大学 | A kind of motor speed measuring method and apparatus |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6498414B2 (en) * | 2014-10-22 | 2019-04-10 | ローム株式会社 | Fan motor drive device and cooling device and electronic equipment using the same |
-
2017
- 2017-08-30 CN CN201710764888.XA patent/CN107482968B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227162A (en) * | 2007-01-17 | 2008-07-23 | 凌阳科技股份有限公司 | Method and apparatus for driving under random connection and automatically distinguishing phase of brushless DC motor |
CN105790652A (en) * | 2016-04-28 | 2016-07-20 | 广东威灵电机制造有限公司 | Hall signal identification method used for motor control system and apparatus thereof |
CN107092956A (en) * | 2017-04-27 | 2017-08-25 | 佛山三电智能科技有限公司 | A kind of incremental encoder counting device |
CN108226563A (en) * | 2018-01-08 | 2018-06-29 | 燕山大学 | A kind of motor speed measuring method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107482968A (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107482968B (en) | control method for improving motion precision of direct current motor | |
CN108457552B (en) | Vehicle window position detection device and detection method | |
US5663616A (en) | Noise tolerant brushless motor position monitoring apparatus and method | |
US7649332B2 (en) | Motor controller having counter to count position error events and method of motor control using same | |
CN103018474A (en) | FPGA (Field Programmable Gata Array)-based motor speed and rotating direction detecting device | |
CN101176252B (en) | Brushless motor drive circuit and motor having the same | |
JP5309951B2 (en) | Rotation speed detection method | |
US6845337B2 (en) | Method for correcting the determination of the rotating position of a drive shaft of a commutated direct current motor | |
CN109782013B (en) | Motor speed measuring method and device, readable storage medium and electric equipment | |
CN212875697U (en) | Speed regulation control circuit and seat | |
CN111181469A (en) | Servo driver position feedback abnormal jump multi-period joint detection processing method | |
US20160149526A1 (en) | Motor drive controller and control method of motor drive controller | |
US7092828B2 (en) | Method for detecting communication impulses of a fan motor and circuit arrangement for carrying out said method | |
CN104767467A (en) | Method for calibrating mechanical zero of motor | |
JP2001249154A (en) | Disconnection detecting device for encoder and method for disconnection detection | |
CN110601605A (en) | Method, device and system for controlling motor | |
CN109150026B (en) | Phase changing method for brushless motor without position sensor | |
US6310458B1 (en) | Blended velocity estimation | |
JP5715808B2 (en) | Motor control circuit | |
JP4651984B2 (en) | Encoder counter | |
TWI690146B (en) | Motor drive circuit, drive method, vibration device and electronic device | |
CN112858715A (en) | Method for solving interference of high-frequency signal during sampling of rotating speed of direct-current variable-frequency motor | |
CN106208843B (en) | Motor drive circuit, vibration device, and electronic apparatus | |
KR101077756B1 (en) | Apparatus for detecting error using Z phase pulse signal | |
JPS58184508A (en) | Position detecting device |
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 |