Summary of the invention
The object of the present invention is to provide a kind of emergency power supply.It can judge the positive-negative polarity that battery connects automatically with after the external equipment battery is connected, and correct current output signal is provided then, and is convenient to use, has improved operability.
For achieving the above object, the invention provides a kind of emergency power supply, it comprises a control circuit and a storage battery that circuit connects; Described control circuit comprises the external cell testing circuit, drive logic, and the reversal connection circuit charges and controls and the battery electric quantity testing circuit automatically;
Described external cell testing circuit, drive logic, automatic reversal connection circuit, charging control and battery electric quantity testing circuit also connect a single-chip microcomputer respectively;
Described external cell testing circuit comprises the diode comparison circuit that circuit connects, and bias-voltage generating circuit and conduction voltage drop produce circuit; Its output connects single-chip microcomputer;
Described drive logic (H bridge circuit) comprises high-end drive circuit and low-side driver circuitry, and its output connects automatic reversal connection circuit and transmits drive signal to automatic reversal connection circuit; Its input connects single-chip microcomputer;
Described high-end drive circuit comprises high-end power supply active circuit, high-end forward drive transistor circuit and high-end reverse drive transistor circuit;
Described low-side driver circuitry comprises low side power supply active circuit, low side forward drive transistor circuit and low side reverse drive transistor circuit;
Described automatic reversal connection circuit is made up of some MOSFET (mos field effect transistor) of forward logical signal driving and the some MOSFET that driven by the reverse logic signal; Its output connects single-chip microcomputer;
Described charging control and battery electric quantity testing circuit comprise battery voltage measurement circuit, charging control circuit and battery electric quantity testing circuit; The output of this battery voltage measurement circuit connects single-chip microcomputer.
Described drive logic also comprises current-limiting protection circuit, and its PWM by single-chip microcomputer (pulse width modulation) controls realization.
Described control circuit also comprises guardtime circuit and thermal-shutdown circuit; Described guardtime circuit is by Single-chip Controlling; Described thermal-shutdown circuit is connected with single-chip microcomputer.
The operation principle of emergency power supply provided by the invention is as follows:
When this emergency power supply with after the external equipment battery is connected, the external cell testing circuit is judged the connection of battery polar, at first, can produce a bias voltage during this external cell testing circuit, and send this bias voltage to single-chip microcomputer, after single-chip microcomputer receives this biasing voltage signal, judge the positive-negative polarity that emergency power supply is connected with the external equipment battery again; When emergency power supply and external equipment battery were just connecing, the external cell testing circuit was 0 at the voltage of signal output part, and after single-chip microcomputer received this signal, single-chip microcomputer was operated in the forward operating state; When emergency power supply and the reversal connection of external equipment battery, the output of external cell testing circuit produces a magnitude of voltage, and after single-chip microcomputer received this voltage signal, single-chip microcomputer was operated in the reverse operation state;
Single-chip microcomputer provides correct logical drive signal to give high-end drive circuit and low-side driver circuitry respectively, and this correct logical drive signal can guarantee the reliable driving of high-end drive circuit output and the reliable driving of low-side driver circuitry output;
Simultaneously, after H bridge drive logic is driven by the logical drive signal, flow through owing to have sizable electric current, carry out current-limiting protection so be provided with current-limiting protection circuit, this current-limiting protection circuit is to be realized by the PWM of single-chip microcomputer (pulse width modulation) control; To H bridge current sampling, the current signal that obtains amplifies through amplifier, exports to single-chip microcomputer, and the corresponding PWM waveform of output; If when single-chip microcomputer detected and to obtain that this moment, H bridge electric current was lower than rated current, PWM did not work, and this current value is fully exported; When if single-chip microcomputer detects and to obtain that this moment, H bridge electric current was higher than rated current, PWM recently controls the ON time of the grid of the MOSFET in the H bridge drive logic by the control duty, described duty ratio, be meant the ratio that high level occupies in the unit period, if duty ratio is more little, be that the average current of conducting is more little in the unit interval, the electric current that MOSFET carried is just more little thus, so just make the electric current that flows through reach maximum, but keep average current constant, play the effect of protection MOSFET;
The drive signal of drive logic output is sent to automatic reversal connection circuit, the signal indicating emergency power supply and the external equipment battery that receive when this automatic reversal connection circuit are the states that just connecing, show that drive logic provides the forward logical signal, automatically the some MOSFET that driven by the forward logical signal in the reversal connection circuit are connected conducting, and output forward logical signal is to single-chip microcomputer;
The signal indicating emergency power supply and the external equipment battery that receive when this automatic reversal connection circuit are the reversal connection states, show that drive logic provides the reverse logic signal, automatically the some MOSFET that driven by the reverse logic signal in the reversal connection circuit are connected conducting, and output reverse logic signal is to single-chip microcomputer;
After single-chip microcomputer receives correct logical signal, start charging control and the work of battery electric quantity testing circuit; Charging control and battery electric quantity testing circuit detect the magnitude of voltage of current external equipment battery, and it is inputed to single-chip microcomputer, press the magnitude of voltage that testing button just can show present external equipment battery again, simultaneously, set according to the quantification to magnitude of voltage in advance, corresponding meeting shows the magnitude of voltage of present external equipment battery is in which state in " high, medium and low "; If when detecting the electric weight deficiency that obtains current external equipment battery, storage battery charges to outside device battery, and auxiliary current is provided; In charging process, when the voltage that shows the external equipment battery is higher than the charging voltage thresholding that sets in advance, charged state is converted to floating charge state, i.e. low current charge state, and have corresponding indicator light to show this information.
The control circuit of emergency power supply provided by the invention also comprises guardtime circuit and thermal-shutdown circuit; This guardtime circuit is realized by Single-chip Controlling, can one set point be set earlier according to actual conditions in single-chip microcomputer, emergency power supply is started working, single-chip microcomputer just picks up counting, when the operating time of emergency power supply reaches this set point, emergency power supply just quits work automatically, restarts after rest a period of time again and starts working; This thermal-shutdown circuit adopts the resistance of negative temperature coefficient as its thermistor; the voltage that detection is obtained inputs to single-chip microcomputer; single-chip microcomputer is according to the temperature of the current voltage value decision circuitry that receives; in case when finding that the current temperature of this emergency power supply is higher than normal value; single-chip microcomputer makes this emergency power supply quit work immediately; recover normal up to its temperature, reset automatically again, start working.
Emergency power supply provided by the invention, can judge automatically that its positive-negative polarity with the external equipment battery is connected, no matter current connection correctness, no matter promptly this emergency power supply and external equipment battery are just to connect or reversal connection, it can both provide correct output signal, makes this emergency power supply can detect the current electric quantity of external equipment battery, and when externally the current electric quantity of device battery is not enough, it is charged, make the equipment operate as normal.
Emergency power supply provided by the invention, easy to use, have very strong operability, and when this emergency power supply work, the state of supervisory circuit there is stronger self-protection ability constantly.Be particularly useful for automobile industry, be used for automobile batteries is charged, and when automobile starting for automobile provides enough big startup auxiliary current, realize the final startup of automobile.
Embodiment
Following according to Fig. 1~Fig. 8, a preferred forms of the present invention is described.
As shown in Figure 1, be the fundamental diagram of the automatic reversal connection of emergency power supply provided by the invention, it comprises control circuit and internal battery 12 that circuit connects; As shown in Figure 2, be the circuit block diagram of the control circuit of emergency power supply provided by the invention, this control circuit comprises external cell testing circuit 101, drive logic 102, reversal connection circuit 103 automatically, charging control and battery electric quantity testing circuit 104;
Described external cell testing circuit 101, drive logic 102, automatic reversal connection circuit 103, charging control and battery electric quantity testing circuit 104 are gone back circuit respectively and are connected a single-chip microcomputer (not illustrating in the drawings);
Described drive logic 102 (H bridge circuit), it comprises high-end drive circuit 1021 (as Fig. 4) and low-side driver circuitry 1022 (as Fig. 5);
Described automatic reversal connection circuit is made up of some MOSFET (mos field effect transistor); Comprise some MOSFET that drive by the forward logical signal and the some MOSFET that drive by the reverse logic signal;
As shown in Figure 7, described charging control and battery electric quantity testing circuit 104 comprise battery voltage measurement circuit, charging control circuit and battery electric quantity testing circuit; The output of this battery voltage measurement circuit connects single-chip microcomputer.
Described drive logic 102 also comprises current-limiting protection circuit 1023 (as Fig. 6), and its PWM by single-chip microcomputer (pulse width modulation) controls realization.
Described control circuit also comprises guardtime circuit and thermal-shutdown circuit 105; Described guardtime circuit is by Single-chip Controlling; Described thermal-shutdown circuit 105 is connected with single-chip microcomputer.
The operation principle of emergency power supply provided by the invention is as follows:
As shown in Figure 3, be external cell testing circuit 101 circuit diagrams of emergency power supply provided by the invention, the connection of 101 pairs of battery polars of this external cell testing circuit is judged; Described external cell testing circuit 101 comprises the diode comparison circuit 1011 that circuit connects, and bias-voltage generating circuit 1012 and conduction voltage drop produce circuit 1013; Described diode comparison circuit 1011 comprises the first comparator U1A, the second comparator U1B and the first diode D1, the second diode D2; The output of the first comparator U1A is connected with the anode of the first diode D1, this first comparator U1A compares the ground connection no-voltage of another input of the voltage signal of the first input end point A of outside battery detection circuit 101 and this first comparator U1A, whether determines the first diode D1 conducting; The output of the second comparator U1B is connected with the anode of the second diode D2; This second comparator U1B compares the ground connection no-voltage of another input of the voltage signal of the second input endpoint B of outside battery detection circuit 101 and this second comparator U1B, whether determines the second diode D2 conducting;
Described bias-voltage generating circuit 1012 comprises triode A1, and the control end of this triode A1 is connected with the negative electrode of the first diode D1 and the second diode D2; Triode A1 produces bias voltage at the second exit point D under the driving of the first diode D1 and the second diode D2, and this voltage signal is sent to single-chip microcomputer, drives single-chip microcomputer work;
Described conduction voltage drop produces circuit 1013 and also this conduction voltage drop is sent to single-chip microcomputer by the first exit point C, the logical signal that provides emergency power supply to be connected with the external equipment battery polar according to the voltage signal generation conduction voltage drop that the first comparator U1A in the diode comparison circuit 1011 exports; When emergency power supply and external equipment battery were just connecing, single-chip microcomputer produced the forward logical signal; When emergency power supply and the reversal connection of external equipment battery, single-chip microcomputer produces the reverse logic signal.
When emergency power supply and automobile batteries were just connecing, promptly the A point connect positive pole, and the B point connects negative pole, diode D1 conducting this moment, diode D2 by, so be zero conduction voltage drop in the C point value of obtaining, simultaneously because triode A1 conducting, so on the D point, can produce a bias voltage, this bias voltage sends single-chip microcomputer to, after single-chip microcomputer receives this biasing voltage signal, receives the conduction voltage drop zero that C is ordered, judge this moment emergency power supply and automobile batteries and just connect, so this single-chip microcomputer is operated in the forward operating state; When this emergency power supply and automobile batteries reversal connection, be that the A point connects negative pole, the B point connects positive pole, diode D2 conducting this moment, diode D1 ends, so can obtain a magnitude of voltage at the C point be+5V, produce a bias voltage at the D point simultaneously, this bias voltage sends single-chip microcomputer to, after single-chip microcomputer receives this biasing voltage signal, receive conduction voltage drop+5V that C is ordered, judge emergency power supply and automobile batteries reversal connection at this moment, so this single-chip microcomputer is operated in the forward operating state.And when 2 of A, B did not connect external cell, this circuit was not worked, so if directly 2 short circuits of A, B can not caused yet circuit to damage because of carelessness, can avoid the output short circuit of this circuit.
Single-chip microcomputer provides correct logical drive signal to give high-end drive circuit and low-side driver circuitry respectively, and this correct logical drive signal can guarantee the reliable driving of high-end drive circuit output and the reliable driving of low-side driver circuitry output;
As shown in Figure 4, circuit diagram for the high-end drive circuit 1021 of emergency power supply provided by the invention, described high-end drive circuit 1021 comprises high-end power supply active circuit 10211, high-end forward drive transistor circuit 10212 and high-end reverse drive transistor circuit 10213;
Described high-end power supply active circuit 10211 comprises a high-side driver chip U2, and the power supply of+12V activates high-side driver chip U2 work, output pulsed drive, turning circuit;
Described high-end forward drive transistor circuit 10212 comprises high-end forward drive triode A2 and high-end forward switching tube Q1; The pulsed drive of described high-end power supply active circuit 10211 outputs is connected to the high-end forward switching tube Q1 of high-end forward drive transistor circuit 10212; When the output of external cell testing circuit 101 made single-chip microcomputer produce the forward logical signal, the voltage signal of being exported by single-chip microcomputer that shows the forward logical signal that emergency power supply and external equipment battery are just connecing was connected to high-end forward drive triode A2; Described high-end forward drive transistor circuit 10212 receives single-chip microcomputer forward logical signal, drive high-end forward drive triode A2, at the magnitude of voltage that produces on the high-end forward switching tube Q1 about 25V, finally making high-end grid voltage pressure reduction is about 12V, drives high-end forward switching tube Q1;
Described high-end reverse drive transistor circuit 102 13 comprises high-end reverse drive triode A3 and high-end reverser pipe Q2; The pulsed drive of described high-end power supply active circuit 10211 outputs is connected to the high-end reverser pipe Q2 of high-end reverse drive transistor circuit 10213; When the output of external cell testing circuit 101 made single-chip microcomputer produce the reverse logic signal, the reverse logic voltage of signals signal of being exported by single-chip microcomputer that shows emergency power supply and the reversal connection of external equipment battery was connected to high-end reverse drive triode A3; Described high-end reverse drive transistor circuit 10213 receives single-chip microcomputer reverse logic signal, drive high-end reverse drive triode A3, at the magnitude of voltage that produces on the high-end reverser pipe Q2 about 25V, finally making high-end grid voltage pressure reduction is about 12V, drives high-end reverser pipe Q2.
As shown in Figure 5, circuit diagram for the low-side driver circuitry 1022 of emergency power supply provided by the invention, described low-side driver circuitry 1022 comprises low side power supply active circuit 10221, low side forward drive transistor circuit 10222 and low side reverse drive transistor circuit 10223;
In the described low side power supply active circuit 10221, the conducting of+12V power supply active circuit;
Described low side forward drive transistor circuit 10222 comprises low side forward drive triode A4 and low side forward switching tube Q4; The output of described low side power supply active circuit 10221 is connected to the low side forward switching tube Q4 of low side forward drive transistor circuit 10222; When the output of external cell testing circuit 101 made single-chip microcomputer produce the forward logical signal, the voltage signal of being exported by single-chip microcomputer that shows the forward logical signal that emergency power supply and external equipment battery are just connecing was connected to low side forward drive triode A4; Described low side forward drive transistor circuit 10222 receives single-chip microcomputer forward logical signal, drive low side forward drive triode A4, at the magnitude of voltage that produces on the low side forward switching tube Q4 about 25V, finally making low side grid voltage pressure reduction is about 12V, drives low side forward switching tube Q4;
Described low side reverse drive transistor circuit 10223 comprises low side reverse drive triode A5 and low side reverser pipe Q3; The output of described low side power supply active circuit 10221 is connected to the low side reverser pipe Q3 of low side reverse drive transistor circuit 10223; When the output of external cell testing circuit 101 made single-chip microcomputer produce the reverse logic signal, the reverse logic voltage of signals signal of being exported by single-chip microcomputer that shows emergency power supply and the reversal connection of external equipment battery was connected to low side reverse drive triode A5; Described low side reverse drive transistor circuit 10223 receives single-chip microcomputer reverse logic signal, drive low side reverse drive triode A5, at the magnitude of voltage that produces on the low side reverser pipe Q3 about 25V, finally making low side grid voltage pressure reduction is about 12V, drives low side reverser pipe Q3.
Simultaneously, after H bridge drive logic is driven by the logical drive signal, because having sizable electric current flows through, and carries out current-limiting protection so be provided with current-limiting protection circuit, this current-limiting protection circuit 1023 is PWM (pulse width modulation) the control realizations by single-chip microcomputer; As shown in Figure 6, for the circuit diagram of the current-limiting protection circuit 1023 of emergency power supply provided by the invention, H bridge electric current is taken a sample, the current signal that obtains amplifies through the two poles of the earth amplifier, exports to single-chip microcomputer, and the corresponding PWM waveform of output; If when single-chip microcomputer detected and to obtain that this moment, H bridge electric current was lower than rated current, PWM did not work, and this current value is fully exported; When if single-chip microcomputer detects and to obtain that this moment, H bridge electric current was higher than rated current, PWM recently controls the ON time of the grid of the MOSFET (mos field effect transistor) in the H bridge drive logic by the control duty, described duty ratio, be meant the ratio that high level occupies in the unit period, if duty ratio is more little, be that the average current of conducting is more little in the unit interval, the electric current that MOSFET carried is just more little thus, so just make the electric current that flows through reach maximum, but keep average current constant, play the effect of the MOSFET in the protection H bridge drive logic;
The H bridge drive logic 102 outputs (Q1 among Fig. 4, Q2, Q3 among Fig. 5, Q4) Shu Chu drive signal is sent to automatic reversal connection circuit 103, as shown in Figure 1, receive the output signal of the high-end forward switching tube Q1 and the low side forward switching tube Q4 of drive logic 102 when this automatic reversal connection circuit 103, show that promptly emergency power supply and external equipment battery are the states that just connecing, show that drive logic 102 provides the forward logical signal, automatically the MOSFET M1 who is driven by the forward logical signal in the reversal connection circuit 1 03 is connected conducting with the 4th MOSFET M4, and exports this signal and export the forward logical signal to single-chip microcomputer;
Receive the output signal of the high-end reverser pipe Q2 and the low side reverser pipe Q3 of drive logic 102 when this automatic reversal connection circuit 103, show that promptly emergency power supply and external equipment battery are the reversal connection states, show that drive logic 102 provides the reverse logic signal, automatically the 2nd MOSFET M2 that is driven by the reverse logic signal in the reversal connection circuit 103 is connected conducting with the 3rd MOSFET M3, and exports this signal and export the reverse logic signal to single-chip microcomputer;
After single-chip microcomputer receives correct logical signal, start charging control and 104 work of battery electric quantity testing circuit; As shown in Figure 7, described battery voltage measurement circuit comprises voltage stabilizing didoe D7, adjustable resistance R1 and first resistance R 2 that connects by circuit, detect the magnitude of voltage of current external equipment battery, and export single-chip microcomputer to, press the magnitude of voltage that testing button just can show present automobile batteries again, simultaneously, set according to the quantification to magnitude of voltage in advance, corresponding meeting shows the magnitude of voltage of present automobile batteries is in which state in " high, medium and low "; Described charging control circuit comprises triode Q5, and 12 pairs of outside device batteries of control storage battery charge; If when detecting the electric weight deficiency that obtains current automobile batteries, 12 pairs of automobile batteriess of storage battery charge, and auxiliary current is provided; Described battery electric quantity testing circuit comprises the 5th MOSFET M5 that connects by circuit, the 6th MOSFET M6 and second resistance R 3; In charging process, when the voltage of display automobile battery is higher than the charging voltage thresholding that sets in advance, charged state is converted to floating charge state, be low current charge state (being generally several milliamperes), and have corresponding indicator light to show this information.
The control circuit of emergency power supply provided by the invention also comprises guardtime circuit and thermal-shutdown circuit; This guardtime circuit is realized by Single-chip Controlling, can one set point be set earlier according to actual conditions in single-chip microcomputer, emergency power supply is started working, single-chip microcomputer just picks up counting, when the operating time of emergency power supply reaches this set point, emergency power supply just quits work automatically, restarts after rest a period of time again and starts working; As shown in Figure 8; circuit diagram for thermal-shutdown circuit 105; this thermal-shutdown circuit adopts the resistance of negative temperature coefficient as its thermistor, AD1, and AD2 detects the voltage that obtains and inputs to single-chip microcomputer; single-chip microcomputer is according to the temperature of the current voltage value decision circuitry that receives; in case when finding that the current temperature of this emergency power supply is higher than normal value, single-chip microcomputer makes this emergency power supply quit work immediately, recover normal up to its temperature; reset automatically again, start working.
Emergency power supply provided by the invention, can judge automatically that it is connected with the positive-negative polarity of automobile batteries, no matter current connection correctness, no matter promptly this emergency power supply and automobile batteries are just to connect or reversal connection, it can both provide correct output signal, makes this emergency power supply can detect the current electric quantity of automobile batteries, and when the current electric quantity deficiency of automobile batteries, it is charged, when automobile starting,, realize the final startup of automobile for automobile provides enough big startup auxiliary current.
Emergency power supply provided by the invention, easy to use, have very strong operability, and when this emergency power supply work, the state of supervisory circuit there is stronger self-protection ability constantly.