Constant-current and constant-voltage power supply considering inductive load and lithium battery
By designing the Buck circuit, voltage loop control circuit and current loop control circuit in the power supply, combined with the PWM driver chip, the seamless switching between the constant voltage mode and the constant current mode is achieved, which solves the problem of the existing power supply being unable to switch and ensures the power supply. The oxygen machine works normally and the lithium battery charges stably.
Patent Information
- Application Number
- CN202322828632.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2033-10-20
AI Technical Summary
The existing power supply cannot realize seamless switching between constant voltage mode and constant current mode, and cannot meet the power supply needs of oxygen supply machines for workers on plateaus or special areas, especially when powered by lithium batteries.
A constant current and constant voltage power supply that takes into account inductive loads and lithium batteries is designed. It uses Buck circuit, voltage loop control circuit and current loop control circuit, combined with PWM driver chip TPS40170RGYT, to achieve seamless switching of voltage and current. Through the voltage loop and The cooperation of the current loop ensures the normal operation of the oxygen supply machine in constant voltage and constant current modes.
It achieves seamless switching between constant voltage mode and constant current mode, ensuring the normal working status of the oxygen supply machine, and can seamlessly switch between inductive loads and lithium batteries, avoiding overload protection and ensuring the safety of workers. And keep the power supply stable when the lithium battery is charging.
Smart Images

