CN110635543B - Charging control system based on single chip microcomputer - Google Patents

Charging control system based on single chip microcomputer Download PDF

Info

Publication number
CN110635543B
CN110635543B CN201910634490.3A CN201910634490A CN110635543B CN 110635543 B CN110635543 B CN 110635543B CN 201910634490 A CN201910634490 A CN 201910634490A CN 110635543 B CN110635543 B CN 110635543B
Authority
CN
China
Prior art keywords
resistor
triode
circuit
voltage stabilizing
electrode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910634490.3A
Other languages
Chinese (zh)
Other versions
CN110635543A (en
Inventor
石波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHONGQING YUBEI VOCATIONAL EDUCATION CENTER
Original Assignee
CHONGQING YUBEI VOCATIONAL EDUCATION CENTER
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHONGQING YUBEI VOCATIONAL EDUCATION CENTER filed Critical CHONGQING YUBEI VOCATIONAL EDUCATION CENTER
Priority to CN201910634490.3A priority Critical patent/CN110635543B/en
Publication of CN110635543A publication Critical patent/CN110635543A/en
Application granted granted Critical
Publication of CN110635543B publication Critical patent/CN110635543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Abstract

The invention provides an inductive power transmission system, which is a charging control system based on a singlechip and comprises a rectifier circuit REC, an input protection circuit, a first voltage stabilizing circuit, a second voltage stabilizing circuit, a standby lithium battery, a battery management chip, the singlechip, a standby power supply control circuit, a detection switch circuit, a first USB socket and a second USB socket; can enough charge to electronic equipment through the electric wire netting is direct, can charge electronic equipment under the state that the electric wire netting has a power failure again to can ensure user's normal use, moreover, can carry out organic unity with stand-by power supply with charging, and have good oneself overvoltage protection performance, thereby protect entire system and subsequent electronic equipment, convenience of customers uses moreover, and the practicality is strong.

Description

Charging control system based on single chip microcomputer
Technical Field
The invention relates to a control system, in particular to a charging control system based on a single chip microcomputer.
Background
With the development of electronic communication technology, electronic products in the market are diversified, and charging equipment of the electronic products is diversified, namely, different electronic products have different charging adapters, so that different electronic products are difficult to use the charging adapters together, and users are inconvenient to use; on the other hand, although the power supply of a power grid is relatively stable in the modern society, the power supply fluctuation phenomenon still exists, when the charging adapter is directly adopted to charge the electronic product, when the voltage fluctuates, the charging adapter is easily damaged, even the electronic product is endangered, and in addition, the existing charging adapter cannot be used under the condition of power failure.
Certainly, another kind of stand-by power supply at present, portable power source, the common name is treasured that charges, however, current portable power source and the adapter that charges are all mutually independent, need carry two adapters that charge simultaneously during the use to cause the inconvenience of using for the user.
Disclosure of Invention
In view of this, the present invention aims to provide a charging control system based on a single chip, which can directly charge an electronic device through a power grid, and can also charge the electronic device in a power failure state of the power grid, so as to ensure normal use of a user, and can organically integrate charging and a standby power supply, and has good self overvoltage protection performance, so as to protect the whole system and subsequent electronic devices, and is convenient for the user to use and strong in practicability.
The invention provides a charging control system based on a single chip microcomputer, which comprises a rectifier circuit REC, an input protection circuit, a first voltage stabilizing circuit, a second voltage stabilizing circuit, a standby lithium battery, a battery management chip, the single chip microcomputer, a standby power supply control circuit, a detection switch circuit, a first USB socket and a second USB socket, wherein the first voltage stabilizing circuit is connected with the input protection circuit;
the input end of the rectifier circuit REC is connected with a mains supply, the output end of the rectifier circuit is connected with the input end of the input protection circuit, the output end of the input protection circuit is connected with the input end of the first voltage stabilizing circuit, the first output end of the first voltage stabilizing circuit is connected with the input end of the second voltage stabilizing circuit, and the second voltage stabilizing circuit supplies power to the single chip microcomputer, the battery management chip and the first USB socket; the second output end of the first voltage stabilizing circuit is electrified to the second USB socket and the power input end of the battery management chip, the detection input end of the battery management chip is connected with the output end of the input protection circuit, the power input end of the battery management chip is connected with the power supply end of the standby lithium battery, the power output end of the standby power supply control circuit is connected with the input end of the first voltage stabilizing circuit, the battery management chip is in communication connection with the single chip microcomputer, the detection switch circuit is used for detecting whether the first USB socket and the second USB socket are inserted into a USB plug or not and outputting a control signal to the single chip microcomputer, and the single chip microcomputer inputs a control command to the control input end of the detection switch circuit to control the connection and disconnection of the power supply paths of the first voltage stabilizing circuit and the first USB socket as well as the connection and.
Preferably: the input protection circuit comprises a resistor R1, a resistor R2, a voltage dependent resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a resistor R8, a resistor R9, a triode Q2, a thyristor Q1, a PMOS tube Q3, a triode Q6, a diode D1 and a diode D2;
one end of a resistor R1 is connected as an input end of the input protection circuit to a positive output end of the rectifier circuit REC, the other end of the resistor R1 is connected to a source of a PMOS transistor Q3 through a resistor R6, a common connection point between the resistor R1 and the resistor R6 is grounded through a resistor R2, a common connection point between the resistor R1 and the resistor R2 is grounded through a capacitor C1, a common connection point between the resistor R1 and the resistor R1 is connected to one end of a varistor R1, the other end of the varistor R1 is grounded through a resistor R1, a common connection point between the varistor R1 and the resistor R1 is connected to a control electrode of the thyristor Q1 through the resistor R1, an anode of the thyristor Q1 is connected to an emitter of the transistor Q1, a cathode of the transistor Q1 is grounded, a collector of the transistor Q1 is connected to a base of the transistor Q1 through the resistor R1, a collector of the transistor Q1 is connected to the source of the PMOS transistor Q1 through the capacitor C1, and a, the base electrode of the triode Q2 is connected with the negative electrode of the diode D1, the positive electrode of the diode D1 is connected with the single chip microcomputer as the control input end of the input protection circuit, the source electrode of the PMOS tube Q3 is connected with the grid electrode through a resistor R8, the grid electrode of the PMOS tube Q3 is connected with the collector electrode of the triode Q6 through a resistor R26, the emitting electrode of the triode Q6 is grounded, the drain electrode of the PMOS tube Q3 is connected with the positive electrode of the diode D2, and the negative electrode of the diode D2 is used as the output end of the input protection circuit.
Preferably: the first voltage stabilizing circuit comprises a triode Q4, a resistor R10, a voltage stabilizing tube DW2, a voltage stabilizing tube DW1, a resistor R12 and a resistor R11;
the collector of the triode Q4 serves as an input end of the first voltage stabilizing circuit, the collector of the triode Q4 is connected with the base of the triode Q4 through a resistor R10, the base of the triode Q4 is connected with the negative electrode of a voltage stabilizing tube DW2, the positive electrode of a voltage stabilizing tube DW2 is grounded, the negative electrode of a voltage stabilizing tube DW1 is connected with the emitter of the triode Q4, the positive electrode of the voltage stabilizing tube DW1 is grounded through a resistor R12, a common connection point between the negative electrode of the voltage stabilizing tube DW1 and the emitter of the triode Q4 serves as a first output end of the first voltage stabilizing circuit, one end of a resistor R11 is connected with a common connection point between the negative electrode of a voltage stabilizing tube DW1 and the emitter of the triode Q4, and the other.
Preferably: the input protection circuit further comprises a power-off detection circuit, wherein the power-off detection circuit comprises a resistor R13, a resistor R14, a resistor R15, a diode D6 and a triode Q5;
one end of the resistor R13 is connected to the output end of the input protection circuit, the other end of the resistor R13 is grounded through a resistor R14, a common connection point between the resistor R13 and the resistor R14 is connected with the base electrode of the triode Q5 through a resistor R15, the emitting electrode of the triode Q5 is grounded, the collector electrode of the triode Q5 is connected with the negative electrode of the diode D6, and the positive electrode of the diode D6 is connected to the power-off detection input end of the single chip microcomputer.
Preferably: the standby power supply control circuit comprises a resistor R17, a resistor R18, a resistor R19, a diode D5, a diode D4, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a triode Q7, a triode Q8, a triode Q9, a manual switch S1 and a PMOS tube Q10; the triode Q7 and the triode Q8 are P-type triodes;
one end of a resistor R17 is used as a detection input end of the standby power supply control circuit and is connected to an output end of the input protection circuit, the other end of the resistor R17 is connected with an emitter of a triode Q7, an emitter of a triode Q7 is connected with a base of a triode Q7 through a resistor R18, a collector of a triode Q7 is connected with a base of a triode Q8 through a resistor R23, an emitter of the triode Q8 is connected with a source of a PMOS tube Q10 through a resistor R20, a collector of the triode Q8 is connected with a base of the triode Q8, an emitter of the triode Q8 is connected with an anode of a diode D8 through a resistor R8, a cathode of the diode D8 is connected with a collector of the transistor Q8, an emitter of the transistor Q8 is grounded, a collector of the triode Q8 is connected with a gate of the PMOS tube Q8 through a resistor R8, a source of the PMOS tube Q8 is connected with a common power supply terminal Vbat of the lithium battery through a manual switch S8. The drain of the PMOS tube Q10 is connected with the anode of the diode D4, and the cathode of the diode D4 is connected with the input end of the first voltage stabilizing circuit as the output end of the standby power supply control circuit.
Preferably: the two detection switch circuits are in the same structure and correspond to the first USB socket and the second USB socket one by one;
the detection switch circuit comprises two conductive elastic sheets, a resistor R24, a resistor R25, a resistor R26, a triode Q11 and a triode Q12;
two conductive elastic sheets are arranged on the USB socket, one conductive elastic sheet is connected with the output end of the second voltage stabilizing circuit, the other conductive elastic sheet is connected with the emitting electrode of a triode Q11, the collecting electrode of the triode Q11 is grounded through a resistor R25, the base electrode of the triode Q11 is connected with the emitting electrode of a triode Q11 through a resistor R24, the emitting electrode of the triode Q11 is connected with the detection input end of the single chip microcomputer, one end of the triode Q26 is connected with the control output end of the single chip microcomputer, the other end of the resistor R26 is connected with the base electrode of the triode Q12, the collecting electrode of the triode Q12 is connected with the output end of the first voltage stabilizing circuit or the second voltage stabilizing circuit, and the emitting electrode of the triode Q12 is.
Preferably: the singlechip is an AT89C2051 singlechip.
Preferably: the battery management chip is a BQ25703A chip.
Preferably: the second voltage stabilizing circuit is an LM2596 chip.
The invention has the beneficial effects that: through the structure of the invention, the electronic equipment can be directly charged through the power grid, and can also be charged in the power grid power failure state, so that the normal use of a user can be ensured, the charging and the standby power supply can be organically integrated, and the self overvoltage protection performance is good, so that the whole system and the subsequent electronic equipment are protected, the use by the user is convenient, and the practicability is strong.
Drawings
Fig. 1 is a schematic block diagram of the present invention.
FIG. 2 is a schematic diagram of an input protection circuit and a first voltage regulator circuit according to the present invention.
FIG. 3 is a circuit schematic of a second voltage regulator circuit according to the present invention.
Fig. 4 is a circuit schematic of the standby power control circuit of the present invention.
Fig. 5 is a schematic circuit diagram of the detection switch circuit of the present invention.
Fig. 6 is a schematic structural diagram of a USB socket according to the present invention.
FIG. 7 is a schematic diagram of a power down detection circuit.
Detailed Description
The present invention is explained in further detail below with reference to the drawings attached to the specification, and it should be noted that the detailed description of the present invention is only for the preferred embodiments, and any modifications and equivalents of the technical solutions of the present invention by those skilled in the art are included in the scope of the technical solutions of the present application.
The invention provides a charging control system based on a single chip microcomputer, which comprises a rectifier circuit REC, an input protection circuit, a first voltage stabilizing circuit, a second voltage stabilizing circuit, a standby lithium battery, a battery management chip, the single chip microcomputer, a standby power supply control circuit, a detection switch circuit, a first USB socket and a second USB socket, wherein the first voltage stabilizing circuit is connected with the input protection circuit;
the input end of the rectifier circuit REC is connected with a mains supply, the output end of the rectifier circuit is connected with the input end of the input protection circuit, the output end of the input protection circuit is connected with the input end of the first voltage stabilizing circuit, the first output end of the first voltage stabilizing circuit is connected with the input end of the second voltage stabilizing circuit, and the second voltage stabilizing circuit supplies power to the single chip microcomputer, the battery management chip and the first USB socket; the second output end of the first voltage stabilizing circuit is electrified to the second USB socket and the power input end of the battery management chip, the detection input end of the battery management chip is connected with the output end of the input protection circuit, the power supply input end of the battery management chip is connected with the power supply end of the standby lithium battery, the power supply output end of the standby power supply control circuit is connected with the input end of the first voltage stabilizing circuit, the battery management chip is in communication connection with the singlechip, the detection switch circuit is used for detecting whether the first USB socket and the second USB socket are inserted into the USB plug or not, the singlechip inputs a control command to the control input end of the detection switch circuit to control the connection and disconnection of a power supply path between the first voltage stabilizing circuit and the first USB socket and between the second voltage stabilizing circuit and the first USB socket, wherein the singlechip is an AT89C2051 singlechip; the battery management chip is a BQ25703A chip; the second voltage stabilizing circuit is an LM2596 chip, and because the single chip microcomputer and the battery management circuit are both existing chips, the chips have the same product specification when leaving the factory, and the specification of the chips is provided with the description of each pin and a corresponding peripheral circuit, so that a person skilled in the art can complete the connection of corresponding pin relations according to the specification of the product specification, the second voltage stabilizing circuit belongs to the prior art, and is not described in detail herein, and the rectifier circuit REC is a full-bridge rectifier circuit formed by existing diodes; through the model selection of the voltage-regulator tube DW1 and the voltage-regulator tube DW2, the magnitude of the output voltage of the first voltage-regulator circuit can be selected, such as 9V, such as 12V, generally, the maximum output is selected to be 12V, and the corresponding requirements can be met, the second voltage-regulator circuit outputs 5V direct current, on one hand, the second voltage-regulator circuit is used for supplying power to a single chip microcomputer, and on the other hand, the second voltage-regulator circuit supplies power to low-voltage electronic products, such as; through the structure, can enough charge to electronic equipment through the electric wire netting is direct, can charge to electronic equipment under the state that the electric wire netting has a power failure again to can ensure user's normal use, moreover, can carry out organic unity with stand-by power supply with charging, and have good oneself overvoltage protection performance, thereby protect entire system and subsequent electronic equipment, convenience of customers uses moreover, and the practicality is strong.
In a preferred embodiment, the input protection circuit includes a resistor R1, a resistor R2, a voltage dependent resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a resistor R8, a resistor R9, a transistor Q2, a thyristor Q1, a PMOS transistor Q3, a transistor Q6, a diode D1, and a diode D2;
one end of a resistor R1 is connected as an input end of the input protection circuit to a positive output end of the rectifier circuit REC, the other end of the resistor R1 is connected to a source of a PMOS transistor Q3 through a resistor R6, a common connection point between the resistor R1 and the resistor R6 is grounded through a resistor R2, a common connection point between the resistor R1 and the resistor R2 is grounded through a capacitor C1, a common connection point between the resistor R1 and the resistor R1 is connected to one end of a varistor R1, the other end of the varistor R1 is grounded through a resistor R1, a common connection point between the varistor R1 and the resistor R1 is connected to a control electrode of the thyristor Q1 through the resistor R1, an anode of the thyristor Q1 is connected to an emitter of the transistor Q1, a cathode of the transistor Q1 is grounded, a collector of the transistor Q1 is connected to a base of the transistor Q1 through the resistor R1, a collector of the transistor Q1 is connected to the source of the PMOS transistor Q1 through the capacitor C1, and a, the base electrode of the triode Q2 is connected with the negative electrode of the diode D1, the positive electrode of the diode D1 is used as the control input end of the input protection circuit and is connected with the single chip microcomputer, the source electrode of the PMOS tube Q3 is connected with the grid electrode through the resistor R8, the grid electrode of the PMOS tube Q3 is connected with the collector electrode of the triode Q6 through the resistor R26, the emitter electrode of the triode Q6 is grounded, the drain electrode of the PMOS tube Q3 is connected with the positive electrode of the diode D2, and the negative electrode of the diode D2 is used as the output end of the input protection circuit, wherein the piezoresistor R3 plays a role in clamping, and when the input voltage is normal, almost no current passes through the piezoresistor R3, so; therefore, the input voltage is prevented from being overlarge, when the voltage is overlarge, the resistance of the voltage dependent resistor R3 is rapidly reduced, the controllable silicon Q1 is conducted at the moment, the difference value of the source voltage and the grid voltage is larger than the conducting voltage due to the action of the PMOS tube, the PMOS tube Q3 is conducted, and power is supplied to the outside, and the principle is as follows: when the rectifier circuit REC is just connected to the mains supply, current flows through the resistor R7 to charge the capacitor C2, in the charging process of C2, the voltage dependent resistor R3 and the resistor R4 monitor overvoltage, when the voltage of the capacitor C2 is increased, the triode Q6 is turned on, due to the fact that the triode Q6 is turned on, the grid voltage of the PMOS transistor Q3 is smaller than the source voltage, the PMOS transistor is turned on to supply power for the subsequent time, after the single chip is powered on, the positive electrode of the diode D1 is set to be high level and kept, after overvoltage, the thyristor Q1 is turned on, at the moment, due to the pull-down effect of the thyristor Q1, the triode Q6 is turned off, at the moment, the potential between the grid electrode and the source electrode of the PMOS transistor Q3 is equal, no voltage difference exists, so that the PMOS transistor Q3 is turned off, power supply to the subsequent circuit.
In a preferred embodiment, the first voltage regulation circuit comprises a transistor Q4, a resistor R10, a voltage regulator tube DW2, a voltage regulator tube DW1, a resistor R12 and a resistor R11;
the collector of the triode Q4 is used as the input end of the first voltage stabilizing circuit, the collector of the triode Q4 is connected with the base of the triode Q4 through a resistor R10, the base of the triode Q4 is connected with the negative electrode of a voltage stabilizing tube DW2, the positive electrode of a voltage stabilizing tube DW2 is grounded, the negative electrode of a voltage stabilizing tube DW1 is connected with the emitting electrode of the triode Q4, the positive electrode of a voltage stabilizing tube DW1 is grounded through a resistor R12, a common connection point between the negative electrode of the voltage stabilizing tube DW1 and the emitting electrode of the triode Q4 is used as the first output end of the first voltage stabilizing circuit, one end of the resistor R11 is connected with the common connection point between the negative electrode of the voltage stabilizing tube DW1 and the emitting electrode of the triode Q4, and the other end of the resistor R11 is used.
In a preferred embodiment, the input protection circuit further comprises a power-off detection circuit, wherein the power-off detection circuit comprises a resistor R13, a resistor R14, a resistor R15, a diode D6 and a triode Q5;
one end of a resistor R13 is connected to the output end of the input protection circuit, the other end of the resistor R13 is grounded through a resistor R14, a common connection point between the resistor R13 and the resistor R14 is connected with the base electrode of a triode Q5 through a resistor R15, the emitting electrode of the triode Q5 is grounded, the collector electrode of the triode Q5 is connected with the negative electrode of a diode D6, and the positive electrode of the diode D6 is connected to the power-off detection input end of the single chip microcomputer; with the above structure, when the power is normally supplied, the transistor Q5 is turned on, the pin of the single chip connected to the anode of the diode D6 is set to low level, which indicates normal power supply, when the PMOS transistor Q3 performs protection, the drain of the PMOS transistor Q3 does not output, the transistor Q5 is turned off, which indicates high level, which indicates that the input protection circuit is performing protection or is connected to the utility power, the single chip enters a timing state, the transistor Q2 is controlled to be turned off for a set time every set time, and then it is determined whether the pin currently connected to the diode D6 is low level, if the pin is in the set time of turning off of the transistor Q2 (this time is short), the PMOS transistor Q3 still does not output, which indicates that the power grid is currently powered off, if there is an output, which indicates that the utility power is currently supplied, when the set time of turning off of the transistor Q2 reaches, the transistor Q2 returns to the on state, if the pin connected with the diode D6 is still in a high level state at the moment, the current input voltage is still overvoltage, the level state of the pin connected with the diode D6 is not judged any more, the input protection circuit enters a continuous protection state, in order to give an alarm on the overvoltage, the single chip microcomputer is also provided with a corresponding buzzer, the single chip microcomputer controls the buzzer to work and stop working, the buzzer informs a user of the current overvoltage protection, the power needs to be cut off, and the user can pull out an input plug at the input end of the rectification circuit.
In a preferred embodiment, the standby power supply control circuit comprises a resistor R17, a resistor R18, a resistor R19, a diode D5, a diode D4, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a transistor Q7, a transistor Q8, a transistor Q9, a manual switch S1, and a PMOS transistor Q10; the triode Q7 and the triode Q8 are P-type triodes;
one end of a resistor R17 is used as a detection input end of the standby power supply control circuit and is connected to an output end of the input protection circuit, the other end of the resistor R17 is connected with an emitter of a triode Q7, an emitter of a triode Q7 is connected with a base of a triode Q7 through a resistor R18, a collector of a triode Q7 is connected with a base of a triode Q8 through a resistor R23, an emitter of the triode Q8 is connected with a source of a PMOS tube Q10 through a resistor R20, a collector of the triode Q8 is connected with a base of the triode Q8, an emitter of the triode Q8 is connected with an anode of a diode D8 through a resistor R8, a cathode of the diode D8 is connected with a collector of the transistor Q8, an emitter of the transistor Q8 is grounded, a collector of the triode Q8 is connected with a gate of the PMOS tube Q8 through a resistor R8, a source of the PMOS tube Q8 is connected with a common power supply terminal Vbat of the lithium battery through a manual switch S8. The drain of the PMOS transistor Q10 is connected to the anode of the diode D4, the cathode of the diode D4 is connected to the input end of the first voltage regulator circuit as the output end of the standby power supply control circuit, wherein the manual switch S1 is manually set by the user, and is normally closed in the normal state, when the input protection circuit normally works, the transistor Q7 is turned on, the voltage between the base and the emitter of the transistor Q8 is smaller than the on-voltage, the transistor Q8 is turned off, the transistor Q9 is turned off, the PMOS transistor Q10 is turned off, when the input protection circuit does not output, the transistor Q7 is turned off, the transistor Q8 is turned on, the transistor Q9 is turned on, the PMOS transistor Q10 is turned on, the standby lithium battery supplies power to the single chip microcomputer and the electronic device, when the charging is completed, the user manually turns off the switch S1 to stop the power supply state of the standby lithium battery, wherein, the battery management chip is used for managing the charging and discharging state of the standby management battery and sending corresponding battery state information to the single chip microcomputer, when the electric quantity of the battery is lower than a set value, the single chip microcomputer outputs alarm information according to the current state and gives an alarm through the buzzer to inform a user of disconnecting the power supply of the lithium battery and prevent the lithium battery from being overdischarged.
In a preferred embodiment, the two detection switch circuits are in the same structure, and the two detection switch circuits correspond to the first USB socket and the second USB socket one by one;
the detection switch circuit comprises two conductive elastic sheets, a resistor R24, a resistor R25, a resistor R26, a triode Q11 and a triode Q12;
two conductive elastic pieces are arranged in the USB socket, wherein one conductive elastic piece is connected with the output end of the second voltage regulator circuit, the other conductive elastic piece is connected with the emitter of the triode Q11, the collector of the triode Q11 is grounded through a resistor R25, the base of the triode Q11 is connected with the emitter of the triode Q11 through a resistor R24, the emitter of the triode Q11 is connected with the detection input end of the single chip microcomputer, one end of the triode Q26 is connected with the control output end of the single chip microcomputer, the other end of the resistor R26 is connected with the base of the triode Q12, the collector of the triode Q12 is connected with the output end of the first voltage regulator circuit or the second voltage regulator circuit, the emitter of the triode Q12 is connected with the power input end of the first USB socket or the second USB socket, as shown in fig. 6, 1 is a wire of the USB socket, 2 is an insulating shell of the USB socket, 3 is a, two not mutual connectivities of electrically conductive shell fragment, when not having the USB plug to insert, triode Q11 ends, at this moment, the signal of inputing into the singlechip is the low level, when the USB plug inserts, there is a metal casing that is used for protecting internal wiring row needle at the USB plug, effect through this metal casing, thereby make two electrically conductive shell fragment spares have the route, triode Q11 switches on this moment, the signal of inputing to the singlechip is the high level, show that to have the USB plug at this moment and insert in the corresponding USB socket, then single chip microcomputer control triode Q12 switches on, thereby make to have the electric current to flow through between this USB socket and the USB plug.

Claims (7)

1. The utility model provides a charge control system based on singlechip which characterized in that: the device comprises a rectifier circuit REC, an input protection circuit, a first voltage stabilizing circuit, a second voltage stabilizing circuit, a standby lithium battery, a battery management chip, a single chip microcomputer, a standby power supply control circuit, a detection switch circuit, a first USB socket and a second USB socket;
the input end of the rectifier circuit REC is connected with a mains supply, the output end of the rectifier circuit is connected with the input end of the input protection circuit, the output end of the input protection circuit is connected with the input end of the first voltage stabilizing circuit, the first output end of the first voltage stabilizing circuit is connected with the input end of the second voltage stabilizing circuit, and the second voltage stabilizing circuit supplies power to the single chip microcomputer, the battery management chip and the first USB socket; the second output end of the first voltage stabilizing circuit is electrified to the second USB socket and the power input end of the battery management chip, the detection input end of the battery management chip is connected with the output end of the input protection circuit, the power input end of the battery management chip is connected with the power supply end of the standby lithium battery, the power output end of the standby power supply control circuit is connected with the input end of the first voltage stabilizing circuit, the battery management chip is in communication connection with the single chip microcomputer, the detection switch circuit is used for detecting whether the first USB socket and the second USB socket are inserted into a USB plug or not and outputting a control signal to the single chip microcomputer, and the single chip microcomputer inputs a control command to the control input end of the detection switch circuit to control the connection and disconnection of the first voltage stabilizing circuit and the first USB socket as well as the power supply paths of the second voltage;
the input protection circuit comprises a resistor R1, a resistor R2, a voltage dependent resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a resistor R8, a resistor R9, a triode Q2, a thyristor Q1, a PMOS tube Q3, a triode Q6, a diode D1 and a diode D2;
one end of a resistor R1 is connected as an input end of the input protection circuit to a positive output end of the rectifier circuit REC, the other end of the resistor R1 is connected to a source of a PMOS transistor Q3 through a resistor R6, a common connection point between the resistor R1 and the resistor R6 is grounded through a resistor R2, a common connection point between the resistor R1 and the resistor R2 is grounded through a capacitor C1, a common connection point between the resistor R1 and the resistor R1 is connected to one end of a varistor R1, the other end of the varistor R1 is grounded through a resistor R1, a common connection point between the varistor R1 and the resistor R1 is connected to a control electrode of the thyristor Q1 through the resistor R1, an anode of the thyristor Q1 is connected to an emitter of the transistor Q1, a cathode of the transistor Q1 is grounded, a collector of the transistor Q1 is connected to a base of the transistor Q1 through the resistor R1, a collector of the transistor Q1 is connected to the source of the PMOS transistor Q1 through the capacitor C1, and a, the base electrode of the triode Q2 is connected with the negative electrode of the diode D1, the positive electrode of the diode D1 is connected with the single chip microcomputer as the control input end of the input protection circuit, the source electrode of the PMOS tube Q3 is connected with the grid electrode through a resistor R8, the grid electrode of the PMOS tube Q3 is connected with the collector electrode of the triode Q6 through a resistor R26, the emitter electrode of the triode Q6 is grounded, the drain electrode of the PMOS tube Q3 is connected with the positive electrode of the diode D2, and the negative electrode of the diode D2 is used as the output end of the input protection circuit;
the standby power supply control circuit comprises a resistor R17, a resistor R18, a resistor R19, a diode D5, a diode D4, a resistor R20, a resistor R21, a resistor R22, a resistor R23, a triode Q7, a triode Q8, a triode Q9, a manual switch S1 and a PMOS tube Q10; the triode Q7 and the triode Q8 are P-type triodes;
one end of a resistor R17 is used as a detection input end of the standby power supply control circuit and is connected to an output end of the input protection circuit, the other end of the resistor R17 is connected with an emitter of a triode Q7, an emitter of a triode Q7 is connected with a base of a triode Q7 through a resistor R18, a collector of a triode Q7 is connected with a base of a triode Q8 through a resistor R23, an emitter of the triode Q8 is connected with a source of a PMOS tube Q10 through a resistor R20, a collector of the triode Q8 is connected with a base of the triode Q8, an emitter of the triode Q8 is connected with an anode of a diode D8 through a resistor R8, a cathode of the diode D8 is connected with a collector of the transistor Q8, an emitter of the transistor Q8 is grounded, a collector of the triode Q8 is connected with a gate of the PMOS tube Q8 through a resistor R8, a source of the PMOS tube Q8 is connected with a common power supply terminal Vbat of the lithium battery through a manual switch S8. The drain of the PMOS tube Q10 is connected with the anode of the diode D4, and the cathode of the diode D4 is connected with the input end of the first voltage stabilizing circuit as the output end of the standby power supply control circuit.
2. The charging control system based on the single chip microcomputer according to claim 1, characterized in that: the first voltage stabilizing circuit comprises a triode Q4, a resistor R10, a voltage stabilizing tube DW2, a voltage stabilizing tube DW1, a resistor R12 and a resistor R11;
the collector of the triode Q4 serves as an input end of the first voltage stabilizing circuit, the collector of the triode Q4 is connected with the base of the triode Q4 through a resistor R10, the base of the triode Q4 is connected with the negative electrode of a voltage stabilizing tube DW2, the positive electrode of a voltage stabilizing tube DW2 is grounded, the negative electrode of a voltage stabilizing tube DW1 is connected with the emitter of the triode Q4, the positive electrode of the voltage stabilizing tube DW1 is grounded through a resistor R12, a common connection point between the negative electrode of the voltage stabilizing tube DW1 and the emitter of the triode Q4 serves as a first output end of the first voltage stabilizing circuit, one end of a resistor R11 is connected with a common connection point between the negative electrode of a voltage stabilizing tube DW1 and the emitter of the triode Q4, and the other.
3. The charging control system based on the single chip microcomputer according to claim 1, characterized in that: the input protection circuit further comprises a power-off detection circuit, wherein the power-off detection circuit comprises a resistor R13, a resistor R14, a resistor R15, a diode D6 and a triode Q5;
one end of the resistor R13 is connected to the output end of the input protection circuit, the other end of the resistor R13 is grounded through a resistor R14, a common connection point between the resistor R13 and the resistor R14 is connected with the base electrode of the triode Q5 through a resistor R15, the emitting electrode of the triode Q5 is grounded, the collector electrode of the triode Q5 is connected with the negative electrode of the diode D6, and the positive electrode of the diode D6 is connected to the power-off detection input end of the single chip microcomputer.
4. The charging control system based on the single chip microcomputer according to claim 1, characterized in that: the two detection switch circuits are in the same structure and correspond to the first USB socket and the second USB socket one by one;
the detection switch circuit comprises two conductive elastic sheets, a resistor R24, a resistor R25, a resistor R26, a triode Q11 and a triode Q12;
two conductive elastic sheets are arranged on the USB socket, one conductive elastic sheet is connected with the output end of the second voltage stabilizing circuit, the other conductive elastic sheet is connected with the emitting electrode of a triode Q11, the collecting electrode of the triode Q11 is grounded through a resistor R25, the base electrode of the triode Q11 is connected with the emitting electrode of a triode Q11 through a resistor R24, the emitting electrode of the triode Q11 is connected with the detection input end of the single chip microcomputer, one end of the triode Q26 is connected with the control output end of the single chip microcomputer, the other end of the resistor R26 is connected with the base electrode of the triode Q12, the collecting electrode of the triode Q12 is connected with the output end of the first voltage stabilizing circuit or the second voltage stabilizing circuit, and the emitting electrode of the triode Q12 is.
5. The charging control system based on the single chip microcomputer according to claim 1, characterized in that: the singlechip is an AT89C2051 singlechip.
6. The charging control system based on the single chip microcomputer according to claim 1, characterized in that: the battery management chip is a BQ25703A chip.
7. The charging control system based on the single chip microcomputer according to claim 1, characterized in that: the second voltage stabilizing circuit is an LM2596 chip.
CN201910634490.3A 2019-07-15 2019-07-15 Charging control system based on single chip microcomputer Active CN110635543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910634490.3A CN110635543B (en) 2019-07-15 2019-07-15 Charging control system based on single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910634490.3A CN110635543B (en) 2019-07-15 2019-07-15 Charging control system based on single chip microcomputer

Publications (2)

Publication Number Publication Date
CN110635543A CN110635543A (en) 2019-12-31
CN110635543B true CN110635543B (en) 2021-06-01

Family

ID=68968934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910634490.3A Active CN110635543B (en) 2019-07-15 2019-07-15 Charging control system based on single chip microcomputer

Country Status (1)

Country Link
CN (1) CN110635543B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112952964B (en) * 2021-04-14 2022-10-04 重庆工商大学 Wireless charging control system of cleaning robot
CN114726061B (en) * 2022-06-01 2022-08-16 深圳市菲尼基科技有限公司 Control system for lithium battery power management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103199595A (en) * 2013-04-27 2013-07-10 福能高盛能源科技(苏州)有限公司 Intelligent portable multifunctional mobile power supply charger
CN109194162A (en) * 2018-09-20 2019-01-11 重庆镭云光电科技有限公司 Safe socket DC power supply with storage function
CN109494822A (en) * 2017-09-13 2019-03-19 西安中兴新软件有限责任公司 A kind of terminal device, charger, charging system and charging method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103199595A (en) * 2013-04-27 2013-07-10 福能高盛能源科技(苏州)有限公司 Intelligent portable multifunctional mobile power supply charger
CN109494822A (en) * 2017-09-13 2019-03-19 西安中兴新软件有限责任公司 A kind of terminal device, charger, charging system and charging method
CN109194162A (en) * 2018-09-20 2019-01-11 重庆镭云光电科技有限公司 Safe socket DC power supply with storage function

Also Published As

Publication number Publication date
CN110635543A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN105244981A (en) Energy saving charger capable of automatic power cutoff
CN107196380B (en) Robot power management system and robot
US20120153747A1 (en) Usb charger, its switch control system and method, and a usb interface charger for a laptop
CN210027071U (en) Vehicle-mounted charger sleep circuit and switching power supply
CN110635543B (en) Charging control system based on single chip microcomputer
CN106208228A (en) A kind of power-supply system
CN108173327B (en) A kind of auto-power-off energy-saving protective device
CN110729784B (en) Battery management system integrating high-side switch and MOS tube control power supply AC/DC switching
CN110034595B (en) Backup power supply management device and vehicle-mounted equipment
CN110912225B (en) Charging protection circuit, charging protection device and robot
CN105790375B (en) 5V power supply adaptor intelligent control circuit
CN206100553U (en) Take real -time protect function's emergent LED lighting circuit
CN105207279A (en) Charge and discharge circuit and mobile terminal
WO2020215233A1 (en) Sleep circuit of vehicle-mounted charger
CN106255278B (en) A kind of emergency LED lighting circuit with real time protection
CN213243589U (en) Power supply circuit of electronic equipment
CN212965358U (en) Broken line detection circuit with load access automatic wake-up function and power bank
CN209184290U (en) A kind of power supply management circuit
CN208797633U (en) Electronic equipment charging circuit, charging equipment and charging management system
CN208127915U (en) A kind of circuit structure of lithium battery base charger
CN212063584U (en) Battery charging path management circuit and corresponding terminal equipment
CN212784828U (en) Battery low temperature activation circuit
CN220544710U (en) Voltage-adjustable battery charging management circuit
CN217010418U (en) Double-battery power supply and charging switching circuit
CN219322094U (en) Bluetooth headset charging circuit and Bluetooth headset

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant