Charging controller and electric vehicle

By designing a charging controller in an electric vehicle and identifying inferior chargers using charging detection and communication modules, ensuring that only authorized chargers charge the battery, solving the safety problems caused by inferior chargers and improving the safety of battery charging.

CN223187371UActive Publication Date: 2025-08-05ZHEJIANG YADEA MOTORCYCLE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422224604.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2025-08-05
Estimated Expiration
2034-09-11

AI Technical Summary

Technical Problem

The frequent fires caused by inferior chargers in the electric vehicle market have occurred, resulting in personal and property safety issues. It is difficult for the existing technology to effectively identify and prevent inferior chargers from charging the batteries.

Method used

A charging controller is designed, including a charging control module, a communication module, a charging detection module and a main control module. Through the charging detection module, it determines whether the charger is connected to the entire vehicle, the communication module establishes communication with the charger, and the main control module determines whether the charger matches the battery, thereby controlling the charging control module to be turned on or off, ensuring that only the charger is authorized to charge the battery.

Benefits of technology

Effectively prevent inferior chargers from charging the battery, improve the safety of battery charging, and avoid safety accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223187371U_ABST
    Figure CN223187371U_ABST
Patent Text Reader

Abstract

The charging controller comprises a charging control module, a communication module, a charging detection module and a main control module, and the control end of the charging control module is connected with the charging control end of the main control module; the communication module is connected between the charger and the main control module; the main control module is used for judging whether the charger is matched with the battery or not according to a communication signal between the communication module and the charger; the input end of the charging detection module is connected with the detection end of the charger, the output end of the charging detection module is connected with the detection end of the main control module, and the main control module is used for judging whether the charger is connected with the whole vehicle or not according to charging detection signals output by the charging detection module. And the charging control module is controlled to be switched on or switched off in response to the charging detection signal and the communication signal. According to the scheme, the purpose that an unmatched charger does not allow the battery to be charged can be achieved, and the safety of battery charging can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the utility model relate to the field of electronic technology, and in particular to a charging controller and an electric vehicle. Background Art

[0002] The current electric vehicle market is flooded with a large number of low-quality chargers, and fire incidents caused by low-quality chargers are emerging in an endless stream, causing immeasurable personal and property safety losses to electric vehicle users. Utility Model Content

[0003] The embodiments of the present utility model provide a charging controller and an electric vehicle to solve the problem of safety accidents caused by inferior chargers.

[0004] According to one aspect of the present invention, a charging controller is provided for controlling a charger to charge a battery, the charging controller comprising: a charging control module, a communication module, a charging detection module and a main control module;

[0005] The charging controller includes a first power supply terminal, a second power supply terminal, and a third power supply terminal. The first power supply terminal is connected to the first terminal of the battery, the second power supply terminal is respectively connected to the second terminal of the battery and the input terminal of the charging control module, the output terminal of the charging control module is connected to the third power supply terminal, the third power supply terminal is connected to the DC power supply terminal of the charger, and the control terminal of the charging control module is connected to the charging control terminal of the main control module;

[0006] The communication module is connected between the charger and the main control module, and the main control module is used to determine whether the charger is compatible with the battery based on the communication signal between the communication module and the charger;

[0007] The input end of the charging detection module is connected to the detection end of the charger, and the output end of the charging detection module is connected to the detection end of the main control module. The main control module is used to determine whether the charger is connected to the vehicle based on the charging detection signal output by the charging detection module, and to control the charging control module to be turned on or off in response to the charging detection signal and the communication signal.

[0008] Optionally, the charger further includes an AC power supply terminal, and the main control module is further configured to determine whether the AC power supply terminal is connected to an AC voltage based on a signal received by the main control module before establishing communication between the communication module and the charger.

[0009] Optionally, the charging detection module includes an optical coupler, a first resistor, a second resistor, a third resistor, a first diode and a first capacitor;

[0010] A first end of the first resistor is connected to the first power supply terminal, a second end of the first resistor is connected to the first end of the optocoupler, a first end of the first diode is connected to the detection terminal of the charger, a second end of the first diode is connected to the second end of the optocoupler, a third end of the optocoupler is connected to the detection terminal of the main control module via the third resistor, a fourth end of the optocoupler is grounded, a first end of the second resistor is connected to a first voltage, and a second end of the second resistor is connected to the third end of the optocoupler;

[0011] A first end of the first capacitor is connected to the detection end of the main control module, and a second end of the first capacitor is grounded;

[0012] The DC power supply terminal of the charger includes a first DC power supply terminal and a second DC power supply terminal, the detection terminal of the charger is connected to the second DC power supply terminal of the charger via a charging signal line, the second DC power supply terminal of the charger is also connected to the third power supply terminal of the charging controller, and the first DC power supply terminal of the charger is connected to the first power supply terminal.

[0013] The first communication terminal of the communication module is connected to the communication terminal of the charger, the second communication terminal of the communication module is connected to the sending terminal of the main control module, and the third communication terminal of the communication module is connected to the receiving terminal of the main control module; the communication module includes a receiving unit and a sending unit;

[0014] The input end of the receiving unit is connected to the communication end of the charger, the output end of the receiving unit is connected to the receiving end of the main control module, the input end of the sending unit is connected to the sending end of the main control module, and the output end of the sending unit is connected to the input end of the receiving unit.

[0015] Optionally, the receiving unit includes a first transistor, a second transistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a second diode and a third diode;

[0016] The second end of the second diode is connected to the communication terminal of the charger, the first end of the second diode is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the first electrode of the first transistor, the third electrode of the first transistor is connected to the first end of the third diode, the second electrode of the first transistor is grounded, the second end of the third diode is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the first electrode of the second transistor, the second electrode of the second transistor is connected to the first voltage, the third electrode of the second transistor is grounded via the eighth resistor, and the third electrode of the second transistor is also connected to the receiving terminal of the main control module;

[0017] The sixth resistor is connected between the second electrode and the first electrode of the second transistor, and the seventh resistor is connected between the first electrode and the second electrode of the first transistor;

[0018] The sending unit includes a third transistor, a fourth transistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor and a fourth diode;

