Electric vehicle charging control method, control circuit, charging device and storage medium
By detecting the DC input voltage and monitoring the charging current in the electric vehicle charging control method, the reduction of battery life and safety hazards caused by long-term charging are solved, and higher charging safety and battery protection effects are achieved.
Patent Information
- Application Number
- CN202411763313.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-03-04
AI Technical Summary
The prior art has problems such as low battery life and low safety due to long-term charging of the battery.
By detecting whether the charging device has obtained the DC input voltage, and after obtaining the stable DC input voltage, the power switch circuit is controlled to turn on to charge the vehicle battery. At the same time, the charging current is obtained through charging monitoring. When the charging current reaches the preset current value, the charging is turned off to avoid long-term charging.
It realizes pre-charging protection, improves charging safety, and avoids battery explosion, damage to battery life and waste of power caused by long-term charging after the battery is fully charged.
Smart Images

Figure CN119550860A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent charging control technology, and in particular to an electric vehicle charging control method, a control circuit, a charging device and a storage medium. Background Art
[0002] Electric motorcycles have been fully integrated into people's lives. With their advantages of being small, convenient and cost-effective, they have occupied a large part of the market, especially in rural areas. However, despite repeated emphasis on the use and parking of electric motorcycles and the requirement to charge them in a standardized manner, there are always users who do not follow the requirements and regulations, resulting in frequent accidents of electric motorcycles catching fire.
[0003] The main reasons for electric motorcycle fires are: directly charging the battery of the electric motorcycle with 220V mains electricity or taking the battery home for charging, ignoring whether the battery is fully charged until needed, causing the battery to remain fully charged for a long time, and there is a long continuous charging process. This long-term charging will cause the battery to heat up for a long time, seriously shortening the battery life, causing the battery to be easily charged and exploded, and catch fire. In addition, long-term charging can also easily cause short circuits and fires due to external factors, such as heavy rain. It can be seen that continuous charging due to irregular charging will reduce battery life and battery fires, and have low safety problems. Summary of the invention
[0004] The present application provides an electric vehicle charging control method, a control circuit, a charging device and a storage medium to solve the technical problems of the prior art that long-term battery charging leads to reduced battery life and battery fire, as well as low safety.
[0005] According to one aspect of an embodiment of the present application, the present application provides an electric vehicle charging control method, the method comprising: detecting whether a charging device obtains a DC input voltage; if the charging device obtains the DC input voltage, the charging device starts charging the vehicle battery; monitoring the charging process to obtain the charging current, and if the charging current reaches a preset current value, the charging device shuts off the charging.
[0006] Optionally, the detecting whether the charging device obtains a DC input voltage includes: powering on the charging device to obtain AC power, converting the AC power to obtain the DC input voltage; detecting the DC input voltage through an input voltage detection circuit of the charging device; if the detected DC input voltage meets a preset voltage safety range, inputting the DC input voltage into the controller.
[0007] Optionally, the charging process is monitored to obtain the charging current, and if the charging current reaches a preset current value, the charging device shuts down the charging, including: monitoring the charging through a controller of the charging device to obtain a DC output voltage, and determining the charging current based on the DC output voltage; comparing the charging current with a preset current value to determine whether the charging current has reached the preset current value; if the charging current has reached the preset current value, it is determined that the battery has reached a full charge state, and the controller is used to control the power switch circuit in the charging device to disconnect.
[0008] Optionally, the DC output voltage includes a first DC output voltage at the front end of the current measuring resistor and a second DC output voltage at the rear end. The charging monitoring is performed through the controller of the charging device to obtain the DC output voltage, and the charging current is determined according to the DC output voltage, including: detecting the first DC output voltage at the front end of the current measuring resistor through the first output voltage detection circuit of the charging device; detecting the second DC output voltage at the rear end of the current measuring resistor through the second output voltage detection circuit of the charging device; the controller obtains the first DC output voltage, the second DC output voltage and the resistance value of the current measuring resistor; and determines the charging current based on the first DC output voltage, the second DC output voltage and the resistance value of the current measuring resistor.
[0009] Optionally, during the charging process, the charging current is obtained, and if the charging current reaches a preset current value, the charging device shuts down the charging. The method further includes: timing when the power switch circuit is disconnected to determine whether the accumulated time reaches the preset time; if the accumulated time reaches the preset time, detecting the second DC output voltage based on the second output voltage detection circuit; and issuing the early warning prompt if the second DC output voltage is detected.
[0010] Optionally, after powering on the charging device to obtain AC power, converting the AC power to obtain the DC input voltage, the method further includes: obtaining the DC input voltage through a DC power conversion circuit of the charging device; converting the DC input voltage through a DC power conversion circuit to obtain a working voltage of the controller, and inputting the working voltage into the controller.
[0011] According to another aspect of the embodiment of the present application, the present application provides an electric vehicle charging control circuit, which is applicable to the electric vehicle charging control method, including an inverter circuit, an input voltage detection circuit, a controller, a power switch circuit, a first output voltage detection circuit and a second output voltage detection circuit; the inverter circuit is connected to the input voltage detection circuit and the power switch circuit, the controller is connected to the input voltage detection circuit, the power switch circuit, the first output voltage detection circuit and the second output voltage detection circuit, the power switch circuit is also connected to a current measuring resistor, the first output voltage detection circuit is connected to the input end of the current measuring resistor, the second output voltage detection circuit is connected to the output end of the current measuring resistor, and the output end of the current measuring resistor is connected to a vehicle battery.
[0012] Optionally, it also includes an early warning device and a DC power conversion circuit, the early warning device is connected to the controller, one end of the DC power conversion circuit is connected to the inverter circuit, and the other end is connected to the controller.
[0013] According to another aspect of an embodiment of the present application, the present application provides a charging device, which is used to connect a vehicle battery and a mains supply, and to charge the vehicle battery based on the electric vehicle charging control method.
[0014] According to another aspect of an embodiment of the present application, the present application provides a storage medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the steps of the electric vehicle charging control method.
[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:
[0016] The electric vehicle charging control method provided in the present application is applicable to a charging device for charging an electric vehicle. The method first detects whether the charging device obtains a DC input voltage. When the DC input voltage is obtained and it is determined that the DC input voltage is normally provided, the power switch circuit is controlled to turn on to charge the vehicle battery. This can achieve pre-charging protection and improve charging safety. The charging process is monitored by the controller of the charging device, and the charging current is collected and compared with a preset current value for analysis. When the charging current reaches the preset current value and the battery is full, the power switch circuit is controlled to disconnect and stop charging. This avoids battery explosion, battery life damage and power waste caused by long-term charging after the battery is full, thereby improving the safety of electric vehicle battery charging. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technology descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can also be obtained based on these drawings without paying creative labor.
[0018] Figure 1 A flowchart of an optional electric vehicle charging control method provided according to an embodiment of the present application;
[0019] Figure 2 A schematic diagram of an optional charging process flow according to an embodiment of the present application;
[0020] Figure 3 A schematic diagram of an optional charging monitoring and power-off control process provided according to an embodiment of the present application;
[0021] Figure 4 A circuit working principle diagram of an optional electric vehicle charging control circuit provided according to an embodiment of the present application;
[0022] Figure 5 A circuit diagram of an input voltage detection circuit provided according to an embodiment of the present application;
[0023] Figure 6 A circuit diagram of a power switch circuit provided according to an embodiment of the present application;
[0024] Figure 7 A circuit diagram of an optional output voltage detection circuit provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0026] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiments of the present application, an embodiment of an electric vehicle charging control method is provided.
[0027] like Figure 1 As shown, Figure 1A flow chart of an electric vehicle charging control method provided by an embodiment of the present invention. An electric vehicle charging control method comprises the following steps:
[0028] Step S102, detecting whether the charging device obtains a DC input voltage.
[0029] In this embodiment, the provided electric vehicle charging control method is applicable to the electric motorcycle intelligent charging scenario, and can be specifically applicable to a charging device for charging an electric motorcycle. The charging device is used as an intelligent charger for the electric motorcycle, and is connected to the battery of the electric motorcycle and the 220V mains to charge the battery. The following is an electric motorcycle as an example for explanation.
[0030] In this embodiment, when the battery of the electric motorcycle is connected to the charging device through the charging line, and the charging device is connected to the 220V mains, the charging device receives a battery charging request. Before charging, by first detecting the DC input voltage of the charging device, it can be determined whether the charging device can provide a stable DC charging voltage. Among them, the DC input voltage is the energy required for the normal operation of the charging device for charging, and can transmit electrical energy to the charging device to provide the charging device with a working voltage, and can be converted by the charging device and input into the battery. If the DC input voltage is unstable or insufficient, the charging device will not work properly, and may even be damaged, which may also cause damage to the battery of the electric motorcycle. Therefore, before charging, pre-detecting the DC input voltage of the charging device can ensure the stability of the DC input voltage and achieve pre-charging protection.
[0031] Step S104: If the charging device obtains the DC input voltage, the charging device starts charging the vehicle battery.
[0032] In this embodiment, when it is detected that the charging device has received the DC input voltage, it indicates that the charging device can work normally, and the charging device will start to charge the battery of the electric motorcycle.
[0033] Step S106, monitoring the charging process to obtain the charging current, and if the charging current reaches a preset current value, the charging device shuts down the charging.
[0034] In this embodiment, during the entire charging process, the charging device will perform full-process charging monitoring to ensure that charging is stopped in time after the battery is fully charged, so as to avoid continuous charging of the battery for a long time when it is already fully charged, causing high temperature of the battery, causing battery damage, posing a safety hazard, and avoiding power loss.
[0035] Furthermore, during the charging monitoring process, the charging device can obtain the charging current of the battery in real time, and compare the charging current with the preset current value. When the charging current reaches the preset current value, it means that the battery is fully charged, and the charging device can disconnect and continue charging, realizing automatic charging disconnection, so as to avoid the battery being damaged by continuing to charge for a long time after being fully charged, and in severe cases, causing the battery to catch fire. If the charging current does not reach the preset current value, it means that the battery is not fully charged, and the charging state should be kept on.
[0036] In the embodiment of the present invention, by first detecting whether the charging device obtains the DC input voltage, when the DC input voltage is obtained and it is determined that the DC input voltage is normally provided, the power switch circuit is controlled to start charging the vehicle battery, so that pre-charging protection can be achieved and charging safety can be improved. The controller of the charging device monitors the charging process, collects the charging current, and compares and analyzes it with the preset current value. When the charging current reaches the preset current value and the battery is full, the power switch circuit is controlled to disconnect and stop charging, so as to avoid battery explosion, battery life damage and power waste caused by long-term charging after the battery is full, thereby improving the safety of electric vehicle battery charging.
[0037] In an optional embodiment, the above step S102: detecting whether the charging device obtains a DC input voltage specifically includes:
[0038] S1021, powering on the charging device to obtain alternating current, and converting the alternating current to obtain the direct current input voltage;
[0039] S1022, detecting the DC input voltage by an input voltage detection circuit of the charging device;
[0040] S1023: If the detected DC input voltage satisfies a preset voltage safety range, inputting the DC input voltage into the controller.
[0041] In this embodiment, the charging device includes an inverter circuit (AC / DC high voltage circuit), which may also be called an inverter, and also includes an input voltage detection circuit, a controller (Microcontroller Unit, MCU), and the like.
[0042] Combination Figure 2 As shown, Figure 2 The following is a schematic diagram of an optional charging process according to an embodiment of the present application. When the charging device is powered on, the mains power of 220V will be input into the AC / DC high voltage circuit, and the AC / DC high voltage circuit will convert the AC power into DC power, thereby obtaining the above DC input voltage (DC voltage).
[0043] Furthermore, an input voltage detection circuit can be connected to the rear end of the AC / DC high voltage circuit. Through the input voltage detection circuit, the DC voltage outputted by the AC / DC high voltage circuit can be obtained at the rear end to determine whether the DC voltage exists, and if it exists, it can be determined whether the current DC input voltage is within the preset voltage safety range. Among them, the preset voltage safety range can be set according to the usual charging voltage of the electric motorcycle. If the voltage is too high or too low, the charging device can temporarily not start the battery charging, and start the battery charging when it is within the preset voltage safety range to prevent the charging device from being damaged or causing safety accidents due to abnormal voltage, and affecting the battery life and safety of the electric motorcycle. For example, the preset voltage safety range is 36 to 48V, and the converted DC input voltage is detected to be 38V, indicating that charging can be started. When it is detected that the DC voltage meets the preset voltage safety range, it means that the charging device can obtain a stable working DC voltage for charging. The input voltage detection circuit inputs the detected DC voltage into the MCU. After the MCU receives the DC voltage, it starts to control the charging device to start battery charging.
[0044] In this embodiment, by converting AC power after the charging device is powered on to obtain a DC input voltage, the required working power supply can be provided for the charging device and charging energy can be provided for the battery. By detecting the DC input voltage before charging the battery, the MCU is started and the charging device starts charging the battery under the premise that the DC input voltage meets the preset voltage safety range, which can prevent equipment damage or safety accidents caused by abnormal voltage. In addition, the battery charging process requires stable voltage and current. Through DC input voltage detection, the charging device can ensure that the voltage and current provided to the battery are within a safe and reasonable range, thereby protecting the battery from damage.
[0045] In an optional embodiment, the above step S106: monitoring the charging process to obtain the charging current, and if the charging current reaches a preset current value, the charging device shuts off the charging, specifically includes:
[0046] S1061, performing charging monitoring through a controller of the charging device to obtain a DC output voltage, and determining the charging current according to the DC output voltage;
[0047] S1062, comparing the charging current with a preset current value to determine whether the charging current reaches the preset current value;
[0048] S1063: If the charging current reaches the preset current value, it is determined that the battery is fully charged, and the controller controls the power switch circuit in the charging device to disconnect.
[0049] In this embodiment, the DC output voltage output when charging the battery can be obtained by the MCU in the charging device, and the charging current can be determined according to the relationship between voltage, resistance and current. Then, the charging current can be compared with the preset current value by the comparator in the MCU, and the battery charging capacity can be determined according to the size of the charging current. When the charging current reaches the preset current value, it means that the battery is full at this time, and the MCU will control the power switch circuit to disconnect, thereby disconnecting the battery from continuing to charge.
[0050] In some examples, the power switch circuit may include a switch transistor and a MOS tube, and the switch transistor and the MOS tube are in a closed state when the default high level is reached. When the MCU controls the power switch circuit to charge, the MCU sends a low level to the power switch circuit, at which time the switch transistor and the MOS tube are turned on, and a DC output voltage is output to the battery; when it is detected that the battery is fully charged, the MCU controls the power switch circuit to stop charging, and the MCU sends a high level to the power switch circuit, at which time the switch transistor and the MOS tube are disconnected, and the voltage output to the battery is stopped.
[0051] In this embodiment, by detecting the charging process, the DC output voltage is obtained in real time, the charging current is determined according to the DC output voltage, and the battery charging capacity is obtained by analyzing the charging current and the preset current value. When the battery is fully charged, the power switch circuit is promptly controlled to disconnect, thereby stopping charging, avoiding battery explosion, battery life damage and power waste caused by long-term charging after the battery is fully charged, thereby improving the safety of electric vehicle battery charging.
[0052] In an optional embodiment, the above step S1061: performing charging monitoring through the controller of the charging device to obtain the DC output voltage, and determining the charging current according to the DC output voltage specifically includes:
[0053] Detecting the first DC output voltage at the front end of the current measuring resistor by a first output voltage detection circuit of the charging device;
[0054] Detecting the second DC output voltage at the rear end of the current measuring resistor by a second output voltage detection circuit of the charging device;
[0055] The controller obtains the first DC output voltage, the second DC output voltage and the resistance value of the current measuring resistor;
[0056] The charging current is determined based on the first DC output voltage, the second DC output voltage, and a resistance value of the current measuring resistor.
[0057] In this embodiment, the DC output voltage includes a first DC output voltage at the front end of the current measuring resistor and a second DC output voltage at the rear end, wherein the current measuring resistor is also called a current detection resistor or a sampling resistor, and its main function is to detect the current in the circuit. By connecting the current measuring resistor in series in the circuit, when the power switch circuit is turned on and charging begins, a current will pass through the current measuring resistor, and a voltage drop proportional to the current will be generated at both ends of the current measuring resistor. By measuring the voltage drop at both ends and combining the resistance value of the current measuring resistor, the charging current output in the circuit can be calculated. In battery management systems, motor control, power supplies, and overload protection circuits, current measuring resistors can play this key role. In this embodiment, a current measuring resistor with a smaller resistance value can be selected, and the common range is from milliohms to tens of milliohms. The small resistance value helps to minimize the voltage drop generated in the circuit, thereby reducing power consumption.
[0058] Combination Figure 3 As shown, Figure 3 A schematic diagram of an optional charging monitoring and power-off control process provided according to an embodiment of the present application. In this embodiment, in order to collect the voltage drop formed at both ends of the current measuring resistor, the charging device can add a first output voltage detection circuit at the front end of the current measuring resistor to detect the first DC output voltage at the front end of the current measuring resistor, and add a second output voltage detection circuit at the rear end of the current measuring resistor to detect the second DC output voltage at the rear end of the current measuring resistor. The detected first DC output voltage and the second DC output voltage are input to the MCU, and the voltage difference between the first DC output voltage at the front end of the current measuring resistor and the second DC output voltage at the rear end is calculated by the MCU to obtain the voltage drop of the current measuring resistor. The MCU can calculate the charging current based on the voltage drop and the resistance value of the current measuring resistor. The specific calculation formula is shown in the following formula (1):
[0059] I 充电 =(Vout1-Vout) / R (1)
[0060] Among them, I 充电 represents the charging current, Vout1 represents the first DC output voltage, Vout represents the second DC output voltage, and R represents the resistance value of the current measuring resistor.
[0061] Specifically, when Icharging>0 (preset current value), it means that the first DC output voltage is greater than the second DC output voltage, the battery is not fully charged, and the battery continues to be charged; when Icharging=0, it means that the first DC output voltage is equal to the second DC output voltage, and the battery is fully charged.
[0062] In this embodiment, by adding a current measuring resistor, adding a first output voltage detection circuit and a second output voltage detection circuit at the front end and the rear end of the current measuring resistor to accurately collect the first DC output voltage at the front end of the current measuring resistor and the second DC output voltage at the rear end and input them into the MCU, the charging current of the battery can be accurately calculated by the MCU, which can not only meet the high-precision requirements of the charging device for current measurement, but also the MCU can monitor the charging status of the battery in real time and accurately, and promptly control the power switch circuit to disconnect and stop charging when the battery is full, so as to avoid damage to the battery, provide safety and reduce power waste. In addition, by adding a current measuring resistor and two output voltage detection circuits, it is more conducive to cost saving than by adding an independent detection device, such as a Hall sensor.
[0063] In an optional embodiment, in the above step S106: monitoring the charging process to obtain the charging current, if the charging current reaches a preset current value, the charging device shuts off the charging, the method further includes:
[0064] S108, timing when the power switch circuit is disconnected, and determining whether the accumulated time reaches the preset time;
[0065] S110, if the accumulated time reaches the preset time, detecting the second DC output voltage based on the second output voltage detection circuit;
[0066] S112: If the second DC output voltage is detected, the warning prompt is issued.
[0067] In this embodiment, in order to detect whether the battery charging cable is unplugged after the battery is fully charged, timing can be performed after the charging is disconnected, and the second DC output voltage can continue to be detected through the second output voltage detection circuit after a preset period of time, and it is determined whether the plug of the battery connection cable is unplugged based on the detection of the second DC output voltage.
[0068] Combination Figure 3 As shown, in some examples, a timer may be provided inside the MCU, and timing is performed by the timer. After the accumulated time of the timer reaches a preset time, feedback may be given to the MCU. At this time, the MCU sends a control instruction to the second output voltage detection circuit, and the second DC output voltage is detected again by the second output voltage detection circuit. For example, timing is started by the timer in the MCU, and when the accumulated time T 满充When the preset time reaches 300 seconds, the MCU controls the second output voltage detection circuit to detect the second DC output voltage again. If the plug of the charging device is unplugged after the charging is disconnected, the second output voltage detection circuit cannot collect the second DC output voltage. If the second output voltage detection circuit can still collect the voltage when it detects the second DC output voltage again, it means that the plug of the charging device is not unplugged. At this time, the MCU can control the buzzer to issue a warning prompt in time to remind the user that the battery is full and unplug the plug in time to avoid risks.
[0069] Furthermore, if the second DC output voltage can still be detected, it means that the plug of the battery charging cable is not unplugged, and there is a risk of damaging the battery. In this case, an early warning prompt will be issued to remind the user to unplug the plug in time to avoid the danger of continuous heating of the battery, damage to the battery life, or even battery explosion and fire caused by continuing to charge for a long time when the battery is fully charged, for example: a sound prompt is issued through a buzzer. The early warning prompt time or the number of prompts can be set, for example: the prompt time is 2 minutes and the number of prompts is 5 times.
[0070] In some examples, in order to avoid the situation where there are too many electric motorcycles charging and multiple warning prompts occur at the same time, and the user cannot know whether his electric motorcycle is fully charged, personalized information can be added to the warning prompt for prompting, including adding the serial number of the charging device to the warning prompt, and using a prompt sound and a voice of the charging device serial number to prompt, for example: 3 seconds after the prompt sound is issued, a voice prompt is issued, and the prompt content is "The battery of charging device No. 5 is fully charged." It can also include adding a user name to the warning prompt, and using a prompt sound and a voice of the user name to prompt, for example: 3 seconds after the prompt sound is issued, a voice prompt is issued, and the prompt content is "User aa, your battery is fully charged." Of course, there can be other warning prompt methods, which are not listed here one by one.
[0071] In this embodiment, by starting the timing after the power switch circuit is disconnected, and collecting the second DC output voltage again through the second output voltage detection circuit after the preset time is reached, it is possible to determine whether the charging head is unplugged, and when the second DC output voltage is collected, an early warning prompt is given to remind the user to unplug the plug in time, thereby avoiding safety hazards caused by the charging head not being unplugged.
[0072] In an optional embodiment, after the above step S1021: powering on the charging device to obtain AC power, converting the AC power to obtain the DC input voltage, the method further includes:
[0073] Acquiring the DC input voltage through a DC power conversion circuit of the charging device;
[0074] The DC input voltage is converted by a DC power conversion circuit to obtain a working voltage of the controller, and the working voltage is input into the controller.
[0075] In this embodiment, after the charging device is connected to the 220V mains power, it can perform AC-DC conversion through an inverter, and then obtain a DC input voltage through a DC power conversion circuit, perform DC conversion through the DC power conversion circuit to obtain the MCU's operating voltage VCCIO, and input VCCIO to the MCU to power the MCU, for example, convert it into the 3.3V voltage required for the MCU to operate.
[0076] In this embodiment, the DC input voltage is converted to DC by the DC power conversion circuit, and the DC power conversion circuit can convert the input DC voltage into the specific working voltage required by the controller to ensure that the controller can work normally, and the conversion process can be accurately adjusted according to the needs of the controller to provide a suitable voltage output. The converted DC voltage has higher stability and less fluctuation, which helps the controller maintain stable performance in a complex environment, and the stable voltage output can also extend the service life of the controller and reduce failures caused by voltage fluctuations.
[0077] In summary, in the embodiment of the present invention, by detecting the DC input voltage before charging, determining that the DC input voltage is stably provided and then controlling the power switch circuit to start charging the vehicle battery, it is possible to achieve pre-charging protection, improve charging safety, and prevent equipment damage or safety accidents caused by voltage abnormalities. The battery charging process requires stable voltage and current. By detecting the DC input voltage, the charging device can ensure that the voltage and current provided to the battery are within a safe and reasonable range, thereby protecting the battery from damage. Secondly, by detecting the charging process, the power switch circuit is promptly controlled to disconnect and stop charging when the battery is fully charged, avoiding long-term charging after the battery is fully charged, reducing damage to the battery, and avoiding safety hazards caused by maintaining long-term charging after the battery is fully charged, thereby improving the safety of battery charging. Furthermore, by adding a current measuring resistor, adding a first output voltage detection circuit and a second output voltage detection circuit at the front and rear ends of the current measuring resistor to accurately collect the first DC output voltage at the front end of the current measuring resistor and the second DC output voltage at the rear end to input into the MCU, the charging current of the battery can be accurately calculated by the MCU, which can not only meet the high-precision requirements of the charging device for current measurement, but also the MCU can monitor the charging state of the battery in real time and accurately, and control the power switch circuit to disconnect and stop charging in time when the battery is full, so as to avoid damage to the battery, provide safety and reduce power waste. Finally, by detecting the second DC output voltage again after a certain period of time when the power switch circuit is disconnected to determine whether the charging head is unplugged, and giving an early warning prompt if it is not unplugged, the user is reminded to unplug the plug in time, which can avoid the safety hazards caused by the charging head not being unplugged. It can be seen that the present application realizes intelligent charging protection and alarm through layer-by-layer detection before, during and after charging, which can avoid battery explosion, battery life damage and power waste caused by the electric motorcycle continuing to charge for a long time in a full state, and improve the safety of electric vehicle battery charging.
[0078] According to another aspect of the embodiment of the present application, Figure 4 As shown, Figure 4 The following is a circuit working principle diagram of an optional electric vehicle charging control circuit provided according to an embodiment of the present application. An electric vehicle charging control circuit, applicable to the electric vehicle charging control method described in any of the above embodiments, comprises an inverter circuit 1, an input voltage detection circuit 2, a controller 3, a power switch circuit 4, a first output voltage detection circuit 5 and a second output voltage detection circuit 6;
[0079] The inverter circuit 1 is connected to the input voltage detection circuit 2 and the power switch circuit 4, the controller 3 is connected to the input voltage detection circuit 2, the power switch circuit 4, the first output voltage detection circuit 5 and the second output voltage detection circuit 6, the power switch circuit 4 is also connected to a current measuring resistor, the first output voltage detection circuit 5 is connected to the input end of the current measuring resistor, the second output voltage detection circuit 6 is connected to the output end of the current measuring resistor, and the output end of the current measuring resistor is connected to the vehicle battery.
[0080] In this embodiment, the provided electric vehicle charging control circuit may be disposed in the charging device described in each of the above embodiments to implement the electric vehicle charging control method described in each of the above embodiments.
[0081] The inverter circuit 1 (AC / DC circuit) is connected to the mains 220V through the power supply charging line, and is used to convert the mains 220V into the DC input voltage required for charging to charge the battery. The input voltage detection circuit 2 is used to detect the DC input voltage output by the inverter circuit 1 and input it into the controller 3 (MCU).
[0082] Among them, the controller 3 is used to control the operation of other circuits, including obtaining or comparing voltage and current, issuing control instructions, etc., for example: obtaining the DC voltage detected by the input voltage detection circuit 2, obtaining the first DC output voltage at the front end of the current measuring resistor detected by the first output voltage detection circuit 5, and the second DC output voltage at the rear end of the current measuring resistor detected by the second output voltage detection circuit 6, or inputting a high / low level to the power switch circuit 4 to control the power switch circuit 4 to be turned on / off, etc.
[0083] Among them, the power switch circuit 4 is used to turn on the circuit for charging, or turn off the circuit for power off. It is disconnected when the voltage is high by default, and turned on when the voltage is low. The first output voltage detection circuit 5 is used to detect the first DC output voltage at the input end of the current measuring resistor, and the second output voltage detection circuit 6 is used to detect the second DC output voltage at the output end of the current measuring resistor. The voltage difference is calculated based on the first DC output voltage and the second DC output voltage. The charging current of the battery can be calculated by combining the resistance value of the current measuring resistor and the voltage difference. The current measuring resistor is used to detect the charging current in the circuit, and the output end of the current measuring resistor can be connected to a charging line output port, and the charging line output port is connected to the battery through the charging line for charging the battery.
[0084] In this embodiment, 220V AC power is connected to the inverter circuit 1, converted into a DC input voltage Vin by the inverter circuit 1 and input into the power switch circuit 4. The input voltage detection circuit 2 performs ADC detection of the DC input voltage Vin at the output end of the inverter circuit 1. After detecting the presence of Vin, it is input into the MCU, and then the MCU outputs a high level through a GPIO pin thereon to control the power switch circuit 4. The power switch circuit 4 is turned on according to the received Vin and the high level output by the MCU. After being turned on, it outputs the DC output voltage Vout1 required for charging to the current measuring resistor, and then outputs it through the charging line to charge the battery of the electric motorcycle.
[0085] Furthermore, during the charging process, ADC detection is performed through the first output voltage detection circuit 5 to collect Vout1 of the current measuring resistor input in real time. At the same time, ADC detection is performed through the second output voltage detection circuit 6 to collect Vout of the current measuring resistor output in real time, and Vout1 and Vout are input to the MCU, and the charging current I is calculated by the MCU. 充电 . When I 充电 >0, it means the battery is not full and continues to charge; when I 充电 =0, indicating that the battery is fully charged, the MCU sends a low level to the power switch circuit 4, controls the power switch circuit 4 to disconnect, thereby stopping the battery charging.
[0086] Furthermore, after charging stops, the MCU starts timing. After the set time, the MCU continues to detect Vout through the second output voltage detection circuit 6. If Vout can still be detected, it is determined that the charging head of the charger is not unplugged, and the MCU will control the buzzer through another GPIO pin to issue an alarm prompt.
[0087] In this embodiment, a power switch circuit 4 and a plurality of ADC detection circuits are added to the charging device, and the battery can be charged after intelligently judging that the provided DC input voltage is normal before charging; and after the battery is fully charged, the MCU actively controls the power switch circuit 4 to disconnect to automatically cut off charging. By using the control circuit provided in this embodiment in the charging device to charge an electric motorcycle, the safety of charging the electric motorcycle can be improved, and the battery life can be shortened due to continuous charging and heating for a long time after the battery is fully charged, and the battery can be prevented from exploding and catching fire due to continuous charging and heating for a long time after the battery is fully charged.
[0088] In some optional embodiments, combined with Figure 4 As shown, an electric vehicle charging control circuit also includes an early warning device 7 and a DC power conversion circuit 8, wherein the early warning device 7 is connected to the controller, and one end of the DC power conversion circuit 8 is connected to the inverter circuit 1 and the other end is connected to the controller 3.
[0089] In this embodiment, the warning device 7 can give a warning prompt to the user, including a buzzer, etc. After being fully charged, when it is determined that the charging plug is not unplugged, the MCU can promptly control the warning device 7 to give a warning prompt.
[0090] In this embodiment, the DC power conversion circuit 8 is a DC / DC conversion circuit, through which the DC / DC conversion circuit can convert the DC input voltage obtained by the AC / DC circuit into a DC voltage again to obtain the working voltage VCCIO required by the MCU, which can ensure the normal operation of the MCU, and the conversion process can be accurately adjusted according to the requirements of the controller 3 to provide a suitable voltage output. The converted DC voltage VCCIO has higher stability and less fluctuation, which helps the MCU maintain stable performance in a complex environment, and the stable voltage output can also extend the service life of the controller 3 and reduce failures caused by voltage fluctuations.
[0091] In some optional embodiments, combined with Figure 5 As shown, Figure 5 The circuit diagram of the input voltage detection circuit provided according to the embodiment of the present application is shown in FIG. The input voltage detection circuit 2 specifically includes a first resistor, a second resistor, a third resistor and a first capacitor, one end of the first resistor inputs a DC input voltage, and the other end is connected in series with the second resistor and connected to the controller 3, one end of the third resistor is connected between the first resistor and the second resistor, and the other end is grounded, and one end of the first capacitor is connected between the second capacitor and the MCU, and the other end is grounded.
[0092] Specifically, Figure 5 In the example, the first resistor is R1, the second resistor is R2, the third resistor is R3, the first capacitor is C1, and MCU_ADC_Vin is the input pin of the ADC on the MCU. Before charging the battery, it is detected whether the DC input voltage Vin exists. After the AC / DC circuit outputs Vin, a corresponding signal is generated after filtering, stabilizing, and shunting through the first resistor R1, the second resistor R2, the third resistor R3, and the first capacitor C1 in the input voltage detection circuit 2 and sent to the ADC input pin Pin of the MCU. The ADC inside the MCU will sample and convert the signal to obtain a digital value. By comparing the converted digital value with the set threshold, it can be determined whether the DC input voltage Vin exists. For example: if the digital value is greater than or equal to the set threshold, it is determined that the DC input voltage Vin exists; if it is less than the set threshold, it is determined that the DC input voltage Vin does not exist.
[0093] In this embodiment, after the charging device is connected to the mains and the battery, the DC input voltage Vin is first detected before charging, and the voltage output by the inverter circuit 1 is collected and processed by the input voltage detection circuit 2 and sent to the ADC detection Pin of the MCU. The MCU performs analysis and judgment to identify whether Vin exists, thereby achieving pre-charging protection, improving charging safety, and preventing equipment damage or safety accidents caused by abnormal voltage. The battery charging process requires stable voltage and current. Through DC input voltage detection, the charging device can ensure that the voltage and current provided to the battery are within a safe and reasonable range, thereby protecting the battery from damage.
[0094] In some optional embodiments, combined with Figure 6 As shown, Figure 6 The circuit diagram of the power switch circuit provided according to the embodiment of the present application is shown in FIG. The power switch circuit 4 specifically includes: a fourth resistor, a fifth resistor, a sixth resistor, a switch transistor and a MOS transistor, the fourth resistor is connected between the switch transistor base and the controller 3, the switch transistor collector is grounded, the emitter is connected to the gate of the MOS transistor, the drain of the MOS transistor is connected to the current measuring resistor, the source is connected to the inverter circuit 1, one end of the fifth resistor is connected to the switch transistor base, and the other end is connected to the working voltage, and one end of the sixth resistor is connected to the working voltage VCCIO, and the other end is connected to the gate of the MOS.
[0095] exist Figure 6 In the embodiment, the fourth resistor is R4, the fifth resistor is R5, and the sixth resistor is R6. In this embodiment, the connection or disconnection of the MOS tube is controlled by utilizing the switching characteristics of the switch triode, thereby realizing power supply and power failure of the battery. The MOS tube can be a P-channel MOS tube.
[0096] Among them, the fifth resistor R5 is used as a pull-up resistor, and the switch transistor is closed by default through the external pull-up resistor, and the battery is not powered by default. When MCU_GPIO outputs a low-level signal to the base of the switch transistor, the fourth resistor R4 is first used to limit the current, and the switch transistor is turned on, so that the G pole of the P-channel MOS tube is turned on after receiving the low-level signal, and Vin is output to Vout1, thereby charging the battery. Conversely, when MCU_GPIO outputs a high-level signal, the switch transistor is turned off, the P-channel MOS tube is disconnected, and the battery is stopped from being powered.
[0097] In this embodiment, by adding a power switch circuit 4, when the MCU obtains the DC input voltage, the switch transistor in the power switch circuit 4 is controlled to be turned on, and the MOS tube is turned on, so that the Vin obtained by the MOS tube is output to charge the battery, and the charging is monitored by the MCU. When it is detected that the battery is fully charged, the MCU controls the switch transistor and the MOS tube to be turned off, and the battery charging is stopped. The entire process realizes precise control of battery charging or power-off through the MCU and the power switch circuit 4, thereby ensuring that the battery is charged when needed and powered off in time when not needed, avoiding battery damage caused by overcharging or long-term discharge.
[0098] In some optional embodiments, combined with Figure 7 As shown, Figure 7 A circuit diagram of an optional output voltage detection circuit provided according to an embodiment of the present application. A first output voltage detection circuit 5 specifically includes a seventh resistor and a second capacitor, one end of the seventh resistor is connected to the input end of the current measuring resistor, and the other end is connected to the controller 3, one end of the second capacitor is connected to the controller 3, and the other end is grounded; a second output voltage detection circuit 6 specifically includes: an eighth resistor and a third capacitor, one end of the eighth resistor is connected to the output end of the current measuring resistor, and the other end is connected to the controller 3, one end of the third capacitor is connected to the controller 3, and the other end is grounded.
[0099] exist Figure 7 In the example, the current measuring resistor is RSI, the seventh resistor is R7, the eighth resistor is R8, the second capacitor is C2, and the third capacitor is C3. At the input end of the current measuring resistor RSI, after the power switch circuit 4 is turned on and outputs Vout1, the first output voltage acquisition circuit acquires Vout1, and after voltage stabilization and filtering through the seventh resistor R7 and the second capacitor C2, it is input to the MCU_ADC_Vout1 pin. At the output end of the measuring resistor, after Vout1 is current limited by the current measuring resistor RSI, a voltage drop is generated between the input end and the output end, and Vout is acquired by the second output voltage acquisition circuit, and after voltage stabilization and filtering through the eighth resistor R8 and the third capacitor C3, it is input to the MCU_ADC_Vout pin. Finally, the MCU calculates the voltage drop according to the voltage input from the MCU_ADC_Vout1 pin and the MCU_ADC_Vout pin, determines the charging current according to the resistance value of the current measuring resistor RSI, and determines whether the battery is fully charged according to the size of the charging current. When I 充电 >0, continue to charge the battery; I 充电 =0, indicating that the battery is fully charged. After the MCU determines that it is fully charged, it outputs a high level through the GPIO, disconnects the MOS tube, and stops charging the battery.
[0100] Furthermore, when the MCU has detected that the battery is fully charged and has cut off the power supply, the MCU can start timing. When the preset time is reached, the MCU controls the second output voltage detection circuit 6 to detect Vout again. When it is detected that there is still voltage on Vout, it is determined that the battery charging head has not been unplugged and there is a risk. The MCU controls the buzzer through the GPIO to sound an alarm to remind the user that the battery is fully charged.
[0101] In this embodiment, by adding the first output voltage detection circuit 5 and the second output voltage detection circuit 6 to the circuit, ADC sampling can be performed on the input and output ends of the current measuring resistor RSI, so that the MCU can analyze and judge the battery charging power. At the same time, after the power is cut off, Vout can be detected again by the second output voltage detection circuit 6, and it can be judged whether the battery charging head is unplugged according to the situation of Vout detected again by the second output voltage detection circuit 6. If it is not unplugged, the MCU controls the alarm to sound an alarm. Through layers of intelligent protection and alarms, the safety of electric motorcycle charging can be improved.
[0102] According to another aspect of the embodiments of the present application, a charging device is provided, the charging device is used to connect a vehicle battery and a mains power supply, and to charge the vehicle battery based on the electric vehicle charging control method described in any of the above embodiments. The electric vehicle charging control circuit described in the above embodiments is placed in the charging device, and the charging device can implement the various embodiments of the above electric vehicle charging control method and achieve the corresponding technical effects, which will not be repeated here.
[0103] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps of the electric vehicle charging control method in any of the above embodiments.
[0104] Optionally, in an embodiment of the present application, the storage medium is configured to store program codes for the processor to perform the following steps:
[0105] Step S102, detecting whether the charging device obtains a DC input voltage;
[0106] Step S104, if the charging device obtains the DC input voltage, the charging device starts charging the vehicle battery;
[0107] Step S106, monitoring the charging process to obtain the charging current, and if the charging current reaches a preset current value, the charging device shuts down the charging.
[0108] Optionally, the specific examples in this embodiment can refer to the examples described in the above embodiments, and this embodiment will not be repeated here. And when the embodiments of this application are specifically implemented, they can refer to the above embodiments and have corresponding technical effects.
[0109] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0110] It should be noted that the above-mentioned storage medium may include a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. It may also include various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0111] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0112] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0113] Those of ordinary skill in the art will appreciate that the algorithmic steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0114] In the embodiments provided in the present application, it should be understood that the methods disclosed above can be implemented in other ways. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0115] If the functions of the electric vehicle charging control method or charging device in the above-mentioned embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application.
[0116] It should be noted that, in this article, relational terms such as first, second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms include, include or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0117] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for controlling charging of an electric vehicle, characterized in that: The method comprises: Detecting whether the charging device obtains a DC input voltage; If the charging device obtains the DC input voltage, the charging device starts charging the vehicle battery; The charging process is monitored to obtain the charging current. If the charging current reaches a preset current value, the charging device shuts off the charging.
2. The electric vehicle charging control method according to claim 1, characterized in that: The detecting whether the charging device obtains a DC input voltage comprises: Powering on the charging device to obtain alternating current, and converting the alternating current to obtain the direct current input voltage; Detecting the DC input voltage by an input voltage detection circuit of the charging device; If the detected DC input voltage meets the preset voltage safety range, the DC input voltage is input into the controller.
3. The electric vehicle charging control method according to claim 1, characterized in that: The charging process is monitored to obtain the charging current, and if the charging current reaches a preset current value, the charging device shuts off the charging, including: Performing charging monitoring through a controller of the charging device to obtain a DC output voltage, and determining the charging current according to the DC output voltage; Comparing the charging current with a preset current value to determine whether the charging current reaches the preset current value; If the charging current reaches the preset current value, it is determined that the battery is fully charged, and the controller controls the power switch circuit in the charging device to be disconnected.
4. The electric vehicle charging control method according to claim 3, characterized in that: The DC output voltage includes a first DC output voltage at the front end of the current measuring resistor and a second DC output voltage at the rear end, and the charging monitoring is performed by the controller of the charging device to obtain the DC output voltage, and the charging current is determined according to the DC output voltage, including: Detecting the first DC output voltage at the front end of the current measuring resistor by a first output voltage detection circuit of the charging device; Detecting the second DC output voltage at the rear end of the current measuring resistor by a second output voltage detection circuit of the charging device; The controller obtains the first DC output voltage, the second DC output voltage and the resistance value of the current measuring resistor; The charging current is determined based on the first DC output voltage, the second DC output voltage, and a resistance value of the current measuring resistor.
5. The electric vehicle charging control method according to claim 4, characterized in that: After monitoring the charging process to obtain the charging current, and if the charging current reaches a preset current value, the charging device shuts off the charging, the method further includes: When the power switch circuit is disconnected, timing is performed to determine whether the accumulated time has reached the preset time; If the accumulated time reaches the preset time, detecting the second DC output voltage based on the second output voltage detection circuit; If the presence of the second DC output voltage is detected, the early warning prompt is issued.
6. The electric vehicle charging control method according to claim 2, characterized in that: After powering on the charging device to obtain alternating current, converting the alternating current to obtain the direct current input voltage, the method further includes: Acquiring the DC input voltage through a DC power conversion circuit of the charging device; The DC input voltage is converted by a DC power conversion circuit to obtain a working voltage of the controller, and the working voltage is input into the controller.
7. An electric vehicle charging control circuit, applicable to the electric vehicle charging control method according to any one of claims 1 to 6, characterized in that: It includes an inverter circuit, an input voltage detection circuit, a controller, a power switch circuit, a first output voltage detection circuit and a second output voltage detection circuit; The inverter circuit is connected to the input voltage detection circuit and the power switch circuit, the controller is connected to the input voltage detection circuit, the power switch circuit, the first output voltage detection circuit and the second output voltage detection circuit, the power switch circuit is also connected to a current measuring resistor, the first output voltage detection circuit is connected to the input end of the current measuring resistor, the second output voltage detection circuit is connected to the output end of the current measuring resistor, and the output end of the current measuring resistor is connected to the vehicle battery.
8. The electric vehicle charging control circuit according to claim 7, characterized in that: It also includes an early warning device and a DC power conversion circuit, wherein the early warning device is connected to the controller, and one end of the DC power conversion circuit is connected to the inverter circuit and the other end is connected to the controller.
9. A charging device, characterized in that: The charging device is used to connect a vehicle battery and a mains supply, and to charge the vehicle battery based on the electric vehicle charging control method according to any one of claims 1 to 6.
10. A storage medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the electric vehicle charging control method described in any one of claims 1 to 6.
Citation Information
Cited By
Battery charging abnormity intelligent early warning system and early warning method
CN120237756A
A battery charging abnormality intelligent early warning system and early warning method
CN120237756B