Background
The charger is composed of a charging module and a charging control module, when the charger charges the battery pack, information fed back by the battery pack, such as voltage, current, temperature and the like, is collected through a port, whether normal charging operation needs to be carried out on the battery pack is automatically judged according to the information fed back by the battery pack, when the charging control module detects that the information fed back by the battery pack is abnormal, the charging control module immediately closes the charging operation, the charging module is stopped from charging the battery pack, and safety accidents caused by over-charging of the battery pack are avoided; when the detected feedback information is in the effective range, the charging control module continues to control the charging module to charge the battery pack.
The fixed output constant voltage value of traditional charger adoption power supply circuit charges for the battery package, in order to prevent that the charger from exporting the potential safety hazard that fixed high voltage value may appear always, consequently need to convert the output voltage of charger, has chinese utility model "lithium battery charger output low voltage high voltage conversion circuit" that patent number is 201720803903.2 to disclose such an output voltage conversion circuit, include: the battery pack protection plate is connected with a battery pack to be charged in parallel and used for outputting a high-low level combined signal according to the voltage state of the battery pack to be charged; the charger detection circuit is connected with the high-low level combined signal and the charger output voltage of the external charger circuit and outputs a charger control signal to the voltage conversion circuit; and the input end of the voltage conversion circuit is connected with the charger control signal and the charger output voltage of the external charger circuit, and the voltage conversion circuit outputs a battery voltage feedback signal to the external charger circuit. The patent adopts an output voltage conversion circuit, can adjust the output voltage according to the actual condition, and prevents electric shock hazard caused by high voltage.
The output voltage conversion in the above patent is based on detecting whether the battery is inserted into the charger, and when the battery is not inserted into the charger, the charger outputs a relatively low safety voltage; when the battery is detected to be inserted into the charger, the charger outputs a normal charging voltage; however, in the actual use process, the situation that the charging control circuit in the charger fails and cannot be controlled to be closed through the microcontroller, or the battery pack is charged by using the charging voltage when the battery pack fails occurs, so that a major safety accident that the battery pack is overcharged due to continuous high-voltage charging under the condition that the battery pack is fully charged, and the explosion occurs easily, or the potential safety hazard that high voltage is continuously output when the battery pack fails occurs easily occurs. Therefore, it is necessary to develop a voltage regulating circuit for regulating the output voltage of the switching power supply when the battery pack fails or the charge control circuit fails.
SUMMERY OF THE UTILITY MODEL
The utility model aims to solve the technical problem that to prior art's current situation, provide an output voltage regulating circuit of charger that can be according to microcontroller's testing result automatic adjustment in order to guarantee to charge safety.
The utility model provides a technical scheme that above-mentioned technical problem adopted does: the utility model provides an output voltage regulating circuit of charger for be connected with switching power supply's in the charger feedback end and microcontroller's first control end, its characterized in that: the voltage regulating circuit comprises a control module, a voltage dividing circuit and a reference voltage source, wherein the input end of the control module is connected with the first control end of the microcontroller, the output end of the control module is connected with the voltage dividing circuit, and the voltage dividing circuit and the reference voltage source are respectively connected with the feedback end of the switching power supply and are used for comparing the voltages according to the reference voltage source and the voltage dividing circuit so as to control the output voltage of the switching power supply.
In this scheme, switching power supply includes optoelectronic coupler, control chip and power supply circuit, voltage divider circuit connects optoelectronic coupler's 1 st end, reference voltage source connects optoelectronic coupler's 2 nd end, optoelectronic coupler's 1 st end and 2 nd end are switching power supply's feedback end, optoelectronic coupler's 3 rd end ground connection, optoelectronic coupler's 4 th end connection control chip's input, control chip's output connection power supply circuit's input, power supply circuit's output corresponds the output that is switching power supply.
Specifically, the control module comprises a triode, the voltage division circuit comprises a first resistor, a second resistor, a third resistor and a fourth resistor, the base electrode of the triode is connected with the first control end of the microcontroller, the emitter electrode of the triode is connected with the No. 3 pin of the reference voltage source and is grounded, the collector of the triode is connected with one end of a fourth resistor, the other end of the fourth resistor is connected with the No. 1 pin of a reference voltage source, two ends of the third resistor are respectively connected with the 3 rd pin of the reference voltage source and the 1 st pin of the reference voltage source, one end of the second resistor is connected with the 1 st pin of the reference voltage source, the other end of the second resistor is connected with the first resistor in series, and the other end of the first resistor is connected with the 1 st end of a photoelectric coupler, and the 2 nd end of the photoelectric coupler is connected with the 2 nd pin of a reference voltage source.
Preferably, the reference voltage source is a TL431 chip.
Compared with the prior art, the utility model has the advantages of: according to the method, whether a battery pack and a charging control circuit have faults is monitored by a microcontroller in a charger, when the battery pack and the charging control circuit have the faults, a first control end of the microcontroller sends a signal to make a control module not be conducted, so that the output voltage of a switching power supply is reduced, and the battery pack is protected; otherwise, the first control end of the microcontroller sends a signal to enable the control module to be conducted, so that voltage division is carried out through the voltage division circuit, the output voltage of the switching power supply is increased, and normal charging is guaranteed. Therefore, the output voltage regulating circuit of the charger can automatically regulate the output voltage of the switching power supply according to different conditions in the charger, thereby protecting the charging safety of the charger on the battery pack and having good use value.
Detailed Description
The present invention will be described in further detail with reference to the following embodiments.
As shown in FIG. 1, an output voltage regulating circuit of a charger, the output terminal of the charger is connected with a battery pack, the output terminal of the battery pack is further connected with a current detecting circuit, and the charger is internally provided with a current detecting circuit
The switching power supply 3 is used for supplying power to the battery pack, and the output end of the switching power supply is connected with the input end of the battery pack;
the charging control circuit 4 is used for controlling the switching power supply 3 to supply power to the battery pack and is connected between the output end of the switching power supply 3 and a node connecting line connected with the input end of the battery pack;
the voltage regulating circuit is used for regulating the output voltage of the switching power supply, and the output end of the voltage regulating circuit is connected with the feedback end of the switching power supply;
the microcontroller is used for detecting whether the battery pack needs to be charged and controlling the charging control circuit and the voltage regulating circuit to work, and comprises a detection port, a first control end and a second control end, wherein the detection port is connected with the signal output end, the positive electrode end, the negative electrode end and the temperature detection port of the battery pack, and the first control end and the second control end are respectively connected with the input end of the voltage regulating circuit and the input end of the charging control circuit;
the detection ports PA0, PA1, PA2 and PA3 of the microcontroller are respectively connected with the signal output end T/ID, the positive terminal B +, the negative terminal B-and the temperature detection port T of the battery pack, the first control terminal OC1 of the microcontroller is connected with the voltage regulation circuit, the second control terminal OC2 of the microcontroller is connected with the charge control circuit 4, and other pins of the microcontroller are also connected with peripheral circuits (not shown in the figure). Wherein, be equipped with thermistor NTC in the battery package, temperature detect port T of battery package is connected with the thermistor NTC in the battery package. And the detection port PA4 of the microcontroller is connected with a switching power supply output voltage detection circuit 6, and the detection port PA1 of the microcontroller is connected with a battery pack voltage detection circuit 5 for detecting the voltage of the positive terminal B + of the battery pack.
As shown in fig. 2, the current detection circuit includes a sixth resistor R6, one end of the sixth resistor R6 is connected to the output terminal of the battery pack, the other end of the sixth resistor R6 is grounded, and the detection port of the microcontroller is further connected between the output terminal of the battery pack and the connection line of the sixth resistor, for detecting whether there is current between the output terminal of the battery pack and the connection line of the sixth resistor.
The output voltage regulating circuit in this embodiment includes a control module 1, a voltage dividing circuit 2 and a reference voltage source U2, an input end of the control module 1 is connected with a first control end OC1 of the microcontroller, an output end of the control module 1 is connected with the voltage dividing circuit 2, the voltage dividing circuit 2 and the reference voltage source U2 are respectively connected with a feedback end of the switching power supply 3, and comparison is performed according to voltages of the reference voltage source U2 and the voltage dividing circuit 2, so as to control an output voltage of the switching power supply 3.
As shown in fig. 2, which is one specific embodiment of the circuit in the charger in this embodiment, the switching power supply 3 includes a photocoupler U1, a control chip U4 and a power supply circuit, the voltage dividing circuit 2 is connected to the 1 st end of the photocoupler U1, the reference voltage source U2 is connected to the 2 nd end of the photocoupler U1, the 1 st end and the 2 nd end of the photocoupler U1 are feedback ends of the switching power supply 3, the 3 rd end of the photocoupler U1 is grounded, the 4 th end of the photocoupler U1 is connected to the input end of the control chip U4, the output end of the control chip U4 is connected to the input end of the power supply circuit, and the output end of the power supply circuit corresponds to the output end of the switching power supply 3. The circuit in the power circuit adopts a conventional circuit, and comprises an AC-DC module, a transformer T1 and connected peripheral circuits, and is used for converting commercial power into direct current and reducing the direct current to a voltage capable of charging the battery pack through the transformer T1. In this embodiment, the reference voltage source U2 is a TL431 chip, which is provided with 3 pin terminals; the charging control circuit 4 comprises a MOS tube Q2, the source electrode of the MOS tube Q2 is connected with the output end of the switching power supply, the grid electrode of the MOS tube Q2 is connected with the microcontroller, the drain electrode of the MOS tube Q2 is connected with the input end of the battery pack, and the MOS tube Q2 is controlled to be conducted through the microcontroller, so that the switching power supply is controlled to charge the battery pack.
The control module 1 comprises a triode V1, the voltage dividing circuit 2 comprises a first resistor R1, a second resistor R2, a third resistor R3 and a fourth resistor R4, the base of the triode V1 is connected with a first control end OC1 of the microcontroller through a fifth resistor R5, the emitter of the triode V1 is connected with a3 rd pin of a reference voltage source U2 and grounded, the collector of the triode V1 is connected with one end of the fourth resistor R4, the other end of the fourth resistor R4 is connected with a1 st pin of a reference voltage source U2, two ends of the third resistor R3 are respectively connected with a3 rd pin of the reference voltage source U2 and a1 st pin of the reference voltage source U2, one end of the second resistor R2 is connected with a1 st pin of the reference voltage source U2, the other end of the second resistor R2 is connected with the first resistor R1 in series, the other end of the first resistor R1 is connected to the 1 st terminal of the photocoupler U1, and the 2 nd terminal of the photocoupler U1 is connected to the 2 nd pin of the reference voltage source U2.
The operating principle of the voltage regulating circuit in fig. 2 is: when the battery pack is normally charged, the first control end of the microcontroller controls the triode V1 to be conducted, the fourth resistor R4 is connected with the third resistor R3 in parallel, the voltage of the parallel-connected fourth resistor R4 and third resistor and the second resistor R2 form the voltage setting of TL431, the voltage setting is fed back to the photoelectric coupler U1, the current in the 1 st pin and the 2 nd pin of the photoelectric coupler U1 is changed, the brightness of a light-emitting diode in the photoelectric coupler U1 is controlled, the conduction degrees of the triodes in the 3 rd pin and the 4 th pin of the photoelectric coupler U1 are controlled to be different, the voltage fed back to the control chip U4 is different, and therefore the working state of the transformer T1 is controlled according to the control chip U4, the output voltage of the switching power supply is increased, and the higher charging voltage for normally charging the battery pack is achieved; when the microcontroller detects that the battery pack or the charging control circuit has a fault, the first control end of the microcontroller controls the triode V1 to be cut off, the fourth resistor R4 is not connected in parallel with the third resistor R3, the third resistor R3 and the second resistor R2 form the voltage setting of TL431, the ratio of the second resistor R2 to the third resistor R3 is smaller than the ratio of the second resistor R2 to the resistor after the fourth resistor R4 and the third resistor are connected in parallel, so that the voltage at the 1 st and 2 nd pins of the photocoupler U1 is smaller than that when the fourth resistor R4 and the third resistor R3 are connected in parallel under the normal charging condition, thereby reducing the output voltage of the switching power supply, ensuring the safe voltage of the output voltage of the switching power supply, even if the battery pack is always connected with the charger, the situation of continuous high-voltage charging can not occur, thereby effectively avoiding the occurrence of safety accidents, and simultaneously, when in the idle state, by reducing the output voltage of the switching power supply, the power consumption of the whole system in the charger is also reduced.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of improvements and decorations can be made without departing from the technical principle of the present invention, and these improvements and decorations should also be regarded as the protection scope of the present invention.