[0019] A first end of the ninth resistor is connected to the transmitting end of the main control module, a second end of the ninth resistor is connected to the first electrode of the third transistor, a second electrode of the third transistor is connected to the first voltage, a third electrode of the third transistor is connected to the second end of the fourth diode, a first end of the fourth diode is connected to the first end of the tenth resistor, a second end of the tenth resistor is connected to the first electrode of the fourth transistor, a third electrode of the fourth transistor is connected to the first end of the eleventh resistor, and a second end of the eleventh resistor is connected to the second end of the second diode;

[0020] The twelfth resistor is connected between the first electrode and the second electrode of the third transistor, the thirteenth resistor is connected between the first electrode and the second electrode of the fourth transistor, and the second electrode of the fourth transistor is grounded.

[0021] Optionally, the communication module further includes a short-circuit protection unit, and the short-circuit protection unit is connected to the first communication terminal of the communication module;

[0022] The short-circuit protection unit includes a fifth transistor, a fourteenth resistor, a fifteenth resistor, a fifth diode, a fuse, and a transient suppression diode, wherein a first end of the fuse is connected to the first communication end of the communication module, a second end of the fuse is connected to the input end of the receiving unit, a second end of the fifth diode is connected to the third electrode of the fourth transistor, a first end of the fifth diode is connected to the first end of the fourteenth resistor, a second end of the fourteenth resistor is connected to the first end of the fifteenth resistor, and a second end of the fifteenth resistor is grounded;

[0023] A first electrode of the fifth transistor is connected to the second end of the fourteenth resistor, a second electrode of the fifth transistor is grounded, and a third electrode of the fifth transistor is connected to the first electrode of the fourth transistor;

[0024] A first end of the transient suppression diode is connected to the second end of the fuse, and a second end of the transient suppression diode is grounded.

[0025] Optionally, the charging control module includes a switching unit, a charging unit and a discharging unit;

[0026] The control end of the charging unit is connected to the charging control end of the main control module, the input end of the charging unit is connected to the second voltage, the output end of the charging unit is connected to the control end of the switch unit via the discharge unit, the input end of the switch unit is connected to the second power supply end of the charging controller, and the output end of the switch unit is connected to the third power supply end. The charging unit is configured to charge the control end of the switch unit in response to the charging control signal output by the main control module when the main control module detects that the charger and the battery are compatible with each other, so as to turn on the switch unit;

[0027] The discharging unit is used to discharge the control end of the switching unit when the charging unit is turned off, so as to turn off the switching unit.

[0028] Optionally, the charging unit includes a sixth transistor, a seventh transistor, an eighteenth resistor, a nineteenth resistor, a twentieth resistor, a twenty-first resistor, and a sixth diode; the discharging unit includes an eighth transistor, a ninth transistor, a sixteenth resistor, a seventeenth resistor, a twenty-second resistor, a twenty-third resistor, a twenty-fourth resistor, a seventh diode, an eighth diode, a voltage stabilizing diode, and a second capacitor; and the switching unit includes a tenth transistor, a third capacitor, and a fourth capacitor.

[0029] The second end of the sixth diode is connected to the second voltage, the first end of the sixth diode is connected to the second electrode of the sixth transistor, the third end of the sixth transistor is connected to the second end of the seventh diode, the first end of the seventh diode is connected to the first end of the sixteenth resistor, the second end of the sixteenth resistor is connected to the second end of the eighth diode, the first end of the eighth diode is connected to the first end of the seventeenth resistor, the second end of the seventeenth resistor is connected to the first electrode of the tenth transistor, the second electrode of the tenth transistor is connected to the second power supply terminal of the charge controller, and the third electrode of the tenth transistor is connected to the third power supply terminal;

[0030] A first end of the eighteenth resistor is connected to the charging control terminal of the main control module, a second end of the eighteenth resistor is connected to the first electrode of the seventh transistor, a third electrode of the seventh transistor is connected to the first electrode of the sixth transistor via the nineteenth resistor, a second electrode of the seventh transistor is grounded, a twentieth resistor is connected between the first electrode and the second electrode of the sixth transistor, and a twenty-first resistor is connected between the first electrode and the second electrode of the seventh transistor;

[0031] a first electrode of the eighth transistor connected to the first end of the sixteenth resistor, a second electrode of the eighth transistor connected to the first electrode of the ninth transistor, a third electrode of the eighth transistor connected to the third power supply terminal, a first electrode of the ninth transistor connected to the first end of the seventeenth resistor, a second electrode of the ninth transistor connected to the third power supply terminal via the twenty-second resistor, and a twenty-third resistor connected between the first and third electrodes of the eighth transistor;

[0032] The twenty-fourth resistor is connected between the first end of the seventeenth resistor and the third power supply terminal, the second capacitor is connected in parallel with the twenty-fourth resistor, the first end of the Zener diode is connected to the first end of the seventeenth resistor, and the second end of the Zener diode is connected to the third power supply terminal;

[0033] The third capacitor and the fourth capacitor are sequentially connected in series between the second electrode and the third electrode of the tenth transistor.

[0034] Optionally, the charging controller further includes a sampling module, wherein the sampling module is connected between the input terminal of the electric control module and the second power supply terminal;

[0035] The charging controller further includes a power supply, which is connected to the main control module, the communication module and the charging detection module.

[0036] According to another aspect of the present invention, an electric vehicle is provided, which includes the charging controller provided by any embodiment of the present invention; the electric vehicle also includes a motor, and the motor is connected to the charging controller.

[0037] The technical solution provided by the embodiment of the present utility model determines whether the charger is connected to the whole vehicle through the charging detection module. When the main control module determines that the charger is connected based on the charging detection signal sent by the charging detection module, it establishes communication with the charger through the communication module and determines whether the charger matches the battery based on the corresponding communication signal, thereby achieving the purpose of not allowing an unmatched charger to charge the battery, solving the problem of safety accidents caused by inferior chargers, and being conducive to improving the safety of battery charging.

[0038] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 A schematic diagram of the structure of a charging controller provided by an embodiment of the present utility model;

[0041] Figure 2 A schematic structural diagram of another charging controller provided by an embodiment of the present utility model;

[0042] Figure 3 A schematic diagram of the structure of a charging detection module provided in an embodiment of the present utility model;

[0043] Figure 4 A schematic structural diagram of another charging controller provided by an embodiment of the present utility model;

[0044] Figure 5 A schematic structural diagram of another charging controller provided by an embodiment of the present utility model;

[0045] Figure 6 A schematic structural diagram of a communication module provided in an embodiment of the present utility model;

