Program-controllable direct-current power source and control method therefor
By introducing voltage and current sampling feedback mechanism and PWM modulation signal control into the DC power supply, the complex structure and high cost of digital DC power supply are solved, real-time output adjustment and overcurrent protection of the DC power supply are realized, ensuring that the output value meets the design requirements .
Patent Information
- Application Number
- PCT/CN2023/113718
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-18
- Filing Date
- 2023-08-18
- Publication Date
- 2024-11-21
AI Technical Summary
The existing programmable digital DC power supply has complex structure and high cost, and cannot effectively achieve program control.
A DC power supply including main control circuit, driving circuit, rectifier circuit, voltage sampling circuit and current sampling circuit is designed. Through the voltage and current sampling feedback mechanism, PWM modulation signals are generated to control the output value of the rectifier circuit to realize external equipment. The given voltage or current output is output and if necessary, the current overload is prevented through an overcurrent protection circuit.
Real-time monitoring, analysis and adjustment of DC power output value is realized to ensure that the output meets the design requirements, is simple in structure and low in cost, and achieves excellent program control.
Smart Images

Figure CN2023113718_21112024_PF_FP_ABST
Abstract
Description
Programmable DC power supply and control method thereof Technical Field
[0001] The present invention relates to the technical field of power supplies, and in particular to a programmable direct current power supply and a control method thereof. Background Art
[0002] A DC power supply is a commonly used power source that converts other forms of energy into electrical energy to supply circuits, maintaining a steady flow of current. Typically, DC power supplies are used to power DC motors, power plants, distribution substations, communications, and other applications requiring uninterruptible DC voltages of 48V, 110V, or 220V. With the widespread use of DC power supplies, the demands placed on them are becoming increasingly stringent. To adapt to a wider range of environments, DC power supplies are not only required to provide a stable constant voltage or current output, but also to be programmable (i.e., programmable to control the output voltage, current, or function to a specific value).
[0003] However, existing DC power supplies are divided into two types: analog DC power supplies and digital DC power supplies. Analog DC power supplies cannot achieve programmable variable output. Although digital DC power supplies are programmable, they usually have complex circuit structures and high costs.
[0004] Summary of the Invention
[0005] In view of this, the present invention provides a programmable DC power supply and a control method thereof to solve the problems of complex structure and high cost of existing programmable digital DC power supplies.
[0006] The present invention provides a programmable DC power supply, which includes a main control circuit, a drive circuit, a rectifier circuit, a voltage sampling circuit and a current sampling circuit;
[0007] The output end of the main control circuit is electrically connected to the rectifier circuit through the drive circuit, the input end of the voltage sampling circuit and the input end of the current sampling circuit are both electrically connected to the output end of the rectifier circuit, and the output end of the voltage sampling circuit and the output end of the current sampling circuit are both electrically connected to the input end of the main control circuit;
[0008] The current sampling circuit is used to collect the current signal output by the rectifier circuit and feed the current signal back to the main control circuit;
[0009] The voltage sampling circuit is used to collect the voltage signal output by the rectifier circuit and feed the voltage signal back to the main control circuit;
[0010] The main control circuit is configured to determine whether the output value of the rectifier circuit reaches a given value based on the voltage signal and the current signal; and output a PWM modulation signal to the drive circuit when it is determined that the output value of the rectifier circuit does not reach the given value;
[0011] The driving circuit is configured to generate a driving signal for the rectifier circuit according to the PWM modulation signal, so as to control the output value of the rectifier circuit to reach the given value;
[0012] The rectifier circuit is used to perform rectification according to the driving signal and output the given value to an external device.
[0013] Optionally, the voltage sampling circuit includes a first resistor R1, a second resistor R6, a third resistor R4 and a first capacitor C3;
[0014] A first end of the first resistor R1 is electrically connected to the output end of the rectifier circuit, a second end of the first resistor R1 is grounded via the second resistor R6, a first end of the third resistor R4 and a first end of the first capacitor C3 are both electrically connected to the input end of the main control circuit, a second end of the third resistor R4 is connected to a common connection end between the second end of the first resistor R1 and the second resistor R6, and a second end of the first capacitor C3 is grounded.
[0015] Optionally, the current sampling circuit includes a first operational amplifier U2, a fourth resistor R7, a fifth resistor R5, a sixth resistor R2 and a second capacitor C2;
[0016] A power pin of the first op amp U2 is electrically connected to a power supply end of the circuit, and a ground pin of the first op amp U2 is grounded; a non-inverting input pin of the first op amp U2 is electrically connected to an output end of the rectifier circuit, an inverting input pin of the first op amp U2 is grounded via the fourth resistor R7, and an output pin of the first op amp U2 is electrically connected to an input end of the main control circuit via the sixth resistor R2; a first end of the fifth resistor R5 is connected to a common connection end between the inverting input pin of the first op amp U2 and the fourth resistor R7, and a second end of the fifth resistor R5 is connected to a common connection end between the output pin of the first op amp U2 and the sixth resistor R2; a first end of the second capacitor C2 is connected to a common connection end between the sixth resistor R2 and the input end of the main control circuit, and a second end of the second capacitor C2 is grounded.
[0017] Optionally, the driving circuit includes a first electrolytic capacitor C4, a second electrolytic capacitor C5, a third electrolytic capacitor C6 and a full-bridge driving chip U1 with 20 pins;
[0018] Pin 1 VCC1 of the full-bridge driver chip U1 is electrically connected to the power supply end of the device, Pin 2 C2 of the full-bridge driver chip U1 is electrically connected to Pin 13 C1 of the full-bridge driver chip U1 through the third electrolytic capacitor C6, Pin 3 CP_OUT of the full-bridge driver chip U1 is electrically connected to the power supply end of the device through the first electrolytic capacitor C4, Pin 4 SRC_HS1, Pin 5 GATE_HS1, Pin 8 GATE_LS1, Pin 15 GATE_LS2, Pin 18 GATE_HS2 and Pin 19 of the full-bridge driver chip U1 are electrically connected to the power supply end of the device. Pin SRC_HS2 is electrically connected to the rectifier circuit, and pins No. 6 IN_HS1, No. 7 IN_LS1, No. 16 IN_LS2, No. 17 IN_HS2 and No. 20 G_EN of the full-bridge driver chip U1 are electrically connected to the main control circuit; pins No. 9 GND1, No. 12 GND_A and No. 14 GND2 of the full-bridge driver chip U1 are all grounded, pin No. 10 LR_OUT of the full-bridge driver chip U1 is grounded through the second electrolytic capacitor C5, and pin No. 11 VCC2 of the full-bridge driver chip U1 is electrically connected to the circuit power supply end.
[0019] Optionally, the rectifier circuit includes an H-bridge switch module, a rectifier bridge D1 and a fourth electrolytic capacitor C1;
[0020] The gate signal input terminal of the H-bridge switch module is electrically connected to the output terminal of the drive circuit, the positive power supply input terminal of the H-bridge switch module is electrically connected to the set power supply terminal, and the negative power supply input terminal of the H-bridge switch module is grounded; the positive signal output terminal of the H-bridge switch module is electrically connected to the positive AC signal input terminal of the rectifier bridge D1, and the negative signal output terminal of the H-bridge switch module is electrically connected to the negative AC signal input terminal of the rectifier bridge D1; the positive DC signal output terminal of the rectifier bridge D1 is electrically connected to an external device, and the negative DC signal output terminal of the rectifier bridge D1 is grounded; the positive electrode of the fourth electrolytic capacitor is connected to the common connection terminal between the positive DC signal output terminal of the rectifier bridge D1 and the external device, the negative electrode of the fourth electrolytic capacitor is grounded, and the negative electrode of the fourth electrolytic capacitor is also connected to the negative DC signal output terminal of the rectifier bridge D1.
[0021] Optionally, the H-bridge switch module is an H-bridge composed of a first MOS transistor Q1, a second MOS transistor Q2, a third MOS transistor Q3, and a fourth MOS transistor Q4, and the H-bridge switch module further includes a seventh resistor R8, an eighth resistor R9, a ninth resistor R10, a tenth resistor R11, an eleventh resistor R3, and a transformer LCM1;
[0022] The gate of the first MOS transistor Q1 is electrically connected to the output end of the drive circuit via the seventh resistor R8, the gate of the third MOS transistor Q3 is electrically connected to the output end of the drive circuit via the ninth resistor R10, and the drain of the first MOS transistor Q1 is electrically connected to the device power supply end; the source of the first MOS transistor Q1 is connected to the drain of the third MOS transistor Q3 and is electrically connected to the output end of the drive circuit; the source of the third MOS transistor Q3 is grounded via the eleventh resistor R3; the gate of the second MOS transistor Q2 is electrically connected to the output end of the drive circuit via the eighth resistor R9, the gate of the fourth MOS transistor Q4 is electrically connected to the output end of the drive circuit via the tenth resistor R11, and the drain of the second MOS transistor Q2 is electrically connected to the device power supply end; the source of the second MOS transistor Q2 is connected to the drain of the fourth MOS transistor Q4 and is electrically connected to the output end of the drive circuit; and the source of the fourth MOS transistor Q4 is connected to the common connection end between the source of the third MOS transistor Q3 and the eleventh resistor R3.
[0023] A first end of the primary winding of the transformer LCM1 is connected to the common connection terminal between the source of the first MOS transistor Q1 and the drain of the third MOS transistor Q3. A second end of the primary winding of the transformer LCM1 is connected to the common connection terminal between the source of the second MOS transistor Q2 and the drain of the fourth MOS transistor Q4. A first end of the secondary winding of the transformer LCM1 is electrically connected to the negative AC signal input terminal of the rectifier bridge D1. A second end of the secondary winding of the transformer LCM1 is electrically connected to the positive AC signal input terminal of the rectifier bridge D1.
[0024] Optionally, the DC power supply further includes an overcurrent protection circuit;
[0025] The input end of the overcurrent protection circuit is electrically connected to the output end of the rectifier circuit, and the output end of the overcurrent protection circuit is electrically connected to the input end of the main control circuit;
[0026] The overcurrent protection circuit is configured to obtain the current signal output by the rectifier circuit, and send a pulse signal to the main control circuit when the current signal exceeds a protection set value;
[0027] The main control circuit is further configured to generate an enable level signal according to the pulse signal, and send the enable level signal to the drive circuit to control the drive circuit to stop working.
[0028] Optionally, the overcurrent protection circuit includes a second operational amplifier U3, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14 and a third capacitor C7;
[0029] A power input pin of the second operational amplifier U3 is electrically connected to a circuit power supply terminal, a ground pin of the second operational amplifier U3 is grounded, a first end of the fourteenth resistor R14 is connected to a common connection terminal between the power input pin of the second operational amplifier U3 and the circuit power supply terminal, and a second end of the fourteenth resistor R14 is grounded via the twelfth resistor R12;
[0030] The inverting input pin of the second operational amplifier U3 is electrically connected to the output end of the rectifier circuit, the non-inverting input pin of the second operational amplifier U3 is grounded through the third capacitor C7, the output pin of the second operational amplifier U3 is electrically connected to the input end of the main control circuit, and the output pin of the second operational amplifier U3 is also electrically connected to the power supply end of the circuit through the fourteenth resistor R13.
[0031] In addition, the present invention also provides a method for controlling a programmable DC power supply, which uses the aforementioned programmable DC power supply to output a given value to an external device. The control method includes:
[0032] The current sampling circuit collects the current signal output by the rectifier circuit and feeds the current signal back to the main control circuit; the voltage sampling circuit collects the voltage signal output by the rectifier circuit and feeds the voltage signal back to the main control circuit;
[0033] Using the main control circuit, judging whether the output value of the rectifier circuit reaches the given value according to the voltage signal and the current signal; when it is judged that the output value of the rectifier circuit does not reach the given value, outputting a PWM modulation signal to the drive circuit;
[0034] Using the driving circuit to generate a driving signal for the rectifier circuit according to the PWM modulation signal, so as to control the output value of the rectifier circuit to reach the given value;
[0035] The rectifier circuit is used to perform rectification according to the driving signal and output the signal to the external device according to the given value.
[0036] Optionally, the DC power supply further includes an overcurrent protection circuit;
[0037] The control method further includes:
[0038] Utilizing the overcurrent protection circuit, obtaining the current signal output by the rectifier circuit, and sending a pulse signal to the main control circuit when the current signal exceeds a protection set value;
[0039] The main control circuit is used to generate an enable level signal according to the pulse signal, and the enable level signal is sent to the drive circuit to control the drive circuit to stop working.
[0040] The beneficial effects of the present invention are as follows: the voltage signal and the current signal output by the rectifier circuit are respectively collected by the voltage sampling circuit and the current sampling circuit, and are respectively fed back to the main control circuit. Based on the voltage signal and the current signal, the main control circuit can analyze whether the output value (including the voltage output value, the current output value and the power output value) ultimately output by the rectifier circuit to the external device reaches a preset given value, thereby ensuring that the entire DC power supply can operate according to the design requirements; when the main control circuit analyzes that the output value does not reach the given value, a PWM modulation signal is generated to the drive circuit, and the drive circuit drives the rectifier circuit to adjust the working state through the drive signal generated by the PWM modulation signal to control its output value to reach the given value;
[0041] The programmable DC power supply and control method thereof in the present invention can monitor, analyze and adjust the output of the entire power supply in real time so that its output value meets the design requirements, and achieves excellent programmability with a simple structure and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0043] FIG1 shows a structural diagram of a programmable DC power supply in a first embodiment of the present invention;
[0044] FIG2 shows a design diagram of various circuits in a DC power supply according to a first embodiment of the present invention;
[0045] FIG3 shows a structural diagram of another programmable DC power supply in the first embodiment of the present invention;
[0046] FIG4 shows a flow chart of a method for controlling a programmable DC power supply in a second embodiment of the present invention. DETAILED DESCRIPTION
[0047] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0048] Example 1
[0049] As shown in FIG1 , a programmable DC power supply includes a main control circuit, a drive circuit, a rectifier circuit, a voltage sampling circuit, and a current sampling circuit;
[0050] The output end of the main control circuit is electrically connected to the rectifier circuit through the drive circuit, the input end of the voltage sampling circuit and the input end of the current sampling circuit are both electrically connected to the output end of the rectifier circuit, and the output end of the voltage sampling circuit and the output end of the current sampling circuit are both electrically connected to the input end of the main control circuit;
[0051] The current sampling circuit is used to collect the current signal output by the rectifier circuit and feed the current signal back to the main control circuit;
[0052] The voltage sampling circuit is used to collect the voltage signal output by the rectifier circuit and feed the voltage signal back to the main control circuit;
[0053] The main control circuit is configured to determine whether the output value of the rectifier circuit reaches a given value based on the voltage signal and the current signal; and output a PWM modulation signal to the drive circuit when it is determined that the output value of the rectifier circuit does not reach the given value;
[0054] The driving circuit is configured to generate a driving signal for the rectifier circuit according to the PWM modulation signal, so as to control the output value of the rectifier circuit to reach the given value;
[0055] The rectifier circuit is used to perform rectification according to the driving signal and output the given value to an external device.
[0056] The voltage signal and current signal output by the rectifier circuit are collected respectively through the voltage sampling circuit and the current sampling circuit, and are fed back to the main control circuit respectively. Based on the voltage signal and the current signal, the main control circuit can analyze whether the output value (including voltage output value, current output value and power output value) finally output by the rectifier circuit to the external device reaches the preset given value to ensure that the entire DC power supply can work according to the design requirements; when the main control circuit analyzes that the output value does not reach the given value, it generates a PMW modulation signal to the drive circuit, and the drive circuit drives the rectifier circuit to adjust the working state through the drive signal generated by the PWM modulation signal to control its output value to reach the given value.
[0057] The programmable DC power supply of this embodiment can monitor, analyze and adjust the output of the entire power supply in real time so that its output value meets the design requirements, and achieves excellent programmability with a simple structure and low cost.
[0058] The main control circuit of this embodiment includes a single-chip microcomputer having a multi-channel PWM port and a multi-channel A / D port, as shown in FIG2 . The PWM port is the output terminal of the main control circuit, including PW1 to PW4 in FIG2 , which is connected to the drive circuit and can output PWM modulation signals with different duty cycles to the drive circuit to control the drive circuit to drive the rectifier circuit to output according to a given value. The A / D port is the input terminal of the main control circuit, including A / D1 to A / D2 in FIG2 , which are respectively connected to the current sampling circuit and the voltage sampling circuit (where A / D1 port is connected to the current sampling circuit, and A / D2 port is connected to the voltage sampling circuit). It can perform analog-to-digital conversion on the current signal and the voltage signal, respectively, so that the single-chip microcomputer can analyze whether the rectifier circuit outputs according to the given value in the current state based on the analog-to-digital converted current signal and voltage signal. In this embodiment, the appropriate single-chip microcomputer model can be selected according to the actual situation, and is not listed here.
[0059] Preferably, as shown in FIG2 , the voltage sampling circuit includes a first resistor R1 , a second resistor R6 , a third resistor R4 and a first capacitor C3 ;
[0060] A first end of the first resistor R1 is electrically connected to the output end of the rectifier circuit, a second end of the first resistor R1 is grounded via the second resistor R6, a first end of the third resistor R4 and a first end of the first capacitor C3 are both electrically connected to the input end of the main control circuit, a second end of the third resistor R4 is connected to a common connection end between the second end of the first resistor R1 and the second resistor R6, and a second end of the first capacitor C3 is grounded.
[0061] The voltage sampling circuit of the above structure can sample the voltage signal output from the output end of the rectifier circuit and form a feedback analog signal, which is fed back to the main control circuit to facilitate judgment on whether the output value of the rectifier circuit reaches a given value.
[0062] Specifically, as shown in FIG2 , a first end of the third resistor R4 is connected to the A / D2 port of the single chip microcomputer.
[0063] Preferably, as shown in FIG2 , the current sampling circuit includes a first operational amplifier U2 , a fourth resistor R7 , a fifth resistor R5 , a sixth resistor R2 and a second capacitor C2 ;
[0064] A power supply pin of the first op amp U2 is electrically connected to a power supply end of the circuit, and a ground pin of the first op amp U2 is grounded; a non-inverting input pin of the first op amp U2 is electrically connected to an output end of the rectifier circuit, an inverting input pin of the first op amp U2 is grounded via the fourth resistor R7, and an output pin of the first op amp U2 is electrically connected to an input end of the main control circuit via the sixth resistor R2; a first end of the fifth resistor R5 is connected to a common connection end between the inverting input pin of the first op amp U2 and the fourth resistor R7, and a second end of the fifth resistor R5 is connected to a common connection end between the output pin of the first op amp U2 and the sixth resistor R2; a first end of the second capacitor C2 is connected to a common connection end between the sixth resistor R2 and the input end of the main control circuit, and a second end of the second capacitor C2 is grounded.
[0065] Through the current sampling circuit of this structure, the current signal output from the output end of the rectifier circuit can be sampled and a feedback analog signal can be formed and fed back to the main control circuit to facilitate the judgment of whether the output value of the rectifier circuit reaches a given value.
[0066] Specifically, as shown in FIG2 , a first end of the sixth resistor R2 is connected to an output pin of the first op amp U2, and a second end is connected to the A / D1 port of the single-chip microcomputer. In this embodiment, the second op amp U2 is an LM321M5X / TR model, and the resistors and capacitors can be selected from electronic components of appropriate specifications or models based on actual conditions.
[0067] Specifically, this embodiment can monitor the voltage output value, current output value and power output value (collectively referred to as the output value of the rectifier circuit) of the entire power supply through the above-mentioned voltage sampling circuit and current sampling circuit, that is, the power supply can operate in three working modes: voltage output mode, current output mode and power output mode.
[0068] When the power supply works in the voltage output mode, the voltage output value of the rectifier circuit can be adjusted. The specific working process is: the voltage signal collected by the voltage sampling circuit is converted by the analog-to-digital conversion of the single-chip microcomputer to obtain a voltage value, which is the voltage output value. It is compared with the voltage set value pre-set by the single-chip microcomputer. When they are inconsistent, the PWM modulation signal corresponding to each port PW1~PW4 is generated. The drive circuit generates a corresponding drive signal under the PWM modulation signal corresponding to each port PW1~PW4 to drive the rectification of the rectifier circuit; in this process, the voltage sampling circuit collects a new voltage signal and obtains a new voltage output value after analog-to-digital conversion by the single-chip microcomputer. The new voltage output value continues to be compared with the voltage set value. If they are inconsistent, PWM modulation is continued until the final voltage output value reaches the voltage set value.
[0069] When the power supply operates in power output mode, the power output value of the rectifier circuit can be regulated. The specific operation process is as follows: the current signal collected by the current sampling circuit is converted by the microcontroller into analog-to-digital form to obtain a current value. This current value is the effective current under the power supply terminal Vbus of the device power supply. Therefore, the product of this current value and the Vbus voltage is the power output value. This power output value is compared with the power set value preset by the microcontroller. If there is a discrepancy, PWM modulation signals corresponding to each port PW1-PW4 are generated. The drive circuit generates corresponding drive signals based on the PWM modulation signals corresponding to each port PW1-PW4 to drive the rectification of the rectifier circuit. During this process, the current sampling circuit collects a new current signal and converts it into analog-to-digital form by the microcontroller to obtain a new current value. The product of the new current value and the Vbus voltage is the new power output value. This new power output value is further compared with the power set value. If there is a discrepancy, PWM modulation is continued until the final power output value reaches the power set value.
[0070] When the power supply works in the current output mode, the current output value of the rectifier circuit can be regulated. The specific working process is as follows: the current signal collected by the current sampling circuit is converted into a digital form by the single-chip microcomputer to obtain the current value. The product of the current value and the Vbus voltage is the power output value. The ratio of the power output value to the voltage output value obtained in the voltage output mode is the current output value; the current output value is compared with the current given value preset by the single-chip microcomputer. When there is a discrepancy, a PWM modulation signal corresponding to each port PW1 to PW4 is generated, and the driving circuit generates the PWM modulation signal corresponding to each port PW1 to PW4. The corresponding driving signal is generated under the signal to drive the rectification of the rectifier circuit; in this process, the current sampling circuit collects the new current signal and obtains the new current value after analog-to-digital conversion by the single-chip microcomputer. The product of the new current value and the Vbus voltage is the new power output value; at the same time, the voltage sampling circuit collects the new voltage signal and obtains the new voltage output value after analog-to-digital conversion by the single-chip microcomputer. The new power value is divided by the new voltage output value to obtain the new current output value. The new current output value continues to be compared with the current set value. If it is inconsistent, PWM modulation is continued until the final current output value reaches the current set value.
[0071] Preferably, as shown in FIG2 , the driving circuit includes a first electrolytic capacitor C4 , a second electrolytic capacitor C5 , a third electrolytic capacitor C6 and a full-bridge driving chip U1 having 20 pins;
[0072] Pin 1 VCC1 of the full-bridge driver chip U1 is electrically connected to the power supply terminal of the device, Pin 2 C2 of the full-bridge driver chip U1 is electrically connected to Pin 13 C1 of the full-bridge driver chip U1 through the third electrolytic capacitor C6, Pin 3 CP_OUT of the full-bridge driver chip U1 is electrically connected to the power supply terminal of the device through the first electrolytic capacitor C4, Pin 4 SRC_HS1, Pin 5 GATE_HS1, Pin 8 G ATE_LS1, pin 15 GATE_LS2, pin 18 GATE_HS2 and pin 19 SRC_HS2 are all electrically connected to the rectifier circuit, and pin 6 IN_HS1, pin 7 IN_LS1, pin 16 IN_LS2, pin 17 IN_HS2 and pin 20 G_EN of the full-bridge driver chip U1 are all electrically connected to the main control circuit; pin 9 GND1, pin 12 GND_A and pin 14 GND2 of the full-bridge driver chip U1 are all grounded, pin 10 LR_OUT of the full-bridge driver chip U1 is grounded through the second electrolytic capacitor C5, and pin 11 VCC2 of the full-bridge driver chip U1 is electrically connected to the circuit power supply end.
[0073] The driving circuit of the above structure can generate the driving signal required by the rectifier circuit according to the multi-channel PWM modulation signal output by the main control circuit, and then use the driving signal to control the rectification of the rectifier circuit.
[0074] Preferably, as shown in FIG2 , the rectifier circuit includes an H-bridge switch module, a rectifier bridge D1D1 and a fourth electrolytic capacitor C1;
[0075] The gate signal input terminal of the H-bridge switch module is electrically connected to the output terminal of the drive circuit, the positive power supply input terminal of the H-bridge switch module is electrically connected to the set power supply terminal, and the negative power supply input terminal of the H-bridge switch module is grounded; the positive signal output terminal of the H-bridge switch module is electrically connected to the positive AC signal input terminal of the rectifier bridge D1D1, and the negative signal output terminal of the H-bridge switch module is electrically connected to the negative AC signal input terminal of the rectifier bridge D1D1; the positive DC signal output terminal of the rectifier bridge D1D1 is electrically connected to an external device, and the negative DC signal output terminal of the rectifier bridge D1D1 is grounded; the positive electrode of the fourth electrolytic capacitor is connected to the common connection terminal between the positive DC signal output terminal of the rectifier bridge D1D1 and the external device, the negative electrode of the fourth electrolytic capacitor is grounded, and the negative electrode of the fourth electrolytic capacitor is also connected to the negative DC signal output terminal of the rectifier bridge D1D1.
[0076] Preferably, as shown in FIG2 , the H-bridge switch module is an H-bridge composed of a first MOS transistor Q1, a second MOS transistor Q2, a third MOS transistor Q3, and a fourth MOS transistor Q4, and the H-bridge switch module further includes a seventh resistor R8, an eighth resistor R9, a ninth resistor R10, a tenth resistor R11, an eleventh resistor R3, and a transformer LCM1;
[0077] The gate of the first MOS transistor Q1 is electrically connected to the output end of the drive circuit via the seventh resistor R8, the gate of the third MOS transistor Q3 is electrically connected to the output end of the drive circuit via the ninth resistor R10, and the drain of the first MOS transistor Q1 is electrically connected to the device power supply end; the source of the first MOS transistor Q1 is connected to the drain of the third MOS transistor Q3 and is electrically connected to the output end of the drive circuit; the source of the third MOS transistor Q3 is grounded via the eleventh resistor R3; the gate of the second MOS transistor Q2 is electrically connected to the output end of the drive circuit via the eighth resistor R9, the gate of the fourth MOS transistor Q4 is electrically connected to the output end of the drive circuit via the tenth resistor R11, and the drain of the second MOS transistor Q2 is electrically connected to the device power supply end; the source of the second MOS transistor Q2 is connected to the drain of the fourth MOS transistor Q4 and is electrically connected to the output end of the drive circuit; and the source of the fourth MOS transistor Q4 is connected to the common connection end between the source of the third MOS transistor Q3 and the eleventh resistor R3.
[0078] A first end of the primary winding of the transformer LCM1 is connected to the common connection terminal between the source of the first MOS transistor Q1 and the drain of the third MOS transistor Q3. A second end of the primary winding of the transformer LCM1 is connected to the common connection terminal between the source of the second MOS transistor Q2 and the drain of the fourth MOS transistor Q4. A first end of the secondary winding of the transformer LCM1 is electrically connected to the negative AC signal input terminal of the rectifier bridge D1. A second end of the secondary winding of the transformer LCM1 is electrically connected to the positive AC signal input terminal of the rectifier bridge D1.
[0079] The rectifier circuit of the above structure uses an H-bridge switch module formed by the first MOS transistor Q1, the second MOS transistor Q2, the third MOS transistor Q3, and the fourth MOS transistor Q4 to receive a drive signal from a drive circuit to switch the MOS transistors in the H-bridge switch module. Based on the switching of the MOS transistors, the operation of the rectifier bridge D1 is controlled to achieve the purpose of controlling its output value to reach a given value.
[0080] Specifically, as shown in Figure 2, pins 6 (IN_HS1) and 7 (IN_LS1) of the full-bridge driver chip U1 are connected to the PW3 and PW4 ports of the microcontroller, respectively. Pins 16 (IN_LS2) and 17 (IN_HS2) are connected to the PW1 and PW2 ports of the microcontroller, respectively. Pin 5 (GATE_HS1) is connected to the gate of the first MOS transistor Q1 via a seventh resistor R8. Pin 8 (GATE_LS1) is connected to the gate of the third MOS transistor Q3 via a ninth resistor R10. Pin 18 (GATE_HS2) is connected to the gate of the second MOS transistor Q2 via an eighth resistor R9. Pin 15 (GATE_LS2) is connected to the gate of the fourth MOS transistor Q4 via a tenth resistor R11. The source of the first MOS transistor Q1 is connected to the drain of the third MOS transistor Q3 and to pin 4 (SRC_HS1) of the microcontroller. The source of the second MOS transistor Q2 is connected to the drain of the fourth MOS transistor Q4 and to pin 19 (SRC_HS2) of the microcontroller.
[0081] Specifically, in this embodiment, the full-bridge driver chip U1 can select a suitable 20-pin driver chip according to actual conditions, and the resistors and capacitors in the drive circuit and the rectifier circuit can select electronic components of appropriate specifications or models according to actual conditions; the first MOS tubes Q1 to Q4 all use FQD13N06LTM model NMOS tubes, and a freewheeling diode is connected between the source and drain of each NMOS tube; the transformer LCM1 uses CMF7060F-701-2P-T model transformer, and the rectifier bridge D1 uses DF06S model rectifier bridge.
[0082] Preferably, as shown in FIG3 , the DC power supply further includes an overcurrent protection circuit;
[0083] The input end of the overcurrent protection circuit is electrically connected to the output end of the rectifier circuit, and the output end of the overcurrent protection circuit is electrically connected to the input end of the main control circuit;
[0084] The overcurrent protection circuit is configured to obtain the current signal output by the rectifier circuit, and send a pulse signal to the main control circuit when the current signal exceeds a protection set value;
[0085] The main control circuit is further configured to generate an enable level signal according to the pulse signal, and send the enable level signal to the drive circuit to control the drive circuit to stop working.
[0086] Through the overcurrent protection circuit and the main control circuit, when the current signal exceeds the protection set value, the drive circuit can be cut off, thereby achieving overcurrent protection for the rectifier circuit.
[0087] Preferably, as shown in FIG2 , the overcurrent protection circuit includes a second operational amplifier U3 , a twelfth resistor R12 , a thirteenth resistor R13 , a fourteenth resistor R14 and a third capacitor C7 ;
[0088] A power input pin of the second operational amplifier U3 is electrically connected to a circuit power supply terminal, a ground pin of the second operational amplifier U3 is grounded, a first end of the fourteenth resistor R14 is connected to a common connection terminal between the power input pin of the second operational amplifier U3 and the circuit power supply terminal, and a second end of the fourteenth resistor R14 is grounded via the twelfth resistor R12;
[0089] The inverting input pin of the second operational amplifier U3 is electrically connected to the output end of the rectifier circuit, the non-inverting input pin of the second operational amplifier U3 is grounded through the third capacitor C7, the output pin of the second operational amplifier U3 is electrically connected to the input end of the main control circuit, and the output pin of the second operational amplifier U3 is also electrically connected to the power supply end of the circuit through the fourteenth resistor R13.
[0090] The overcurrent protection circuit of the above structure sends a corresponding pulse signal to the main control circuit when the current signal exceeds the protection set value. The enable level signal generated by the main control circuit controls the drive circuit to stop working, avoiding damage to the rectifier circuit at the subsequent stage of the drive circuit due to excessive current, thereby achieving overcurrent protection.
[0091] Specifically, in this embodiment, the output of the second op amp U3 is connected to the enable port EN of the microcontroller, which is in turn connected to pin 20, G_EN, of the full-bridge driver chip U1. The enable level signal received by pin 20, G_EN, of the full-bridge driver chip U1 can be set to active-high or active-low, depending on the actual situation. The second op amp U3 in the overcurrent protection circuit is an LMC7211BIM5 / NOPB model. The resistors and capacitors can be selected from electronic components of appropriate specifications or models, and are not listed here.
[0092] Example 2
[0093] As shown in FIG4 , a method for controlling a programmable DC power supply is provided, wherein the programmable DC power supply of the first embodiment is used to output a given value to an external device. The method includes:
[0094] S1: using a current sampling circuit to collect a current signal output by a rectifier circuit, and feeding the current signal back to a main control circuit; using a voltage sampling circuit to collect a voltage signal output by the rectifier circuit, and feeding the voltage signal back to the main control circuit;
[0095] S2: using the main control circuit to determine, based on the voltage signal and the current signal, whether the output value of the rectifier circuit reaches the given value; when it is determined that the output value of the rectifier circuit does not reach the given value, outputting a PWM modulation signal to the drive circuit;
[0096] S3: using the driving circuit to generate a driving signal for the rectifier circuit according to the PWM modulation signal, so as to control the output value of the rectifier circuit to reach the given value;
[0097] S4: Utilizing the rectifier circuit, rectifying according to the driving signal, and outputting the signal to the external device according to the given value.
[0098] The voltage sampling circuit and the current sampling circuit are used to respectively collect the voltage signal and the current signal output by the rectifier circuit, and feed them back to the main control circuit respectively. Based on the voltage signal and the current signal, the main control circuit can analyze whether the output value (including voltage output value, current output value and power output value) finally output by the rectifier circuit to the external device reaches the preset given value to ensure that the entire DC power supply can work according to the design requirements; when the main control circuit analyzes that the output value does not reach the given value, it generates a PWM modulation signal to the drive circuit, and the drive circuit drives the rectifier circuit to adjust the working state through the drive signal generated by the PWM modulation signal to control its output value to reach the given value.
[0099] The control method of this embodiment can monitor, analyze and adjust the output of the entire power supply in real time so that its output value meets the design requirements, and achieves excellent programmability with a simple structure and low cost.
[0100] Preferably, as shown in FIG3 , the DC power supply further includes an overcurrent protection circuit;
[0101] The control method further includes:
[0102] Utilizing the overcurrent protection circuit, obtaining the current signal output by the rectifier circuit, and sending a pulse signal to the main control circuit when the current signal exceeds a protection set value;
[0103] The main control circuit is used to generate an enable level signal according to the pulse signal, and the enable level signal is sent to the drive circuit to control the drive circuit to stop working.
[0104] Through the overcurrent protection circuit and the main control circuit, when the current signal exceeds the protection set value, the drive circuit can be cut off, thereby achieving overcurrent protection for the rectifier circuit.
[0105] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A programmable DC power supply, characterized in that: The DC power supply includes a main control circuit, a drive circuit, a rectifier circuit, a voltage sampling circuit and a current sampling circuit; The output end of the main control circuit is electrically connected to the rectifier circuit through the drive circuit, the input end of the voltage sampling circuit and the input end of the current sampling circuit are both electrically connected to the output end of the rectifier circuit, and the output end of the voltage sampling circuit and the output end of the current sampling circuit are both electrically connected to the input end of the main control circuit; The current sampling circuit is used to collect the current signal output by the rectifier circuit and feed the current signal back to the main control circuit; The voltage sampling circuit is used to collect the voltage signal output by the rectifier circuit and feed the voltage signal back to the main control circuit; The main control circuit is used to determine whether the output value of the rectifier circuit reaches a given value according to the voltage signal and the current signal; When it is determined that the output value of the rectifier circuit does not reach the given value, outputting a PWM modulation signal to the drive circuit; The driving circuit is used to generate a driving signal for the rectifier circuit according to the PWM modulation signal, so as to control the output value of the rectifier circuit to reach the given value; The rectifier circuit is used to perform rectification according to the driving signal and output it to an external device according to the given value.
2. The programmable DC power supply according to claim 1, characterized in that: The voltage sampling circuit includes a first resistor R1, a second resistor R6, a third resistor R4 and a first capacitor C3; The first end of the first resistor R1 is electrically connected to the output end of the rectifier circuit, the second end of the first resistor R1 is grounded through the second resistor R6, the first end of the third resistor R4 and the first end of the first capacitor C3 are both electrically connected to the input end of the main control circuit, the second end of the third resistor R4 is connected to the common connection end between the second end of the first resistor R1 and the second resistor R6, and the second end of the first capacitor C3 is grounded.
3. The programmable DC power supply according to claim 1, characterized in that: The current sampling circuit includes a first operational amplifier U2, a fourth resistor R7, a fifth resistor R5, a sixth resistor R2 and a second capacitor C2; The power pin of the first operational amplifier U2 is electrically connected to the power supply end of the circuit, and the ground pin of the first operational amplifier U2 is grounded; the positive input pin of the first operational amplifier U2 is electrically connected to the output end of the rectifier circuit, the inverting input pin of the first operational amplifier U2 is grounded through the fourth resistor R7, and the output pin of the first operational amplifier U2 is electrically connected to the input end of the main control circuit through the sixth resistor R2; the first end of the fifth resistor R5 is connected to the common connection end between the inverting input pin of the first operational amplifier U2 and the fourth resistor R7, and the second end of the fifth resistor R5 is connected to the common connection end between the output pin of the first operational amplifier U2 and the sixth resistor R2; the first end of the second capacitor C2 is connected to the common connection end between the sixth resistor R2 and the input end of the main control circuit, and the second end of the second capacitor C2 is grounded.
4. The programmable DC power supply according to claim 1, characterized in that: The driving circuit includes a first electrolytic capacitor C4, a second electrolytic capacitor C5, a third electrolytic capacitor C6 and a full-bridge driving chip U1 with 20 pins; Pin No. 1 VCC1 of the full-bridge driver chip U1 is electrically connected to the power supply end of the device, Pin No. 2 C2 of the full-bridge driver chip U1 is electrically connected to Pin No. 13 C1 of the full-bridge driver chip U1 through the third electrolytic capacitor C6, Pin No. 3 CP_OUT of the full-bridge driver chip U1 is electrically connected to the power supply end of the device through the first electrolytic capacitor C4, Pin No. 4 SRC_HS1, Pin No. 5 GATE_HS1, Pin No. 8 GATE_LS1, Pin No. 15 GATE_LS2, Pin No. 18 GATE_HS2 and Pin No. 19 of the full-bridge driver chip U1 are electrically connected to the power supply end of the device through the first electrolytic capacitor C4, and ... Pin SRC_HS2 is electrically connected to the rectifier circuit, and pins No. 6 IN_HS1, No. 7 IN_LS1, No. 16 IN_LS2, No. 17 IN_HS2 and No. 20 G_EN of the full-bridge driver chip U1 are electrically connected to the main control circuit; pins No. 9 GND1, No. 12 GND_A and No. 14 GND2 of the full-bridge driver chip U1 are all grounded, pin No. 10 LR_OUT of the full-bridge driver chip U1 is grounded through the second electrolytic capacitor C5, and pin No. 11 VCC2 of the full-bridge driver chip U1 is electrically connected to the circuit power supply end.
5. The programmable DC power supply according to claim 1, characterized in that: The rectifier circuit includes an H-bridge switch module, a rectifier bridge D1 and a fourth electrolytic capacitor C1; The gate signal input terminal of the H-bridge switch module is electrically connected to the output terminal of the drive circuit, the positive power input terminal of the H-bridge switch module is electrically connected to the set power supply terminal, and the H-bridge switch The negative power input terminal of the switch module is grounded; the positive signal output terminal of the H-bridge switch module is electrically connected to the positive AC signal input terminal of the rectifier bridge D1, and the negative signal output terminal of the H-bridge switch module is electrically connected to the negative AC signal input terminal of the rectifier bridge D1; the positive DC signal output terminal of the rectifier bridge D1 is electrically connected to an external device, and the negative DC signal output terminal of the rectifier bridge D1 is grounded; the positive electrode of the fourth electrolytic capacitor is connected to the common connection terminal between the positive DC signal output terminal of the rectifier bridge D1 and the external device, the negative electrode of the fourth electrolytic capacitor is grounded, and the negative electrode of the fourth electrolytic capacitor is also connected to the negative DC signal output terminal of the rectifier bridge D1.
6. The programmable DC power supply according to claim 5, characterized in that: The H-bridge switch module is an H-bridge composed of a first MOS transistor Q1, a second MOS transistor Q2, a third MOS transistor Q3 and a fourth MOS transistor Q4, and the H-bridge switch module also includes a seventh resistor R8, an eighth resistor R9, a ninth resistor R10, a tenth resistor R11, an eleventh resistor R3 and a transformer LCM1; The gate of the first MOS transistor Q1 is electrically connected to the output end of the driving circuit through the seventh resistor R8, the gate of the third MOS transistor Q3 is electrically connected to the output end of the driving circuit through the ninth resistor R10, and the drain of the first MOS transistor Q1 is electrically connected to the power supply end of the device; the source of the first MOS transistor Q1 is connected to the drain of the third MOS transistor Q3 and is electrically connected to the output end of the driving circuit; the source of the third MOS transistor Q3 is grounded through the eleventh resistor R3; the gate of the second MOS transistor Q2 is electrically connected to the output end of the driving circuit through the eighth resistor R9, the gate of the fourth MOS transistor Q4 is electrically connected to the output end of the driving circuit through the tenth resistor R11, and the drain of the second MOS transistor Q2 is electrically connected to the power supply end of the device; the source of the second MOS transistor Q2 is connected to the drain of the fourth MOS transistor Q4 and is electrically connected to the output end of the driving circuit; the source of the fourth MOS transistor Q4 is connected to the common connection end between the source of the third MOS transistor Q3 and the eleventh resistor R3; The first end of the primary winding of the transformer LCM1 is connected to the common connection end between the source of the first MOS transistor Q1 and the drain of the third MOS transistor Q3, the second end of the primary winding of the transformer LCM1 is connected to the common connection end between the source of the second MOS transistor Q2 and the drain of the fourth MOS transistor Q4, the first end of the secondary winding of the transformer LCM1 is electrically connected to the negative AC signal input end of the rectifier bridge D1, and the second end of the secondary winding of the transformer LCM1 is electrically connected to the negative AC signal input end of the rectifier bridge D1. The two ends are electrically connected to the positive AC signal input end of the rectifier bridge D1.
7. The programmable DC power supply according to claim 1, characterized in that: The DC power supply also includes an overcurrent protection circuit; The input end of the overcurrent protection circuit is electrically connected to the output end of the rectifier circuit, and the output end of the overcurrent protection circuit is electrically connected to the input end of the main control circuit; The overcurrent protection circuit is used to obtain the current signal output by the rectifier circuit, and send a pulse signal to the main control circuit when the current signal exceeds the protection set value; The main control circuit is further used to generate an enable level signal according to the pulse signal, and send the enable level signal to the drive circuit to control the drive circuit to stop working.
8. The programmable DC power supply according to claim 7, characterized in that: The overcurrent protection circuit includes a second amplifier U3, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14 and a third capacitor C7; The power input pin of the second amplifier U3 is electrically connected to the circuit power supply end, the ground pin of the second amplifier U3 is grounded, the first end of the fourteenth resistor R14 is connected to the common connection end between the power input pin of the second amplifier U3 and the circuit power supply end, and the second end of the fourteenth resistor R14 is grounded through the twelfth resistor R12; The inverting input pin of the second operational amplifier U3 is electrically connected to the output end of the rectifier circuit, the non-phase input pin of the second operational amplifier U3 is grounded through the third capacitor C7, the output pin of the second operational amplifier U3 is electrically connected to the input end of the main control circuit, and the output pin of the second operational amplifier U3 is also electrically connected to the power supply end of the circuit through the fourteenth resistor R13.
9. A method for controlling a programmable DC power supply, characterized in that: A programmable DC power supply as claimed in any one of claims 1 to 8 is used to output a given value to an external device, wherein the control method comprises: The current sampling circuit is used to collect the current signal output by the rectifier circuit, and the current signal is fed back to the main control circuit; the voltage sampling circuit is used to collect the voltage signal output by the rectifier circuit, and the voltage signal is fed back to the main control circuit; The main control circuit is used to determine whether the output value of the rectifier circuit reaches the given value according to the voltage signal and the current signal; when it is determined that the output value of the rectifier circuit does not reach the given value, When the given value is reached, a PWM modulation signal is output to the driving circuit; Using the driving circuit to generate a driving signal for the rectifier circuit according to the PWM modulation signal, so as to control the output value of the rectifier circuit to reach the given value; The rectifying circuit is used to rectify the driving signal and output the signal to the external device according to the given value.
10. The control method of a programmable DC power supply according to claim 9, characterized in that: The DC power supply also includes an overcurrent protection circuit; The control method further comprises: Utilizing the overcurrent protection circuit, obtaining the current signal output by the rectifier circuit, and sending a pulse signal to the main control circuit when the current signal exceeds the protection set value; The main control circuit is used to generate an enable level signal according to the pulse signal, and the enable level signal is sent to the drive circuit to control the drive circuit to stop working.
Citation Information
Patent Citations
Two-way digital DC-DC convertor with wide load range
CN103683936A
High-reliability constant-current vehicle-mounted DC (direct current)-DC converter and control method thereof
CN104506042A
Single inverter power supply
CN215580951U
Direct-current quick charging pile
CN216121859U
Resonant converter system having synchronous control circuit and controlling method thereof
US20090097280A1
Cited By
Thermocouple spot welding device suitable for various types of pipelines
CN119282338A
Vibration motor drive control circuit
CN120785248A
