Summary of the invention
Technical problem to be solved by this invention is to have the too responsive rotating speed obvious inconsistent defective in different environment, occasion that causes dc brushless motor of voltage in the range of linearity at MOSEFT pipe in the existing speed regulating method, proposes a kind of method for simulating continuous speed regulation of dc brushless motor.
Technical problem of the present invention is solved by the following technical programs.
The characteristics of the method for simulating continuous speed regulation of this dc brushless motor are: following steps are arranged successively:
(1) initialization
During start, the PWM of CPU processing unit is regulated output be defined as 0,, and set through being quantified as the motor speed R of at least two gears by the foreign frequency signal input part to PWM output the carrying out initialization of CPU processing unit
a, and each gear motor speed R
aCorresponding motor both end voltage difference fiducial value Δ V
Refa:
The described motor speed R that is quantified as at least two gears
aBe that the different frequency pulse signal of being imported by the foreign frequency signal input part is set the motor speed R of different gears
aPromptly provide the corresponding pulses frequency data by the foreign frequency signal input part, described pulse frequency data are corresponding one by one with the gear rotating speed of setting, are stored in the non-volatility memorizer reference rotation speed as speed governing through the motor speed of each gear of quantizing by the CPU processing unit.Described rotating speed gear is many more, and the change in rotational speed interval is also just more little, so that realize the effect near stepless speed regulation.
Described each gear motor speed R
aCorresponding motor both end voltage difference fiducial value Δ V
RefaBe, test respectively by the motor both end voltage of motor both end voltage acquisition component after, undertaken calculating motor both end voltage difference fiducial value Δ V after the analog-to-digital conversion by the gradual approaching A/D converter of CPU processing unit inside to the pairing stable operation of setting of each rotating speed gear of motor
Refa, institute's result calculated is stored in the non-volatility memorizer benchmark motor both end voltage difference as speed governing by the CPU processing unit.The reason that need test respectively is, dc brushless motor is numerous in variety, and performance differs, motor speed R
aWith corresponding motor both end voltage difference fiducial value Δ V
RefaBetween do not have specific corresponding related.
(2) outside input gear is judged
The frequency pulse signal enabling that described simulation stepless speed regulation process is set by the input of foreign frequency signal input part, promptly the frequency pulse signal of being set by its input provides the CPU processing unit to discern, the simulation stepless speed regulation process of control dc brushless motor,
If the CPU processing unit does not collect outside input frequency signal, just controlling rotating speed of motor is 0;
If the CPU processing unit collects the outside input frequency signal of corresponding certain gear rotating speed, be the corresponding rotating speeds gear with regard to execution in step (3), (4), (5) control motor speed;
(3) detect motor both end voltage difference currency Δ V
Described detection comprises gathers and calculates, by motor both end voltage acquisition component the pairing motor both end voltage of corresponding rotating speeds gear is gathered respectively, gradual approaching A/D converter by CPU processing unit inside carries out calculating motor both end voltage difference currency Δ V after the analog-to-digital conversion, and with the non-volatility memorizer that is stored in the CPU processing unit in the pairing motor both end voltage of each set position difference fiducial value Δ V
RefCompare;
(4) regulate PWM output
If the motor both end voltage difference currency Δ V that motor both end voltage acquisition component is gathered is less than normal, less than same gear terminal voltage difference fiducial value Δ V in the non-volatility memorizer that is stored in the CPU processing unit
Ref, i.e. Δ V<Δ V
RefShowing that motor speed is on the low side, is the bigger pwm signal of positive and negative peak pulse duration by CPU processing unit adjustment timer internal or inner PWM module output duty cycle just, and control break is connected on the linear impedance in the electric motor loop, rotating speed of motor is increased, till meeting the setting requirement;
If the motor both end voltage difference currency Δ V that motor both end voltage acquisition component is gathered is bigger than normal, greater than same gear terminal voltage difference fiducial value Δ V in the non-volatility memorizer that is stored in the CPU processing unit
Ref, i.e. Δ V>Δ V
RefShowing that motor speed is higher, is the littler pwm signal of positive and negative peak pulse duration by CPU processing unit adjustment timer internal or inner PWM module output duty cycle just, and control break is connected on the linear impedance in the electric motor loop, rotating speed of motor is reduced, till meeting the setting requirement;
(5) detect motor both end voltage difference currency Δ V again and whether import desired motor both end voltage difference fiducial value Δ V with the outside
RefApproximately equal, speed governing be until meeting the setting requirement,
If do not meet the setting requirement, difference is less than normal, shows that motor speed is on the low side, and needing increases, if difference is bigger than normal, shows that motor speed is higher, needs to reduce, and returns the PWM output that step (4) is regulated the CPU processing unit again,
If meet the setting requirement, speed governing finishes.
Technical problem of the present invention is solved by following further technical scheme.
The described different frequency pulse signal of being imported by the foreign frequency signal input part is to satisfy the following pulse signal that requires:
(1) frequency is f
0Pulse signal, corresponding zero span motor speed R
0=0, promptly the zero-span rotating speed is 0;
(2) frequency is f
aPulse signal, corresponding a shelves motor speed R
a
Wherein: f
a=(1+P%)
a* f
0
In the formula:
P% is the difference percentage number of the pulse frequency of described adjacent two gear rotating speed correspondences;
(3)100≤f
a+Δf≤20000(Hz),
Wherein: 100≤f
aDuring≤1000 (Hz), Δ f≤5 (Hz);
1000<f
aDuring≤10000 (Hz), Δ f≤50 (Hz);
10000<f
aDuring≤20000 (Hz), Δ f≤500 (Hz).
Preferably, f
0Be 184Hz, Δ f=5Hz,
The pulse frequency of zero-span rotating speed correspondence is 184 * 95%≤f
0+ Δ f≤184 * 105% are 174.8Hz~193.2Hz.
Preferably, to count P% be 15%~25% to the difference percentage of the pulse frequency of described adjacent two gear rotating speed correspondences.
Preferably, it is 1~25 that the gear that the corresponding pulses frequency data of described each gear rotating speed that comprises the zero-span rotating speed are divided is counted n+1, and described gear change in rotational speed is with certain step-length gradual change, is not direct saltus step.Be 0r/min~3000r/min at motor speed R for example, set 25 gear rotating speeds, then every gear rotating speed only differs 3000r/min/25=120r/min, and so little rotation speed change can be simulated the effect of stepless speed regulation fully, when setting the rotating speed gear from R
a=1000r/min changes to R
A+1During=1120r/min, rotating speed of motor is with | R
a'-R
A+1|/2 step-length is increased to 1120r/min gently from 1000r/min,
Wherein:
R
a' be the current rotating speed that the collection of motor a gear is calculated, by motor both end voltage acquisition component the current both end voltage value of motor is delivered to the CPU processing unit, calculate the pairing rotating speed of current differential pressure by the CPU processing unit;
R
A+1Be the reference rotation speed of motor a+1 gear initial setting, pairing motor both end voltage difference fiducial value Δ V
RefBe stored in the non-volatility memorizer of CPU processing unit.
Described motor speed is adjusted to the a+1 gear from a gear, is undertaken by following equation:
If R
a'<R
a, Δ V
A+1<Δ V
Ref (a+1),
R
a+1′=R
a′+(R
a+1-R
a)×(ΔV
ref(a+1)-ΔV
a+1)/2;
If R
A+1'>R
A+1, Δ V
A+1>Δ V
Ref (a+1),
R
a+1′=R
a′-(R
a+1-R
a)×(ΔV
a+1-ΔV
ref(a+1))/2;
In the equation:
R
a' be the current rotating speed that the collection of motor a gear is calculated, by motor both end voltage acquisition component the current both end voltage value of motor is delivered to the CPU processing unit, calculate the pairing rotating speed of current differential pressure by the CPU processing unit;
R
aBe the reference rotation speed of motor a gear initial setting, obtain different reference rotation speeds, and test the pairing motor both end voltage of different reference rotation speeds difference fiducial value Δ V through the manual testing
Ref, the motor both end voltage difference fiducial value Δ V that test is obtained
RefBe stored in the non-volatility memorizer of CPU processing unit;
Δ V
RefaIt is motor a gear rotating speed motor both end voltage difference fiducial value, the tachometer value of this fiducial value and initial setting is one to one, different motor speeds, motor both end voltage difference is different, manually the pressure reduction under the motor different rotating speeds is tested, and with different gear motor both end voltage difference fiducial value Δ V
RefaBe stored in the non-volatility memorizer of CPU processing unit;
Δ V
aIt is motor a gear rotating speed motor both end voltage difference currency.
Be set in the interval t of governing time and regulate a motor speed, the interval t value of described governing time is regulated according to the state of different dc brushless motors own.
Preferably, the interval t of described governing time is 0.2 second~0.5 second, and most of dc brushless motors can be stable in 0.2 second~0.5 second.
Described speed governing requires to be the current actual speed R after the speed governing until meeting to set
a' with set reference rotation speed R
aBetween error range be | R
a'-R
a|/R
a<1%, promptly | Δ V
a-Δ V
Refa|/Δ V
Refa<1%.Meet the requirement of above-mentioned inequality, motor speed is regulated and is stopped, otherwise the motor operation can not stablized.
Δ V
aBe the current both end voltage difference of motor a gear;
Δ V
RefaBe stored in the motor both end voltage difference fiducial value of manually setting and solidifying in the non-volatility memorizer of CPU processing unit for motor a gear.
Described pwm signal by CPU processing unit adjustment output is that frequency is constant, duty ratio is the variable pulse signal of positive and negative peak pulse duration.
The linear impedance that described control break is connected in the electric motor loop is to change the input direct voltage of power switch pipe.
Compared with prior art, advantage and beneficial effect that the present invention had are as follows:
The inventive method quantizes motor speed, motor speed and pairing motor both end voltage difference to set position are tested, test result is stored in the non-volatility memorizer of CPU processing unit as the benchmark of speed governing, the conducting voltage of constantly regulating power switch pipe makes motor both end voltage difference reach consistent.Even motor long-term operation and generating heat, the power switch pipe impedance variation is still very little, owing to reduce the ladder that motor speed changes significantly, with the supporting use of gradual approaching A/D converter spare, can the stepless speed regulation of analog DC brushless electric machine, effectively remedy in the existing speed regulating method power switch pipe exist the range of linearity in voltage too sensitivity cause that the rotating speed of dc brushless motor is in varying environment, obvious inconsistent defective in the occasion, it is strong to have the stepless speed regulation consistency, lower-cost advantage, generally in 5 seconds~6 seconds, can speed governing finish, and velocity variations is an increasing or decreasing gradually, does not have a variation of getting over property of rank or jumping characteristic.The range of application of the inventive method comprises the stepless speed regulation of the dc brushless motor that various air blast, cooling fan and radiator fan adopts.
Embodiment
A kind of BYD F3 type automotive air blowers method for simulating continuous speed regulation of dc brushless motor
The dc brushless motor that adopts is powered by automobile storage battery, and rated current is 15A, rated voltage 12V.Method for simulating continuous speed regulation has following steps successively:
(1) initialization
During start, the PWM of CPU processing unit is regulated output be defined as 0,, and set through being quantified as the motor speed R of at least two gears by the foreign frequency signal input part to PWM output the carrying out initialization of CPU processing unit
a, and each gear motor speed R
aCorresponding motor both end voltage difference fiducial value Δ V
Refa:
Be interest of clarity, this embodiment is set motor speed and is quantified as six gears, the 0th gear to the 5 gears, and the 0th gear motor does not rotate, rotating speed R
0=0r/min, the 5th gear motor speed R
5=2950r/min, pulse signal generator divide six grades to provide the frequency data of external input signal as shown in table 1, and the quantized result of table 1 is stored in the non-volatility memorizer of CPU processing unit, with the supporting use of gradual approaching A/D converter spare.
Table 1
Gear |
Rotating speed (r/min) |
Frequency (Hz) |
0 |
0 |
0 |
1 |
1150 |
184±5 |
Gear |
Rotating speed (r/min) |
Frequency (Hz) |
2 |
1700 |
221±7 |
3 |
2100 |
265±9 |
4 |
2413 |
318±10 |
5 |
2950 |
382±15 |
To the motor speed of above set position and set the interval t=0.3 of governing time in second pairing motor both end voltage difference carry out actual test, it is as shown in table 2 to set the pairing motor both end voltage of automotive air blowers six gear rotating speeds difference fiducial value, and table 2 test result is stored in the non-volatility memorizer of CPU processing unit.
Table 2
Gear |
Rotating speed (r/min) |
Current of electric (A) |
Motor both end voltage difference fiducial value (V) |
0 |
0 |
0 |
0 |
1 |
1150 |
3.1 |
2.5 |
2 |
1700 |
5.6 |
4.1 |
3 |
2100 |
7.6 |
6.2 |
4 |
2413 |
9.8 |
9.0 |
5 |
2950 |
14.0 |
12.0 |
Table 2 data are provided by the manual testing.
When setting the motor first gear rotating speed, the input voltage that must control MOSFET is 2.0V, makes the voltage difference at motor two ends reach 2.5V;
When setting the motor second gear rotating speed, the input voltage that must control MOSFET is 2.2V, makes the voltage difference at motor two ends reach 4.1V;
When setting motor third gear rotating speed, the input voltage that must control MOSFET is 2.5V, makes the voltage difference at motor two ends reach 6.2V;
When setting motor fourth speed position rotating speed, the input voltage that must control MOSFET is 2.8V, makes the voltage difference at motor two ends reach 9.0V;
When setting motor third gear rotating speed, the input voltage that must control MOSFET is 3.1V, makes the voltage difference at motor two ends reach 12.0V.
(2) outside input gear is judged
The frequency pulse signal enabling that described simulation stepless speed regulation process is set by the input of foreign frequency signal input part, promptly the frequency pulse signal of being set by its input provides the CPU processing unit to discern, the simulation stepless speed regulation process of control dc brushless motor,
If the CPU processing unit does not collect outside input frequency signal, just controlling rotating speed of motor is 0;
If the CPU processing unit collects the outside input frequency signal of corresponding certain gear rotating speed, be the corresponding rotating speeds gear with regard to execution in step (3), (4), (5) control motor speed;
(3) detect motor both end voltage difference currency Δ V
Described detection comprises gathers and calculates, by motor both end voltage acquisition component the pairing motor both end voltage of corresponding rotating speeds gear is gathered respectively, gradual approaching A/D converter by CPU processing unit inside carries out calculating motor both end voltage difference currency Δ V after the analog-to-digital conversion, and with the non-volatility memorizer that is stored in the CPU processing unit in the pairing motor both end voltage of each set position difference fiducial value Δ V
RefCompare;
(4) regulate PWM output
Suppose that the user has set the outside input frequency signal that the foreign frequency signal input part is imported the second gear rotating speed, making the current rotating speed of motor is the second gear rotating speed, regulate the outside input frequency signal of foreign frequency signal input part input third gear rotating speed now, promptly will increase motor speed.
The pwm signal of setting again by CPU processing unit adjustment output is, fixed-frequency is that 450+20Hz, duty ratio are that positive and negative peak pulse duration is 4: 1 variable pulse signals, the dc voltage value that inputs to the input of power switch pipe after process integration, the voltage division processing is 2.4V, motor both end voltage difference currency Δ V
3=5.1V<Δ V
Ref-3=6.2V, current actual speed R
3' be 1950r/min<R
3=2100r/min, rotating speed is on the low side, be that positive and negative peak pulse duration is 5: 1 a pwm signal just by CPU processing unit adjustment timer internal or inner PWM module output duty cycle, the dc voltage value that inputs to the input of power switch pipe after process integration, the voltage division processing is 2.6V, control break is connected on the linear impedance in the electric motor loop, makes rotating speed of motor increase to R
3'=2090r/min, motor both end voltage difference currency is changed into 6.1V, the current actual speed R after speed governing
3' with set reference rotation speed R
3Between error range be | R
3'-R
3|/R
3=0.5%<1%, promptly meet control rotating speed error less than 1% requirement till, PWM regulates first and finishes;
More than be that motor speed is on the low side, i.e. the motor both end voltage difference currency Δ V of motor both end voltage acquisition component collection is less than same gear terminal voltage difference fiducial value Δ V in the non-volatility memorizer that is stored in the CPU processing unit
Ref, i.e. Δ V<Δ V
RefThe time PWM output regulate;
Higher as for motor speed, i.e. the motor both end voltage difference currency Δ V of motor both end voltage acquisition component collection is greater than same gear terminal voltage difference fiducial value Δ V in the non-volatility memorizer that is stored in the CPU processing unit
Ref, i.e. Δ V>Δ V
RefThe time PWM output regulate, similar with above explanation, just change corresponding data.Specify as follows:
Suppose that the user has set the outside input frequency signal that the foreign frequency signal input part is imported the second gear rotating speed, making the current rotating speed of motor is the second gear rotating speed, regulate the outside input frequency signal that the foreign frequency signal input part is imported the first gear rotating speed now, promptly will reduce motor speed.
The pwm signal of setting again by CPU processing unit adjustment output is, fixed-frequency is that 450+20Hz, duty ratio are that positive and negative peak pulse duration is 3: 1 variable pulse signals, the dc voltage value that inputs to the input of power switch pipe after process integration, the voltage division processing is 2.4V, motor both end voltage difference currency Δ V
1=2.8V>Δ V
Ref-1=2.5V, current actual speed R
1' be 1250r/min>R
1=1150r/min, rotating speed is higher, be that positive and negative peak pulse duration is 2: 1 a pwm signal just by CPU processing unit adjustment timer internal or inner PWM module output duty cycle, the dc voltage value that inputs to the input of power switch pipe after process integration, the voltage division processing is 2.0V, control break is connected on the linear impedance in the electric motor loop, makes rotating speed of motor be reduced to R
1'=1149r/min, motor both end voltage difference currency is changed into 2.5V, the current actual speed R after speed governing
1' with set reference rotation speed R
1Between error range be | R
1'-R
1|/R
1=0.1%<1%, promptly meet the error of controlling rotating speed less than 1% requirement, PWM regulates first and finishes;
(5) detect motor both end voltage difference currency Δ V again and whether import desired motor both end voltage difference fiducial value Δ V with the outside
RefApproximately equal, speed governing be until meeting the setting requirement,
If do not meet the setting requirement, difference is less than normal, shows that motor speed is on the low side, and needing increases, if difference is bigger than normal, shows that motor speed is higher, needs to reduce, and returns the PWM output that step (4) is regulated the CPU processing unit again,
If meet the setting requirement, speed governing finishes.
For example to collect the gear of outside input frequency signal be first grade to CPU: frequency signal is 184Hz, the voltage difference at the motor two ends of motor speed correspondence is 2.5V, the rotating speed that is solidificated in first grade in motor in the non-volatile memory block of CPU processing unit is 1150 rev/mins, the CPU processing unit can constantly be obtained the motor both end voltage of sending here from motor both end voltage acquisition component and calculate pressure reduction, if pressure reduction does not reach 2.5V, the CPU processing unit can be regulated the PWM output pressure reduction until the motor two ends and be reached 2.5V, till 1150 rev/mins of rotating speeds that make motor speed be adjusted to first gear reach.
On probation show that this method for simulating continuous speed regulation is used for the speed governing of BYD F3 type automotive air blowers, setting under the interval t=0.3 of the governing time condition of second, if motor both end voltage difference currency Δ V and same gear terminal voltage difference fiducial value Δ V
RefDifference is very little, can speed governing finish in 1 second, if Δ V=Δ V
Ref, needn't regulate, if Δ V and Δ V
RefDifference is very big, also can speed governing finish in 5 seconds~6 seconds, and wind speed change to be increasing or decreasing gradually not have the variation of getting over property of rank or jumping characteristic.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to the scope of patent protection that the present invention is determined by claims of being submitted to.