[0046] Figure 7 A schematic structural diagram of another charging controller provided by an embodiment of the present utility model;

[0047] Figure 8 A schematic structural diagram of a charging control module provided in an embodiment of the present utility model;

[0048] Figure 9 A schematic structural diagram of another charging controller provided by an embodiment of the present utility model;

[0049] Figure 10 A control flow chart of a charging controller provided in an embodiment of the present utility model. DETAILED DESCRIPTION

[0050] In order to help those skilled in the art better understand the present invention, the following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the embodiments described 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 ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0052] Figure 1 A schematic diagram of a charging controller according to an embodiment of the present invention is provided. Figure 1 The charging controller 10 can be used to control the charger 30 to charge the battery 20. The charging controller 10 provided in this embodiment includes: a charging control module 101, a communication module 102, a charging detection module 103 and a main control module 104;

[0053] The charging controller 10 includes a first power terminal B+, a second power terminal B-, and a third power terminal C-. The first power terminal B+ is connected to the first terminal of the battery 20, the second power terminal B- is respectively connected to the second terminal of the battery 20 and the input terminal of the charging control module 101, the output terminal of the charging control module 101 is connected to the third power terminal C-, and the third power terminal C- is connected to the DC power terminal E of the charger 30. The control terminal of the charging control module 101 is connected to the charging control terminal CHG-ctr of the main control module 104;

[0054] The communication module 102 is connected between the charger 30 and the main control module 104. The main control module 104 is used to determine whether the charger 30 is compatible with the battery 20 based on the communication signal between the communication module 102 and the charger 30.

[0055] The input end of the charging detection module 103 is connected to the detection terminal CJ of the charger 30, and the output end of the charging detection module 103 is connected to the detection terminal CRG-in of the main control module 104. The main control module 104 is used to determine whether the charger 30 is connected to the vehicle based on the charging detection signal output by the charging detection module 103, and to control the charging control module 101 to be turned on or off in response to the charging detection signal and the communication signal.

[0056] Specifically, the first electrode of the battery can be a positive electrode, and the second electrode can be a negative electrode. The first power supply terminal B+ of the charging controller is the positive electrode interface of the charging controller, the second power supply terminal B- is the negative electrode interface of the charging controller, and the third power supply terminal C- is connected to the DC power supply terminal E of the charger 30. When the charging control module 101 is turned on, the DC power supply terminal E of the charger 30 is connected to the second electrode of the battery 20, and the charger 30 charges the battery 20.

[0057] When the battery 20 is charged by the charger 30, the charging detection module 103 detects whether the charger 30 is connected to the vehicle, that is, whether it is connected to the charging controller 10. For example, a charging signal line is connected between the DC power supply terminal E and the detection terminal CJ of the charger 30. When the charging signal line is connected to the charging detection module 103, the main control module 104 determines that the charger 30 is connected to the vehicle (the DC power supply terminal of the charger 30 is connected to the charging controller 10) based on the charging detection signal received by its own detection terminal CRG-in.

[0058] After confirming that the charger 30 is connected, the main control module 104 sends a communication signal (e.g., message data) to the charger 30 through the communication module 102. The main control module 104 determines whether the charger 30 responds with a message and the accuracy of the response message to determine whether the charger 30 is compatible. If the main control module 104 determines that the charger 30 is compatible with the battery 20, it controls the charging control module 101 to turn on, allowing the charger 30 to charge the battery 20. If the main control module 104 determines that the charger 30 is not compatible with the battery 20, it controls the charging control module 101 to turn off, prohibiting the charger 30 from charging the battery 20.

[0059] The technical solution provided by the embodiment of the present utility model determines whether the charger 30 is connected to the whole vehicle through the charging detection module 103. When the main control module 104 determines that the charger 30 is connected based on the charging detection signal sent by the charging detection module 103, it establishes communication with the charger 30 through the communication module 102, and determines whether the charger 30 matches the battery 20 based on the corresponding communication signal, thereby achieving the purpose of not allowing the unmatched charger 30 to charge the battery 20, solving the problem of safety accidents caused by inferior chargers, and helping to improve the safety of charging the battery 20.

[0060] Optionally, the charger 30 further includes an AC power supply terminal, and the main control module 104 is further configured to determine whether the AC power supply terminal is connected to an AC voltage based on a received signal before establishing communication between the communication module 102 and the charger 30. For example, the main control module 104 may detect whether the AC power supply terminal is connected to an AC voltage through circuit detection via the communication module 102.

[0061] Figure 2This is a schematic diagram of another charging controller provided by an embodiment of the present invention, referring to Figure 2 Based on the above embodiment, optionally, the DC power supply terminal E of the charger 30 includes a first DC power supply terminal E+ and a second DC power supply terminal E−, the detection terminal CJ of the charger 30 is connected to the second DC power supply terminal E− of the charger 30 via a charging signal line, the second DC power supply terminal E+ of the charger 30 is also connected to the third power supply terminal C− of the charging controller 10, and the first DC power supply terminal E+ of the charger 30 is connected to the first power supply terminal B+.

[0062] Figure 3 This is a schematic diagram of a charging detection module provided by an embodiment of the present invention, referring to Figure 3 Based on the above embodiment, optionally, the charging detection module 103 includes an optical coupler U1, a first resistor R1, a second resistor R2, a third resistor R3, a first diode D1 and a first capacitor C1; a first end of the first resistor R1 is connected to the first power supply terminal B+, a second end of the first resistor R1 is connected to the first end of the optical coupler U1, a first end of the first diode D1 is connected to the detection terminal CJ of the charger 30, a second end of the first diode D1 is connected to the second end of the optical coupler U1, a third end of the optical coupler U1 is connected to the detection terminal CRG-in of the main control module 104 via the third resistor R3, a fourth end of the optical coupler U1 is grounded (GND), a first end of the second resistor R2 is connected to the first voltage V1, and a second end of the second resistor R2 is connected to the third end of the optical coupler U1; a first end of the first capacitor C1 is connected to the detection terminal CRG-in of the main control module 104, and a second end of the first capacitor C1 is grounded.

[0063] Specifically, the charging signal line is a negative line and is connected to the second DC power supply terminal E- of the charger 30. When the charging signal line is not connected to the first terminal of the first diode D1 via the detection terminal CJ of the charger 30, the optocoupler U1 is in an off state, and the detection terminal CRG-in of the main control module 104 is pulled up to the first voltage V1 (e.g., 3.3V) by the action of the second resistor R2, and the detection terminal CRG-in of the main control module 104 is at a high level.

