Summary of the invention
The object of the invention is to overcome current brushless DC motor and produce position deviation because a variety of causes causes its Hall element, thereby cause the defect that motor production qualification rate declines and noise increases, a kind of thoughts brshless DC motor driving method that can thoroughly solve above defect is provided.
The present invention is achieved through the following technical solutions: a kind of thoughts brshless DC motor driving method, mainly comprises the following steps:
(1) start after power supply, system enters thoughts electric motor starting pattern automatically, then by the operation of thoughts drive pattern;
(2) system is according to the calculated signals motor speed n of Hall element;
(3) judge whether this motor speed n is greater than predetermined " thoughts " and drives the threshold rotation speed n that is transformed into " noninductive " driving
a
(4) if motor speed n> threshold rotation speed n
a, system is switched to noninductive drive pattern, and execution step (5), otherwise system determines whether and continues operation according to the operation control signal of input; If judge, continue to carry out, system reenters thoughts drive pattern, otherwise system is out of service;
(5) system is calculated motor speed n according to motor position signal;
(6) judge whether motor speed n is greater than predetermined " noninductive " and drives the threshold rotation speed n that is transformed into " thoughts " driving
b?
(7) if motor speed n>n
b, system continues to move under noninductive drive pattern; If n £ is n
b, according to running status control signal, again determine whether and continue operation, be that system is returned to step (1) and reentered thoughts drive pattern, otherwise system is out of service.
Wherein, " system is switched to noninductive drive pattern " described in step (4), specifically comprises the following steps:
(41) utilize thoughts position signalling or the detection to the zero crossing of back-emf, calculate motor speed and driving frequency, and by the electrical degree in default steady operation Dai electricity district, generate the width in lower half Dai electricity district;
(42) do you judge that half cycle frequency is greater than the frequency of default minimum speed?
(43) be, detect the zero crossing of negative half period or positive half cycle back-emf, calculate its frequency, and by the electrical degree in default steady operation Dai electricity district, generate the width in lower half Dai electricity district; No, system is out of service;
(44) do you judge that half cycle frequency is greater than the frequency of default minimum speed? to return to step (41); No, system is out of service.
" calculating motor driving frequency " described in step (41) and step (43) refers to the electric voltage frequency that calculates positive half cycle or negative half period back-emf according to formula, wherein, and t
newfor the time of the rotor-position that just detected, t
oldfor t
newthe upper time that rotor-position detects before.
" and by the width in the electrical degree generation lower half Dai electricity district in default steady operation Dai electricity district " described in step (41) and step (43) is according to formula T
hC/ (180 °/β
surely) calculate, wherein, β
surelyfor the electrical degree in default steady operation Dai electricity district, T
hCtime span for this half period.
In order to ensure result of use, the span of the width in the lower half Dai electricity district generating is 5 °~90 ° electrical degrees, and " thoughts " described in step (1) drive the threshold rotation speed n that is transformed into " noninductive " driving
abe greater than " noninductive " and drive the threshold rotation speed n that is transformed into " thoughts " driving
b.
A thoughts brshless DC motor driving method, mainly comprises the following steps:
(1) start after power supply, system enters thoughts electric motor starting pattern automatically, then by the operation of thoughts drive pattern;
(2) system is according to the calculated signals motor speed n of Hall element, and is recorded in the number of turns N of the rotor under thoughts drive pattern state;
(3) the Duty ratio control voltage u of judgement PWM
pwmwhether over default, from " thoughts ", be driven into the conversion threshold voltage u that " noninductive " drives
a, and the number of turns N rotating under thoughts drive pattern when motor surpasses default value N
a, proceed to step (4); If the value N that number of turns N< is default
a, and control signal requires to continue operation, the thoughts that return to step (1) drive; If control signal requires to stop, driving process stops;
(4) system enters noninductive drive pattern, and calculates motor speed n according to the position signalling of rotor;
(5) in noninductive driving process, if u
pwmhigher than the default noninductive threshold changing voltage u that is driven into thoughts driving
b, system continues to move under noninductive drive pattern; If u
pwmlower than the default noninductive threshold changing voltage u that is driven into thoughts driving
b, and control signal requires to continue operation, and the thoughts that proceed to step (1) drive, otherwise system is out of service.
The present invention compared with prior art, has the following advantages and beneficial effect:
(1) impact of the site error that the present invention not only can effectively reduce Hall element on the operational efficiency of brshless DC motor and noise, but also can effectively improve the yields that brshless DC motor is produced, thus reduce the production cost of motor;
(2) the present invention adopts the running current of optimization, can in the operational efficiency that improves brshless DC motor, reduce the operation noise of motor, can also reduce the impact of the site error of Hall element, the present invention can improve the reliability of brshless DC motor simultaneously;
(3) the present invention can be switched automatically according to external condition after starting between thoughts drive pattern and noninductive drive pattern, thereby automatically adjusts motor operating state.
Embodiment
Below in conjunction with embodiment, the present invention is described in further detail, but embodiments of the present invention are not limited to this.
Thoughts drive, its for full name be the abbreviation of " with the driving of hall position sensor ", and " noninductive driving " for full name be the abbreviation of " without the driving of hall position sensor ".
embodiment 1
As shown in Fig. 1~6, drive system of the present invention is connected to form by the coil of motor and the single-phase drive axle of a H type, wherein the single-phase drive axle of this H type consists of jointly field effect transistor MOT1, field effect transistor MOT2, field effect transistor MOT3 and field effect transistor MOT4, be that field effect transistor MOT1 and field effect transistor MOT3 are in series, field effect transistor MOT2 and field effect transistor MOT4 are in series, the drain D of field effect transistor MOT1 and field effect transistor MOT2 is connected with input voltage Vdd jointly, and field effect transistor MOT3 is connected rear ground connection with the source S of field effect transistor MOT4.The bridge contact (being tie point) of the bridge contact (being tie point) of field effect transistor MOT1 and field effect transistor MOT3 and field effect transistor MOT2 and field effect transistor MOT4 is connected with MOT_B with two port MOT_A of the armature winding of claw electrode synchronization electromotor respectively.
If Hall element is installed correct, it can send conducting and the disconnection of controlling 4 MOSFET pipes according to the polarity of back-emf (back-emf), make the winding of motor when its back-emf is positive, MOSFET pipe Mot_AH and Mot_BL conducting and Mot_BH & Mot_AL turn-offs, so that the electric current of winding is forward; When back-emf is when being negative, MOSFET pipe Mot_AH and Mot_BL turn-off and Mot_BH & Mot_AL conducting, so that the electric current of winding is negative sense.The electromagnetic torque that electric current produces that can guarantee like this to flow into coil be always on the occasion of, motor is rotated in the forward, the relation between its output signal and the back-emf of motor winding detects voltage waveform as shown in Figure 2 as schemed it.
There is no phase difference between the two.In this case, the signal that Hall element produces can allow MOSFET pipe Mot_AH and Mot_BL by only conducting when back-EMF is positive.Now, drive current is flow to and is flowed out by Mot_B by the port Mot_A of armature winding.When back-emf is when negative, the signal that Hall element produces can allow MOSFET pipe Mot_AL and Mot_BH conducting, and drive current is flow to and flowed out by Mot_A by port Mot_B.Rely on such type of drive, the electric current of forward is all forward with the electromagnetic torque that back-emf effect with forward makes motor produce in any sub-position all the time, thereby rotor can be by the forward electromagnetic torque institute Continuous Drive of motor.
If there is deviation the position of Hall element in motor, have part forward electric current can with the back-emf effect of negative sense, and have part negative sense electric current can with the back-emf effect of forward, produce negative torque.If there is once in a while the torque of negative sense when motor is rotated in the forward, can make deterioration of efficiency, vibration and the noise of motor increase.Now, the signal of sending of transducer as shown in Figure 3, at this time has phase difference between the output signal of Hall element and back-emf.In such cases, the electric current that MOSFET pipe produces in armature winding can produce in componental movement region the electromagnetic torque of negative sense.When the average of forward electromagnetic torque is greater than the average of negative sense torque, rotor still can be rotated in the forward, but the existence of negative sense electromagnetic torque increases the loss of motor and noise.
When rotor-position can be detected exactly, in order to produce forward torque, MOSFET pipe Mot_AH and Mot_BL are by only conducting when back-EMF is positive.Now, drive current is flow to and is flowed out by Mot_B by the port Mot_A of armature winding.When back-emf is when negative, now, MOSFET pipe Mot_AL and Mot_BH conducting, and drive current is flow to and is flowed out by Mot_A by port Mot_B.Rely on such type of drive, no matter the electric current in armature winding is for just or negative, and the torque that motor produces is positive forever.And, can pass through the judgement to the value of back-emf various piece, can guarantee that drive current is optimal current.
Back-emf changes and can obtain from its zero crossing (zero crossing point is called for short ZCP).The present invention adopts this technology to detect the situation of back-emf.Fig. 6 has shown the circuit diagram of realizing this technology.Adopt comparator can obtain the information of back-emf change in polarity.Can detect back-emf of short duration during, all MOSFET pipes are in off state.Now the voltage signal of armature winding port is the signal of back-emf.Therefore, during machine operation, motor works in respectively " Dai electricity district " and " driving district ", and near ZCP generation area, drive operation is carried out the position of motor and the detection of the polarity of back-emf in " Dai electricity district ".After the polarity discriminating of back-emf is clear, machine operation in " driving district " to produce driving torque.Because the value of back-emf in " Dai electricity district " is less, and this interval is shorter, and Dai electricity district is less on the impact of motor torque in existence.
Adopt the present invention, the span of the width in the lower half Dai electricity district generating is 5 °~90 ° electrical degrees, but the scope that its best width span is 5 °~30 ° of electrical degrees.Adopt after this noninductive technology, the commutation of drive circuit determines by rotor-position, so power frequency is that load by motor determines.When load is larger, motor speed is slower, and the switching frequency of electric current is just lower.
Aforementioned single-phase noninductive drive scheme is very effective in the normal operation of motor, but has problem in electric motor starting and low cruise, because now the back-emf of motor is very low, ZCP cannot be detected, and also just cannot realize the sensorless drive of motor.Therefore at electric motor starting and low cruise and when back-emf cannot be detected effectively, the present invention still considers to adopt traditional operating scheme that has transducer.
Technical scheme of the present invention is not only effective to monophase machine, and three phase electric machine and other polyphase machines are also had to same effect.Use time of the present invention, the driving of motor is comprised of two links, and thoughts drive and noninductive driving, and its idiographic flow is as follows:
(1) start after power supply, system enters thoughts electric motor starting pattern automatically, then by the operation of thoughts drive pattern;
(2) system is according to the calculated signals motor speed n of Hall element;
(3) judge whether this motor speed n is greater than predetermined " thoughts " and drives the threshold rotation speed n that is transformed into " noninductive " driving
a;
(4) if motor speed n> threshold rotation speed n
a, system is switched to noninductive drive pattern, and execution step (5), otherwise system determines whether and continues operation according to the operation control signal of input; If judge, continue to carry out, system reenters thoughts drive pattern, otherwise system is out of service;
(5) system is calculated motor speed n according to motor position signal;
(6) judge whether motor speed n is greater than predetermined " noninductive " and drives the threshold rotation speed n that is transformed into " thoughts " driving
bin actual setting up procedure, this threshold rotation speed n
bbe less than threshold rotation speed n
arotating speed;
(7) if motor speed n>n
b, system continues to move under noninductive drive pattern; If n £ is n
b, according to running status control signal, again determine whether and continue operation, be that system is returned to step (1) and reentered thoughts drive pattern, otherwise system is out of service.
When reality is used, described " thoughts " drive and are transformed into the threshold rotation speed n that " noninductive " drives
abe greater than " noninductive " and drive the threshold rotation speed n that is transformed into " thoughts " driving
b.And described " system is switched to noninductive drive pattern " specifically comprises the following steps:
(41) utilize thoughts position signalling or the detection to the zero crossing of back-emf, calculate motor speed and driving frequency, and by the electrical degree in default steady operation Dai electricity district, generate the width in lower half Dai electricity district;
(42) do you judge that half cycle frequency is greater than the frequency of default minimum speed?
(43) be, detect the zero crossing of negative half period or positive half cycle back-emf, calculate its frequency, and by the electrical degree in default steady operation Dai electricity district, generate the width in lower half Dai electricity district; No, system is out of service;
(44) do you judge that half cycle frequency is greater than the frequency of default minimum speed? to return to step (41); No, system is out of service.
Meanwhile, " the calculating motor driving frequency " described in step (41) and step (43) refers to according to formula
calculate the electric voltage frequency of positive half cycle or negative half period back-emf, wherein, t
newfor the time of the rotor-position that just detected, t
oldfor t
newthe upper time that rotor-position detects before.
" and by the width in the electrical degree generation lower half Dai electricity district in default steady operation Dai electricity district " described in step (41) and step (43) is according to formula T
hC/ (180 °/β
surely) calculate, wherein, β
surelyfor the electrical degree in default steady operation Dai electricity district, T
hCtime span for this half period.
embodiment 2
Embodiment 1 judges the transfer process between thoughts of the present invention and noninductive drive pattern according to motor speed, the present embodiment is to judge the transfer process between thoughts and noninductive drive pattern according to PWM Duty ratio control voltage, be that embodiment 1 adjusts start-up mode with motor speed, the present embodiment is to adjust with the control voltage of PWM.
As shown in Fig. 7~9, Fig. 8, Fig. 9 have represented respectively the waveform of the driving voltage when the duty ratio that drives district PWM is 100% and 50%, with the drive current that such method forms, are optimum naturally.
Its detailed process as shown in Figure 9, comprises the following steps:
(1) start after power supply, system enters thoughts electric motor starting pattern automatically, then by the operation of thoughts drive pattern;
(2) system is according to the calculated signals motor speed n of Hall element, and is recorded in the number of turns N of the rotor under thoughts drive pattern state;
(3) the Duty ratio control voltage u of judgement PWM
pwmwhether over default, from " thoughts ", be driven into the conversion threshold voltage u that " noninductive " drives
a, and the number of turns N rotating under thoughts drive pattern when motor surpasses default value N
a, proceed to step (4); If the value N that number of turns N< is default
a, and control signal requires to continue operation, the thoughts that return to step (1) drive; If control signal requires to stop, driving process stops;
(4) system enters noninductive drive pattern, and calculates motor speed n according to the position signalling of rotor;
(5) in noninductive driving process, if u
pwmhigher than the default noninductive threshold changing voltage u that is driven into thoughts driving
b, system continues to move under noninductive drive pattern; If u
pwmlower than the default noninductive threshold changing voltage u that is driven into thoughts driving
b, and control signal requires to continue operation, and the thoughts that proceed to step (1) drive, otherwise system is out of service.When actual motion, this threshold changing voltage u
bbe less than threshold voltage u
a.
As mentioned above, just can realize preferably the present invention.