CN114189024A - Method and device for realizing constant current mode, switching power supply and medium - Google Patents

Method and device for realizing constant current mode, switching power supply and medium Download PDF

Info

Publication number
CN114189024A
CN114189024A CN202111565290.0A CN202111565290A CN114189024A CN 114189024 A CN114189024 A CN 114189024A CN 202111565290 A CN202111565290 A CN 202111565290A CN 114189024 A CN114189024 A CN 114189024A
Authority
CN
China
Prior art keywords
voltage
power supply
current value
battery
resistor
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.)
Granted
Application number
CN202111565290.0A
Other languages
Chinese (zh)
Other versions
CN114189024B (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.)
Zhejiang Tekang Electronic Technology Co ltd
Original Assignee
Zhejiang Tekang Electronic Technology Co ltd
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 Zhejiang Tekang Electronic Technology Co ltd filed Critical Zhejiang Tekang Electronic Technology Co ltd
Priority to CN202111565290.0A priority Critical patent/CN114189024B/en
Priority claimed from CN202111565290.0A external-priority patent/CN114189024B/en
Publication of CN114189024A publication Critical patent/CN114189024A/en
Application granted granted Critical
Publication of CN114189024B publication Critical patent/CN114189024B/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
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/20Charging or discharging characterised by the power electronics converter

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Dc-Dc Converters (AREA)

Abstract

The application discloses a method and a device for realizing a constant current mode, a switching power supply and a medium, and mainly relates to the field of power supply circuits. Firstly, detecting a battery voltage value, and comparing the battery voltage value with a preset voltage value; when the voltage value of the battery is smaller than a preset voltage value, detecting a charging current value; then, comparing the charging current value with a preset current value; and regulating the power supply voltage through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire. Compared with the traditional method for realizing the constant current mode, the method does not need to use an operational amplifier to realize a current control loop, adjusts the power supply voltage through the constant voltage control circuit, and synchronizes the charging current value with the preset current value by using the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire so as to realize the constant current and reduce the cost.

Description