[0064] When the charging signal line is connected to the first end of the first diode D1 via the detection terminal CJ of the charger 30, the first and second ends of the optocoupler U1 are turned on, and the light-emitting diode inside the optocoupler U1 emits light, thereby turning on the third and fourth ends of the optocoupler U1. The detection terminal CRG-in of the main control module 104 is pulled down to the ground voltage (0V). At this time, the detection terminal CRG-in of the main control module 104 is at a low level, and the main control module 104 determines that the DC power supply terminal of the charger 30 is connected to the vehicle.

[0065] Among them, the first capacitor C2 is used to filter the voltage of the detection terminal CRG-in of the main control module 104, the first end of the first diode D1 can be a negative pole, and the second end can be a positive pole. The first diode D1 can play a reverse cutoff role to prevent the optical coupler U1 from being mis-conducted.

[0066] The technical solution provided in this embodiment uses the optical coupler U1 and its peripheral circuits to detect whether the DC voltage terminal of the charger 30 is connected to the vehicle. The circuit structure is simple and the reliability is high.

[0067] Figure 4 This is a schematic diagram of another charging controller provided by an embodiment of the present invention, referring to Figure 4 Based on the above embodiments, optionally, the first communication terminal of the communication module 102 is connected to the communication terminal TG of the charger 30, the second communication terminal of the communication module 102 is connected to the transmitting terminal TXD of the main control module 104, and the third communication terminal of the communication module 102 is connected to the receiving terminal RXD of the main control module 104. The first communication terminal of the communication module 102 can be connected to the communication terminal TG of the charger 30 via a communication signal line. This communication signal line can both receive and transmit signals, and communication with the charger 30 can be achieved via a single signal line.

[0068] The communication module 102 includes a receiving unit 1021 and a sending unit 1022; the input end of the receiving unit 1021 is connected to the communication terminal TG of the charger 30, the output end of the receiving unit 1021 is connected to the receiving terminal RXD of the main control module 104, the input end of the sending unit 1022 is connected to the sending terminal TXD of the main control module 104, and the output end of the sending unit 1022 is connected to the input end of the receiving unit 1021.

[0069] Specifically, when there is no communication between the communication module 102 and the charger 30, the level of the charger 30 communication terminal TG can be used to determine whether the AC voltage terminal of the charger 30 is connected to a voltage. For example, the charger 30 communication terminal TG is provided with a pull-up resistor. When the charger 30 AC voltage terminal is connected to a voltage, the pull-up resistor is effective, pulling the charger 30 communication terminal TG of the charger 30 to a high level. After the high level is processed by the receiving unit 1021, the receiving terminal RXD of the main control module 104 receives the high level, and it can be determined that the charger 30 AC voltage terminal is connected. When the charger 30 AC voltage terminal is not connected to a voltage, the pull-up resistor is ineffective, and the charger 30 communication terminal TG of the charger 30 is at a low level. After the low level is processed by the receiving unit 1021, the receiving terminal RXD of the main control module 104 receives the low level, and it can be determined that the charger 30 AC voltage terminal is not connected.

[0070] After the main control module 104 determines that both the AC voltage terminal and the DC voltage terminal of the charger 30 are connected, the main control module 104 sends a message to the transmitting unit 1022 via the transmitting terminal TXD. The transmitting unit 1022 then sends the message to the communication terminal TG of the charger 30 via the communication signal line. After receiving the message, the charger 30 responds with a reply message, which the receiving unit 1021 sends to the receiving terminal RXD of the main control module 104. The main control module 104 detects the message at the receiving terminal RXD to determine whether the charger 30 is compatible with the battery 20. For example, if the message sent by the main control module 104 is consistent with the received message, the charger 30 can be determined to be an authorized charger and is compatible with the battery 2. If the message sent by the main control module 104 is inconsistent with the received message, the charger 30 can be determined to be an unauthorized charger and is not compatible with the battery 2.

[0071] Figure 5 This is a schematic diagram of another charging controller provided by an embodiment of the present invention, referring to Figure 5 In addition to the above embodiment, the communication module 102 may optionally further include a short-circuit protection unit 1023 connected to the first communication terminal of the communication module 102. The short-circuit protection unit 1023 can protect the internal circuit of the communication module 102 when a short-circuit high voltage occurs at the communication terminal TG of the charger 30, preventing the high voltage from burning out the circuit.

[0072] Figure 6 A schematic diagram of a communication module provided by an embodiment of the present invention, referring to Figure 6 Based on the above embodiments, optionally, the receiving unit 1021 includes a first transistor Q1, a second transistor Q2, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a second diode D2, and a third diode D3; the second end of the second diode D2 is connected to the communication terminal TG of the charger 30, the first end of the second diode D2 is connected to the first end of the fourth resistor R4, the second end of the fourth resistor R4 is connected to the first electrode of the first transistor Q1, the third electrode of the first transistor Q1 is connected to the first end of the third diode D3, the second electrode of the first transistor Q1 is grounded, the second end of the third diode D3 is connected to the first end of the fifth resistor R5, the second end of the fifth resistor R5 is connected to the first electrode of the second transistor Q2, the second electrode of the second transistor Q2 is connected to the first voltage V1, the third electrode of the second transistor Q2 is grounded via the eighth resistor R8, and the third electrode of the second transistor Q2 is also connected to the receiving terminal RXD of the main control module 104; the sixth resistor R6 is connected between the second electrode and the first electrode of the second transistor Q2, and the seventh resistor R7 is connected between the first electrode and the second electrode of the first transistor Q1.

[0073] The sending unit 1022 includes a third transistor Q3, a fourth transistor Q4, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13 and a fourth diode D4; a first end of the ninth resistor R9 is connected to the sending end TXD of the main control module 104, a second end of the ninth resistor R9 is connected to the first electrode of the third transistor Q3, a second electrode of the third transistor Q3 is connected to the first voltage V1, a third electrode of the third transistor Q3 is connected to the second end of the fourth diode D4, a first end of the fourth diode D4 is connected to the first end of the tenth resistor R10, a second end of the tenth resistor R10 is connected to the first electrode of the fourth transistor Q4, a third electrode of the fourth transistor Q4 is connected to the first end of the eleventh resistor R11, and a second end of the eleventh resistor R11 is connected to the second end of the second diode D2; the twelfth resistor R12 is connected between the first and second electrodes of the third transistor Q3, the thirteenth resistor R13 is connected between the first and second electrodes of the fourth transistor Q4, and the second electrode of the fourth transistor Q4 is grounded.

[0074] The short-circuit protection unit 1023 includes a fifth transistor Q5, a fourteenth resistor R14, a fifteenth resistor R15, a fifth diode D5, a fuse F1, and a transient suppression diode DZ1. The first end of the fuse F1 is connected to the first communication end of the communication module 102, the second end of the fuse F1 is connected to the input end of the receiving unit 1021, the second end of the fifth diode D5 is connected to the third end of the fourth transistor Q4, the first end of the fifth diode D5 is connected to the first end of the fourteenth resistor R14, the second end of the fourteenth resistor R14 is connected to the first end of the fifteenth resistor R15, and the second end of the fifteenth resistor R15 is grounded; the first end of the fifth transistor Q5 is connected to the second end of the fourteenth resistor R14, the second end of the fifth transistor Q5 is grounded, and the third end of the fifth transistor Q5 is connected to the first end of the fourth transistor Q4; the first end of the transient suppression diode DZ1 is connected to the second end of the fuse F1, and the second end of the transient suppression diode DZ1 is grounded.

[0075] Fuse F1 is a resettable fuse, and its withstand voltage can be selected based on the voltage level of the charge controller 10. Transient suppressor diode DZ1 provides static electricity and surge protection. The second, third, fourth, and fifth diodes D2, D3, D4, and D5 all provide reverse blocking. The sixth, seventh, twelfth, and thirteenth resistors R6, R7, R12, R13, and R15 are bias resistors that provide bias voltage for their respective transistors. The remaining resistors are current-limiting resistors.

[0076] Optionally, in this embodiment, the first transistor Q1 , the second transistor Q2 , the third transistor Q3 , the fourth transistor Q4 and the fifth transistor Q5 may all be triodes.

[0077] The specific working principle of the communication module 102 is as follows:

[0078] In the absence of communication between the communication module 102 and the charger 30, when the AC voltage terminal of the charger 30 is connected to a voltage, the charger 30 communication terminal TG is pulled up to a high level via the internal pull-up resistor of the charger 30. Consequently, the first transistor Q1 is turned on, pulling the voltage at the first electrode of the second transistor Q2 down to the voltage of the third power supply terminal C-, thereby turning on the second transistor Q2. The first voltage is then transmitted to the eighth resistor R8 via the second transistor Q2. At this point, the voltage at the receiving terminal RXD of the main control module 104 is equal to the first voltage V1. When the AC voltage terminal of the charger 30 is not connected to a voltage, both the first transistor Q1 and the second transistor Q2 are turned off, and the voltage at the receiving terminal RXD of the main control module 104 is 0V. Therefore, the main control module 104 can determine whether the AC voltage terminal of the charger 30 is connected based on the voltage at the receiving terminal RXD.

[0079] In order to ensure that the first transistor Q1 and the second transistor Q2 are smoothly turned on, the resistance values of the sixth resistor R6 and the seventh resistor R7 should meet the following conditions:

[0080] r7=0.7*(r4+r7+ra) / (VC-Vd2);

[0081] r6=0.7*(r6+r5) / (V1-Vd3);

[0082] Among them, r4 is the resistance value of the fourth resistor R4, r5 is the resistance value of the fifth resistor R5, r6 is the resistance value of the sixth resistor R6, r7 is the resistance value of the seventh resistor R7, 0.7 is the turn-on voltage of the first transistor Q1 and the second transistor Q2, Vd2 is the forward voltage drop of the second diode D2, Vd3 is the forward voltage drop of the third diode D3, V1 is the first voltage, VC is the voltage of the pull-up resistor inside the charger 30, and ra is the resistance value of the pull-up resistor inside the charger 30.

[0083] When the charging detection module 103 detects that the DC voltage terminal E of the charger 30 is connected, and when the communication module 102 detects that the AC voltage terminal of the charger 30 is connected, the main control module 104 sends a message via the transmitting terminal TXD to establish communication with the charger 30. For example, when the transmitting terminal TXD of the main control module 104 is at a low level, the third transistor Q3 is turned on, and the first voltage V1 is transmitted to the first electrode of the fourth transistor Q4, causing the fourth transistor Q4 to turn on, thereby causing the communication terminal TG of the charger 30 to be at a low level. The resistance values of the twelfth resistor R12 and the thirteenth resistor R13 satisfy:

[0084] r12=0.7*(r12+r9) / V1;

[0085] r13=0.7*(r10+r13) / (V1-Vd4);

[0086] Among them, r12 is the resistance of the twelfth resistor R12, r13 is the resistance of the thirteenth resistor R13, r9 is the resistance of the ninth resistor R9, r10 is the resistance of the tenth resistor R10, 0.7 is the turn-on voltage of the third transistor Q3 and the fourth transistor Q4, Vd4 is the forward voltage drop of the fourth diode D4, and V1 is the first voltage.

[0087] When the transmitting terminal TXD of the main control module 104 is at a high level, the third transistor Q3 and the fourth transistor Q4 are both turned off, and the communication terminal TG of the charger 30 is at a high level.

[0088] The charger 30 generates a reply message based on the message received by the communication terminal TG. The receiving unit 1021 controls the second transistor Q2 to turn on or off based on the received reply message. The power level of the receiving terminal RXD of the main control module 104 is detected to determine whether the message sent by the main control module 104 is consistent with the message received, and thus determine whether the charger 30 is compatible.

[0089] Furthermore, after communication is established, if the communication terminal TG of the charger 30 is short-circuited and a high voltage is generated, the fifth transistor Q5 is turned on. The second terminal of the fifth transistor Q5 is at a low level. Therefore, the first terminal of the fourth transistor Q4 is also at a low level, causing the fourth transistor Q4 to remain off, thereby protecting the circuit. Furthermore, since it takes a certain amount of time for the fourth transistor Q4 to turn off after the fifth transistor Q5 turns on, if the short-circuit current is too large during this period, the fuse F1 will activate, thereby protecting the circuit.

[0090] Figure 7 This is a schematic diagram of another charging controller provided by an embodiment of the present invention, referring to Figure 7Based on the above embodiments, optionally, the charging control module 101 includes a switch unit 1013, a charging unit 1011, and a discharging unit 1012; the control end of the charging unit 1011 is connected to the charging control end CHG-ctr of the main control module 104, the input end of the charging unit 1011 is connected to the second voltage V2, the output end of the charging unit 1011 is connected to the control end of the switch unit 1013 via the discharging unit 1012, the input end of the switch unit 1013 is connected to the second power supply end B- of the charging controller 10, and the output end of the switch unit 1013 is connected to the third power supply end C-. The charging unit 1011 is configured to charge the control end of the switch unit 1013 in response to a charging control signal output by the main control module 104 when the main control module 104 detects that the charger 30 and the battery 20 are compatible with each other, thereby turning on the switch unit 1013; and the discharging unit 1012 is configured to discharge the control end of the switch unit 1013 when the charging unit 1011 is turned off, thereby turning off the switch unit 1013.

[0091] Figure 8 This is a schematic diagram of the structure of a charging control module provided by an embodiment of the present utility model, with reference to Figure 8 and Figure 7 The charging unit 1011 includes a sixth transistor Q6, a seventh transistor Q7, an eighteenth resistor R18, a nineteenth resistor R19, a twentieth resistor R20, a twenty-first resistor R21 and a sixth diode D6; the discharging unit 1012 includes an eighth transistor Q8, a ninth transistor Q9, a sixteenth resistor R16, a seventeenth resistor R17, a twenty-second resistor R22, a twenty-third resistor R23, a twenty-fourth resistor R24, a seventh diode D7, an eighth diode D8, a Zener diode Z1 and a second capacitor C2; the switching unit 1013 includes a tenth transistor Q10, a third capacitor C3 and a fourth capacitor C4.

[0092] A second end of the sixth diode D6 is connected to the second voltage V2, a first end of the sixth diode D2 is connected to the second end of the sixth transistor Q6, a third end of the sixth transistor Q6 is connected to the second end of the seventh diode D7, a first end of the seventh diode D7 is connected to the first end of the sixteenth resistor R16, a second end of the sixteenth resistor R16 is connected to the second end of the eighth diode D8, a first end of the eighth diode D8 is connected to the first end of the seventeenth resistor R17, a second end of the seventeenth resistor R17 is connected to the first end of the tenth transistor Q10, a second end of the tenth transistor Q10 is connected to the second power supply terminal B- of the charge controller 10, and a third end of the tenth transistor Q10 is connected to the third power supply terminal C-;

[0093] A first end of an eighteenth resistor R18 is connected to the charge control terminal CHG-ctr of the main control module 104, a second end of the eighteenth resistor R18 is connected to the first electrode of the seventh transistor Q7, a third electrode of the seventh transistor Q7 is connected to the first electrode of the sixth transistor Q6 via a nineteenth resistor R19, a second electrode of the seventh transistor Q7 is grounded, a twentieth resistor R20 is connected between the first electrode and the second electrode of the sixth transistor Q6, and a twenty-first resistor R21 is connected between the first electrode and the second electrode of the seventh transistor Q7;

[0094] A first electrode of the eighth transistor Q8 is connected to the first end of the sixteenth resistor R16, a second electrode of the eighth transistor Q8 is connected to the first electrode of the ninth transistor Q9, a third electrode of the eighth transistor Q8 is connected to the third power supply terminal C−, a first electrode of the ninth transistor Q9 is connected to the first end of the seventeenth resistor R17, a second electrode of the ninth transistor Q9 is connected to the third power supply terminal C− via the twenty-second resistor R22, and a twenty-third resistor R23 is connected between the first electrode and the third electrode of the eighth transistor Q8;

[0095] The twenty-fourth resistor R24 is connected between the first end of the seventeenth resistor R17 and the third power supply terminal C−. The second capacitor C2 is connected in parallel with the twenty-fourth resistor R24. The first end of the Zener diode Z1 is connected to the first end of the seventeenth resistor R17, and the second end of the Zener diode Z1 is connected to the third power supply terminal C−.

[0096] The third capacitor C3 and the fourth capacitor C4 are sequentially connected in series between the second electrode and the third electrode of the tenth transistor R10.

[0097] Among them, the twentieth resistor R20 and the twenty-first resistor R21 are bias resistors, the sixteenth resistor R16, the seventeenth resistor R17, the eighteenth resistor R18, the nineteenth resistor R19 and the twenty-second resistor R22 are all current limiting resistors, the twenty-fourth resistor R24 is a discharge resistor, the sixth diode D6 is a fast recovery diode, the seventh diode D7 and the eighth diode D8 are ordinary diodes, and the three capacitors are all filtering and voltage-stabilizing capacitors.

[0098] When the charging control terminal CHG-ctr of the main control module 104 is at a high level, the seventh transistor Q7 is turned on, pulling down the voltage of the first electrode of the sixth transistor Q6, causing the sixth transistor Q6 to be turned on. The second voltage V2 (for example, V2 is 12V) charges the first electrode of the tenth transistor Q10 to turn on the tenth transistor Q10, thereby connecting the second power supply terminal B- and the third power supply terminal C-, and the charger 30 charges the battery 20.

[0099] When the charge control terminal CHG-ctr of the main control module 104 is at a low level, the seventh transistor Q7 and the sixth transistor Q6 are turned off. Due to the influence of the parasitic capacitance of the tenth transistor Q10, the potential of the first electrode of the tenth transistor 10 remains at the second voltage V2. However, since the seventh diode D7 and the eighth diode D8 are unidirectionally conductive, the voltage at the first electrode of the tenth transistor 10 returns to the first electrode of the eighth transistor Q8 via the seventeenth resistor R17, the ninth transistor Q9, the eighth transistor Q8, and the twenty-third resistor R23, causing the eighth transistor Q8 and the ninth transistor Q9 to turn on. Here, the eighth transistor Q8 and the ninth transistor Q9 together form a Darlington transistor. Since the ninth transistor Q9 is turned on, the voltage at the first electrode of the tenth transistor 10 directly returns to the third power supply terminal C- through the ninth transistor Q9 and the twenty-second resistor R22, achieving discharge.

[0100] In this embodiment, the resistance of the twenty-fourth resistor R24 is relatively large. Therefore, the voltage at the first terminal of the tenth transistor 10 is preferentially discharged through the ninth transistor Q9. When the voltage at the first terminal of the tenth transistor 10 is insufficient to turn on the eighth transistor Q8, the remaining charge is discharged through the twenty-fourth resistor R24. When the voltage at the first terminal of the tenth transistor 10 falls below the threshold voltage, the tenth transistor Q10 is turned off, halting charging by the charger 30.

[0101] Figure 9 This is a schematic diagram of another charging controller provided by an embodiment of the present invention, referring to Figure 9 The charging controller 10 further includes a sampling module 105, which is connected between the input terminal of the electric control module 101 and the second power supply terminal B-, and is used to sample the voltage of the second power supply terminal B-.

[0102] Optionally, the charging controller 10 further includes a power supply, which is connected to the main control module 104 , the communication module 102 and the charging detection module 103 to provide a power supply voltage.

[0103] Figure 10 A control flow chart of a charging controller provided by an embodiment of the present utility model, referring to Figure 10 The charging controller 10 controls the charger 30 to charge as follows:

[0104] S1. Wake up the charging controller 10, and the charging controller 10 detects whether the charging signal line is connected. Here, the charging controller 10 can be woken up by connecting the DC voltage terminal of the charger 30 to the vehicle.

[0105] S2. The charging controller 10 detects whether the communication signal line is connected. Here, the connection is detected by detecting the level of the receiving terminal RXD of the main control module 104, that is, detecting whether the AC voltage terminal of the charger 30 is connected. If so, the process proceeds to S4; if not, the process proceeds to S3.

[0106] S3. If the charging controller 10 still fails to detect the corresponding level, it determines that the charger 30 is not compatible and prohibits charging.

[0107] S4. The charging controller 10 sends a message to the charger 30. When the charging controller 10 detects that the AC voltage terminal of the charger 30 is connected (the DC voltage terminal of the charger 30 is already connected), the charging controller 10 sends the message to the charger 30 via the communication signal line.

[0108] S5. Determine whether the message returned by the charger 30 is correct. If correct, execute S6; if not, execute S3.

[0109] S6. Turn on the charging MOS, that is, control the switch unit 1013 in the charging control module 101 to be turned on.

[0110] S7 : The charger 30 charges normally. When the charger 30 detects that there is voltage between its first DC voltage terminal E+ and second DC voltage terminal E−, it outputs voltage to charge the battery 20 .

[0111] S8. The charging controller 10 detects whether the charging is abnormal. During the charging process, the charging controller 10 continuously detects the charging voltage, current, temperature, etc. If everything is normal, the above step S7 is continued.

[0112] S9. If the charging controller 10 detects an abnormal state (overvoltage, overcurrent, overtemperature, etc.) during the charging process, the charging controller 10 disconnects the charging MOS and prohibits charging.

[0113] The technical solution provided by the embodiment of the present utility model, based on the original vehicle architecture, communicates and interacts with the charger 30 through the charging controller 10 to control and safely and effectively implement and protect various abnormal situations that may occur during the charging process, thereby more effectively protecting the battery 20 and maintaining the property safety of electric vehicle users.

[0114] Optionally, an embodiment of the present invention further provides an electric vehicle, which includes but is not limited to a two-wheeled electric vehicle and a three-wheeled electric vehicle. The electric vehicle includes the charging controller provided by any embodiment of the present invention. Therefore, the electric vehicle provided by this embodiment also has the beneficial effects described in any of the above embodiments.

[0115] The electric vehicle also includes a motor, which is connected to a charging controller. The motor movement is controlled by the charging controller. The specific working principle can be referred to the description of the relevant technology and will not be repeated here.

[0116] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this utility model can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this utility model can be achieved. This is not limited herein.

[0117] The above specific embodiments do not limit the scope of protection of this utility model. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this utility model shall be included within the scope of protection of this utility model.

Claims

1. A charging controller, characterized in that: Used to control the charger to charge the battery, the charging controller includes: a charging control module, a communication module, a charging detection module and a main control module; The charging controller includes a first power supply terminal, a second power supply terminal, and a third power supply terminal. The first power supply terminal is connected to the first terminal of the battery, the second power supply terminal is respectively connected to the second terminal of the battery and the input terminal of the charging control module, the output terminal of the charging control module is connected to the third power supply terminal, the third power supply terminal is connected to the DC power supply terminal of the charger, and the control terminal of the charging control module is connected to the charging control terminal of the main control module; The communication module is connected between the charger and the main control module, and the main control module is used to determine whether the charger is compatible with the battery based on the communication signal between the communication module and the charger; The input end of the charging detection module is connected to the detection end of the charger, and the output end of the charging detection module is connected to the detection end of the main control module. The main control module is used to determine whether the charger is connected to the vehicle based on the charging detection signal output by the charging detection module, and to control the charging control module to be turned on or off in response to the charging detection signal and the communication signal.

2. The charging controller according to claim 1, characterized in that The charger further includes an AC power supply terminal. The main control module is further configured to determine whether the AC power supply terminal is connected to an AC voltage based on a signal received by the main control module before establishing communication between the communication module and the charger.

3. The charging controller according to claim 1, wherein: The charging detection module includes an optical coupler, a first resistor, a second resistor, a third resistor, a first diode and a first capacitor; A first end of the first resistor is connected to the first power supply terminal, a second end of the first resistor is connected to the first end of the optocoupler, a first end of the first diode is connected to the detection terminal of the charger, a second end of the first diode is connected to the second end of the optocoupler, a third end of the optocoupler is connected to the detection terminal of the main control module via the third resistor, a fourth end of the optocoupler is grounded, a first end of the second resistor is connected to a first voltage, and a second end of the second resistor is connected to the third end of the optocoupler; A first end of the first capacitor is connected to the detection end of the main control module, and a second end of the first capacitor is grounded; The DC power supply terminal of the charger includes a first DC power supply terminal and a second DC power supply terminal, the detection terminal of the charger is connected to the second DC power supply terminal of the charger via a charging signal line, the second DC power supply terminal of the charger is also connected to the third power supply terminal of the charging controller, and the first DC power supply terminal of the charger is connected to the first power supply terminal.

4. The charging controller according to claim 1, wherein: The first communication terminal of the communication module is connected to the communication terminal of the charger, the second communication terminal of the communication module is connected to the sending terminal of the main control module, and the third communication terminal of the communication module is connected to the receiving terminal of the main control module; the communication module includes a receiving unit and a sending unit; The input end of the receiving unit is connected to the communication end of the charger, the output end of the receiving unit is connected to the receiving end of the main control module, the input end of the sending unit is connected to the sending end of the main control module, and the output end of the sending unit is connected to the input end of the receiving unit.

