Brushless electric machine contrller for electric vehicle
Technical field
The present invention relates to a kind of brushless electric machine contrller for electric vehicle, belong to the control technology field of brushless motor for automobile.
Background technology
Existing brushless electric machine contrller for electric vehicle only possesses the handle start-up circuit, decide the open value of the handle circuit etc. that cruises.Its workflow is that decoding circuit translates three road hall signals, by with door with from the signal (aanalogvoltage) of handle, presses truth table and directly drives three road upper and lower bridge arms.The controller that has generally also contained put, the hardware current foldback circuit.Because mainly there is following problem in the defective on structure and the circuit design:
1, its cruise function is with from the locking of the analog voltage of handle, and this just means when the road surface situation changes, and as above, descending, controller can't be according to road surface variation carrying out self-control, like this since the user must remove cruising condition, enter handle and control.Increased the big current start number of times and brake number of times of storage battery like this, the former will shorten the useful life of storage battery, and the latter will accelerate the wearing and tearing of mechanical braking device, bring hidden danger to safety.
2, adopt special-purpose industrial brushless electric machine control circuit, because no any current compensation in accelerator (carrying out current compensation during commutation), and brushless electric machine has its intrinsic low-speed pulse phenomenon, so " car load shake " phenomenon can in starting accelerator, occur, environment in strong noise pollution, the client has also been lost driving enjoyment, and simultaneously because the electric bicycle working of plastics is more, also easy structure to car load damages.
3, utilize industrial brushless electric machine control circuit to transform and next common electric bicycle controller, though the part control circuit has braking function, but because of adjusting its open ratio, general professional control circuit is that 100% standard-sized sheet is put, so its braking function is unavailable substantially for electric bicycle.Because braking force is excessive, bring hidden danger also can for the user security of running at high speed.
4, only has pure hardware overcurrent protection function; promptly compare by comparator; when sampling current is excessive; the comparator level counter-rotating; the Enable Pin of special-purpose brushless electric machine control chip is closed; thereby reach the purpose of closing PWM output, the phenomenon of violent " rocking " in the time of will causing the car load overcurrent like this.Because in case close PWM, sampling current reduces to zero immediately so, overcurrent protection this moment is removed, and motor will promptly rotate, and then detect overcurrent again, and controller is protected again, so violent " rocking " phenomenon can occur.
5, utilize industrial brushless electric machine control circuit to transform and next common electric bicycle controller, do not have self anti-theft feature, have only the burglar alarm that adds special use just can have the car load anti-theft feature, increased the cost of car load like this, also make simultaneously the line of bicycle inside become complicated, buried potential faults.
Summary of the invention
The purpose of this invention is to provide a kind of reasonable in design, applicable to all kinds of be the brushless electric machine contrller for electric vehicle of the electric bicycle control of actuating force with the brshless DC motor.
The present invention is a brushless electric machine contrller for electric vehicle, establish the casing of control circuit board in comprising, place the fixed integrated wiring port on the casing, it is characterized in that control circuit board is provided with central processing unit, Hall decoding and processing logic gate circuit, power tube drive circuit, the power tube output circuit; Fixed integrated wiring port is provided with the speed governing value signal input port that links to each other with central processing unit respectively, the value signal input port of cruising, brake signal input port, decipher the motor three-phase hall signal input port that links to each other with the processing logic gate circuit, motor three tunnel phase line delivery outlets that link to each other with the power tube output circuit respectively with Hall respectively; Described central processing unit is connected with the power tube output circuit is corresponding respectively with processing logic gate circuit and power tube drive circuit by Hall decoding;
Also be provided with on the described control circuit board and place the value of the cruising treatment circuit that cruises between value signal input port and the central processing unit; The value of cruising treatment circuit is by pull-up resistor, and current-limiting resistance goes to shake formations such as electric capacity, clamp diode;
Also be provided with the speed governing value treatment circuit that places between speed governing value signal input port and the central processing unit on the described control circuit board; Speed governing value treatment circuit is by current-limiting resistance, earth resistance, formations such as filter capacitor;
Also be provided with the brake signal treatment circuit that places between brake signal input port and the central processing unit on the described control circuit board; The brake signal treatment circuit is made of diode and filter capacitor etc.;
Also be provided with the dual current foldback circuit that places between central processing unit and the power tube output circuit on the described control circuit board, dual current foldback circuit is by comparator, amplifier, divider resistance, temperature and resistance, formations such as sample resistance;
Also be provided with the stop lamp drive circuit that links to each other with central processing unit on the described control circuit board, fixed integrated wiring port is provided with the stop lamp voltage output that links to each other with the stop lamp drive circuit;
Also be provided with the drive circuit of loudspeaker that links to each other with central processing unit on the described control circuit board, fixed integrated wiring port is provided with the alarm signal delivery outlet that links to each other with drive circuit of loudspeaker.
The present invention compared with prior art has following outstanding advantage and good effect:
1, realized speed closed loop: rely on by central processing unit, Hall decoding and processing logic gate circuit, power tube drive circuit, the control circuit that the power tube output circuit is formed is realized cruise function, after pressing " cruising " button that is connected with the value signal input port of cruising on the electric motor car handle as the user, central processing unit latchs the speed of service of motor at that time, promptly from the three road Hall superposed signals of Hall decoding with the processing logic gate circuit, this rate signal utilizes three road hall signals stack of brushless electric machine to obtain, rather than resemble the clearing signal (analog voltage) that other control circuit just latchs handle, when detecting the rate signal reduction (just three road Hall superposed signal umber of pulses tail off), control circuit improves the open ratio of pulse-width signal (PWM) automatically, when detecting the rate signal rising (just three road Hall superposed signal umber of pulses become many), control circuit reduces the open ratio of PWM automatically, until being zero, when if PWM reduces to zero, control circuit still detects the motor hypervelocity, control circuit will carry out the flexible electrical braking automatically so, the speed of a motor vehicle is effectively reduced, simultaneously storage battery is carried out reverse charge.The cruise function of control circuit was to latch handle clearing signal (analog voltage signal) in the past, this signal is fixed, and the road surface of electric motor car actual travel is diversified, when beginning to go up a slope by level road, the user often speed of sensation is too slow, this moment, the user must remove cruising condition (passing through mechanical brake) earlier, reactivated speed adjusting lever then and improved the speed of a motor vehicle, so was easy to cause the phenomenon (heavy-current discharge is very big to the life-span infringement of storage battery) of storage battery heavy-current discharge; Same because the cause of center of gravity, the electric motor car speed of a motor vehicle will be more and more faster when the user begins descending by level road, and the user will remove cruising condition by mechanical brake equally, to reach the own desirable speed of a motor vehicle, will accelerate the wearing and tearing of mechanical braking device like this.Cruising of control circuit of the present invention is the mode of taking speed closed loop; so no matter be level road, upward slope, descending; control circuit all will be regulated the speed of a motor vehicle automatically; car load is maintained under the desirable speed of a motor vehicle of user to be moved; effectively avoided the phenomenon of the big current start of appearance because brake; prolong the useful life and the continual mileage of storage battery, also protected the mechanical braking device of electric motor car simultaneously effectively.
2, realized mute function: when motor is in the accelerator, because intrinsic " low-speed pulse " phenomenon that brushless electric machine exists, so central processing unit is by the Hall superposed signal of Hall decoding with the processing logic gate circuit, can obtain a signal difference, when signal difference is outside certain limit, central processing unit thinks that promptly this moment, motor was in accelerator, this moment is just by Hall decoding and processing logic gate circuit so, power tube drive circuit, the power tube output circuit, carry out current compensation according to truth table, to eliminate " low-speed pulse " phenomenon, reduce the car load noise, the amplifying return circuit of dual current foldback circuit that how much leans on of offset is determined; And common brushless motor controller does not have this function, in accelerator, just press corresponding upper and lower bridge arm on the directly open power tube output circuit of truth table, do not carry out current compensation, so the what is called " magnetic air gap " of Hall between two blocks of magnet steel that causes motor is when passing through, electric current can't suddenly change and produce " shake " phenomenon, because the electric current average current by motor in the accelerator is big, therefore shake is violent, influencing user's driving sense, is that main vehicle body also is great destruction to working of plastics simultaneously.
3, realized flexible electrical braking and reverse charge: when brushless electric machine when rotated, just produced inverse electromotive force in its winding, this inverse electromotive force is out in the cold in the prior art, the present invention is in conjunction with this inverse electromotive force that produces because of the brushless electric machine rotation, utilize the power tube output circuit three the tunnel under brachium pontis carry out program and regulate PWM copped wave, simultaneously because the existence of big electric capacity on the power supply, constituted the LC vibration thus in conjunction with motor windings, because what vibration produced boosts the back voltage control in the charge voltage range that storage battery needs, this boost current is charged to storage battery by the fly-wheel diode of power tube, it is open than being ascending that program is regulated PWM, therefore control circuit at first is that electric braking carries out simultaneously with charging, when the speed of a motor vehicle is more and more lower, the inverse electromotive force that colonizes in the winding also consumes near not had, this moment again with the power tube output circuit three the tunnel under the complete short circuit of brachium pontis, motor stop motion this moment.After thereby energy was reasonably reclaimed, the continual mileage of car load was prolonged effectively, and actual measurement can prolong about 20% effectively according to the road surface situation; Because following brachium pontis takes the PWM mode to carry out copped wave, so this voltage is pulse mode, so storage battery has obtained rational maintenance, can repair " passivation phenomenon " that storage battery occurs because of frequent heavy-current discharge effectively, the capacity and the useful life of improving storage battery; Because the existence of electric braking is arranged, the life-span of mechanical brake mechanism also prolongs greatly in addition, has improved the coefficient of safety of car load.
4; realized dual overcurrent protection function: adopt the circuit of professional brushless electric machine control chip to have only pure hardware overcurrent protection function at present; promptly compare by the current value and the reference value of comparator with sampling; in case the sampling current value is during greater than reference value; the comparator counter-rotating; thereby close the Enable Pin of brushless electric machine control chip; reach and close the purpose that overcurrent protection is carried out in PWM output; but so be prone to the phenomenon of car load violent " rocking "; because in case close PWM output; electric current reduces to zero immediately, and comparator recovers again normally so, and the brushless electric machine control chip is enabled again; PWM reopens, so " rocking " phenomenon has occurred.And control circuit of the present invention; by by comparator; amplifier; divider resistance; temperature and resistance; the dual current foldback circuit that sample resistance etc. constitute; one the tunnel compares another road amplifies; the level one tunnel that reverses when over-current phenomenon avoidance occurring send Hall decoding and processing logic gate circuit when sending central processing unit; purpose is to reduce the open ratio of PWM gradually; rather than directly close PWM; other one tunnel over-current signal that amplifies send central processing unit; with the amplitude of determining that PWM reduces; because its pwm signal reduces gradually, so avoided the phenomenon that car load " rocks ".
5, realized that self car load is antitheft: generally all adopt at present and install external special-purpose alarm additional and carry out antitheftly, strengthened integral vehicle cost and brought potential faults simultaneously, cause the car load wire harness loaded down with trivial details thus.Control circuit of the present invention utilizes existing loudspeaker of car load and car light to carry out antitheft, after the user extracts key, control circuit just starts mouth by alarm signal automatically and obtains the signal of setting up defences, central processing unit enters anti-theft state automatically, by power tube drive circuit brachium pontis standard-sized sheet under three tunnel on the power tube output circuit is put respectively simultaneously, this moment, motor was in " locking " state, when the people promotes, central processing unit obtains the Hall superposed signal of " illegally " by Hall decoding and processing logic gate circuit, this moment, central processing unit thought that vehicle is illegally moved, and carried out synchronous sound and light alarm by drive circuit of loudspeaker and stop lamp drive circuit immediately.Central processing unit is removed alarm condition immediately after key operated, enter standby, if when central processing unit is not received effective peripheral signal more than 6 minutes (mainly being handle signal and brake signal), central processing unit will enter anti-theft state again automatically, and the user has only to open after key extracted again and just can enter normal holding state.
Description of drawings
Fig. 1 is an overall structure cutaway view of the present invention;
Fig. 2 is a fundamental diagram of the present invention.
Among the figure: 1 is speed governing value treatment circuit; 1-1 is speed governing value signal input port; 2 are the value of cruising initialization circuit; 2-1 is the value signal input port of cruising; 3 is the brake signal treatment circuit; 3-1 is the brake signal input port, and 4 is central processing unit, and 5 are Hall decoding and processing logic gate circuit; 5-1; 5-2; 5-3 is respectively motor three-phase hall signal input port; 6-A; 6-B; 6-C is respectively A; B; C three phase power tube drive circuit, 7-A-1; 7-A-2; 7-B-1; 7-B-2; 7-C-1; 7-C-2 is respectively A; B; C three-phase upper and lower bridge arm power tube output circuit, 7-A; 7-B; 7-C is respectively motor three tunnel phase line delivery outlets; 8 is the stop lamp drive circuit; 8-1 is the stop lamp voltage output, and 9 is drive circuit of loudspeaker, and 9-1 is the alarm signal delivery outlet; 10 is dual current foldback circuit; 10-1 is a comparator, and 10-2 is an amplifier, and 11 are alarm signal startup mouth; 12 is the high-current supply mouth; 13 is fixed integrated wiring port, and 14 is control circuit board, and 15 is casing.
Embodiment
The present invention places fixed integrated wiring port one 3 formations such as grade on the casing 15 mainly by the interior casing 15 of establishing control circuit board 14.
Control circuit board 14 is provided with by current-limiting resistance R1; earth resistance R2; the speed governing value treatment circuit 1 that filter capacitor C1 etc. constitute; by pull-up resistor R3; current-limiting resistance R4; go to shake capacitor C 2; the value of the cruising treatment circuit 2 of formations such as clamp diode D1; the brake signal treatment circuit 3 that constitutes by diode D2 and filter capacitor C3 etc.; central processing unit 4; Hall decoding and processing logic gate circuit 5; power tube drive circuit 6-A; 6-B; 6-C; power tube output circuit 7-A-1; 7-A-2; 7-B-1; 7-B-2; 7-C-1; 7-C-2; stop lamp drive circuit 8; drive circuit of loudspeaker 9 is by comparator 10-1; amplifier 10-2; divider resistance R5; temperature and resistance R6; the dual current foldback circuit 10 that sample resistance R7 etc. constitute.Central processing unit 4 by Hall decoding and processing logic gate circuit 5 and power tube drive circuit 6-A, 6-B, 6-C respectively with power tube output circuit 7-A-1,7-A-2,7-B-1,7-B-2,7-C-1,7-C-2 is corresponding is connected.
Fixed integrated wiring port one 3 is provided with the speed governing value signal input port 1-1 that links to each other with speed governing value treatment circuit 1, the value signal input port 2-1 that cruises that links to each other with the value of cruising treatment circuit 2, the brake signal input port 3-1 that links to each other with brake signal treatment circuit 3, decipher the motor three-phase hall signal input port 5-1 that links to each other with processing logic gate circuit 5 with Hall, 5-2,5-3, respectively with power tube output circuit 7-A-1,7-A-2,7-B-1,7-B-2,7-C-1, motor three tunnel phase line delivery outlet 7-A that 7-C-2 links to each other, 7-B, 7-C and high-current supply mouth 12, the stop lamp voltage output 8-1 that links to each other with stop lamp drive circuit 8, the alarm signal delivery outlet 9-1 that links to each other with drive circuit of loudspeaker 9, the alarm signal that links to each other with central processing unit 4 starts mouth 11.
During installation, lines all on the fixed integrated wiring port one 3 is connected with corresponding component in the electric motor car, being speed governing value signal input port 1-1 is connected with handle in the electric motor car, the value signal input port 2-1 that cruises is connected with " cruising " button on the handle, brake signal input port 3-1 is connected with brake gear, motor three-phase hall signal input port 5-1,5-2,5-3 is connected with the three-phase hall signal interface of brushless electric machine respectively, motor three tunnel phase line delivery outlet 7-A, 7-B, 7-C is connected with the three-phase phase line of brushless electric machine respectively, stop lamp voltage output 8-1 is connected with stop lamp, alarm signal delivery outlet 9-1 is connected with loudspeaker, alarm signal startup mouth 11 is locked with the weak mains in the electric motor car and is connected, and high-current supply mouth 12 is connected with storage battery.
The present invention realizes that the main flow process of above-mentioned functions is as described below:
1, work:
After the weak mains lock of car load is opened, controller powers on, central processing unit 4 resets, this moment, central processing unit 4 was in holding state, it scans speed governing value setting signal 1 incessantly, if record from the speed-regulating signal of speed governing value signal input port 1-1 (greater than 1.1V) when effective, central processing unit 4 starts Hall decoding and processing logic gate circuit 5 immediately, to from motor three-phase hall signal input port 5-1,5-2, the phase place of the three-phase Hall of 5-3 reads, central processing unit 4 is according to the openness of handle simultaneously, send relevant pulse width modulation signals (PWM) value, motor Hall decoding and processing logic gate circuit 5 are according to from the hall signal of motor and pwm signal from central processing unit 4, send the corresponding driving signal respectively and give power tube drive circuit 6-A, 6-B, 6-C, power tube drive circuit 6-A, 6-B, 6-C drives corresponding power tube output circuit 7-A-1 respectively, 7-A-2,7-B-1,7-B-2,7-C-1,7-C-2, this moment, motor was by motor three tunnel phase line delivery outlet 7-A, 7-B, 7-C gets electric operation, and its running speed is relevant with openness from handle.
From the handle signal of speed governing value signal input port 1-1, input central processing unit 4 behind current-limiting resistance R1 current limliting, filter capacitor C1 filtering spike.The effect of current-limiting resistance R1 is that the protection central processing unit does not damage because of extraneous factor causes heavy current impact; The effect of filter capacitor C1 is the filtering spike, increases the antijamming capability of controller, is unlikely to occur misoperation; The effect of earth resistance R2 is to prevent " driving ", because the handle signal draws on being, if so in case handle breaks down or when breaking away from controller, the 5V that draws on having may directly enter central processing unit 4, central processing unit 4 can be thought full-speed operation, " driving " phenomenon just appears, and the purpose that increases earth resistance R2 is stopped this phenomenon, because earth resistance R2 is over the ground, so the handle signal input to central processing unit 4 can be by drop-down effectively, go wrong even that is to say outside handle, motor also is to keep static.
2, cruise:
From motor three-phase hall signal input port 5-1,5-2, the motor commutation hall signal of 5-3 is sent into Hall decoding and processing logic gate circuit 5, this chip is a GAL chip at a high speed, Hall decoding superposes three road hall signals with processing logic gate circuit 5, send into central processing unit 4 then, if this moment is from the signal that cruises of the value signal input port 2-1 that cruises when effective, central processing unit 4 will be kept at (as the base value of the umber of pulse of cruising) in the data buffer from the umber of pulse of Hall decoding and the stack hall signal of processing logic gate circuit 5 this moment, then central processing unit 4 hall signals that constantly read three tunnel instant stacks with exist the pulse reference number in the data buffer to compare.When the umber of pulse that newly reads when central processing unit 4 is counted less than pulse reference, central processing unit 4 will in time improve the open ratio of PWM automatically, and the speed of service of raising motor is to reach the metastable purpose of motor cruising speed; The umber of pulse that newly reads when central processing unit 4 is higher than pulse reference when counting, and central processing unit 4 will in time reduce the open ratio of PWM; When if PWM reduces to zero, when still still new umber of pulse is higher than pulse reference and counts, central processing unit 4 will carry out flexible braking automatically, to reach the metastable purpose of motor cruising speed.The speed closed loop of motor just, only after brake effectively or was once more cruised effectively, cruising condition side was disengaged.
The pull-up resistor R3 of the value of cruising treatment circuit 2 keeps the cruising condition low level effective, and current-limiting resistance R4 is that the protection central processing unit is avoided heavy current impact and damaged, and going to shake capacitor C 2 is the reliabilities that increase cruise function.
3, quiet:
When from the handle signal of speed governing value signal input port 1-1 when effective (greater than 1.1V), central processing unit 4 is given power tube drive circuit 6-A, 6-B, 6-C by Hall decoding and processing logic gate circuit 5 output drive signals, and power tube drive circuit 6-A, 6-B, 6-C carry out work to power tube output circuit 7-A-1,7-A-2,7-B-1,7-B-2,7-C-1,7-C-2.
Because this moment, motor was in accelerator; the motor speed of service is lower; and the intrinsic low speed " pulsation phenomenon " of brushless electric machine; exactly when motor is in accelerating region; when the phase place Hall of motor passes through each " magnetic air gap "; jitter phenomenon will appear in motor; thereby the situation that causes the car load shake occurs; the stack hall signal that this controller sends out Hall decoding and processing logic gate circuit 5 carries out front and back and approaches computing one by one in central processing unit 4; if difference is during greater than the software set value; central processing unit 4 thinks that be in boost phase this moment; central processing unit 4 is in conjunction with Hall decoding and 5 couples of power tube drive circuit 6-A of processing logic gate circuit so; 6-B; 6-C compensates; to reach the effect of current break; concrete current offset values how much depend on current signal amplifying signal from dual current foldback circuit 10; so just, " pulsation phenomenon " with the motor low rate start overcome effectively, and this moment, motor operated steadily and peace and quiet, just so-called " soft start ".
4, flexible electrical braking and reverse charge:
After the positive braking signal from brake signal input port 3-1 is fed back to central processing unit 4 by diode D2, central processing unit 4 will start the electric braking subprogram, decoding is controlled with processing logic gate circuit 5 to Hall, Hall decoding will be exported corresponding truth table with processing logic gate circuit 5 and be given power tube drive circuit 6-A, 6-B, 6-C, and the following brachium pontis that power tube drive circuit is opened power tube output circuit 7-A-2,7-B-2,7-C-2 carries out the copped wave action; Meanwhile central processing unit 4 is according to adjust the open ratio of PWM from the Hall decoding and the stack hall signal of processing logic gate circuit 5, this is open than being negate, just ascending, be indirect short circuit mode for the motor three-phase power line like this, and the cycle of short circuit changing from small to big, so the electric braking force of its generation is ascending, Here it is so-called " flexible braking ".Because if three-phase power line short circuit with brushless electric machine, this moment is rotary electric machine by force, the inverse electromotive force of Chan Shenging will all consume in the switching of each winding of motor so, give the people is the most direct to feel it is the rotary electric machine difficulty, just to change still counter-rotating all the same, and electric braking has utilized this characteristic of brushless electric machine to reach braking effect just.
Diode D2 in the brake signal treatment circuit 3 isolates brake signal, and purpose is to prevent false triggering, and filter capacitor C3 is the spike interference signal of removing from the outside, guarantees the reliability of brake.
5, dual overcurrent protection:
During operate as normal under the three-phase of power tube output circuit brachium pontis 7-A-2,7-B-2,7-C-2 all by sample resistance R7 to power cathode (just usually said " "), weak voltage signal one tunnel from sample resistance R7 send amplifier 10-2 to amplify, and another road send comparator 10-1 to compare.
Send this road signal of comparator 10-1; the current value and the reference value of sampling are compared; in case the sampling current value is during greater than reference value; comparator 10-1 counter-rotating; the level one tunnel of this counter-rotating send central processing unit 4; one the tunnel send decoding of motor Hall and processing logic gate circuit 5; central processing unit 4 is responsible for reducing the open ratio of PWM; Hall decoding is responsible for carrying out the overcurrent protection instruction with processing logic gate circuit 5; and central processing unit 4 reduces the amplitude of PWM from this road signal that send amplifier 10-2, and the over-current signal that amplify on this road only send central processing unit 4.
6, self reports to the police:
When alarm signal starts mouthfuls 11 effectively the time, central processing unit 4 starts Hall decoding and processing logic gate circuit 5 immediately, carry out complete electric braking, just by power tube drive circuit 6-A, 6-B, 6-C is with brachium pontis 7-A-2 under the three-phase of power tube output circuit, 7-B-2, the 7-C-2 short circuit, show as motor " locking ", if when promoting by force, central processing unit 4 will obtain from three road Halls " illegally " superposed signal of Hall decoding with processing logic gate circuit 5, this moment, central processing unit 4 was thought " vehicle is stolen ", to instruct stop lamp drive circuit 8 and drive circuit of loudspeaker 9 to pass through stop lamp voltage output 8-1, alarm signal delivery outlet 9-1 carries out optoacoustic and reports to the police, and reaches antitheft purpose.Stop lamp drive circuit 8 and drive circuit of loudspeaker 9 have utilized taillight and the loudspeaker in the electric motor car to carry out warning work, simplify the structure, and have saved cost.