Method and device for realizing constant current mode, switching power supply and medium
Technical Field
The present disclosure relates to the field of power supply circuits, and in particular, to a method and an apparatus for implementing a constant current mode, a switching power supply, and a medium.
Background
In recent years, the technology of the lithium ion battery is rapidly advanced, the lithium ion battery has obvious advantages in energy density, cycle life and charging and discharging multiplying power, is more environment-friendly, the price is continuously reduced along with the development of the electric vehicle industry, and the lithium ion battery electric tool is led to the revolution of cordless. Accordingly, the demand of the switching power supply is also increased, wherein the flyback switching power supply is a common isolation power supply at present due to its low power and low cost.
Fig. 1 is a circuit diagram of a conventional flyback switching power supply, and as shown in fig. 1, 1 is an operational amplifier, and 3 is a voltage stabilizing chip. The current flyback switching power supply realizes a current control loop through an operational amplifier to control current and realize a constant current mode, and realizes a voltage control loop through a voltage stabilizing chip to control voltage and realize a constant voltage mode. The current double-loop flyback switching power supply has high cost.
Therefore, it is obvious that how to reduce the cost of the flyback switching power supply is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a method, a device, a switching power supply and a medium for realizing a constant current mode, which are used for reducing the cost of the switching power supply.
In order to solve the above technical problem, the present application provides a method for implementing a constant current mode, including:
detecting a battery voltage value, and comparing the battery voltage value with a preset voltage value;
when the voltage value of the battery is smaller than a preset voltage value, detecting a charging current value;
comparing the charging current value with a preset current value;
and regulating the power supply voltage through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire.
Preferably, the adjusting of the power supply voltage by the constant voltage control circuit according to the comparison result of the charging current value and the preset current value includes:
inputting a voltage signal to the constant voltage control circuit according to a comparison result of the charging current value and a preset current value;
controlling a constant voltage control circuit to conduct a photoelectric coupler according to the voltage signal and the power supply voltage;
controlling the photoelectric coupler to send a feedback signal to the power supply chip;
controlling the power chip to conduct the MOS tube according to the feedback signal;
and regulating the power supply voltage according to the duty ratio of the MOS tube.
In order to solve the above technical problem, the present application further provides a switching power supply, including: the device comprises a singlechip 4, a constant voltage control circuit 5, a photoelectric coupler 2, a power chip 6, a rectification circuit, an MOS (metal oxide semiconductor) tube Q and a transformer T;
the singlechip 4 is connected with the battery and used for detecting the voltage and the charging current of the battery and inputting a voltage signal to the constant voltage control circuit 5 according to the voltage and the charging current;
the constant voltage control circuit 5 is connected with the singlechip 4 and is used for controlling the on-off of the photoelectric coupler 2 according to the voltage signal and the power voltage;
the photoelectric coupler 2 is connected with the constant voltage control circuit 5, and is used for generating a feedback signal according to the change of current flowing through the light emitting diode D1 and sending the feedback signal to the power supply chip 6;
the rectifying circuit is connected with the transformer T and used for rectifying the input alternating current into direct current and supplying power to the battery through the transformer T;
the feedback end of the power chip 6 is connected with the photoelectric coupler 2, and the driving end of the power chip is connected with the MOS tube Q and used for controlling the on-off of the MOS tube Q according to a feedback signal so as to adjust the duty ratio of the MOS tube Q.
Preferably, the connection of the single chip 4 and the battery comprises:
the battery is connected with the first end of the first resistor R15, the second end of the first resistor R15 is connected with the first end of the second resistor R16, the second end of the second resistor R16 is grounded, and the single chip microcomputer 4 is connected with the common end of the first resistor R15 and the common end of the second resistor R16.
Preferably, the constant voltage control circuit 5 includes a third resistor R21, a fourth resistor R22, a fifth resistor R23, and the voltage stabilization chip 3;
the third resistor R21 is connected with the fourth resistor R22;
the first end of the fifth resistor R23 is connected with the singlechip 4, and the second end of the fifth resistor R23 is connected with the common end of the third resistor R21 and the fourth resistor R22;
the voltage stabilizing chip 3 is connected with the photoelectric coupler 2.
Preferably, a power filter 7 connected to the rectifying circuit is further included for filtering the alternating current.
Preferably, the charging device further comprises a switch tube, wherein a first end of the switch tube is connected with the battery, and a second end of the switch tube is connected with the single chip microcomputer 4 and used for keeping disconnection when the battery is charged so as to reduce loss.
In order to solve the above technical problem, the present application further provides a power supply system including the above switching power supply.
In order to solve the above technical problem, the present application further provides a device for implementing a constant current mode, including:
the first detection module 10 is used for detecting the voltage value of the battery;
the first comparison module 11 is used for comparing the battery voltage value with a preset voltage value;
a second detection module 12, configured to detect a charging current value;
a second comparing module 13, configured to compare the charging current value with a preset current value;
and the adjusting module 14 is configured to adjust the power voltage through the constant voltage control circuit according to the comparison result between the charging current value and the preset current value, so that the charging current value is synchronized with the preset current value according to the voltage difference between the power voltage and the battery voltage and the internal resistance of the wire.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for implementing the constant current mode are implemented.
The application provides a method for realizing a constant current mode, which comprises the steps of detecting a battery voltage value, and comparing the battery voltage value with a preset voltage value; when the voltage value of the battery is smaller than a preset voltage value, detecting a charging current value; then, comparing the charging current value with a preset current value; and regulating the power supply voltage through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire. Compared with the traditional method for realizing the constant current mode, the method does not need to use an operational amplifier to realize a current control loop, adjusts the power supply voltage through the constant voltage control circuit, and synchronizes the charging current value with the preset current value by using the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire so as to realize the constant current and reduce the cost.
In addition, the device and the medium for realizing the constant current mode correspond to the method for realizing the constant current mode, and the effect is the same as that of the device and the medium.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a circuit diagram of a conventional flyback switching power supply;
fig. 2 is a flowchart of a method for implementing a constant current mode provided in the present application;
fig. 3 is a circuit diagram of a switching power supply provided in the present application;
fig. 4 is a circuit diagram of a constant voltage control circuit provided in the present application;
fig. 5 is a structural diagram of an apparatus for implementing a constant current mode according to the present application.
Reference numerals are as follows, 1 is an operational amplifier, 2 is a photoelectric coupler, 3 is a voltage stabilization chip, 4 is a single chip microcomputer, 5 is a constant voltage control circuit, 6 is a power supply chip, 7 is a power supply filter, 10 is a first detection module, 11 is a first comparison module, 12 is a second detection module, 13 is a second comparison module, and 14 is an adjustment module.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a method for realizing the constant current mode, which is used for realizing the constant current mode and reducing the cost.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Fig. 2 is a flowchart of a method for implementing a constant current mode according to the present application. As shown in fig. 2, the method includes:
s1: detecting a battery voltage value, and comparing the battery voltage value with a preset voltage value;
s2: when the voltage value of the battery is smaller than a preset voltage value, detecting a charging current value;
s3: comparing the charging current value with a preset current value;
s4: and regulating the power supply voltage through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire.
In this embodiment, if the charging current value is smaller than the preset current value, the power supply voltage is increased by the control of the constant voltage control circuit, and it is easy to know that the larger the power supply voltage is, the larger the charging current is, according to an ohm formula, so that the charging current value is synchronous with the preset current value, and a constant current mode is realized; if the charging current value is larger than the preset current value, the voltage of the power supply is reduced through the control of the constant voltage control circuit so as to reduce the charging current, and the charging current value is synchronous with the preset current value so as to realize a constant current mode. It should be noted that, when the voltage value of the battery is greater than the preset voltage value, the constant voltage control circuit may adjust the power voltage to gradually decrease, and the voltage difference between the power voltage and the battery voltage is gradually decreased to reduce the charging current value, so as to implement the constant voltage mode.
The embodiment provides a method for realizing a constant current mode, which comprises the steps of detecting a battery voltage value, and comparing the battery voltage value with a preset voltage value; when the voltage value of the battery is smaller than a preset voltage value, detecting a charging current value; then, comparing the charging current value with a preset current value; and regulating the power supply voltage through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire. Compared with the traditional method for realizing the constant current mode, the method does not need to use an operational amplifier to realize a current control loop, adjusts the power supply voltage through the constant voltage control circuit, and synchronizes the charging current value with the preset current value by using the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire so as to realize the constant current and reduce the cost.
The step of adjusting the power supply voltage by the constant voltage control circuit is not described in detail in the above embodiments, and this embodiment will supplement this description. The method comprises the following steps:
inputting a voltage signal to the constant voltage control circuit according to a comparison result of the charging current value and a preset current value;
controlling a constant voltage control circuit to conduct a photoelectric coupler according to the voltage signal and the power supply voltage;
controlling the photoelectric coupler to send a feedback signal to the power supply chip;
controlling the power chip to conduct the MOS tube according to the feedback signal;
and regulating the power supply voltage according to the duty ratio of the MOS tube.
In this embodiment, a voltage signal is input to the constant voltage control circuit according to a comparison result between a charging current value and a preset current value, the photoelectric coupler is turned on through the constant voltage control circuit according to the voltage signal and a power voltage, at this time, the photoelectric coupler generates a feedback signal according to a change in a current flowing through the light emitting diode, the feedback signal is transmitted to the power chip by controlling the photoelectric coupler through the constant voltage control circuit, the power chip receives the feedback signal and then turns on the MOS transistor, a duty ratio of the MOS transistor is adjusted by controlling the turn-on of the MOS transistor, a magnetic field of the transformer is changed, the power voltage is adjusted, and further, a voltage difference between the power voltage and the battery voltage is changed, so that the charging current value and the preset current value are synchronized according to the voltage difference between the power voltage and the battery voltage and an internal resistance of a wire, and a constant current mode is realized.
Fig. 3 is a circuit diagram of a switching power supply according to the present application, and the switching power supply shown in fig. 3 will be described below.
The switching power supply comprises a singlechip 4, a constant voltage control circuit 5, a photoelectric coupler 2, a power supply chip 6, a rectifying circuit, an MOS (metal oxide semiconductor) tube Q and a transformer T; the singlechip 4 is connected with the battery and used for detecting the voltage and the charging current of the battery and inputting a voltage signal to the constant voltage control circuit 5 according to the voltage and the charging current; the constant voltage control circuit 5 is connected with the singlechip 4 and is used for controlling the on-off of the photoelectric coupler 2 according to the voltage signal and the power voltage; the photoelectric coupler 2 is connected with the constant voltage control circuit 5, and is used for generating a feedback signal according to the change of current flowing through the light emitting diode D1 and sending the feedback signal to the power supply chip 6; the rectifying circuit is connected with the transformer T and used for rectifying the input alternating current into direct current and supplying power to the battery through the transformer T; the feedback end of the power chip 6 is connected with the photoelectric coupler 2, and the driving end of the power chip is connected with the MOS tube Q and used for controlling the on-off of the MOS tube Q according to a feedback signal so as to adjust the duty ratio of the MOS tube Q.
In this embodiment, the single chip microcomputer 4 is HT66F018, the power supply chip 6 is GR1230R, and the photocoupler 2 is PC817, and in the specific implementation, the single chip microcomputer 4, the power supply chip 6, and the photocoupler 2 of appropriate models can be selected according to actual conditions, and the models of the single chip microcomputer 4, the power supply chip 6, and the photocoupler 2 are not limited in this embodiment. In this embodiment, in order to avoid the battery being burned out due to the excessive electric energy discharged from the transformer T, a first capacitor C11 may be connected in parallel to the output terminal of the transformer T for storing energy when the electric energy is discharged from the output terminal of the transformer T. The switching power supply may further comprise an alarm device connected to the battery for alarming when the battery runs out of energy to alert a user that charging is required. In addition, in order to avoid the interference of the high-frequency current discharged by the MOS transistor Q to the battery charging process, the switching power supply further includes a second capacitor C10 connected to the MOS transistor Q, and capable of absorbing the high-frequency current discharged by the MOS transistor Q.
As shown in fig. 3, the diodes D3, D4, D5 and D6 form a full bridge rectifier circuit, the input end connected to the rectifier circuit is ac input, the input ac is rectified into dc by the rectifier circuit, and the battery is powered by the transformer T. The operating principle of the switching power supply shown in fig. 3 is as follows: firstly, setting a preset voltage value V0 and a preset current value I0, setting the voltage of a common end of a transformer TT, a switch S and a constant-current voltage stabilizing circuit as a power supply voltage, and taking the value of VCC; when the switch S is disconnected, the single chip microcomputer 4 detects the voltage value V1 of the battery through the VOL end, then regulates the constant voltage control circuit 5 through the VIC end to enable VCC to approach V1, then closes the switch S, and enters a charging mode; during charging, if V1 is smaller than V0, the single chip microcomputer 4 detects a current value I1 through the CUR terminal, if I1 is smaller than I0, a voltage signal is input to the constant voltage control circuit 5 through the VIC terminal, the constant voltage control circuit 5 controls the on/off of the photoelectric coupler 2 according to the voltage signal and VCC, the photoelectric coupler 2 generates a feedback signal according to the change of current flowing through the light emitting diode D1 and sends the feedback signal to the power supply chip 6, the power supply chip 6 controls the on/off of the MOS transistor Q according to the feedback signal to adjust the duty ratio of the MOS transistor Q, changes the magnetic field of the transformer T and raises VCC, if I1 is larger than I0, lowers VCC, and according to an ohm formula, it is easy to know that the larger VCC is, the larger is I1 is, I1 is synchronized with I0 by adjusting VCC, and a constant current mode is realized; during charging, if V1 is greater than V0, VCC is reduced by the above-mentioned adjustment mode when I1 is less than I0, and I1 is reduced by gradually reducing the voltage difference between VCC and V1, thereby implementing the constant voltage mode.
The embodiment provides a switching power supply, which comprises a single chip microcomputer, a constant voltage control circuit, a photoelectric coupler, a power supply chip, a rectifying circuit, an MOS (metal oxide semiconductor) tube and a transformer; the single chip microcomputer is connected with the battery and used for detecting the voltage and the charging current of the battery and inputting a voltage signal to the constant voltage control circuit according to the voltage and the charging current; the constant voltage control circuit is connected with the singlechip and is used for controlling the on-off of the photoelectric coupler according to the voltage signal and the power supply voltage; the photoelectric coupler is connected with the constant voltage control circuit and used for generating a feedback signal according to the change of current flowing through the light emitting diode and sending the feedback signal to the power supply chip; the rectifying circuit is connected with the transformer and used for rectifying the input alternating current into direct current and supplying power to the battery through the transformer; the feedback end of the power supply chip is connected with the photoelectric coupler, and the driving end of the power supply chip is connected with the MOS tube and used for controlling the on-off of the MOS tube according to the feedback signal so as to adjust the duty ratio of the MOS tube. Compared with the conventional flyback switching power supply shown in fig. 1, the switching power supply provided by the application does not need to use an operational amplifier to realize a current control loop, but utilizes the voltage difference between the power supply voltage and the battery voltage and the internal resistance of a wire to regulate the voltage difference between the power supply voltage and the battery voltage through the control of the constant voltage control circuit, so that a constant voltage mode and a constant current mode are realized, and the cost is reduced.
In the above embodiment, the connection manner between the single chip microcomputer 4 and the battery is not described, and the present embodiment will be additionally described based on this. In order to prevent the measurement of the single chip microcomputer 4 from being affected by the excessive voltage of the battery, the connection mode of the single chip microcomputer 4 and the battery in the embodiment is as follows: the battery is connected with the first end of the first resistor R15, the second end of the first resistor R15 is connected with the first end of the second resistor R16, the second end of the second resistor R16 is grounded, and the single chip microcomputer 4 is connected with the common end of the first resistor R15 and the common end of the second resistor R16. When the battery voltage is detected, the singlechip 4 actually detects the voltage of the second resistor R16, and calculates the battery voltage according to the proportional relation of the resistance values of the first resistor R15 and the second resistor R16 based on the voltage of the second resistor R16.
In this embodiment, the battery is connected to the first end of the first resistor, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, the single chip is connected to the common end of the first resistor and the common end of the second resistor, the single chip detects the voltage of the second resistor, the battery voltage is calculated according to the proportional relation between the resistance values of the first resistor and the second resistor, and the condition that the measurement of the single chip is affected by the excessive battery voltage is effectively avoided.
The structure of the constant voltage control circuit 5 is not described in the above embodiment, and this embodiment will be described in addition thereto. Fig. 4 is a circuit diagram of the constant voltage control circuit provided by the present application, as shown in fig. 4, the constant voltage control circuit 5 includes a third resistor R21, a fourth resistor R22, a fifth resistor R23 and a voltage stabilization chip 3, the third resistor R21 is connected with the fourth resistor R22, a first end of the fifth resistor R23 is connected with the single chip microcomputer 4, a second end is connected with a common end of the third resistor R21 and the fourth resistor R22, and the voltage stabilization chip 3 is connected with the photocoupler 2.
In the above embodiment, when the switch S is turned off, the single chip microcomputer 4 detects the voltage value V1 of the battery through the VOL terminal, and adjusts the constant voltage control circuit 5 through the VIC terminal so that VCC approaches V1, and this embodiment provides a supplementary explanation for the way of adjusting VCC through the constant voltage control circuit 5 based on the structure of the constant voltage control circuit 5. During adjustment, the switch S is in an off state, the single chip microcomputer 4 inputs a low level to the constant voltage control circuit 5 through the VIC terminal, and at this time, the first terminal of the fifth resistor R23 is equivalent to ground. As shown in fig. 4, since the first end of the fourth resistor R22 is connected to the second end of the fifth resistor R23, and the second end of the fourth resistor R22 and the first end of the fifth resistor R23 are both grounded, the fourth resistor R22 is connected in parallel with the fifth resistor R23, and then connected in series with the third resistor R21. If the reference voltage of the voltage stabilizing chip 3 is 2.5V, the resistances of the third resistor R21, the fourth resistor R22 and the fifth resistor R23 are the same and are all 10 Ω, since the parallel resistor of the fourth resistor R22 and the fifth resistor R23 is 5 Ω and the parallel voltage is 2.5V, it can be seen that the voltage of the 10 Ω third resistor R21 is 5V, and thus VCC is 7.5V. This regulation mode can change the parallelly connected resistance of fourth resistance R22 and fifth resistance R23 through changing the pulse width of VIC end input, and then changes the VCC, realizes adjusting VCC through constant voltage control circuit 5. In addition, the voltage stabilizing chip 3 is used for controlling the on-off of the photocoupler 2 during charging so that the photocoupler 2 generates a feedback signal according to the change of the current flowing through the light emitting diode D1.
This embodiment has explained constant voltage control circuit's structure, constant voltage control circuit includes the third resistance, the fourth resistance, fifth resistance and steady voltage chip, the third resistance is connected with the fourth resistance, the first end and the singlechip of fifth resistance are connected, the second end is connected with the common terminal of third resistance and fourth resistance, steady voltage chip is connected with optoelectronic coupler, can adjust mains voltage through constant voltage control circuit when not charging, can control optoelectronic coupler's break-make through constant voltage control circuit when charging, so that optoelectronic coupler produces feedback signal according to the current change that flows through emitting diode.
In the above embodiment, it is mentioned that the input ac needs to be rectified into dc by the rectifying circuit, however, before the rectifying circuit rectifies the ac, the ac should be filtered to remove the high-frequency interference current therein, and therefore, in this embodiment, the switching power supply further includes a power filter 7 connected to the rectifying circuit for filtering the ac.
In the embodiment, before rectification of the rectifying circuit, the input alternating current is filtered through the power supply filter, so that high-frequency interference current in the alternating current is filtered, and the battery can be charged conveniently.
The above embodiment describes the connection mode between the battery and the single chip microcomputer 4, and this embodiment is complementary thereto. In this embodiment, switching power supply still includes the switch tube, and the first end and the battery of this switch tube are connected, and the second end is connected with singlechip 4 for keep breaking off when the battery charges, make singlechip 4 unable acquisition electric energy, with the reduction loss.
In this embodiment, the first end and the battery of switch tube are connected, and the second end is connected with the singlechip, and this switch tube keeps the disconnection when the battery charges for the singlechip can't acquire the electric energy, has effectively reduced the charging loss.
While the above detailed description has been directed to embodiments of a switching power supply, the present application also provides embodiments of a power supply system including the switching power supply mentioned in the above embodiments.
It can be understood that the power supply system includes other components such as a battery besides the above switching power supply, and the single chip microcomputer 4 is connected to the battery and used for detecting the battery voltage and the charging current, and the specific embodiment is described above.
The embodiment provides a power supply system, which comprises a switching power supply, wherein the switching power supply comprises a single chip microcomputer, a constant voltage control circuit, a photoelectric coupler, a power supply chip, a rectifying circuit, an MOS (metal oxide semiconductor) tube and a transformer; the single chip microcomputer is connected with the battery and used for detecting the voltage and the charging current of the battery and inputting a voltage signal to the constant voltage control circuit according to the voltage and the charging current; the constant voltage control circuit is connected with the singlechip and is used for controlling the on-off of the photoelectric coupler according to the voltage signal and the power supply voltage; the photoelectric coupler is connected with the constant voltage control circuit and used for generating a feedback signal according to the change of current flowing through the light emitting diode and sending the feedback signal to the power supply chip; the rectifying circuit is connected with the transformer and used for rectifying the input alternating current into direct current and supplying power to the battery through the transformer; the feedback end of the power supply chip is connected with the photoelectric coupler, and the driving end of the power supply chip is connected with the MOS tube and used for controlling the on-off of the MOS tube according to the feedback signal so as to adjust the duty ratio of the MOS tube. The switching power supply in the power supply system provided by the embodiment does not need to use an operational amplifier to realize a current control loop, but utilizes the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire to regulate the voltage difference between the power supply voltage and the battery voltage through the control of the constant voltage control circuit, thereby realizing a constant voltage mode and a constant current mode and reducing the cost.
Fig. 5 is a structural diagram of an apparatus for implementing a constant current mode according to the present application. As shown in fig. 5, the apparatus includes:
the first detection module 10 is used for detecting the voltage value of the battery;
the first comparison module 11 is used for comparing the battery voltage value with a preset voltage value;
a second detection module 12, configured to detect a charging current value;
a second comparing module 13, configured to compare the charging current value with a preset current value;
and the adjusting module 14 is configured to adjust the power voltage through the constant voltage control circuit according to the comparison result between the charging current value and the preset current value, so that the charging current value is synchronized with the preset current value according to the voltage difference between the power voltage and the battery voltage and the internal resistance of the wire.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
In the device for implementing the constant current mode provided by this embodiment, the first detection module detects the voltage value of the battery, and the first comparison module compares the voltage value of the battery with a preset voltage value; when the voltage value of the battery is smaller than the preset voltage value, detecting the charging current value through a second detection module; then, comparing the charging current value with a preset current value through a second comparison module; and regulating the power supply voltage by using a regulating module through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire. The device changes the voltage difference of the power supply voltage and the battery voltage by adjusting the power supply voltage, and utilizes the voltage difference of the power supply voltage and the battery voltage and the internal resistance of the wire to synchronize the charging current value with the preset current value so as to realize constant current, and a constant current mode is realized without adding a structure, so that the cost is reduced.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of implementing a constant current mode as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer-readable storage medium provided by the present application includes the above-mentioned method for implementing the constant current mode, and the effects are the same as above.
The method, the device, the switching power supply and the medium for realizing the constant current mode provided by the application are introduced in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method of implementing a constant current mode, comprising:
detecting a battery voltage value, and comparing the battery voltage value with a preset voltage value;
when the battery voltage value is smaller than the preset voltage value, detecting a charging current value;
comparing the charging current value with a preset current value;
and adjusting power supply voltage through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire.
2. The method of claim 1, wherein the adjusting the power voltage by the constant voltage control circuit according to the comparison result of the charging current value and the preset current value comprises:
inputting a voltage signal to the constant voltage control circuit according to the comparison result of the charging current value and the preset current value;
controlling the constant voltage control circuit to conduct a photoelectric coupler according to the voltage signal and the power supply voltage;
controlling the photoelectric coupler to send a feedback signal to a power supply chip;
controlling the power supply chip to conduct the MOS tube according to the feedback signal;
and adjusting the power supply voltage according to the duty ratio of the MOS tube.
3. A switching power supply, comprising: the device comprises a singlechip (4), a constant voltage control circuit (5), a photoelectric coupler (2), a power supply chip (6), a rectifying circuit, an MOS (metal oxide semiconductor) tube and a transformer;
the single chip microcomputer (4) is connected with a battery and used for detecting the voltage and the charging current of the battery and inputting a voltage signal to the constant voltage control circuit (5) according to the voltage and the charging current;
the constant voltage control circuit (5) is connected with the singlechip (4) and is used for controlling the on-off of the photoelectric coupler (2) according to the voltage signal and the power voltage;
the photoelectric coupler (2) is connected with the constant voltage control circuit (5) and used for generating a feedback signal according to the change of current flowing through the light emitting diode and sending the feedback signal to the power supply chip (6);
the rectifying circuit is connected with the transformer and used for rectifying input alternating current into direct current and supplying power to the battery through the transformer;
the feedback end of the power chip (6) is connected with the photoelectric coupler (2), and the driving end of the power chip is connected with the MOS tube and used for controlling the on-off of the MOS tube according to the feedback signal so as to adjust the duty ratio of the MOS tube.
4. The switching power supply according to claim 3, wherein the connection of the single chip microcomputer (4) with the battery comprises:
the battery is connected with the first end of the first resistor, the second end of the first resistor is connected with the first end of the second resistor, the second end of the second resistor is grounded, and the single chip microcomputer (4) is connected with the common end of the first resistor and the second resistor.
5. The switching power supply according to claim 3, wherein the constant voltage control circuit (5) includes a third resistor, a fourth resistor, a fifth resistor, and a voltage stabilization chip (3);
the third resistor is connected with the fourth resistor;
the first end of the fifth resistor is connected with the single chip microcomputer (4), and the second end of the fifth resistor is connected with the common end of the third resistor and the fourth resistor;
and the voltage stabilizing chip (3) is connected with the photoelectric coupler (2).
6. A switching power supply according to claim 3, further comprising a power filter (7) connected to said rectifying circuit for filtering said alternating current.
7. The switching power supply according to claim 3, further comprising a switching tube, wherein a first end of the switching tube is connected to the battery, and a second end of the switching tube is connected to the single chip microcomputer (4) for keeping the switching tube off when the battery is charged to reduce loss.
8. A power supply system comprising the switching power supply of any one of claims 3 to 7.
9. An apparatus for implementing a constant current mode, comprising:
a first detection module (10) for detecting a battery voltage value;
the first comparison module (11) is used for comparing the battery voltage value with a preset voltage value;
a second detection module (12) for detecting a charging current value;
the second comparison module (13) is used for comparing the charging current value with a preset current value;
and the adjusting module (14) is used for adjusting the power supply voltage through a constant voltage control circuit according to the comparison result of the charging current value and the preset current value so as to enable the charging current value to be synchronous with the preset current value according to the voltage difference between the power supply voltage and the battery voltage and the internal resistance of the wire.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of implementing a constant current mode according to claim 1 or 2.
CN202111565290.0A 2021-12-20 Method and device for realizing constant current mode, switching power supply and medium Active CN114189024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111565290.0A CN114189024B (en) 2021-12-20 Method and device for realizing constant current mode, switching power supply and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111565290.0A CN114189024B (en) 2021-12-20 Method and device for realizing constant current mode, switching power supply and medium

Publications (2)

Publication Number Publication Date
CN114189024A true CN114189024A (en) 2022-03-15
CN114189024B CN114189024B (en) 2024-06-11

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130419A (en) * 2023-08-30 2023-11-28 南京普联微电子科技有限公司 LSTM-based MOS tube differential pressure intelligent regulation method and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1160877A (en) * 1995-09-22 1997-10-01 日本保护装置销售公司 Uninterruptive switching regulator
JP2007037225A (en) * 2005-07-25 2007-02-08 Nec Saitama Ltd Charging circuit and charge control method
CN101442260A (en) * 2007-11-23 2009-05-27 技领半导体(上海)有限公司 Secondary constant-current constant-voltage controller chip and converter thereof
CN102624254A (en) * 2012-03-26 2012-08-01 杭州矽力杰半导体技术有限公司 Constant voltage constant current control circuit with improved load regulation and control method thereof
CN104009644A (en) * 2014-05-30 2014-08-27 广州视源电子科技股份有限公司 Fly-back power circuit
CN104185333A (en) * 2013-05-20 2014-12-03 海洋王(东莞)照明科技有限公司 Constant-current constant-voltage circuit and illuminating device
JP2015204705A (en) * 2014-04-15 2015-11-16 リコー電子デバイス株式会社 Charge control circuit and method, and charging device
CN205945520U (en) * 2016-08-02 2017-02-08 江苏兆能电子有限公司 Constant voltage type switching power supply realizes constant current output characteristic's control scheme structure
CN108093517A (en) * 2017-12-19 2018-05-29 深圳民爆光电技术有限公司 A kind of LED constant current constant voltage power supply circuit
JP2019033663A (en) * 2018-09-14 2019-02-28 三菱電機株式会社 Illumination device
CN111277017A (en) * 2020-03-10 2020-06-12 厦门兴卓科技有限公司 Lithium battery quick charging circuit and application thereof
CN211720474U (en) * 2020-05-20 2020-10-20 深圳市力生美半导体股份有限公司 Flyback constant-voltage constant-current switching power supply

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1160877A (en) * 1995-09-22 1997-10-01 日本保护装置销售公司 Uninterruptive switching regulator
JP2007037225A (en) * 2005-07-25 2007-02-08 Nec Saitama Ltd Charging circuit and charge control method
CN101442260A (en) * 2007-11-23 2009-05-27 技领半导体(上海)有限公司 Secondary constant-current constant-voltage controller chip and converter thereof
CN102624254A (en) * 2012-03-26 2012-08-01 杭州矽力杰半导体技术有限公司 Constant voltage constant current control circuit with improved load regulation and control method thereof
CN104185333A (en) * 2013-05-20 2014-12-03 海洋王(东莞)照明科技有限公司 Constant-current constant-voltage circuit and illuminating device
JP2015204705A (en) * 2014-04-15 2015-11-16 リコー電子デバイス株式会社 Charge control circuit and method, and charging device
CN104009644A (en) * 2014-05-30 2014-08-27 广州视源电子科技股份有限公司 Fly-back power circuit
CN205945520U (en) * 2016-08-02 2017-02-08 江苏兆能电子有限公司 Constant voltage type switching power supply realizes constant current output characteristic's control scheme structure
CN108093517A (en) * 2017-12-19 2018-05-29 深圳民爆光电技术有限公司 A kind of LED constant current constant voltage power supply circuit
JP2019033663A (en) * 2018-09-14 2019-02-28 三菱電機株式会社 Illumination device
CN111277017A (en) * 2020-03-10 2020-06-12 厦门兴卓科技有限公司 Lithium battery quick charging circuit and application thereof
CN211720474U (en) * 2020-05-20 2020-10-20 深圳市力生美半导体股份有限公司 Flyback constant-voltage constant-current switching power supply

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130419A (en) * 2023-08-30 2023-11-28 南京普联微电子科技有限公司 LSTM-based MOS tube differential pressure intelligent regulation method and system
CN117130419B (en) * 2023-08-30 2024-03-12 南京普联微电子科技有限公司 LSTM-based MOS tube differential pressure intelligent regulation method and system

Similar Documents

Publication Publication Date Title
US4233553A (en) Automatic dual mode battery charger
US6597221B2 (en) Power converter circuit and method for controlling
KR101494968B1 (en) Switching power converter dynamic load detection
EP0390079B1 (en) Constant DC current supplying circuit
US8680884B2 (en) Fault detection circuits for switched mode power supplies and related methods of operation
US6975521B1 (en) Switching power supply apparatus
US20040037098A1 (en) Switching power supply
US20050258800A1 (en) Battery charger
JP4748026B2 (en) DC constant current power supply with phase control
CN101355263B (en) Battery charger
TW201524261A (en) Capacitor step-down led driver and driving method using the same
JP6257145B2 (en) Switch mode power supply module and related hiccup control method
KR101610920B1 (en) Led converter having flicker-free function
CN114825969B (en) Flyback switching power supply and output control system, method and chip thereof
TWI414126B (en) Charge device
JP2008104275A (en) Constant current controlled dc-dc converter circuit with function for interrupting no-load oscillation
US20160056724A1 (en) Switching Power Supplies And Methods Of Operating Switching Power Supplies
US7974110B2 (en) Switching power supply unit and method for setting switching frequency
CN114189024A (en) Method and device for realizing constant current mode, switching power supply and medium
TWI625032B (en) Low phase surge protection device
CN114189024B (en) Method and device for realizing constant current mode, switching power supply and medium
CN102281686B (en) Compensation control device for LED (Light Emitting Diode) lamp during rapid falling of input voltage and method thereof
JPH05103430A (en) Battery charging circuit
JP2015122937A (en) Driving device of synchronous rectification apparatus
CN104734507A (en) Power supply controller for detecting brownout and brownin, power supply and control method

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