5. The charging controller according to claim 4, characterized in that: The receiving unit includes a first transistor, a second transistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a second diode and a third diode; The second end of the second diode is connected to the communication terminal of the charger, the first end of the second diode is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the first electrode of the first transistor, the third electrode of the first transistor is connected to the first end of the third diode, the second electrode of the first transistor is grounded, the second end of the third diode is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the first electrode of the second transistor, the second electrode of the second transistor is connected to the first voltage, the third electrode of the second transistor is grounded via the eighth resistor, and the third electrode of the second transistor is also connected to the receiving terminal of the main control module; The sixth resistor is connected between the second electrode and the first electrode of the second transistor, and the seventh resistor is connected between the first electrode and the second electrode of the first transistor; The sending unit includes a third transistor, a fourth transistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor and a fourth diode; A first end of the ninth resistor is connected to the transmitting end of the main control module, a second end of the ninth resistor is connected to the first electrode of the third transistor, a second electrode of the third transistor is connected to the first voltage, a third electrode of the third transistor is connected to the second end of the fourth diode, a first end of the fourth diode is connected to the first end of the tenth resistor, a second end of the tenth resistor is connected to the first electrode of the fourth transistor, a third electrode of the fourth transistor is connected to the first end of the eleventh resistor, and a second end of the eleventh resistor is connected to the second end of the second diode; The twelfth resistor is connected between the first electrode and the second electrode of the third transistor, the thirteenth resistor is connected between the first electrode and the second electrode of the fourth transistor, and the second electrode of the fourth transistor is grounded.

6. The charging controller according to claim 5, characterized in that: The communication module further includes a short circuit protection unit, wherein the short circuit protection unit is connected to the first communication terminal of the communication module; The short-circuit protection unit includes a fifth transistor, a fourteenth resistor, a fifteenth resistor, a fifth diode, a fuse, and a transient suppression diode, wherein a first end of the fuse is connected to the first communication end of the communication module, a second end of the fuse is connected to the input end of the receiving unit, a second end of the fifth diode is connected to the third electrode of the fourth transistor, a first end of the fifth diode is connected to the first end of the fourteenth resistor, a second end of the fourteenth resistor is connected to the first end of the fifteenth resistor, and a second end of the fifteenth resistor is grounded; A first electrode of the fifth transistor is connected to the second end of the fourteenth resistor, a second electrode of the fifth transistor is grounded, and a third electrode of the fifth transistor is connected to the first electrode of the fourth transistor; A first end of the transient suppression diode is connected to the second end of the fuse, and a second end of the transient suppression diode is grounded.

7. The charging controller according to claim 1, wherein: The charging control module includes a switch unit, a charging unit and a discharging unit; The control end of the charging unit is connected to the charging control end of the main control module, the input end of the charging unit is connected to the second voltage, the output end of the charging unit is connected to the control end of the switch unit via the discharge unit, the input end of the switch unit is connected to the second power supply end of the charging controller, and the output end of the switch unit is connected to the third power supply end. The charging unit is configured to charge the control end of the switch unit in response to the charging control signal output by the main control module when the main control module detects that the charger and the battery are compatible with each other, so as to turn on the switch unit; The discharging unit is used for discharging the control end of the switch unit when the charging unit is turned off, so as to turn off the switch unit.

8. The charging controller according to claim 7, characterized in that: The charging unit includes a sixth transistor, a seventh transistor, an eighteenth resistor, a nineteenth resistor, a twentieth resistor, a twenty-first resistor, and a sixth diode; the discharging unit includes an eighth transistor, a ninth transistor, a sixteenth resistor, a seventeenth resistor, a twenty-second resistor, a twenty-third resistor, a twenty-fourth resistor, a seventh diode, an eighth diode, a voltage stabilizing diode, and a second capacitor; and the switching unit includes a tenth transistor, a third capacitor, and a fourth capacitor. The second end of the sixth diode is connected to the second voltage, the first end of the sixth diode is connected to the second electrode of the sixth transistor, the third end of the sixth transistor is connected to the second end of the seventh diode, the first end of the seventh diode is connected to the first end of the sixteenth resistor, the second end of the sixteenth resistor is connected to the second end of the eighth diode, the first end of the eighth diode is connected to the first end of the seventeenth resistor, the second end of the seventeenth resistor is connected to the first electrode of the tenth transistor, the second electrode of the tenth transistor is connected to the second power supply terminal of the charge controller, and the third electrode of the tenth transistor is connected to the third power supply terminal; A first end of the eighteenth resistor is connected to the charging control terminal of the main control module, a second end of the eighteenth resistor is connected to the first electrode of the seventh transistor, a third electrode of the seventh transistor is connected to the first electrode of the sixth transistor via the nineteenth resistor, a second electrode of the seventh transistor is grounded, a twentieth resistor is connected between the first electrode and the second electrode of the sixth transistor, and a twenty-first resistor is connected between the first electrode and the second electrode of the seventh transistor; a first electrode of the eighth transistor connected to the first end of the sixteenth resistor, a second electrode of the eighth transistor connected to the first electrode of the ninth transistor, a third electrode of the eighth transistor connected to the third power supply terminal, a first electrode of the ninth transistor connected to the first end of the seventeenth resistor, a second electrode of the ninth transistor connected to the third power supply terminal via the twenty-second resistor, and a twenty-third resistor connected between the first and third electrodes of the eighth transistor; The twenty-fourth resistor is connected between the first end of the seventeenth resistor and the third power supply terminal, the second capacitor is connected in parallel with the twenty-fourth resistor, the first end of the Zener diode is connected to the first end of the seventeenth resistor, and the second end of the Zener diode is connected to the third power supply terminal; The third capacitor and the fourth capacitor are sequentially connected in series between the second electrode and the third electrode of the tenth transistor.

9. The charge controller according to claim 1, wherein: The charging controller further includes a sampling module connected between the input terminal of the electric control module and the second power supply terminal; The charging controller further includes a power supply, which is connected to the main control module, the communication module and the charging detection module.

10. An electric vehicle, characterized in that: comprising a charge controller as claimed in any one of claims 1 to 9; The electric vehicle further includes a motor connected to the charging controller.