Summary of the invention:
For this purpose, technical problem to be solved by the present invention lies in the battery plus-negative plates of UPS uninterruptible power supply in the prior art
It is easily accessed mistake, influences the service life of battery, to propose a kind of battery polar detection circuit.
In order to achieve the above objectives, technical scheme is as follows:
A kind of battery polar detection circuit, comprising: first diode D1, the second diode D2, relay J1, resistance R;
First pole of the anode connection battery of the first diode D1, the cathode connection second of the first diode D1
The anode of diode D2,7 foot of primary coil of the cathode connection relay J1 of the second diode D2, the primary coil of relay J1
8 feet connect the second pole of battery, 4 foot of the normally open contact ground connection of relay J1, and 6 foot of normally open contact of relay J1 connects battery pole
Property signal port, the battery polar signal port connects DSP input terminal, and the first end of resistance R connects power supply VCC, resistance R's
6 foot of normally open contact of second end connection relay J1.
As a preferred embodiment of the above technical solution, the first diode D1 and the second diode D2 is two pole of switch
Pipe.
As a preferred embodiment of the above technical solution, the relay J1 is DC relay.
As a preferred embodiment of the above technical solution, the resistance R is pull-up resistor.
The beneficial effects of the present invention are: battery polar mistake is found early, avoids bigger failure and damage;Electricity
Road is simple, easily realizes.
Specific embodiment:
As shown in Figure 1, a kind of battery polar detection circuit of the invention, comprising: first diode D1, the second diode
D2, relay J1, resistance R.The first diode D1 and the second diode D2 is switching diode.The relay
J1 is DC relay.The resistance R is pull-up resistor.
First pole of the anode connection battery of the first diode D1, the cathode connection second of the first diode D1
The anode of diode D2,7 foot of primary coil of the cathode connection relay J1 of the second diode D2, the primary coil of relay J1
8 feet connect the second pole of battery, 4 foot of the normally open contact ground connection of relay J1, and 6 foot of normally open contact of relay J1 connects battery pole
Property signal port, the battery polar signal port connects DSP input terminal, and the first end of resistance R connects power supply VCC, resistance R's
6 foot of normally open contact of second end connection relay J1.
According to the height of cell voltage, suitable DC relay is selected, the number by changing switching diode is depressured,
So that cell voltage supplies electricity to relay J1 work after being depressured.When battery polar signal is low level, battery plus-negative plate is judged
Property access it is correct, when battery polar signal is high level, judge that anode polarity accesses mistake.
Working principle:
When battery plus-negative plate access is correct, i.e. the extremely anode BAT+ of the first of battery, the second of battery is extremely
Battery cathode BAT-, since the anode of first diode D1 meets anode BAT+, because of the forward conduction characteristic of diode, thus it is electric
After cell voltage is depressured by first diode D1, the second diode D2, relay J1 is supplied electricity to, then relay J1 is closed, relay
4 foot of normally open contact of device J1 and 6 feet are connected, then the battery polar signal of battery polar signaling interface is low level, battery polar
Signaling interface, which send the battery polar signal, is judged as that battery access polarity is correct in DSP, DSP.
When battery plus-negative plate is reversed, i.e. the extremely battery cathode BAT- of the first of battery, the extremely battery of the second of battery
Anode BAT+, since the anode of first diode D1 becomes connecing the cathode BAT- of battery, because of the reversed cut-off characteristics of diode, therefore
The primary coil of relay J1 does not have supply voltage, so relay J1 is disconnected, then 4 foot of normally open contact of J1 and 6 feet disconnect, electricity
The battery polar signal of pond polar signal interface is high level, and battery polar signaling interface send the battery polar signal in DSP,
DSP is judged as that battery accesses incorrect polarity.
A kind of battery polar detection circuit described in the present embodiment, comprising: first diode D1, the second diode D2, after
Electric appliance J1, resistance R, relay J1 are connected with battery polar signaling interface, and battery polar signaling interface sends out battery polar signal
DSP is given, judges whether battery access polarity is correct, i.e., when battery polar signal is low level, judges battery just by DSP
Negative polarity access is correct, when battery polar signal is high level, judges that anode polarity accesses mistake.Battery polar detection
Circuit can find battery polar mistake early, avoid bigger failure and damage;Circuit is simple, easily realizes.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right
For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or
It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or
It changes still within the protection scope of the invention.