Charger
By designing a charger that includes a power converter, feedback controller and microprocessor MCU, the problem of existing chargers being difficult to adapt to different battery types is solved, and flexible voltage and current regulation and stability and reliability of the charging process are achieved.
Patent Information
- Application Number
- CN202420610711.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2034-03-27
AI Technical Summary
Existing chargers are difficult to adapt to different types of batteries and cannot effectively regulate voltage and current, resulting in insufficient efficiency, safety and applicability of the charging process.
A charger including a power converter, a feedback controller and a microprocessor MCU is designed. The MCU generates a PWM signal based on the detected regulation signal, and the feedback controller combines the voltage and current sampling signals with the PWM signal to generate a driving signal to adjust the output voltage and current of the power converter.
It realizes flexible regulation of output voltage and output current, adapts to different types of batteries, ensuring the efficiency, safety and applicability of the charging process. The constant voltage and constant current are achieved through feedback control, which improves the stability and reliability of charging.
Smart Images

Figure CN222802558U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a charger. Background Art
[0002] With the popularity of battery-powered devices such as mobile devices and portable electronic products, the demand for efficient, safe and flexible charging technologies continues to increase. The development of rechargeable batteries is changing with each passing day, and a variety of batteries have emerged, including lead-acid batteries, nickel-metal hydride batteries, lithium batteries, sodium-ion batteries and solid-state batteries. Different types of batteries have different charging voltages and charging characteristics. At the same time, different devices have different requirements for battery types, capacities and charging requirements. Therefore, for different batteries and devices, corresponding charging technologies and charging solutions are required to ensure the efficiency, safety and applicability of the charging process. In view of this, how to enable the charger to adjust the voltage and current to adapt to different types of batteries has become a problem that needs to be solved urgently. Utility Model Content
[0003] In view of this, the present application provides a charger for providing a charger with adjustable voltage and current to adapt to different types of batteries.
[0004] Specifically, the present application is implemented through the following technical solutions:
[0005] In a first aspect, the present application provides a charger, which includes a power converter, a feedback controller and a microprocessor MCU; the power converter is connected to the feedback controller, and the feedback controller is also connected to the MCU; wherein,
[0006] The MCU is used to generate and output a first PWM signal for controlling the output voltage of the power converter and a second PWM signal for controlling the output current of the power converter according to the detected control signal; wherein the control signal includes a voltage control signal related to a preset voltage value, a current control signal related to a preset current value, and a charging mode control signal related to a preset charging mode;
[0007] The feedback controller is used to collect the output voltage of the power converter to obtain a voltage sampling signal, and collect the output current of the power converter to obtain a current sampling signal;
[0008] The feedback controller is further used to generate a driving signal for driving the power converter according to the voltage sampling signal, the current sampling signal, the first PWM signal and the second PWM signal, and transmit the driving signal to the power converter;
[0009] The power converter is used to adjust its output voltage to the preset voltage value and its output current to the preset current value based on the driving signal to charge the battery.
[0010] The charger provided in the present application can set a preset voltage value, a preset current and a preset charging mode based on the battery type when charging different types of batteries, and input a voltage control signal related to the preset voltage value, a current control signal related to the preset current value, and a charging mode control signal related to the preset charging mode to the MCU. Further, the MCU can generate a first PWM signal and a second PWM signal based on these control signals. Further, the feedback controller can generate a drive signal for driving the power converter based on the voltage sampling signal, the current sampling signal, the first PWM signal and the second PWM signal. In this way, the power converter can adjust its output voltage to a preset voltage value and its output current to a preset current value based on the drive signal to charge the battery. In this way, since the drive signal is generated by combining the control signal and the sampling signal, the control signal can be adjusted according to the actual situation to adjust the output voltage and output current to adapt to different types of batteries. In addition, by feeding back the output voltage and output current, the output voltage output by the power converter can be stabilized at a preset voltage value and the output voltage can be stabilized at a preset current value, so as to achieve a constant voltage and constant current effect, and the battery can be stably and reliably charged. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 A schematic diagram of a charger according to an exemplary embodiment of the present application;
[0012] Figure 2 A circuit structure diagram of a power converter according to an exemplary embodiment of the present application;
[0013] Figure 3 A schematic diagram of a microprocessor MCU shown as an exemplary embodiment of the present application;
[0014] Figure 4 A circuit structure diagram of a peripheral circuit of a microprocessor MCU shown in an exemplary embodiment of the present application;
[0015] Figure 5 A schematic diagram of a feedback controller according to an exemplary embodiment of the present application;
[0016] Figure 6 A schematic diagram of a feedback circuit shown as an exemplary embodiment of the present application;
[0017] Figure 7 A circuit structure diagram of a feedback circuit shown as an exemplary embodiment of the present application;
[0018] Figure 8A circuit structure diagram of a feedback controller shown as an exemplary embodiment of the present application;
[0019] Fig. 9 A circuit structure diagram of a power converter according to another exemplary embodiment of the present application;
[0020] Fig.10 A schematic diagram of a charger according to another exemplary embodiment of the present application;
[0021] Fig.11 A schematic diagram of a voltage input unit according to an exemplary embodiment of the present application;
[0022] Fig.12 A schematic diagram of a current input unit shown in an exemplary embodiment of the present application;
[0023] Fig.13 This is a schematic diagram of a charging mode input unit according to an exemplary embodiment of the present application.
[0024] Description of reference numerals:
[0025] 1: Power converter;
[0026] 2: Feedback controller;
[0027] 3: Microprocessor MCU;
[0028] 4: Input device;
[0029] 11: Square wave generating circuit;
[0030] 12: Resonant circuit;
[0031] 13: Transformer;
[0032] 14: Rectifier circuit;
[0033] 21: Feedback circuit;
[0034] 22: compensation circuit;
[0035] 23: Control driver chip;
[0036] 211: voltage regulation circuit;
[0037] 212: current control circuit;
[0038] 213: Dual op amp chip;
[0039] 221: first compensation branch;
[0040] 222: second compensation branch;
[0041] 41: voltage input unit;
[0042] 42: current input unit;
[0043] 43: Charging mode input unit;
[0044] Q1: the first switch tube;
[0045] Q2: the second switch tube;
[0046] R1: first resistor;
[0047] R2: second resistor;
[0048] R3: the third resistor;
[0049] R4: the fourth resistor;
[0050] R5: the fifth resistor;
[0051] R6: the sixth resistor;
[0052] R7: seventh resistor;
[0053] R8: the eighth resistor;
[0054] R9: ninth resistor;
[0055] R10: tenth resistor;
[0056] R11: eleventh resistor;
[0057] R12: twelfth resistor;
[0058] R13: thirteenth resistor;
[0059] R14: fourteenth resistor;
[0060] C0: filter capacitor;
[0061] C1: first capacitor;
[0062] C2: second capacitor;
[0063] C3: the third capacitor;
[0064] C4: fourth capacitor;
[0065] C5: fifth capacitor;
[0066] C6: sixth capacitor;
[0067] D1: first diode;
[0068] D2: second diode;
[0069] D3: the third diode;
[0070] D4: the fourth diode;
[0071] DZ1: first transient voltage suppressor;
[0072] DZ2: The second transient voltage suppressor;
[0073] RP: potentiometer. DETAILED DESCRIPTION
[0074] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0075] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0076] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0077] Specific embodiments are given below to introduce the technical solution of the present application in detail.
[0078] Figure 1 This is a schematic diagram of a charger according to an exemplary embodiment of the present application. Figure 1 The charger provided in this embodiment includes a power converter 1, a feedback controller 2 and a microprocessor MCU3; the power converter 1 is connected to the feedback controller 2, and the feedback controller 2 is also connected to the MCU3; wherein,
[0079] The MCU3 is used to generate and output a first PWM signal for controlling the output voltage of the power converter 1 and a second PWM signal for controlling the output current of the power converter 1 according to the detected control signal; wherein the control signal includes a voltage control signal related to a preset voltage value, a current control signal related to a preset current value, and a charging mode control signal related to a preset charging mode;
[0080] The feedback controller 2 is used to collect the output voltage of the power converter 1 to obtain a voltage sampling signal, and to collect the output current of the power converter 1 to obtain a current sampling signal;
[0081] The feedback controller 2 is further used to generate a driving signal for driving the power converter 1 according to the voltage sampling signal, the current sampling signal, the first PWM signal and the second PWM signal, and transmit the driving signal to the power converter 1;
[0082] The power converter 1 is used to adjust its output voltage to the preset voltage value and its output current to the preset current value according to the driving signal, so as to charge the battery.
[0083] Specifically, the power converter 1 is used to convert the input power voltage into a DC voltage output required by the load (ie, the battery) under the control of the driving signal. It should be noted that for the low-voltage battery, the power converter 1 also plays a role of electrical isolation.
[0084] Specifically, the specific circuit structure of the power converter 1 is set according to actual needs, and is not limited in this embodiment. For example, the power converter can be any of the following power converters: a power converter based on a flyback topology circuit, a power converter based on a forward topology circuit, a power converter based on a half-bridge LLC topology circuit, and a power converter based on a full-bridge LLC topology circuit.
[0085] The following is an example of "a power converter based on a half-bridge LLC topology circuit". Figure 2 This is a circuit diagram of a power converter according to an exemplary embodiment of the present application. Figure 2 The power converter 1 is a power converter based on a half-bridge LLC topology circuit. The power converter 1 includes a square wave generating circuit 11, a resonant circuit 12, a transformer 13 and a rectifier output circuit 14, wherein the square wave generating circuit 11 is used to generate a square wave signal according to an input power supply voltage and the driving signal; the resonant circuit 12 is used to generate a phase shift and voltage division signal according to the square wave signal; the transformer 13 is used to realize energy transfer between the primary and secondary sides; the rectifier output circuit 14 is used to rectify and filter the signal output from the secondary side of the transformer to generate a stable output DC voltage.
[0086] Specifically, the specific working principle of the power converter 1 can be found in the description of the related art, which will not be repeated here.
[0087] Specifically, the control signal includes a voltage control signal related to a preset voltage value, a current control signal related to a preset current value, and a charging mode control signal related to a preset charging mode. Among them, the voltage control signal is used to control the output voltage, the current control signal is used to control the output current; the charging mode control signal is used to control the charging mode. It can be understood that the voltage control signal carries a preset voltage value to adjust the voltage value of the output voltage to the preset voltage value, the current control signal carries a preset current value to adjust the current value of the output current to the preset current value, and the charging mode control signal carries a preset charging mode to adjust the charging mode to the preset charging mode. Further, it can be understood that the preset voltage value, the preset current value and the preset charging mode are set by the user according to actual needs. Among them, the preset charging mode can include multiple charging modes. For example, in one embodiment, the preset charging mode can include a constant voltage charging mode and a floating charging mode.
[0088] It should be noted that the control signal may be a control signal in analog form or a control signal in digital form, which is not limited in this embodiment.
[0089] Furthermore, when the control signal is an analog control signal, MCU3 can convert it into a digital signal based on AD sampling technology, and then obtain the preset voltage value, preset current value and preset charging method set by the user from the digital signal. Furthermore, after determining the preset charging method, the first PWM signal and the second PWM signal can be generated based on the pulse width modulation technology according to the preset voltage value and the preset current value.
[0090] It should be noted that the first PWM signal is a PWM signal for controlling the output voltage of the power converter, and the second PWM signal is a PWM signal for controlling the output current of the power converter.
[0091] Similarly, referring to the previous description, when the control signal is a control signal in digital form, MCU3 can directly obtain the preset voltage value, preset current value and preset charging method set by the user from the digital control signal. Furthermore, after determining the preset charging method, the first PWM signal and the second PWM signal can be generated based on the pulse width modulation technology according to the preset voltage value and the preset current value.
[0092] In a specific implementation, for example, in one embodiment, Figure 3 The figure is a schematic diagram of a microprocessor MCU shown as an exemplary embodiment of the present application. Figure 4 This is a circuit diagram of the peripheral circuit of the microprocessor MCU shown in an exemplary embodiment of the present application. Please also refer to Figure 3 and Figure 4Taking the input analog control signal as an example, the voltage control signal is input into MCU3 through pin 14, the current control signal is input into MCU3 through pin 13, and the charging mode control signal is input into MCU3 through pin 15. After processing, MCU3 outputs the generated first PWM signal through pin 12 and the generated second PWM signal through pin 11.
[0093] For further information, please refer to Figure 4 ,in, Figure 4 Figure A in the figure is used to illustrate the power supply access of the MCU. Figure 4 Figure B is used to illustrate the sources of the SWDIO and SWCLK signals in the MCU. Figure 4 Figure C in the figure is used to illustrate the MCU The source of the signal.
[0094] In the charger provided in this embodiment, the MCU can output the first PWM signal and the second PWM signal based on the input control signal to feed back the preset voltage value and the preset current value set by the user to the feedback controller to provide an accurate reference for the control of the feedback controller.
[0095] For further information, please refer to Figure 1 The feedback controller 2 acquires the output voltage of the power converter 1 in real time to obtain a voltage sampling signal, so as to perform feedback control and regulation based on the voltage sampling signal.
[0096] Furthermore, the feedback controller 2 acquires the output current of the power converter 1 in real time to obtain a current sampling signal, so as to perform feedback control and regulation based on the current sampling signal.
[0097] In specific implementation, when generating a driving signal, the feedback controller 2 refers to the first PWM signal and the second PWM signal in addition to the reference voltage sampling signal and the current sampling signal, that is, the driving signal is generated based on the user configuration and the output feedback at the same time, so as to achieve the purpose of adjustable output voltage and output current. In other words, through the first PWM signal and the second PWM signal, not only can the output voltage reach the preset voltage value set by the user, and the output current reach the preset current value set by the user, so as to achieve the purpose of adjusting the output voltage and the output current; in addition, by collecting the output voltage and the output current, it can also play the role of constant voltage and constant current feedback, so that the output voltage is stabilized at the preset voltage value, and the output current is stabilized at the preset current value, so as to achieve the purpose of constant voltage and constant current.
[0098] See the previous description. Please also refer to Figure 1 and Figure 2 It can be understood that the driving signal is a switching signal for driving the switch tube in the power converter 1 to turn on and off. Figure 2In the example shown, the driving signal includes a switching signal HVG for driving the first switch tube Q1 and a switching signal LVG for driving the second switch tube Q2.
[0099] Further, after generating the driving signal, the feedback controller 2 transmits the driving signal to the power converter 1, so as to adjust the output voltage and output current of the power converter 1 through the driving signal. Figure 2 , the on-off of the first switch tube Q1 can be controlled by the switch signal HVG, and the on-off of the second switch tube Q2 can be controlled by the switch signal LVG, so as to achieve the purpose of adjusting the output voltage and the output current, so that the output voltage reaches the preset voltage value and the output current reaches the preset current value, so that the output is adapted to the battery that matches the currently set preset voltage value and preset current value, and charges the battery.
[0100] The charger provided in the present application can set a preset voltage value, a preset current and a preset charging mode based on the battery type when charging different types of batteries, and input a voltage control signal related to the preset voltage value, a current control signal related to the preset current value, and a charging mode control signal related to the preset charging mode to the MCU. Further, the MCU can generate a first PWM signal and a second PWM signal based on these control signals. Further, the feedback controller can generate a drive signal for driving the power converter based on the voltage sampling signal, the current sampling signal, the first PWM signal and the second PWM signal. In this way, the power converter can adjust its output voltage to a preset voltage value and its output current to a preset current value based on the drive signal to charge the battery. In this way, since the drive signal is generated by combining the control signal and the sampling signal, the control signal can be adjusted according to the actual situation to adjust the output voltage and output current to adapt to different types of batteries. In addition, by feeding back the output voltage and output current, the output voltage output by the power converter can be stabilized at a preset voltage value and the output voltage can be stabilized at a preset current value, so as to achieve a constant voltage and constant current effect, and the battery can be stably and reliably charged.
[0101] Figure 5 This is a schematic diagram of a feedback controller according to an exemplary embodiment of the present application. Figure 5 The feedback controller 2 includes a feedback circuit 21, a compensation circuit 22 connected to the feedback circuit 21, and a control driving chip 23 connected to the compensation circuit 22; wherein,
[0102] The feedback circuit 21 is used for superimposing a first analog voltage signal corresponding to the first PWM signal onto the voltage sampling signal to obtain a feedback voltage signal, and generating a voltage-related first error signal based on the feedback voltage signal and a voltage-related first reference voltage;
[0103] The feedback circuit 21 is further configured to superimpose a second analog voltage signal corresponding to the second PWM signal onto the current sampling signal to generate a feedback current signal, and generate a current-related second error signal based on the feedback current signal and a current-related second reference voltage;
[0104] The compensation circuit 22 is used to compensate the first error signal according to the feedback voltage signal, and to compensate the second error signal according to the feedback current signal, and to generate a feedback signal for feeding back voltage information and current information according to the compensated first error signal and the compensated second error signal;
[0105] The control driving chip 23 is used to generate the driving signal according to the feedback signal.
[0106] Specifically, Figure 6 This is a schematic diagram of a feedback circuit according to an exemplary embodiment of the present application. Figure 6 ,exist Figure 6 In the example shown, the feedback circuit 21 includes a voltage control circuit 211, a current control circuit 212 and a dual operational amplifier chip 213; wherein,
[0107] The output end of the voltage control circuit 211 is connected to the inverting input end of the first operational amplifier unit in the dual operational amplifier chip 213; the voltage control circuit 211 is used to collect the output voltage of the power converter to obtain the voltage sampling signal, and convert the first PWM signal into an analog voltage signal to obtain the first analog voltage signal, and superimpose the first analog voltage signal on the voltage sampling signal to obtain the feedback voltage signal;
[0108] The non-inverting input terminal of the first operational amplifier unit is used to receive the first reference voltage; the first operational amplifier unit is used to compare and follow the feedback voltage signal and the first reference voltage to generate the first error signal;
[0109] The output end of the current control circuit 212 is connected to the inverting input end of the second operational amplifier unit of the dual operational amplifier chip 213; the current control circuit 212 is used to collect the output current of the power converter to obtain a current sampling signal, and convert the second PWM signal into an analog voltage signal to obtain the second analog voltage signal, and superimpose the second analog signal on the current sampling signal to obtain the feedback current signal;
[0110] The non-inverting input terminal of the second operational amplifier unit is used to receive the second reference voltage; the second operational amplifier unit is used to compare and follow the feedback current signal with the second reference voltage to generate the second error signal.
[0111] For details, please refer to Figure 6 and Figure 3 One of the two input terminals of the voltage control circuit 211 is connected to the 12 pin of the MCU3 to receive the first PWM signal from the MCU3. Further, after receiving the first PWM signal, the voltage control circuit 211 filters the first PWM signal to obtain a first analog voltage signal corresponding to the first PWM signal. Further, please refer to Figure 6 and Figure 2 , the other input end of the two input ends of the voltage control circuit 211 is connected to the output end of the power converter, and is used to collect the output voltage (for the convenience of explanation, the output voltage is recorded as Vo+). Further, after collecting the output voltage, the voltage control circuit 211 obtains a voltage sampling signal (which can be a voltage signal collected after dividing the output voltage), and feeds back the output voltage of the charger through the voltage sampling signal. Further, after obtaining the voltage sampling signal and the first analog voltage signal, the voltage control circuit 211 superimposes the first analog voltage signal on the voltage sampling signal to obtain a feedback voltage signal.
[0112] Specifically, the dual operational amplifier chip 213 includes a voltage-related first operational amplifier unit and a current-related second operational amplifier unit, and the first operational amplifier unit and the second operational amplifier unit are independent of each other. It can be understood that the first operational amplifier unit and the second operational amplifier unit both have an inverting input terminal and a non-inverting input terminal. It should be noted that the dual operational amplifier chip 213 can use a dedicated integrated circuit chip U5, which is not limited in this embodiment.
[0113] Referring to the previous description, the inverting input terminal of the first operational amplifier unit is connected to the output terminal of the voltage regulation circuit. The voltage regulation circuit inputs the feedback voltage signal to the inverting input terminal of the first operational amplifier unit. Furthermore, the non-inverting input terminal of the first operational amplifier unit is connected to a first reference voltage. The first operational amplifier unit can compare and follow the feedback voltage signal at the inverting input terminal with the first reference voltage at the non-inverting input terminal to generate a first error signal.
[0114] It should be noted that the first reference voltage is a stable voltage used as a reference value of the voltage in the circuit, and has the characteristics of high stability and high precision. The first operational amplifier unit generates a first error signal by comparing the feedback voltage signal with the first reference voltage, so as to adjust the output voltage of the charger.
[0115] Similarly, please refer to Figure 6 and Figure 3One of the two input terminals of the current control circuit 212 is connected to the 11 pin of the MCU for receiving the second PWM signal. Further, after receiving the second PWM signal, the current control circuit 212 filters it to obtain a second analog voltage signal corresponding to the second PWM signal. Further, please refer to Figure 6 and Figure 2 The other input end of the two input ends of the current control circuit 212 is connected to the output end of the power converter (specifically connected to the current output end, where the current output end is Figure 2 The output terminal Is shown in the figure is used to collect the output current Is (for the convenience of explanation, the output current is recorded as Is). Further, after the current control circuit 212 collects the output current, it obtains the current sampling signal (which is essentially a voltage signal reflecting the output current), and feeds back the output current of the charger through the current sampling signal. Further, after obtaining the current sampling signal and the second analog voltage signal, the current control circuit 212 superimposes the second analog voltage signal on the current sampling signal to obtain the feedback current signal.
[0116] Furthermore, the inverting input terminal of the first operational amplifier unit is connected to the output terminal of the current regulating circuit, and the current regulating circuit inputs the feedback current signal to the inverting input terminal of the second operational amplifier unit. Furthermore, the non-inverting input terminal of the second operational amplifier unit is connected to a second reference voltage, and the second operational amplifier unit can compare and follow the feedback current signal at the inverting input terminal with the first reference voltage at the non-inverting input terminal to generate a second error signal.
[0117] It should be noted that the second reference voltage is a stable voltage used as a reference value of the voltage in the circuit, and has the characteristics of high stability and high precision. The second operational amplifier unit generates a second error signal by comparing the feedback current signal with the second reference voltage, so as to adjust the output current of the charger.
[0118] For further information, please refer to Figure 5 The compensation circuit 22 is used to compensate the first error signal according to the feedback voltage signal to obtain a compensated first error signal. In specific implementation, for example, in one embodiment, the compensation circuit can filter the feedback voltage signal to obtain a compensation signal, and then superimpose the compensation signal on the first error signal to obtain the compensated first error signal.
[0119] Similarly, the compensation circuit 22 is also used to compensate the second error signal according to the feedback current signal. In specific implementation, for example, in one embodiment, the compensation circuit can filter the feedback current signal to obtain a compensation signal, and then superimpose the compensation signal on the second error signal to obtain a compensated second error signal.
[0120] Furthermore, the compensation circuit 22 generates a feedback signal according to the compensated first error signal and the compensated second error signal. In specific implementation, the compensated first error signal and the compensated second error signal may be directly superimposed to obtain the feedback signal.
[0121] For further information, please refer to Figure 5 , the control driving chip 23 can generate a driving signal based on the feedback signal provided by the compensation circuit 22, and transmit the driving signal to the power converter 1 to adjust the output voltage and output current of the charger. It should be noted that the control driving chip 23 can adopt a dedicated integrated circuit chip U2, which is not limited in this embodiment. It can adjust the driving signal based on the feedback signal to further regulate the output voltage and output current of the charger. The specific implementation principle of the control driving chip generating the driving signal based on the feedback signal can be found in the description of the relevant technology, which will not be repeated here.
[0122] The feedback control circuit provided in this embodiment is provided with a feedback circuit, a compensation circuit and a control driving chip in a feedback controller. In this way, through the feedback circuit, the first PWM signal can be superimposed on the voltage sampling signal to obtain a feedback voltage signal, and the second PWM signal can be superimposed on the current sampling signal to obtain a feedback current signal. The feedback signal can be obtained based on this later. Since the feedback voltage signal not only superimposes the sampleable signal but also superimposes the PWM signal, the purpose of changing the PWM signal and then changing the output can be achieved by changing the control signal, thereby achieving the purpose of adjustable output voltage and output current. In addition, through the sampling signal, the output voltage and output current of the charger can always be stabilized at the set preset voltage value and the set preset current value, so that the purpose of constant voltage and constant current can be achieved, and the reliability of the charger can be improved.
[0123] Optional, Figure 7 This is a circuit diagram of a feedback circuit according to an exemplary embodiment of the present application. Figure 7 In a possible implementation, the voltage control circuit 211 includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5 and a first capacitor C1; wherein,
[0124] The second end of the first resistor R1 is connected to the first end of the second resistor R2, the second end of the second resistor R2 is connected to the first end of the third resistor R3, and the second end of the third resistor R3 is grounded; wherein the first end of the first resistor R1 is connected to the output end of the power converter, and is used to collect the output voltage of the current converter; the first end of the third resistor R3 constitutes the output end of the voltage control circuit;
[0125] The second end of the fourth resistor R4 is connected to the first end of the first capacitor C1, and the second end of the first capacitor C1 is grounded; wherein the first end of the fourth resistor R4 is used to receive the first PWM signal;
[0126] A first end of the fifth resistor R5 is connected to a second end of the fourth resistor R4 , and a second end of the fifth resistor R5 is connected to a first end of the third resistor R3 .
[0127] Combine the following Figure 7 , briefly introduce the working principle of the voltage regulation circuit:
[0128] Specifically, the voltage control circuit 211 collects the output voltage of the power converter 1 through the first end of the first resistor R1. For the convenience of description, the output voltage is recorded as Vo+. Figure 7 After the output voltage Vo+ is divided by the first resistor R1, the second resistor R2 and the third resistor R3, the output voltage sampling signal is given to the inverting input terminal of the first operational amplifier unit (the inverting input terminal of the first operational amplifier unit is Figure 7 Pin 2 of the dual op amp chip shown).
[0129] Further, the voltage control circuit 211 receives a first PWM signal from the microprocessor MCU3 through the first end of the fourth resistor R4. For the convenience of description, the first PWM signal is recorded as a Vo_PWM signal. Figure 7 , after the first PWM signal is filtered by the filter circuit composed of the fourth resistor R4 and the first capacitor C1, a first analog voltage signal corresponding to the first PWM signal is obtained, and the first analog voltage signal is divided by the fifth resistor R5 and the third resistor R3, and the first analog voltage signal is divided by the third resistor R3 and given to the inverting input terminal of the first operational amplifier unit. In other words, the voltage sampling signal and the first analog voltage signal are superimposed at the inverting input terminal to obtain a feedback voltage signal, and the inverting input terminal of the first operational amplifier unit actually inputs the superimposed feedback voltage signal.
[0130] For further information, please refer to Figure 7 , the non-inverting input terminal of the first operational amplifier unit (i.e. Figure 7 3 pin of the dual operational amplifier chip shown in the figure) is used to receive a first reference voltage (for the convenience of explanation, as shown in the figure). Figure 7 As shown, the first reference voltage is recorded as Vref1). In this way, after receiving the feedback voltage signal of the voltage control circuit 211, the inverting input terminal of the first operational amplifier unit compares it with the first reference voltage, and outputs the generated first error signal through pin 1 to regulate the output voltage of the charger through the first error signal.
[0131] The voltage control circuit provided in this embodiment obtains a voltage sampling signal from a power converter, and then superimposes the processed first PWM signal on the voltage sampling signal for feedback, and subsequently the actual output voltage can be effectively regulated based on the feedback.
[0132] Combine the following Figure 7 , introduce the specific structure and working principle of the current control circuit 212:
[0133] Please refer to Figure 7 , Optionally, in a possible implementation, the current control circuit 212 includes a sixth resistor R6, a voltage divider filter circuit and a second-order filter circuit; wherein,
[0134] The first end of the sixth resistor R6 is connected to the current output end of the power converter 1, and is used to collect the output current of the power converter; the second end of the sixth resistor R6 constitutes the output end of the current control circuit;
[0135] The input end of the voltage divider filter circuit is used to receive the second PWM signal;
[0136] The output end of the voltage divider filter circuit is connected to the input end of the second-order filter circuit, and the output end of the second-order filter circuit is connected to the second end of the sixth resistor R6;
[0137] The voltage-dividing filter circuit comprises a seventh resistor R7, an eighth resistor R8 and a second capacitor C2; the first end of the seventh resistor R7 constitutes the input end of the voltage-dividing filter circuit, the second end of the seventh resistor R7 is respectively connected to the first end of the eighth resistor R8 and the first end of the second capacitor C2, the second end of the eighth resistor R8 and the second end of the second capacitor C2 are grounded; wherein the second end of the seventh resistor R7 constitutes the output end of the voltage-dividing filter circuit.
[0138] Specifically, the current control circuit 212 receives the output current from the power converter 1 through the first end of the sixth resistor R6 to obtain a current sampling signal. For the convenience of description, the output current is recorded as Is. Figure 7 After the output current Is is sampled by the sixth resistor R6, a sampling current signal is obtained and given to the inverting input terminal of the second operational amplifier unit, wherein Figure 7 In the example shown, the inverting input terminal of the second operational amplifier unit is pin 6 of the dual operational amplifier chip.
[0139] Further, the current control circuit 212 receives the second PWM signal from the microprocessor MCU3 through the first end of the seventh resistor R7. For the convenience of description, the second PWM signal is recorded as Io_PWM signal. Figure 7The second PWM signal is filtered by the voltage divider filter circuit composed of the seventh resistor R7, the eighth resistor R8 and the second capacitor C2 to obtain the second analog voltage signal of the second PWM signal. The second analog voltage signal is input to the inverting input terminal of the second operational amplifier unit after passing through the second-order filter circuit, that is, input to Figure 7 In other words, at the inverting input terminal of the second operational amplifier unit, the current sampling signal and the second analog signal are superimposed to obtain a feedback current signal, and the signal actually input to the inverting input terminal is the superimposed feedback current signal.
[0140] For further information, please refer to Figure 7 , the non-inverting input terminal of the second operational amplifier unit (i.e. Figure 7 5 pin of the dual operational amplifier chip shown in the figure) is used to receive the second reference voltage (for the convenience of explanation, as shown in the figure). Figure 7 As shown, the second reference voltage is recorded as Vref2), so that after receiving the feedback current signal of the current control circuit 212, the inverting input terminal of the second operational amplifier unit compares it with the second reference voltage, and outputs the generated second error signal through pin 7 to regulate the output current of the charger through the second error signal.
[0141] The current control circuit provided in this embodiment obtains a current sampling signal from the power converter, and then superimposes the processed second PWM signal on the current sampling signal for feedback, and subsequently effectively controls the actual output current based on the feedback.
[0142] Optional, Figure 8 This is a circuit diagram of a feedback controller according to an exemplary embodiment of the present application. Figure 8 ,exist Figure 8 In the example shown, the feedback controller further includes a filter capacitor C0; wherein the filter capacitor C0 is arranged between the non-inverting input terminal and the inverting input terminal of the second operational amplifier unit to filter out high-frequency interference.
[0143] The charger provided in this embodiment can prevent high-frequency interference signals from entering the dual operational amplifier chip by setting a filter capacitor between the non-inverting input terminal and the inverting input terminal of the second operational amplifier unit, thereby making the dual operational amplifier chip more stable and reliable.
[0144] Optional, please continue to refer to Figure 8 , the second reference voltage can be obtained by dividing the first reference voltage, which is not limited in this embodiment.
[0145] For further information, please refer to Figure 8, Optionally, in a possible implementation, the compensation circuit 22 includes a first compensation branch 221 for compensating the first error signal and a second compensation branch 222 for compensating the second error signal; the first compensation branch 221 and the second compensation branch 222 both include a third capacitor C3, a fourth capacitor C4 and a ninth resistor R9; wherein,
[0146] The first end of the third capacitor C3 and the first end of the fourth capacitor C4 are connected to form an input end of the compensation branch;
[0147] The second end of the third capacitor C3 is connected to the first end of the ninth resistor R9, and the second end of the ninth resistor R9 is connected to the second end of the fourth capacitor C4 to form an output end of the compensation branch.
[0148] Combine the following Figure 8 , briefly introduce the working principle of compensation circuit 22:
[0149] Specifically, refer to Figure 8 After the input end of the first compensation branch 221 receives the feedback voltage signal output by the voltage control circuit 211, the feedback voltage signal is filtered by the third capacitor C3, the fourth capacitor C4 and the ninth resistor R9, and then the compensation signal is output from the output end of the first compensation branch. Furthermore, the compensation signal is superimposed on the first error signal output by the dual operational amplifier chip 213 to obtain a compensated first error signal.
[0150] Similarly, after the input end of the second compensation branch 222 receives the feedback current signal output from the current control circuit 212, the feedback current signal is filtered by the third capacitor C3, the fourth capacitor C4 and the ninth resistor R9, and then the compensation signal is output from the output end of the second compensation branch. Furthermore, the compensation signal is superimposed on the second error signal output by the dual operational amplifier chip 213 to obtain a compensated second error signal.
[0151] The compensation branch provided in this embodiment can improve parameters such as stability and dynamic performance by compensating the first error signal and the second error signal, thereby ensuring the normal operation of the compensation circuit and increasing reliability.
[0152] For further information, please refer to Figure 8 The compensation circuit may further include an optocoupler to achieve electrical isolation through the optocoupler.
[0153] It is understood that the optocoupler contains a light-emitting diode and a photosensitive diode, which can complete the transmission of signals and achieve the isolation of electrical signals through the change of electrical characteristics. In this way, the optocoupler provides isolation protection between the input circuit and the output circuit to prevent the electrical interference, noise, high voltage and other dangerous signals between the input and output ends from damaging and interfering with the circuit.
[0154] For further information, please refer to Figure 8 After receiving the feedback signal from the optocoupler, the control driving chip 23 generates a driving signal based on the feedback signal and transmits the driving signal to the power converter 1, so that the power converter completes the regulation of the output voltage and the output current.
[0155] Fig. 9 This is a circuit diagram of a power converter according to another exemplary embodiment of the present application. Fig. 9 and Figure 8 , the power converter 1 is also used to feed back the primary current and / or primary voltage to the control drive chip 23;
[0156] The control driving chip 23 is further used to perform overcurrent protection on the power converter 1 based on the primary current; and / or, the control driving chip 23 is further used to perform overvoltage and undervoltage protection on the power converter 1 based on the primary voltage.
[0157] See also Fig. 9 A primary voltage acquisition circuit can be set at the primary side of the power converter, and the primary voltage can be collected by the primary voltage acquisition circuit to achieve the purpose of feeding back the primary voltage. The specific circuit structure of the primary voltage acquisition circuit is set according to actual needs and is not limited in this embodiment.
[0158] In specific implementation, for example, Fig. 9 As shown, the primary voltage acquisition circuit can be a voltage divider circuit composed of multiple resistors to collect the primary voltage through voltage division. For the convenience of explanation, the primary voltage is recorded as a LINE signal.
[0159] Furthermore, a primary current acquisition circuit may be provided at the primary side of the power converter, and the primary current may be acquired through the primary current acquisition circuit. For the convenience of explanation, the primary current is recorded as the Is_LLC signal. The specific circuit structure of the primary current acquisition circuit is set according to actual needs, and is not limited in this embodiment. For example, in one embodiment, the specific structure of the primary current acquisition circuit is as follows: Fig. 9 shown.
[0160] Specifically, after receiving the primary current, the drive control chip 23 can perform overcurrent protection based on the primary current. When the primary current exceeds a preset current value, a corresponding protection signal is issued to stop the power converter 1 from working to prevent the charger from being damaged by excessive current.
[0161] Furthermore, after receiving the primary voltage, the drive control chip 23 can perform over-voltage and under-voltage protection based on the primary voltage. For example, when the primary voltage is outside a preset voltage range, a corresponding protection signal is sent to stop the power converter 1 from working to prevent damage to the charger.
[0162] The charger provided in this embodiment can implement over-current protection and over-voltage and under-voltage protection to ensure the safe and stable operation of the power converter, thereby improving the reliability of the charger.
[0163] Optional, Fig.10 This is a schematic diagram of a charger according to another exemplary embodiment of the present application. Fig.10 The charger provided in this embodiment, based on the above embodiment, further includes an input device 4; the input device 4 is electrically connected or communicatively connected to the MCU3; wherein,
[0164] The input device 4 includes a voltage input unit 41 for setting voltage, a current input unit 42 for setting current, and a charging mode input unit 43 for setting a charging mode;
[0165] The voltage input unit 41 is used to generate and output a voltage control signal related to the preset voltage value when detecting the preset voltage value set by the user;
[0166] The current input unit 42 is used to generate and output a current control signal related to the preset current value when the preset current value set by the user is detected;
[0167] The charging mode input unit 43 is used to generate and output a charging mode control signal related to the preset charging mode when detecting the preset charging mode set by the user.
[0168] Specifically, the input device 4 is used to generate and output a corresponding control signal when detecting a preset voltage value, a preset current value and a preset charging mode set by a user.
[0169] Specifically, the control signal transmitted by the input device 4 can preset the required voltage value, current value and charging mode. It should be noted that the specific form of the input device 4 is determined according to actual needs, and is not limited in this embodiment. For example, in one embodiment, the input device 4 can be an internal input interface integrated on the charger, and in another embodiment, the input device can also be an external input interface for remote input.
[0170] Furthermore, the input device can be directly electrically connected to the MCU. In this case, the control signal transmitted by the input device to the MCU is an analog control signal. Of course, the input device can also be connected to the MCU for communication. In this case, the input device can transmit a digital control signal to the MCU through RS232, RS485, CAN and other communication methods.
[0171] In specific implementation, the user can input a preset voltage value, a preset current value and a preset charging mode through the input device 4 .
[0172] The charger provided in this embodiment is provided with an input device, so that the user can set the output current, output voltage and charging mode of the charger through the input device and can make real-time adjustments, thereby improving the user experience.
[0173] Optional, Fig.11 This is a schematic diagram of a voltage input unit according to an exemplary embodiment of the present application. Fig.12 This is a schematic diagram of a current input unit according to an exemplary embodiment of the present application. Fig.11 and Fig.12 In a possible implementation, the voltage input unit or the current input unit includes a tenth resistor R10, a potentiometer RP, a fifth capacitor C5, a first transient voltage suppressor DZ1, a first diode D1 and a second diode D2; wherein,
[0174] The first end of the tenth resistor R10 is connected to the constant voltage source, the second end of the tenth resistor R10 is connected to the first end of the potentiometer RP, and the second end of the potentiometer RP is grounded.
[0175] The first transient voltage suppressor DZ1, the fifth capacitor C5 and the first diode D1 are connected in parallel to form a parallel branch; wherein the first end of the parallel branch is connected to the first end of the tenth resistor R10, and the second end of the parallel branch is connected to the second end of the potentiometer RP; the first end of the parallel branch is the end where the positive electrode of the first diode D1 is located, and the second end of the parallel branch is the end where the negative electrode of the first diode D1 is located;
[0176] An anode of the second diode D2 is connected to a first end of the tenth resistor R10, and one end of the second diode D2 is connected to a second end of the tenth resistor R10;
[0177] The slidable end of the potentiometer RP is connected to the first end of the parallel branch; wherein the first end of the parallel branch constitutes the output end of the input unit;
[0178] The input unit is used to generate and output a control signal based on the resistance value of the potentiometer RP; wherein the resistance value of the potentiometer RP is related to a preset value set by a user.
[0179] Please refer to Fig.11 , the working principle of the voltage input unit 41 is introduced below:
[0180] Specifically, when the user needs to set the output voltage value (the user needs to set the output voltage to a preset voltage value), at this time, the user can achieve the purpose of setting the output voltage by adjusting the sliding end of the potentiometer RP.
[0181] Specifically, when the sliding end of the potentiometer RP is in different positions, it represents different output voltages, and the purpose of setting the output voltage is achieved by adjusting the sliding end. Further, when the sliding end of the potentiometer RP is in different positions, the resistance value of the potentiometer RP changes. At this time, the voltage input unit can output a corresponding voltage control signal based on the resistance value of the potentiometer to achieve the setting of the output voltage.
[0182] In this embodiment, a specific circuit structure of a voltage input unit and a current input unit is provided, which generates a voltage control signal and a current control signal through the change of a potentiometer, thereby achieving the purpose of inputting a preset voltage value and a preset current value, and can conveniently and efficiently complete the setting of the output voltage and the output current.
[0183] Furthermore, Fig.13 This is a schematic diagram of a charging mode input unit according to an exemplary embodiment of the present application. Fig.13 , Optionally, in a possible implementation, the charging mode input unit includes a switch S, a second transient voltage suppressor DZ2, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a sixth capacitor C6, a third diode D3 and a fourth diode D4; wherein,
[0184] The first end of the eleventh resistor R11 is connected to the constant voltage source, the second end of the eleventh resistor R11 is connected to the first end of the twelfth resistor R12, and the second end of the twelfth resistor R12 is grounded;
[0185] The switch S, the second transient voltage suppressor DZ2, the sixth capacitor C6, and the third diode D3 are connected in parallel to form a second parallel branch;
[0186] The first end of the second parallel branch is connected to the first end of the twelfth resistor R12, and the second end of the second parallel branch is connected to the second end of the twelfth resistor R12; wherein the first end of the second parallel branch is the end where the positive electrode of the third diode D3 is located, and the second end of the second parallel branch is the end where the negative electrode of the third diode D3 is located;
[0187] The thirteenth resistor R13 is connected between the second transient voltage suppressor DZ2 and the first end of the twelfth resistor R12; the fourteenth resistor R14 is connected between the second transient voltage suppressor DZ2 and the second end of the twelfth resistor R12;
[0188] The anode of the fourth diode D4 is connected to the first end of the eleventh resistor R11, and the cathode of the fourth diode D4 is connected to the second end of the eleventh resistor R11; wherein the cathode of the second diode constitutes the output end of the charging mode input unit;
[0189] The charging mode input unit is used to generate and output a charging mode control signal based on the on-off of the switch S; wherein the on-off of the switch S is related to a preset charging mode set by a user.
[0190] Specifically, the preset charging mode set by the user is set by the user according to actual needs, and is not limited in this embodiment. For example, the preset charging mode set by the user includes a constant voltage charging mode and a floating charging mode.
[0191] Furthermore, the user can set the corresponding charging mode by controlling the on and off of the switch. For example, when the switch is off, the preset charging mode set by the user is the constant voltage charging mode; when the switch is on, the preset charging mode set by the user is the floating charging mode. The user can set the required charging mode by controlling the on and off of the switch.
[0192] Furthermore, after the user sets the required charging mode, that is, after the user controls the on and off of the switch, the charging mode input unit can output a corresponding charging mode control signal at the output end based on the on and off of the switch, so as to input the preset charging mode set by the user to the MCU.
[0193] The charging mode input unit provided in this embodiment provides a specific circuit structure of a charging mode control circuit. Based on this circuit structure, the user achieves the purpose of inputting a preset charging mode by adjusting the on and off of a switch, and the circuit generates and outputs a charging mode control signal based on the preset charging mode set by the user.
[0194] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A charger, characterized in that: The charger includes a power converter, a feedback controller and a microprocessor MCU; the power converter is connected to the feedback controller, and the feedback controller is also connected to the MCU; wherein, The MCU is used to generate and output a first PWM signal for controlling the output voltage of the power converter and a second PWM signal for controlling the output current of the power converter according to the detected control signal; wherein the control signal includes a voltage control signal related to a preset voltage value, a current control signal related to a preset current value, and a charging mode control signal related to a preset charging mode; The feedback controller is used to collect the output voltage of the power converter to obtain a voltage sampling signal, and collect the output current of the power converter to obtain a current sampling signal; The feedback controller is further used to generate a driving signal for driving the power converter according to the voltage sampling signal, the current sampling signal, the first PWM signal and the second PWM signal, and transmit the driving signal to the power converter; The power converter is used to adjust its output voltage to the preset voltage value and its output current to the preset current value according to the driving signal, so as to charge the battery.
2. The charger according to claim 1, characterized in that: The feedback controller includes a feedback circuit, a compensation circuit connected to the feedback circuit, and a control driving chip connected to the compensation circuit; wherein, The feedback circuit is used to superimpose a first analog voltage signal corresponding to the first PWM signal onto the voltage sampling signal to obtain a feedback voltage signal, and generate a voltage-related first error signal based on the feedback voltage signal and a voltage-related first reference voltage; The feedback circuit is further configured to superimpose a second analog voltage signal corresponding to the second PWM signal onto the current sampling signal to generate a feedback current signal, and generate a current-related second error signal based on the feedback current signal and a current-related second reference voltage; The compensation circuit is used to compensate the first error signal according to the feedback voltage signal, and to compensate the second error signal according to the feedback current signal, and to generate a feedback signal for feeding back voltage information and current information according to the compensated first error signal and the compensated second error signal; The control driving chip is used to generate the driving signal according to the feedback signal.
3. The charger according to claim 2, characterized in that: The feedback circuit includes a voltage control circuit, a current control circuit and a dual operational amplifier chip; wherein, The output end of the voltage control circuit is connected to the inverting input end of the first operational amplifier unit in the dual operational amplifier chip; the voltage control circuit is used to collect the output voltage of the power converter to obtain the voltage sampling signal, and convert the first PWM signal into an analog voltage signal to obtain the first analog voltage signal, and superimpose the first analog voltage signal on the voltage sampling signal to obtain the feedback voltage signal; The non-inverting input terminal of the first operational amplifier unit is used to receive the first reference voltage; the first operational amplifier unit is used to compare and follow the feedback voltage signal and the first reference voltage to generate the first error signal; The output end of the current control circuit is connected to the inverting input end of the second operational amplifier unit of the dual operational amplifier chip; the current control circuit is used to collect the output current of the power converter to obtain a current sampling signal, and convert the second PWM signal into an analog voltage signal to obtain the second analog voltage signal, and superimpose the second analog voltage signal on the current sampling signal to obtain the feedback current signal; The non-inverting input terminal of the second operational amplifier unit is used to receive the second reference voltage; the second operational amplifier unit is used to compare and follow the feedback current signal with the second reference voltage to generate the second error signal.
4. The charger according to claim 2 or 3, characterized in that: The power converter is further used to feed back the primary current and / or primary voltage to the control drive chip; The control driving chip is further used to perform overcurrent protection on the power converter based on the primary current; and / or the control driving chip is further used to perform overvoltage and undervoltage protection on the power converter based on the primary voltage.
5. The charger according to claim 3, characterized in that: The voltage control circuit comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor and a first capacitor; wherein, 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 connected to the first end of the third resistor, and the second end of the third resistor is grounded; wherein the first end of the first resistor is connected to the output end of the power converter for collecting the output voltage of the current converter; the first end of the third resistor constitutes the output end of the voltage control circuit; The second end of the fourth resistor is connected to the first end of the first capacitor, and the second end of the first capacitor is grounded; wherein the first end of the fourth resistor is used to receive the first PWM signal; The first end of the fifth resistor is connected to the second end of the fourth resistor, and the second end of the fifth resistor is connected to the first end of the third resistor.
6. The charger according to claim 3 or 5, characterized in that: The current control circuit includes a sixth resistor, a voltage divider filter circuit and a second-order filter circuit; wherein, The first end of the sixth resistor is connected to the current output end of the power converter, and is used to collect the output current of the power converter; the second end of the sixth resistor constitutes the output end of the current control circuit; The input end of the voltage divider filter circuit is used to receive the second PWM signal; The output end of the voltage divider filter circuit is connected to the input end of the second-order filter circuit, and the output end of the second-order filter circuit is connected to the second end of the sixth resistor; The voltage-dividing filter circuit comprises a seventh resistor, an eighth resistor and a second capacitor; the first end of the seventh resistor constitutes the input end of the voltage-dividing filter circuit, the second end of the seventh resistor is respectively connected to the first end of the eighth resistor and the first end of the second capacitor, and the second end of the eighth resistor and the second end of the second capacitor are grounded; wherein the second end of the seventh resistor constitutes the output end of the voltage-dividing filter circuit.
7. The charger according to claim 3, characterized in that: The compensation circuit includes a first compensation branch for compensating the first error signal and a second compensation branch for compensating the second error signal; the first compensation branch and the second compensation branch both include a third capacitor, a fourth capacitor and a ninth resistor; wherein, The first end of the third capacitor and the first end of the fourth capacitor are connected to form an input end of the compensation branch; The second end of the third capacitor is connected to the first end of the ninth resistor, and the second end of the ninth resistor is connected to the second end of the fourth capacitor to form an output end of the compensation branch.
8. The charger according to claim 3, characterized in that: The charger further includes an input device; the input device is electrically or communicatively connected to the MCU; wherein, The input device includes a voltage input unit for setting a voltage, a current input unit for setting a current, and a charging mode input unit for setting a charging mode; The voltage input unit is used to generate and output a voltage control signal related to the preset voltage value when detecting the preset voltage value set by the user; The current input unit is used to generate and output a current control signal related to the preset current value when the preset current value set by the user is detected; The charging mode input unit is used to generate and output a charging mode control signal related to the preset charging mode when detecting the preset charging mode set by the user.
9. The charger according to claim 8, characterized in that: The voltage input unit or the current input unit includes a tenth resistor, a potentiometer, a fifth capacitor, a first transient voltage suppressor, a first diode and a second diode; wherein, The first end of the tenth resistor is connected to the constant voltage source, the second end of the tenth resistor is connected to the first end of the potentiometer, and the second end of the potentiometer is grounded. The first transient voltage suppressor, the fifth capacitor and the first diode are connected in parallel to form a parallel branch; wherein the first end of the parallel branch is connected to the first end of the tenth resistor, and the second end of the parallel branch is connected to the second end of the potentiometer; the first end of the parallel branch is the end where the positive electrode of the first diode is located, and the second end of the parallel branch is the end where the negative electrode of the first diode is located; The anode of the second diode is connected to the first end of the tenth resistor, and one end of the second diode is connected to the second end of the tenth resistor; The slidable end of the potentiometer is connected to the first end of the parallel branch; wherein the first end of the parallel branch constitutes the output end of the input unit; The input unit is used to generate and output a control signal based on the resistance value of the potentiometer; wherein the resistance value of the potentiometer is related to a preset value set by a user.
10. The charger according to claim 9, characterized in that: The charging mode input unit includes a switch, a second transient voltage suppressor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a sixth capacitor, a third diode and a fourth diode; wherein, The first end of the eleventh resistor is connected to the constant voltage source, the second end of the eleventh resistor is connected to the first end of the twelfth resistor, and the second end of the twelfth resistor is grounded; The switch, the second transient voltage suppressor, the sixth capacitor, and the third diode are connected in parallel to form a second parallel branch; The first end of the second parallel branch is connected to the first end of the twelfth resistor, and the second end of the second parallel branch is connected to the second end of the twelfth resistor; wherein the first end of the second parallel branch is the end where the positive electrode of the third diode is located, and the second end of the second parallel branch is the end where the negative electrode of the third diode is located; The thirteenth resistor is connected between the second transient voltage suppressor and the first end of the twelfth resistor; the fourteenth resistor is connected between the second transient voltage suppressor and the second end of the twelfth resistor; The anode of the fourth diode is connected to the first end of the eleventh resistor, and the cathode of the fourth diode is connected to the second end of the eleventh resistor; wherein the cathode of the second diode constitutes the output end of the charging mode input unit; The charging mode input unit is used to generate and output a charging mode control signal based on the on-off state of the switch; wherein the on-off state of the switch is related to a preset charging mode set by a user.