Figure CN221633636U
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of power supply equipment, and in particular relates to a constant current and constant voltage power supply which takes into account both inductive loads and lithium batteries. Background Art
[0002] The two basic working modes of DC power supply are constant voltage and constant current. When the constant voltage output is used, the voltage is constant. As the load changes, the current changes accordingly. When the current reaches the set threshold, it switches to constant current mode to maintain the target current at a constant value. Workers working in plateaus or special areas need to be equipped with oxygen supply machines, and the power supply converts the DC power supply into low voltage to power the oxygen supply machine. When working outdoors, it needs to be switched to lithium battery power supply, but the existing power supply cannot achieve seamless switching between constant voltage mode and constant current mode.
[0003] In order to solve the shortcomings of the existing technology, people have conducted long-term exploration and proposed various solutions. For example, a Chinese patent document discloses a constant voltage and constant current power supply [202111361266.5], which can set the output voltage and output current in advance to the embedded microprocessor through a program to achieve automatic control output of constant voltage and constant current.
[0004] The above solution solves the output problem of constant voltage and constant current to a certain extent, but the solution still has many shortcomings, such as the inability to achieve seamless switching between constant voltage mode and constant current mode. Summary of the invention
[0005] The purpose of the utility model is to provide a constant current and constant voltage power supply with reasonable design and seamless switching between constant voltage and constant current, which takes into account both inductive loads and lithium batteries in order to solve the above problems.
[0006] To achieve the above-mentioned purpose, the utility model adopts the following technical solutions: a constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, including a Buck circuit, the Buck circuit is connected to a voltage loop control circuit and a current loop control circuit, the Buck circuit is connected to a PWM drive chip U1, and the PWM drive chip U1 uses the TPS40170RGYT model.
[0007] In the above-mentioned constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, the Buck circuit includes MOS tubes Q1 and Q2 connected to the PWM drive chip U1, the MOS tubes Q1 and Q2 are connected to the inductor L1, and the MOS tube Q2 and the inductor L1 are connected in parallel with a capacitor Cout.
[0008] In the above-mentioned constant current and constant voltage power supply that takes into account both inductive load and lithium battery, resistors R6 and R30 are connected between the MOS tube Q1 and the PWM driving chip U1, and resistor R5 and capacitor C6 are connected in series between the MOS tube Q1 and the PWM driving chip U1; resistor R7 and resistor R13 are connected between the MOS tube Q2 and the PWM driving chip U1, and resistor R13 is connected to capacitor C15 and resistor R12 and capacitor C23 in parallel; capacitor C14 and resistor R8 are connected in series to the MOS tube Q2 in parallel; capacitor Cout includes capacitors C10-13 connected in parallel with the inductor L1 and the MOS tube Q2, and resistors R18 and R27 are connected in parallel between capacitors C12 and C13.
[0009] In the above-mentioned constant current and constant voltage power supply that takes into account both the inductive load and the lithium battery, capacitors C1, C3 and C4 are connected in parallel between the input port VIN+ and the input port VIN- of the Buck circuit.
[0010] In the above-mentioned constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, the voltage loop control circuit includes a resistor R1 connected to the PWM drive chip U1, the resistor R1 is connected to the Buck circuit and the current loop control circuit, and the resistor R1 is grounded through the resistor R2.
[0011] In the above-mentioned constant current and constant voltage power supply that takes into account both the inductive load and the lithium battery, the resistor R31 is grounded through the resistor R4; the resistor R32 is grounded through the parallel resistor R3 and the capacitor C5.
[0012] In the above-mentioned constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, the PWM driving chip U1 is connected to a resistor R9 and a capacitor C8 in series, and the resistor R9 and the capacitor C8 are connected in parallel with a capacitor C7, the PWM driving chip U1 is connected to a resistor R11 and a capacitor C17 in series, the capacitor C17 is connected to a resistor R2 and a resistor R28 in parallel, the resistor R2 and the resistor R28 are connected to resistors R2, R17 and capacitor C18 in series, the resistor R14, the capacitor C16 and the capacitor C32 are connected between the capacitor C17 and the resistor R2 and the PWM driving chip U1, and the capacitor C32 is connected to the resistor R10.
[0013] In the above-mentioned constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, the current loop control circuit includes an amplifier U2 connected to the Buck circuit and the voltage loop control circuit, a sampling resistor Rsamp is connected in series between the Buck circuit and the amplifier U2, the amplifier U2 is connected to an amplifier U3, and the amplifier U3 is connected to the PWM drive chip U1.
[0014] In the above-mentioned constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, the amplifier U2 is connected to a resistor R19 and a resistor R22, and a capacitor C37 is connected between the resistor R19 and the resistor R22, a capacitor C35 and a capacitor C33 are connected in series between the resistor R19 and the amplifier U2, a capacitor C39 is connected between the resistor R22 and the amplifier U2, and the amplifier U2 is connected to a resistor R23, a resistor R29 and a capacitor C38 in parallel.
[0015] In the above-mentioned constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, the amplifier U3 is connected to resistors R24 and R25, capacitors C34 and C36 are connected in parallel between the resistor R24 and the amplifier U3, and the capacitor C36 is connected in series with the resistor R20, the resistor R25 is connected to the resistor R26 and the diode N1, and the amplifier U3 is connected to the capacitor C40 and the resistor R21.
[0016] Compared with the existing technology, the advantages of the utility model are: it can realize seamless switching between constant voltage mode and constant current mode, always keep the oxygen supply machine in normal working state, and ensure the life safety of the staff; the power supply contains a voltage loop and a current loop, which can realize instant switching and coexistence of powering the load and charging the lithium battery at any time without adding a control system; when the inductive load is connected and the output is overloaded, the normal working state is still guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a circuit block diagram of the utility model;
[0018] Figure 2 It is a circuit schematic diagram of the utility model;
[0019] Figure 3 It is another circuit principle diagram of the utility model;
[0020] Figure 4-7 It is a working schematic diagram of the utility model. DETAILED DESCRIPTION
[0021] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0022] like Figure 1As shown, a constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries includes a Buck circuit, and the Buck circuit is connected to a voltage loop control circuit and a current loop control circuit, wherein U-Loop is a voltage loop control circuit and I-Loop is a current loop control circuit. The Buck circuit is connected to a PWM driver chip U1, and the PWM driver chip U1 uses the TPS40170RGYT model. The input voltage of the power supply is DC 20-33V, the constant voltage mode outputs 16.8V, and the constant current mode outputs 5.7A. The output can be seamlessly switched between constant voltage and constant current modes.
[0023] like Figure 2 As shown, specifically, the Buck circuit includes MOS tubes Q1 and Q2 connected to the PWM driving chip U1, MOS tubes Q1 and Q2 are connected to an inductor L1, and MOS tube Q2 and inductor L1 are connected in parallel with a capacitor Cout. The Buck circuit has an input terminal VIN+ and an output terminal VOUT+. The PWM driving chip U1 drives the upper and lower MOS tubes Q1 and Q2 to be turned on alternately to realize the energy storage and discharge of the output inductor. When the MOS tube Q1 is turned on and the MOS tube Q2 is turned off, the inductor stores energy and outputs voltage; when the MOS tube Q1 is turned off and the MOS tube Q2 is turned on, the inductor discharges and outputs voltage.
[0024] Specifically, resistors R6 and R30 are connected between the MOS tube Q1 and the PWM driving chip U1, and resistors R5 and capacitors C6 are connected in series between the MOS tube Q1 and the PWM driving chip U1; resistors R7 and R13 are connected between the MOS tube Q2 and the PWM driving chip U1, and resistors R13 are connected to capacitors C15 and resistors R12 and C23 in parallel; capacitors C14 and R8 are connected in series in parallel to the MOS tube Q2; capacitor Cout includes capacitors C10-13 connected in parallel with the inductor L1 and the MOS tube Q2, and resistors R18 and R27 are connected in parallel between capacitors C12 and C13.
[0025] Furthermore, capacitors C1, C3 and C4 are connected in parallel between the input ports VIN+ and VIN- of the Buck circuit. The output end of the Buck circuit and the voltage loop control circuit is connected with capacitors C19-22, C24-27 and C28-31 connected in parallel.
[0026] Furthermore, the voltage loop control circuit includes a resistor R1 connected to the PWM driver chip U1, the resistor R1 is connected to the Buck circuit and the current loop control circuit, and the resistor R1 is grounded through the resistor R2. After the FB pin of the PWM driver chip U1 is divided by the output resistors R1 and R2, it is compared with the internal Vref2=0.8V, so that the PWM driver chip U1 continuously outputs two PWM drive waveforms with a phase difference of 180°, drives the MOS tube, and keeps the output voltage at 16.8V.
[0027] In addition, resistor R31 is grounded through resistor R4; resistor R32 is grounded through resistor R3 and capacitor C5 in parallel. Adding a Type-3 compensator consisting of a lead compensation in parallel with resistor R1 and a lag compensation of the PWM driver chip U1 in the voltage loop control circuit can improve the open-loop gain and phase of the power supply, increase the bandwidth, and improve the phase margin. Improving the transient response speed of the entire power supply can make the overall operation of the voltage loop smoother to a certain extent.
[0028] At the same time, the PWM driving chip U1 is connected to a resistor R9 and a capacitor C8 in series, and the resistor R9 and the capacitor C8 are connected in parallel with a capacitor C7. The PWM driving chip U1 is connected to a resistor R11 and a capacitor C17 in series, and the capacitor C17 is connected to a resistor R2 and a resistor R28 in parallel. The resistor R2 and the resistor R28 are connected to resistors R2, R17 and capacitor C18 in series. A resistor R14, a capacitor C16 and a capacitor C32 are connected between the capacitor C17 and the resistor R2 and the PWM driving chip U1, and the capacitor C32 is connected to a resistor R10.
[0029] like Figure 3 As shown, the current loop control circuit includes an amplifier U2 connected to the Buck circuit and the voltage loop control circuit, a sampling resistor Rsamp is connected in series between the Buck circuit and the amplifier U2, the amplifier U2 is connected to the amplifier U3, and the amplifier U3 is connected to the PWM drive chip U1. The current loop control circuit mainly meets the charging requirements of lithium batteries. It connects a mΩ sampling resistor Rsamp in series at the output end that meets the requirements for charging the lithium battery, collects and amplifies the current, and controls the constant current output of the power supply through the Type-2 compensator formed by the amplifier U3.
[0030] The compressor is actually an inductive load. When the compressor is working periodically, the current will exceed the rated current of 5.7A, which will last for about 5-7ms. At this time, overcurrent protection cannot be used, and the power supply must be able to continue to work normally. Under the premise of ensuring the stability of the loop within the full input range, the output current exceeds the rated value, and the current loop lags behind the voltage loop by 50ms until the overload ends. The current loop control circuit does not work, and the voltage loop control circuit is always working, and the voltage can be stabilized at the corresponding voltage.
[0031] Obviously, the amplifier U2 is connected to resistor R19 and resistor R22, and capacitor C37 is connected between resistor R19 and resistor R22. Capacitor C35 and capacitor C33 are connected in series between resistor R19 and amplifier U2. Capacitor C39 is connected between resistor R22 and amplifier U2. Amplifier U2 is connected to resistor R23, resistor R29 and capacitor C38 in parallel.
[0032] Preferably, the amplifier U3 is connected to resistors R24 and R25, capacitors C34 and C36 are connected in parallel between the resistor R24 and the amplifier U3, and capacitor C36 is connected in series with resistor R20, resistor R25 is connected to resistor R26 and diode N1, and the amplifier U3 is connected to capacitor C40 and resistor R21, wherein diode N1 is a voltage-stabilizing diode.
[0033] When a non-lithium battery load is connected, the current does not exceed the rated 5.7A, so the current loop control circuit does not work; when a lithium battery is connected as a load, since the lithium battery voltage is lower than 16.8V, the output voltage is pulled down to the battery voltage, the current loop control circuit works, and the constant current output is 5.7A. The compressor and lithium battery share 5.7A, and the battery voltage at this time is used as the power supply voltage for the compressor (compressor operating voltage range> lithium battery operating voltage range). As the lithium battery is gradually filled, the charging also enters a trickle state. Under the premise of satisfying the normal operation of the compressor, the constant current output is less than 5.7A.
[0034] like Figure 4 As shown, the input end of the Buck circuit is connected to a DC power supply with a current limit of 10A. An electronic load is used to simulate a compressor and set to 2A. The lithium battery is connected to the electronic load through an air switch. The working process is as follows:
[0035] Moment ①: DC power supply supplies 20V, Buck circuit starts, output 16.7V / 2A;
[0036] Moment ②: Close the air switch, connect the battery, and the output voltage is pulled down to the battery voltage of 13.5V; the total current output is 5.7A, charging the battery and powering the electronic load at the same time;
[0037] like Figure 5 The current spike shown is caused by the jitter of turning off the air switch and does not affect actual use.
[0038] Moment ③: disconnect the air switch, and the Buck circuit only provides 2A current to the electronic load;
[0039] Time ④: Turn off the DC power supply and the Buck circuit stops working.
[0040] like Figure 6 The figure shows the actual waveform at 34V input, and the working status is normal.
[0041] like Figure 7 The figure shows that the simulated inductive load is overloaded within 50ms, and the power supply still outputs a normal waveform.
[0042] To sum up, the principle of this embodiment is: on the basis of the conventional constant voltage Buck circuit, a voltage loop control circuit and a current loop control circuit are added, which can perfectly realize the seamless switching from powering the compressor to charging the lithium battery, and meet the demand of short-term overload without protection of the inductive load by adjusting the compensator parameters.
[0043] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
[0044] Although this article uses more terms such as Buck circuit, voltage loop control circuit, current loop control circuit, etc., it does not exclude the possibility of using other terms. These terms are used only to more conveniently describe and explain the essence of the utility model; interpreting them as any additional restrictions is contrary to the spirit of the utility model.
Claims
1. A constant current and constant voltage power supply that takes into account both inductive loads and lithium batteries, including a Buck circuit, It is characterized in that The Buck circuit is connected to a voltage loop control circuit and a current loop control circuit. The Buck circuit is connected to a PWM drive chip U1. The PWM drive chip U1 is a TPS40170RGYT model.
2. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 1, It is characterized in that The Buck circuit includes a MOS transistor Q1 and a MOS transistor Q2 connected to a PWM driving chip U1. The MOS transistor Q1 and the MOS transistor Q2 are connected to an inductor L1. The MOS transistor Q2 and the inductor L1 are connected in parallel with a capacitor Cout.
3. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 2, It is characterized in that Resistors R6 and R30 are connected between the MOS tube Q1 and the PWM driving chip U1, and resistors R5 and capacitors C6 are connected in series between the MOS tube Q1 and the PWM driving chip U1; resistors R7 and R13 are connected between the MOS tube Q2 and the PWM driving chip U1, and capacitors C15 and resistors R12 and C23 are connected in parallel to the resistor R13; capacitors C14 and R8 are connected in series to the MOS tube Q2 in parallel; capacitors Cout include capacitors C10-13 connected in parallel with the inductor L1 and the MOS tube Q2, and resistors R18 and R27 are connected in parallel between the capacitors C12 and C13.
4. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 3, It is characterized in that A capacitor C1, a capacitor C3 and a capacitor C4 are connected in parallel between the input port VIN+ and the input port VIN- of the Buck circuit.
5. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 2, It is characterized in that The voltage loop control circuit includes a resistor R1 connected to the PWM drive chip U1, the resistor R1 is connected to the Buck circuit and the current loop control circuit, and the resistor R1 is grounded through a resistor R2.
6. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 5, It is characterized in that The resistor R31 is grounded via the resistor R4; the resistor R32 is grounded via the resistor R3 and the capacitor C5 connected in parallel.
7. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 6, It is characterized in that The PWM driving chip U1 is connected with a resistor R9 and a capacitor C8 connected in series, and the resistor R9 and the capacitor C8 are connected in parallel with a capacitor C7. The PWM driving chip U1 is connected with a resistor R11 and a capacitor C17 connected in series, and the capacitor C17 is connected with a resistor R2 and a resistor R28 connected in parallel. The resistor R2 and the resistor R28 are connected with resistors R1, R17 and capacitor C18 connected in series. A resistor R14, a capacitor C16 and a capacitor C32 are connected between the capacitor C17 and the resistor R2 and the PWM driving chip U1, and the capacitor C32 is connected with a resistor R10.
8. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 5, It is characterized in that The current loop control circuit includes an amplifier U2 connected to the Buck circuit and the voltage loop control circuit, a sampling resistor Rsamp is connected in series between the Buck circuit and the amplifier U2, the amplifier U2 is connected to an amplifier U3, and the amplifier U3 is connected to the PWM drive chip U1.
9. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 8, It is characterized in that The amplifier U2 is connected to a resistor R19 and a resistor R22, and a capacitor C37 is connected between the resistor R19 and the resistor R22. A capacitor C35 and a capacitor C33 are connected in series between the resistor R19 and the amplifier U2. A capacitor C39 is connected between the resistor R22 and the amplifier U2. The amplifier U2 is connected to a resistor R23, a resistor R29 and a capacitor C38 in parallel.
10. A constant current and constant voltage power supply for both inductive load and lithium battery according to claim 9, It is characterized in that The amplifier U3 is connected to resistors R24 and R25, capacitors C34 and C36 are connected in parallel between the resistor R24 and the amplifier U3, and the capacitor C36 is connected in series with resistor R20, the resistor R25 is connected to resistor R26 and diode N1, and the amplifier U3 is connected to capacitor C40 and resistor R21.
