Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides an LED circuit with a battery and a commercial power reset function.
The purpose of the invention is realized by the following technical scheme: an LED circuit with a battery and capable of being reset by commercial power comprises an AC/DC conversion module, a battery charging module, a light-emitting LED, an isolation diode D3, a switch tube Q1, a switch tube Q2, a switch tube Q3, a key switch SW, a first voltage division module, a second voltage division module, an isolation diode D2 and a battery BT.
The input end of the AC/DC conversion module is connected with commercial power; the output end of the AC/DC conversion module is connected with the input end of the battery charging module; the output end of the battery charging module is connected with a battery BT.
The battery BT controls the on-off of a switch tube Q3 through a key switch SW; two switch ends of the switch tube Q1 are respectively connected with the battery and the anode of the light-emitting LED; the on-off of the switch tube Q3 controls the voltage of the control end of the switch tube Q1; the first voltage division module is arranged between the switching tube Q1 and the light-emitting LED and provides voltage for the control end of the switching tube Q3; the second voltage division module provides voltage for the switching tube Q2; the switch end of the switch tube Q2 is arranged between the switch tube Q3 and the ground; and the second voltage division module is connected with the output end of the AC/DC conversion module.
The anode of the isolation diode D3 is connected with the output end of the AC/DC conversion module; the cathode of the isolation diode D3 is connected with the light-emitting LED; the anode of the isolation diode D2 is connected with a switching tube Q1; and the cathode of the isolation diode D2 is connected with the light-emitting LED.
The invention is further provided with a resistor R2, a resistor R3 and a resistor R4, wherein the switch tube Q1 is a PMOS tube; the switching tube Q2 is a triode; the switching tube Q3 is an NMOS tube.
The drain electrode of the switching tube Q1 is connected with a battery BT; the source electrode of the switching tube Q1 is connected with the grid electrode of the switching tube Q3 through a first voltage division module; the grid electrode of the switching tube Q1 is connected with the drain electrode of the switching tube Q3 through a resistor R3; the battery BT is connected with the grid electrode of a switching tube Q1 through a resistor R2; the drain electrode of the switching tube Q3 is connected with one end of the key switch SW after passing through the resistor R4; the other end of the key switch SW is connected with the grid electrode of the switching tube Q3; the collector of the switching tube Q2 is connected with the gate of the switching tube Q3; the emitter of the switching tube Q2 is grounded; the output end of the AC/DC conversion module is connected with the base electrode of the switching tube Q2 through a second voltage division module; the source electrode of the switching tube Q3 is grounded; the source of the switching tube Q1 is connected with the light-emitting LED through an isolation diode D2.
The invention is further provided that the first voltage division module comprises a resistor R5 and a resistor R6; the source electrode of the switching tube Q1 is grounded through a resistor R5 and a resistor R6; the common end of the resistor R5 and the resistor R6 is connected with the gate of the switching tube Q3.
The invention is further provided that the second voltage division module comprises a resistor R7 and a resistor R8; the output end of the AC/DC conversion module is grounded through a resistor R7 and a resistor R8; the common end of the resistor R7 and the resistor R8 is connected with the base electrode of the switching tube Q2.
The invention is further provided that a fuse F1 is arranged between the AC/DC conversion module and the commercial power.
The invention is further provided that a protective tube F2 is arranged between the output end of the battery charging module and the battery BT.
The invention is further arranged that the output end of the AC/DC conversion module is provided with an RC filtering module.
The invention is further provided that the isolating diode D3 is a light emitting diode.
The invention has the beneficial effects that: according to the invention, the switch tube Q1, the switch tube Q2, the switch tube Q3, the key switch SW, the first voltage division module, the second voltage division module, the isolation diode D2 and the battery BT are arranged, so that the battery BT supplies power to the luminous LED after the commercial power stops pressing the key switch, and the battery BT is reset to no longer supply power to the luminous LED after the commercial power is turned on again.
Detailed Description
The invention is further described with reference to the following examples.
As can be seen from fig. 1; the LED circuit with a battery and reset by commercial power according to this embodiment includes an AC/DC conversion module 1, a battery charging module 2, a light emitting LED, an isolation diode D3, a switch tube Q1, a switch tube Q2, a switch tube Q3, a key switch SW, a first voltage dividing module, a second voltage dividing module, an isolation diode D2, and a battery BT; the AC/DC conversion module 1 and the battery charging module 2 are both conventional modules.
The input end of the AC/DC conversion module 1 is connected with commercial power; the output end of the AC/DC conversion module 1 is connected with the input end of the battery charging module 2; the output end of the battery charging module 2 is connected with a battery BT.
The battery BT controls the on-off of a switch tube Q3 through a key switch SW; two switch ends of the switch tube Q1 are respectively connected with the battery and the anode of the light-emitting LED; the on-off of the switch tube Q3 controls the voltage of the control end of the switch tube Q1; the first voltage division module is arranged between the switching tube Q1 and the light-emitting LED and provides voltage for the control end of the switching tube Q3; the second voltage division module provides voltage for the switching tube Q2; the switch end of the switch tube Q2 is arranged between the switch tube Q3 and the ground; the second voltage division module is connected with the output end of the AC/DC conversion module 1.
The anode of the isolation diode D3 is connected with the output end of the AC/DC conversion module 1; the cathode of the isolation diode D3 is connected with the light-emitting LED; the anode of the isolation diode D2 is connected with a switching tube Q1; and the cathode of the isolation diode D2 is connected with the light-emitting LED.
Specifically, in the LED circuit of this embodiment, under normal conditions, the commercial power supplies power to the battery charging module 2 through the AC/DC conversion module 1 to charge the battery BT, and meanwhile, the direct current output by the AC/DC conversion module 1 supplies power to the light-emitting LED through the isolation diode D3 to make the light-emitting LED emit light, at this time, the switching tube Q1 is in the off state, and the battery BT cannot supply power to the light-emitting LED.
When the commercial power stops, the light-emitting LED is extinguished, the switch tube Q3 is conducted after the key switch SW is pressed down, so that the switch tube Q1 is conducted, and at the moment, the battery BT supplies power to the light-emitting LED through the isolation diode D2, so that the light-emitting LED emits light.
After the switching tube Q1 is switched on, the first voltage division module provides voltage for the control end of the switching tube Q3, so that the switching tube Q3 is always in a conducting state, the switching tube Q1 is always conducted, and the battery BT supplies power to the light-emitting LED through the isolating diode D2, so that the light-emitting LED emits light.
At this moment, when the commercial power is switched on again, the commercial power provides voltage for the switch tube Q2 through the second voltage division module, so that the switch tube Q2 is switched on, and the control end of the switch tube Q3 is disconnected after losing the voltage, so that the switch tube Q1 is disconnected, so that the battery BT no longer provides voltage for the light-emitting LED, and the reset function after the commercial power is switched on is realized.
The LED circuit with the battery and the reset function by the mains supply further includes a resistor R2, a resistor R3, a resistor R4, and a switch Q1 which is a PMOS transistor; the switching tube Q2 is a triode; the switching tube Q3 is an NMOS tube.
The drain electrode of the switching tube Q1 is connected with a battery BT; the source electrode of the switching tube Q1 is connected with the grid electrode of the switching tube Q3 through a first voltage division module; the grid electrode of the switching tube Q1 is connected with the drain electrode of the switching tube Q3 through a resistor R3; the battery BT is connected with the grid electrode of a switching tube Q1 through a resistor R2; the drain electrode of the switching tube Q3 is connected with one end of the key switch SW after passing through the resistor R4; the other end of the key switch SW is connected with the grid electrode of the switching tube Q3; the collector of the switching tube Q2 is connected with the gate of the switching tube Q3; the emitter of the switching tube Q2 is grounded; the output end of the AC/DC conversion module 1 is connected with the base electrode of a switching tube Q2 through a second voltage division module; the source electrode of the switching tube Q3 is grounded; the source of the switching tube Q1 is connected with the light-emitting LED through an isolation diode D2. In the LED circuit with a battery and reset by the mains supply of this embodiment, the first voltage division module includes a resistor R5 and a resistor R6; the source electrode of the switching tube Q1 is grounded through a resistor R5 and a resistor R6; the common end of the resistor R5 and the resistor R6 is connected with the gate of the switching tube Q3. In the LED circuit with a battery and reset by the mains supply of this embodiment, the second voltage division module includes a resistor R7 and a resistor R8; the output end of the AC/DC conversion module 1 is grounded through a resistor R7 and a resistor R8; the common end of the resistor R7 and the resistor R8 is connected with the base electrode of the switching tube Q2.
Specifically, the LED circuit described in this embodiment.
Under normal conditions, the commercial power supplies power to the battery charging module 2 through the AC/DC conversion module 1 to charge the battery BT, and at the same time, the direct current output by the AC/DC conversion module 1 supplies power to the light-emitting LED through the isolation diode D3 to make the light-emitting LED emit light, at this time, since the gate of the switching tube Q1 is between the resistor R2 and the resistor R3, and since the switching tube Q3 is turned off, the voltage of the gate of the switching tube Q1 is large, and the switching tube Q1 is a PMOS tube, the switching tube Q1 is in an off state, and the battery BT cannot supply power to the light-emitting LED.
When the commercial power is stopped, the light-emitting LED is extinguished, at the moment, after the key switch SW is pressed down, the battery BT energizes the grid of the switch tube Q3 through the resistor R2, the resistor R3 and the resistor R4, so that the switch tube Q3 of the NMOS tube is turned on, at the moment, the voltage of the grid of the switch tube Q1 is small, so that the switch tube Q1 is turned on, and at the moment, the battery BT supplies power to the light-emitting LED through the isolating diode D2, so that the light-emitting LED emits light.
After the switching tube Q1 is turned on, the resistor R5 and the resistor R6 provide voltage to the gate of the switching tube Q3, so that the switching tube Q3 is always in a conducting state, the switching tube Q1 is always conducting, and the battery BT supplies power to the light-emitting LED through the isolating diode D2, so that the light-emitting LED emits light.
At this moment, when the commercial power is switched on again, the commercial power supplies voltage to the base of the switching tube Q2 through the resistor R7 and the resistor R8, so that the switching tube Q2 is switched on, and the gate of the switching tube Q3 is switched off after voltage loss, so that the switching tube Q1 is switched off, so that the battery BT no longer supplies voltage to the light-emitting LED, and the reset function after the commercial power is switched on is realized.
In the LED circuit with the battery and the reset function by the mains supply of this embodiment, a fuse F1 is arranged between the AC/DC conversion module 1 and the mains supply. In the LED circuit with the battery and the reset function by the commercial power, a fuse F2 is arranged between the output end of the battery charging module 2 and the battery BT.
By providing the fuse F1 and the fuse F2, the AC/DC conversion module 1 and the battery charging module 2 can be protected.
In the LED circuit with the battery and the reset function by the commercial power, the output end of the AC/DC conversion module 1 is provided with an RC filter module.
In the LED circuit with the battery and the reset function by the commercial power, the isolation diode D3 is a light emitting diode. By providing the isolation diode D3 as a light emitting member at the same time, the light emitting effect of the LED can be enhanced.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the protection scope of the present invention, although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.