Based on anti-theft control device and the method for the Electrical Bicycle of winding short circuit
Technical field
The invention belongs to technical field of electronic control, be specifically related to a kind of anti-theft control device and control method of the Electrical Bicycle based on winding short circuit.
Background technology
The security method of the Electrical Bicycle based on winding short circuit that electronic control package realizes is: micro controller system judges under Electrical Bicycle parking mode whether Electrical Bicycle has artificial positive displacement, according to interior security method of establishing program self-return.Brshless DC motor is widely used at electronlmobil and Electrical Bicycle market, the method that conventional electric vehicle anti-theft device adopts is that Single-chip Controlling respective thyristor break-make makes the realization of brshless DC motor three-phase short circuit firmly antitheft, sending alerting signal by design micro controller system peripheral sensors circuitorder loudspeaker realizes soft antitheft, but this anti-theft control device easily produces " erroneous judgement ", also can cause warning when pedestrian touches because of carelessness or staff arranges parking stall, have impact on living environment; Secondly, when user is distant, car stealer still can force car to be dragged away.Therefore, design a kind of Electrical Bicycle security method and control setup of reasonable science, can better people's living environment, reduce the stolen rate of Electrical Bicycle, have great importance.
Summary of the invention
It is high that the present invention is intended to overcome conventional electric bicycle theft-prevention control method False Rate, affects living environment, and thief still can use power of enforcement to steal the shortcomings such as car, the anti-theft control device of the battery-driven car based on winding short circuit of a kind of science provided and control method.
In order to achieve the above object, the technical scheme that the present invention takes is:
A kind of anti-theft control device of the Electrical Bicycle based on winding short circuit, connected to form by brshless DC motor, three-phase bridge type converter, micro controller system annular successively, wherein, the three-polar output of described three-phase bridge type converter connects the three-phase windings of described brshless DC motor, the hall signal that described brshless DC motor exports connects micro controller system, the output of described micro controller system connects the control end of each power tube in three-phase bridge type converter, and micro controller system opens and close by power tube in control three-phase bridge type converter the control realized brshless DC motor.
The control method of the anti-theft control device of the Electrical Bicycle based on winding short circuit of the present invention is: user closes Electrical Bicycle and extracts key, battery-driven car power cut-off, micro controller system enters parking mode, micro controller system setting is rationally artificial to be dragged distance H and calculates actual dragging displacement according to hall signal, if actual displacement exceedes warning setting value H, micro controller system just controls lower bridge three power tubes conducting simultaneously of three-phase bridge type converter immediately, realize the short circuit of brshless DC motor three-phase windings, under the state do not powered up at motor like this, during brshless DC motor three-phase windings short circuit, brshless DC motor can not rotate under application force outside, reach the effect of electric vehicle anti-theft.Specifically comprise the following steps:
1, user closes Electrical Bicycle and pulls up key, and battery-driven car power cut-off, under being in parking mode;
2, the hall signal that sends of micro controller system sampling brshless DC motor,
3, micro controller system starts to count N, and when hall signal changes, micro controller system count value N adds 1, and when hall signal is constant, repeat step (2), the initial value wherein counting N is zero;
4, according to counting N, calculate and be moved distance;
5, be less than warning value H when being moved distance, micro controller system does not export hall signal;
6, be greater than warning value H when being moved distance, then micro controller system exports hall signal and makes bridge three power tubes conducting simultaneously under three-phase bridge type converter, brshless DC motor three-phase windings short circuit;
7, when brshless DC motor three-phase windings short circuit, brshless DC motor can not rotate under application force outside, reaches the effect of electric vehicle anti-theft.
Advantage of the present invention and beneficial effect be mainly:
The anti-theft control device of the Electrical Bicycle based on winding short circuit that the present invention adopts, structure is simple, and cost is low; It is convenient to control, and is opened and closes the control realized brshless DC motor, greatly can reduce the stolen rate of Electrical Bicycle by Single-chip Controlling power tube.
Accompanying drawing explanation
Fig. 1 is control setup constructional drawing of the present invention,
Fig. 2 is control setup structured flowchart of the present invention,
Fig. 3 is control method diagram of circuit of the present invention,
Fig. 4 is micro controller system pin sketch of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the anti-theft control device of the Electrical Bicycle based on winding short circuit of the present invention and control method are described in further detail.
As shown in Figure 1, for control setup constructional drawing of the present invention, three sections of outputs of three-phase bridge type converter connect the three-phase windings of brshless DC motor, the hall signal that brshless DC motor exports connects micro controller system, the output of micro controller system connects the control end of each power tube in three-phase bridge circuit, and micro controller system is MOS6, MOS1 by the power tube cycle of opening in three-phase bridge type converter; MOS1, MOS2; MOS2, MOS3; MOS3, MOS4; MOS4, MOS5; MOS5, MOS6; MOS6, MOS1 ...
Suppose that the brushless DC motor rotor of Electrical Bicycle has p to magnetic pole, three-phase bridge type converter is made up of 6 power tubes, and the hall signal so exported has 6 kinds, and a circle is divided into 6 sectors, 60 degree, each sector.The hall signal state gathered often changes once, and count results N just adds 1.According to principle, hall signal is through one-period, rotor turns over a pair magnetic pole (such as, rotor p is exactly that rotor turns over 360/p degree electric angle to magnetic pole), so hall signal state often changes once, (360/p)/6 degree electric angle that rotor turns over, if know that wheel diameter is D, can calculate and be moved distance.
Composition graphs 1, Fig. 2, Fig. 3 and Fig. 4 describe the control method of anti-theft control device of the present invention, specifically comprise the following steps:
1, user closes Electrical Bicycle and pulls up key, battery-driven car power cut-off, and under being in parking mode, micro controller system pin P1.0 sets high level;
2, the hall signal that sends of micro controller system sampling brshless DC motor, micro controller system pin P2.0, P2.1, P2.2 receive hall signal;
3, micro controller system starts to count N, and when hall signal changes, count value N adds 1; When hall signal does not change, repeat step (2),
4, according to counting N, calculate and be moved distance:
If 5 are moved distance do not exceed warning value H, repeat step (3);
If 6 exceed warning value H, then micro controller system pin P0.1, P0.3, P0.5 output pulse signal makes bridge three power tubes conducting simultaneously under three-phase bridge type converter, brshless DC motor three-phase windings short circuit;
7, during brshless DC motor three-phase windings short circuit, brshless DC motor can not rotate under application force outside, reaches the effect of electric vehicle anti-theft.
The security method of the above-mentioned Electrical Bicycle based on winding short circuit and control setup, only by detection hall signal, calculate be moved Distance geometry warning value H and compare according to algorithm, by brshless DC motor three-phase windings short circuit, so that can not rotate under application force outside, reach the effect of electric vehicle anti-theft.