Utilize controller for electric vehicle to the recognition methods of dc brushless motor winding direction
Technical field
The invention belongs to a kind of control method in electric motor car control appliance field, especially be applied to a kind of controller for electric vehicle that utilizes to the recognition methods of dc brushless motor winding direction
Background technology
At present, with electric power as the motor vehicle of power resources due to environmental protection, the simple and practical favor that more and more is subject to the consumer on market, the technology of the maincenter control section of motor vehicle---electric controller is also maked rapid progress, the common electric bicycle controller with anti-theft feature in market, its antitheft principle is to make the motor locking and can not stolenly steal, yet the conventional way of existing anti-theft technique is: its Anti-theft motor locking function must be in advance accurately definite motor winding direction can realize; If give in the process of locking motor and inputted wrong winding direction information, will make the locking control ring become positive feedback and cause driving by negative feedback, cause the accident of great loss of personal property.Determine in controller for electric vehicle in the market that the motor winding direction generally adopts the mode of hardware setting, namely select the disconnection of line or the I/O pin level that closure is come control single chip computer (control chip in controller for electric vehicle) by one, set motor winding direction information in artificial mode.This mode not only needs to take the single-chip processor i/o resource, and need to control by external connector in the outside of controller for electric vehicle, if the external plug-in component quality is unstable or related personnel's misoperation, inputted wrong winding direction information, and cause and the accident of driving so just greatly increase potential safety hazard.
Motor winding direction of the prior art problem identificatioin, it is a more scabrous technical problem, it has directly limited the realization of controller for electric vehicle to the simple and effective of electric motor car anti-theft feature, and becoming affects the guardian technique defective that the electric motor car industry technology rises overally.
Summary of the invention
The objective of the invention is to overcome deficiency of the prior art, a kind of practicality and high efficiency, safe and reliable is provided, can realize well the dc brushless motor winding direction recognition methods of electric motor car anti-theft feature.
It is to take following technical scheme to realize that the present invention solves its technical problem:
The controller for electric vehicle that utilizes of the present invention is to the recognition methods of dc brushless motor winding direction, comprise motor hall signal detecting step, motor phase discriminating step, the winding direction determining step, described winding direction determining step is: at first utilize the power tube of controller for electric vehicle to motor winding forward and reverse power-on servicing successively, during then respectively to forward and reverse power-on servicing, the winding electric flow valuve is sampled, and draws the motor winding direction after the size of winding electric flow valuve during finally by the more forward and reverse power-on servicing of mistake.
Its technical scheme can also comprise: the described power tube that utilizes controller for electric vehicle is 8-20 μ s to the time of motor winding forward and reverse power-on servicing successively;
The described power tube that utilizes controller for electric vehicle is 10 μ s to the time of motor winding forward and reverse power-on servicing successively;
The continuous quadratic as a result that in described winding direction determining step, judgement draws the motor winding direction re-starts motor hall signal detecting step and motor phase and differentiates step not simultaneously;
In described winding direction determining step, judgement draws the result continuous ten times of motor winding direction when identical, draws final motor winding direction;
Described motor phase differentiates that recording motor phase in step draws final motor winding direction when consistent.
The present invention can identify the motor winding direction automatically, and sensitivity, reliability are high, fast response time, and the method that can replace common hardware setting fully is that electric machine controller is set the motor winding direction; Be used in conjunction with the antitheft locking function of electric bicycle controller, in the situation that the alarm action can be accurately and identified in time result, call for antitheft locking circuit; With respect to the method for hardware setting, the present invention has avoided because the improper accident that causes locking program driving is set fully without human intervention.
Description of drawings
Fig. 1 is process block diagram of the present invention
Embodiment
Narrate embodiments of the invention below in conjunction with physical circuit figure given in accompanying drawing.
Referring to Fig. 1,
The controller for electric vehicle that utilizes of the present invention is to the recognition methods of dc brushless motor winding direction, comprise motor hall signal detecting step, motor phase discriminating step, the winding direction determining step, described winding direction determining step is: at first utilize the power tube of controller for electric vehicle to motor winding forward and reverse power-on servicing successively, during then respectively to forward and reverse power-on servicing, the winding electric flow valuve is sampled, and draws the motor winding direction after the size of winding electric flow valuve during finally by the more forward and reverse power-on servicing of mistake.
Its technical scheme can also comprise: the described power tube that utilizes controller for electric vehicle is 8-20 μ s to the time of motor winding forward and reverse power-on servicing successively; The described power tube that utilizes controller for electric vehicle is 10 μ s to the time of motor winding forward and reverse power-on servicing successively; The continuous quadratic as a result that in described winding direction determining step, judgement draws the motor winding direction re-starts motor hall signal detecting step and motor phase and differentiates step not simultaneously; In described winding direction determining step, judgement draws the result continuous ten times of motor winding direction when identical, draws final motor winding direction; Described motor phase differentiate record in step motor phase consistent the time draw final motor winding direction.
The measurement that the present invention is based on the motor-induced electromotive force realizes, usually measure in real time online induced electromotive force and be not easy, but in winding direction identification, the direction that only need to detect qualitatively induced electromotive force gets final product, therefore the present invention adopts the electric current determining method indirectly to predict.
Electric current determining method principle:
In deterministic process, the conducting of controller power ratio control pipe half-bridge makes the energising of motor winding, and supply voltage was connected with induced electromotive force and was added on the motor winding this moment, and in winding, electric current increases along with the increase of conduction time.In the situation that the parameter of electric machine is definite, the value that electric current finally can reach is affected by supply voltage, machine induced electromotive force and winding conduction time.If making conduction time is definite value, winding ultimate current value is directly proportional with the equivalence value of connecting of induced electromotive force with supply voltage.
When the motor forward rotation, winding produces the reverse induction electromotive force, if make the energising of winding forward this moment, and supply voltage and induced electromotive force differential concatenation, the equivalent voltage that acts on winding is the poor of supply voltage and induced electromotive force; If oppositely energising, supply voltage and induced electromotive force series aiding connection, the equivalent voltage that acts on winding is supply voltage and induced electromotive force sum.If switch on the identical time this moment, the winding current that the forward energising produces will be less than the winding current of oppositely switching on and producing.
Otherwise when the motor backward rotation, winding produces the forward sense electromotive force, and when this moment, forward was switched on, supply voltage is connected with the induced electromotive force forward, and equivalent action voltage is sum of the two; Poor for both of reverse differential concatenation both during energising, equivalent action voltage.When therefore forward when energising winding current end value will be greater than reverse energising.
Following table is the logic judgement table of motor winding
Current value ratio |
The commutation of Hall forward |
The anti-phase commutation of Hall |
Forward is less than reverse (forward) |
Positive winding |
The back-roll group |
Forward is greater than reverse (counter-rotating) |
The back-roll group |
Positive winding |
The size of above-mentioned forward and reverse difference between currents is relevant with conduction time and motor speed, therefore adjust the judgement sensitivity that can change this method conduction time.In addition, because the size of induced electromotive force is also along with the change in location of motor winding in magnetic field, so make testing result accurate, must guarantee that all energisings detect phase place constantly identical, guarantee that all detections induction electric potential condition constantly is identical.
The present invention can identify the motor winding direction automatically, and sensitivity, reliability are high, fast response time, and the method that can replace common hardware setting fully is that electric machine controller is set the motor winding direction.Be used in conjunction with the antitheft locking function of electric bicycle controller, the sensitivity of this program can with the burglar alarm matched well, in the situation that alarm action can be accurately and identifies in time result, for the locking routine call.With respect to the method for hardware setting, the present invention has avoided because the improper accident that causes locking program driving is set fully without human intervention.
The present invention realizes directly utilizing the circuit of electric bicycle controller to realize, carries out the identification of motor winding direction when controller for electric vehicle needs anti-theft feature.