Battery anti-sparking control method and battery anti-sparking circuit
By using resistive and switching modules to detect current in the battery anti-sparking circuit and switching to a current-limiting circuit, the problems of complexity and high cost in anti-sparking control of electric two-wheeled vehicles are solved, achieving efficient anti-sparking effect and cost reduction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU BMSER TECH
- Filing Date
- 2025-05-28
- Publication Date
- 2026-07-21
AI Technical Summary
The existing anti-sparking control logic of electric two-wheelers is complex, resulting in high costs for battery anti-sparking.
The battery anti-sparking circuit includes first and second resistive modules, a switching module and a current sampling module. By detecting the current and controlling the on/off state of the switching module, it switches to a current-limiting loop to avoid sparking, simplifying the control logic and reducing costs.
It improves the anti-sparking response rate, simplifies the circuit control logic, and reduces the cost of battery anti-sparking.
Smart Images

Figure CN120422658B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery technology, and in particular to a battery anti-sparking control method and a battery anti-sparking circuit. Background Technology
[0002] With the development of the times and technology, electric two-wheelers have become an integral part of daily life, enriching travel options and modes of transportation.
[0003] Electric two-wheelers often require battery replacement due to daily use or battery aging. When the battery is plugged into the electric two-wheeler's power outlet, a large current is instantly generated, charging the capacitive load of the electric two-wheeler, which can cause the battery to spark. Therefore, the battery current must be limited when plugging the battery into the electric two-wheeler to prevent sparking.
[0004] However, in the existing technology, the anti-sparking control logic design of electric two-wheelers is complex, which also leads to a high cost of anti-sparking batteries. Summary of the Invention
[0005] This invention provides a battery anti-sparking control method and a battery anti-sparking circuit to reduce the cost required for battery anti-sparking.
[0006] According to one aspect of the present invention, a battery anti-sparking control method is provided, applied to a battery anti-sparking circuit, the battery anti-sparking circuit comprising: a first resistive module, a second resistive module, a first switching module, a second switching module, and a current sampling module; the battery anti-sparking control method comprising:
[0007] Turn on the first switch module;
[0008] The current in the branch where the first switch module is located is detected based on the current sampling module and the first resistive module to obtain the first current;
[0009] When the first current is less than the first preset current, the first switch module is turned off and the second switch module is turned on;
[0010] The current in the branch where the second switching module is located is detected based on the current sampling module, the first resistive module, and the second resistive module to obtain the second current;
[0011] When the second current is less than or equal to the second preset current, the first switch module remains off and the second switch module remains on.
[0012] When the second current is greater than the second preset current, the first switching module is re-energized.
[0013] Optionally, the battery anti-sparking control method further includes:
[0014] When the first current is greater than or equal to the first preset current, the first switch module remains on.
[0015] Optionally, the battery anti-sparking circuit further includes a control module; after keeping the first switch module off and the second switch module on when the second current is less than or equal to the second preset current, it further includes:
[0016] The duration for which the second current is less than or equal to the second preset current is timed to obtain the low current duration;
[0017] When the low current duration reaches the first preset duration, the control module enters a sleep state.
[0018] Optionally, after the control module enters a sleep state when the low current duration reaches a first preset duration, the following further steps are taken:
[0019] The second current is continuously detected based on the current sampling module, the first resistive module, and the second resistive module;
[0020] When the second current is greater than the second preset current, the control module exits the sleep state;
[0021] When the second current is less than or equal to the second preset current, the second current is re-detected.
[0022] Optionally, after the control module exits the sleep state when the second current is greater than the second preset current, it further includes:
[0023] The duration during which the second current is greater than the second preset current is timed to obtain the high current duration;
[0024] When the high current duration reaches the second preset duration, the first switching module is turned on.
[0025] Optionally, the battery anti-sparking circuit further includes a voltage sampling module; after the control module enters a sleep state, it also includes:
[0026] When the control module has been in a sleep state for a period of time that reaches a third preset duration, the battery voltage is detected by the voltage sampling module to obtain the battery voltage.
[0027] When the battery voltage is lower than a preset voltage, the user is prompted to charge the battery.
[0028] According to another aspect of the present invention, a battery anti-sparking circuit is also provided, the battery anti-sparking circuit comprising: a control module, a first resistive module, a second resistive module, a first switching module, a second switching module, and a current sampling module;
[0029] The first terminal of the first resistive module is connected to the negative terminal of the battery; the second terminal of the first resistive module is connected to the first switch module; the first switch module is also connected to the negative terminal of the electrical device; the first terminal of the second resistive module is connected to the second terminal of the first resistive module; the second terminal of the second resistive module is connected to the second switch module; the second switch module is also connected to the negative terminal of the electrical device; the first terminal of the current sampling module is connected to the first terminal of the first resistive module; the second terminal of the current sampling module is connected to the second terminal of the first resistive module; the second terminal of the current sampling module is also connected to the second terminal of the second resistive module; the third, fourth, and fifth terminals of the current sampling module are all connected to the control module; the first switch module and the second switch module are also connected to the control module; and the positive terminal of the battery is connected to the positive terminal of the electrical device.
[0030] The control module is used to execute the battery anti-sparking control method described in any of the above embodiments; the current sampling module is used to sample the current through the first resistive module and the second resistive module; the first switch module and the second switch module are used to control the on / off state of the circuit between the battery and the electrical device.
[0031] Optionally, the battery anti-sparking circuit also includes: a third resistive module;
[0032] The third resistive module is connected between the second switching module and the negative terminal of the electrical equipment.
[0033] Optionally, the battery anti-sparking circuit also includes: a voltage sampling module;
[0034] The first terminal of the voltage sampling module is connected to the positive terminal of the battery, the second terminal of the voltage sampling module is connected to the negative terminal of the battery, and the third terminal of the voltage sampling module is connected to the control module.
[0035] The voltage sampling module is used to collect the voltage of the battery.
[0036] Optionally, the current sampling module includes: a current sampling unit, a comparison unit, and a threshold setting unit;
[0037] The first end of the current sampling unit is connected to the first end of the first resistive module, the second end of the current sampling unit is connected to the second end of the first resistive module, the second end of the current sampling unit is also connected to the second end of the second resistive module, the third end of the current sampling unit is connected to the first end of the comparison unit and the control module, the second end of the comparison unit is connected to the first end of the threshold setting unit, the second end of the threshold setting unit is connected to the control module, and the third end of the comparison unit is connected to the control module.
[0038] The current sampling unit is used to sample current through the first resistive module and the second resistive module; the comparison unit is used to wake up the control module in a dormant state when the second current collected by the current sampling unit reaches the second preset current set by the threshold setting unit.
[0039] This invention, in its embodiment, detects the first current in the branch containing the first switching module based on a current sampling module and a first resistive module. When the first current is less than a first preset current, the first switching module is turned off and the second switching module is turned on. It also detects the second current in the branch containing the second switching module based on the current sampling module, the first resistive module, and the second resistive module, and keeps the first switching module off and the second switching module on when the second current is less than or equal to a second preset current. This invention controls the first and second switching modules by detecting the current in different power supply circuits of the battery. When the battery is in a static state, the second switching module is turned on to switch the battery to a current-limiting circuit. The control logic of the circuit is simple, requiring no complex calculations, which improves the anti-sparking response rate while reducing the cost required for battery anti-sparking.
[0040] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a schematic diagram of a battery anti-sparking circuit provided in an embodiment of the present invention;
[0043] Figure 2 This is a schematic diagram of another battery anti-sparking circuit provided in an embodiment of the present invention;
[0044] Figure 3 This is a flowchart of a battery anti-sparking control method provided in an embodiment of the present invention;
[0045] Figure 4 This is a flowchart of another battery anti-sparking control method provided in an embodiment of the present invention;
[0046] Figure 5 This is a flowchart of another battery anti-sparking control method provided in an embodiment of the present invention;
[0047] Figure 6 This is a flowchart of another battery anti-sparking control method provided in an embodiment of the present invention. Detailed Implementation
[0048] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0049] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0050] This invention provides a battery anti-sparking control method applicable to battery anti-sparking circuits. The battery anti-sparking circuit includes a control module for executing the battery anti-sparking control method provided in any embodiment of this invention. To facilitate understanding of the battery anti-sparking control method provided in this invention, the structure of the battery anti-sparking circuit using this method is first described.
[0051] Figure 1 This is a schematic diagram of a battery anti-sparking circuit provided in an embodiment of the present invention. (Refer to...) Figure 1The battery anti-sparking circuit includes: a control module 110, a first resistive module 120, a second resistive module 130, a first switch module 140, a second switch module 150, and a current sampling module 160.
[0052] The first terminal of the first resistive module 120 is connected to the negative terminal of the battery 10, and the second terminal of the first resistive module 120 is connected to the first switch module 140, which is also connected to the negative terminal of the electrical device 20. The first terminal of the second resistive module 130 is connected to the second terminal of the first resistive module 120, and the second terminal of the second resistive module 130 is connected to the second switch module 150, which is also connected to the negative terminal of the electrical device 20. The first terminal of the current sampling module 160 is connected to the first terminal of the first resistive module 120, and the second terminal of the current sampling module 160 is connected to the second terminal of the first resistive module 120. The second end of 60 is also connected to the second end of the second resistive module 130. The third, fourth, and fifth ends of the current sampling module 160 are all connected to the control module 110. The first switch module 140 and the second switch module 150 are also connected to the control module 110. The positive terminal of the battery 10 is connected to the positive terminal of the electrical device 20. The control module 110 is used to execute the battery anti-sparking control method provided in any of the above embodiments. The current sampling module 160 is used to sample the current through the first resistive module 120 and the second resistive module 130. The first switch module 140 and the second switch module 150 are used to control the on / off state of the circuit between the battery 10 and the electrical device 20.
[0053] The branch containing the first switch module 140 is the main circuit of the battery 10, while the branch containing the second switch module 150 and the second resistive module 130 is a current-limiting circuit. The current-limiting circuit limits the current between the battery 10 and the electrical device 20 when the battery 10 is connected to the electrical device 20, thereby preventing the battery from arcing. For example, the first resistive module 120 is composed of at least one first resistor R1, and the first resistors R1 can be connected in series and / or in parallel to form the first resistive module 120; similarly, the second resistive module 130 is composed of at least one second resistor R2, and the second resistors R2 can be connected in series and / or in parallel to form the second resistive module 130. The current sampling module 160 collects the voltage across the first resistive module 120, and by combining the collected voltage with the resistance of the first resistive module 120, the current in the branch containing the first switching module 140 can be obtained. Similarly, the current sampling module 160 collects the voltage across the first resistive module 120 and the second resistive module 130, and by combining the collected voltage with the resistances of the first resistive module 120 and the second resistive module 130, the current in the branch containing the second switching module 150 and the second resistive module 130 can be obtained. The current sampling module 160 can be an analog front-end chip in the battery management system. In practical applications, current detection using the analog front-end chip in the battery management system eliminates the need for an additional current detection device, thus reducing the cost of the battery anti-sparking circuit.
[0054] Figure 2 This is a schematic diagram of another battery anti-sparking circuit provided in an embodiment of the present invention. Optionally, based on the above embodiments, refer to... Figure 2 The battery anti-sparking circuit also includes: a third resistive module 170.
[0055] The third resistive module 170 is connected between the second switch module 150 and the negative terminal of the electrical device 20.
[0056] Specifically, in application, the resistance value of the third resistive module 170 is greater than that of the second resistive module 130. When the third resistive module 170 is set in the battery anti-sparking circuit, the third resistive module 170 is used to limit the current in the branch where the second switching module 150 is located, while the second resistive module 130 is used to sample the current in the branch where the second switching module 150 is located. For example, the third resistive module 170 is composed of at least one third resistor R3, and the third resistors R3 can be connected in series and / or in parallel to form the third resistive module 170.
[0057] Based on the above embodiments, optionally, refer to... Figure 2 The battery anti-sparking circuit also includes a voltage sampling module. 180
[0058] The first terminal of the voltage sampling module 180 is connected to the positive terminal of the battery 10, the second terminal of the voltage sampling module 180 is connected to the negative terminal of the battery 10, and the third terminal of the voltage sampling module 180 is connected to the control module 110; the voltage sampling module 180 is used to collect the voltage of the battery 10.
[0059] The voltage sampling module 180 detects the voltage of the battery 10. The control module 110 acquires the voltage detected by the voltage sampling module 180. When the voltage of the battery 10 is lower than a preset voltage, the control module 110 prompts the user to charge the battery 10. The prompt from the control module 110 can be either a message sent to the user terminal or an audible and visual alarm. Optionally, when the prompt from the control module 110 is a message sent to the user terminal, the battery anti-sparking circuit may also include a communication module; when the prompt from the control module 110 is an audible and visual alarm, the battery anti-sparking circuit may also include an audible and visual alarm module.
[0060] Based on the above embodiments, optionally, refer to... Figure 2 The current sampling module 160 includes a current sampling unit 161, a comparison unit 162, and a threshold setting unit 163.
[0061] The first end of the current sampling unit 161 is connected to the first end of the first resistive module 120, the second end of the current sampling unit 161 is connected to the second end of the first resistive module 120, and the second end of the current sampling unit 161 is also connected to the second end of the second resistive module 130. The third end of the current sampling unit 161 is connected to the first end of the comparison unit 162 and the control module 110, respectively. The second end of the comparison unit 162 is connected to the first end of the threshold setting unit 163, the second end of the threshold setting unit 163 is connected to the control module 110, and the third end of the comparison unit 162 is connected to the control module 110. The current sampling unit 161 is used to sample the current through the first resistive module 120 and the second resistive module 130. The comparison unit 162 is used to wake up the control module 110, which is in a dormant state, when the second current collected by the current sampling unit 161 reaches the second preset current set by the threshold setting unit 163. For example, in practical applications, the controller in the battery management system can be reused as the control module 110 in this embodiment. Through the reuse of the controller in the battery management system, the battery anti-sparking circuit and the battery management system are linked together, and the battery anti-sparking circuit can control the hibernation or wake-up of the battery management system.
[0062] The second current is the current flowing through the first resistive module 120, the second resistive module 130, and the second switch module 150 when the second switch module 150 is closed. The second preset current is the current threshold for the control module 110 to exit the sleep state. In practical applications, this can be set according to actual needs; this embodiment does not impose any restrictions. When the second current collected by the current sampling unit 161 reaches the second preset current, the comparison unit 162 generates an interrupt signal. When the control module 110 receives the interrupt signal, the control module 110 exits the sleep state. The sleep control logic and wake-up control logic of the control module 110 are described in detail in the following embodiments of the battery anti-sparking control method; please refer to the following embodiments for details.
[0063] The battery anti-sparking control method provided in this embodiment of the invention can be executed by the control module 110 of the battery anti-sparking circuit provided in any of the above embodiments. Figure 3 This is a flowchart of a battery anti-sparking control method provided in an embodiment of the present invention. The following provides a detailed description of the battery anti-sparking control method executed by the control module 110. (Refer to...) Figure 3 The battery anti-sparking control method includes:
[0064] S110, Turn on the first switch module.
[0065] Specifically, since battery arcing occurs when the battery is connected to an electrical device, at the instant of connection, the battery pack charges the capacitive load in the device, causing a sudden high-current discharge from the battery, which leads to arcing between the battery and the device. Therefore, when the battery is in a static state (not connected to an electrical device) or already connected, there is no risk of arcing. Thus, regardless of whether the battery is in a static state or connected to an electrical device, arcing will not occur when the battery is discharged by the first switching module.
[0066] S120. The current in the branch where the first switching module is located is detected based on the current sampling module and the first resistive module to obtain the first current.
[0067] Specifically, when the first switch module is turned on, the battery is connected to the electrical device through the first switch module and the first resistive module. At this time, the current sampling module can obtain the battery's discharge current, i.e., the first current, by using the voltage across the first resistive module and the resistance of the first resistive module itself. The first current is the current when the battery discharges through the first switch module.
[0068] S130. Determine whether the first current is less than the first preset current; if yes, execute S140; otherwise, execute S90.
[0069] Specifically, a battery's state includes a resting state and an operating state, which can be determined by the magnitude of its discharge current. When the battery is discharging, the resistor is in the operating state; when the battery is not discharging, it is in the resting state. It should be noted that electrical devices can also be divided into two states: normal operating state and standby state. The battery discharges regardless of the device's state; that is, the battery is in the operating state when connected to the device. When the device is in standby state, the battery's discharge current is relatively weak. Therefore, relatively accurate detection of the battery's discharge current is necessary when the device is in standby state to correctly determine the battery's current state.
[0070] The first preset current is the minimum current value that the current detection module can detect through the first resistive module. In practical applications, the first preset current needs to be set lower than the current when the battery is connected to the electrical device for normal discharge. When the first current is less than the first preset current, the current obtained by the current detection module through the first resistive module will be distorted. Therefore, when the first current is greater than or equal to the first preset current, it indicates that the battery is in a working state; when the first current is less than the first preset current, it indicates that the battery may be in a static state or in a working state. Therefore, in this case, it is necessary to detect the battery's discharge current more accurately.
[0071] S140, Turn off the first switch module and turn on the second switch module.
[0072] Specifically, when the first current is less than the first preset current, the battery discharge circuit is switched to the branch containing the second switching module, allowing the battery to discharge through the current-limiting circuit. Since the branch containing the second switching module has a second resistive module, when switching to this branch, the first and second resistive modules are connected in series. The current detection module can detect the battery's discharge current through both the first and second resistive modules. Because the resistances of the first and second resistive modules are added together after series connection, the accuracy of current detection through both modules is greater than the accuracy through the first resistive module alone. The current detection module, through both the first and second resistive modules, can detect currents below the first preset current, i.e., accurately detect the battery's discharge current.
[0073] S150. The current in the branch where the second switch module is located is detected based on the current sampling module, the first resistive module, and the second resistive module to obtain the second current.
[0074] Specifically, when the first switch module is off and the second switch module is on, the battery is connected to the electrical device through the second switch module, the second resistive module, and the first resistive module. At this time, the current sampling module can obtain the battery's discharge current, i.e., the second current, by applying the voltage to the first and second resistive modules and the resistance value of the first and second resistive modules connected in series. The second current is the current when the battery discharges through the second switch module.
[0075] S160. Determine whether the second current is less than or equal to the second preset current; if yes, execute S170; if no, execute S180.
[0076] Specifically, the second preset current is the maximum self-discharge current of the battery in a static state. When the second current is less than or equal to the second preset current, it indicates that the battery is in a static state; when the second current is greater than the second preset current, it indicates that the battery is in a working state, and since the electrical equipment is in a standby state, the battery's discharge current is weak.
[0077] S170, Keep the first switch module off and the second switch module on.
[0078] Specifically, when the battery is in a static state, the second switch module is turned on and the first switch module is turned off, so as to maintain the battery's discharge circuit in the current-limiting circuit, that is, the branch where the second switch module is located, thereby limiting the battery's discharge current when the battery is connected to electrical equipment, and thus preventing arcing.
[0079] S180, Reconnect the first switch module.
[0080] Specifically, when the battery is in operation, the first switch module is turned on again to switch the battery's discharge circuit to the main circuit, i.e., the branch where the first switch module is located. Since the branch where the second switch module is located has a second resistive module connected in series, the impedance of the branch where the second switch module is located is greater than the impedance of the branch where the first switch module is located. When the first switch module is turned on, the branch where the second switch module is located is short-circuited by the branch where the first switch module is located.
[0081] This invention, in its embodiment, detects the first current in the branch containing the first switching module based on a current sampling module and a first resistive module. When the first current is less than a first preset current, the first switching module is turned off and the second switching module is turned on. It also detects the second current in the branch containing the second switching module based on the current sampling module, the first resistive module, and the second resistive module, and keeps the first switching module off and the second switching module on when the second current is less than or equal to a second preset current. This invention controls the first and second switching modules by detecting the current in different power supply circuits of the battery. When the battery is in a static state, the second switching module is turned on to switch the battery to a current-limiting circuit. The control logic of the circuit is simple, requiring no complex calculations, which improves the anti-sparking response rate while reducing the cost required for battery anti-sparking.
[0082] Based on the above embodiments, optionally, refer to... Figure 3 It also includes:
[0083] S190, Keep the first switch module on.
[0084] Specifically, when the first current is greater than or equal to the first preset current, it indicates that the battery is in working condition and the electrical equipment is in normal working condition, and the first switch module is kept on at this time.
[0085] Figure 4 This is a flowchart of another battery anti-sparking control method provided by an embodiment of the present invention. Optionally, based on the above embodiments, the battery anti-sparking circuit further includes a control module. (Refer to...) Figure 4 After keeping the first switch module off and the second switch module on when the second current is less than or equal to the second preset current, the following steps are also included:
[0086] S171. The duration for which the second current is less than or equal to the second preset current is timed to obtain the low current duration.
[0087] Specifically, the second preset current is the maximum self-discharge current of the battery in its resting state. The battery's discharge current reflects its state. When the second current is less than or equal to the second preset current, the battery is in a resting state. The duration of this resting state can be determined by timing the duration of the low current; in other words, the duration of the low current essentially characterizes the duration of the battery's resting state. For example, the timing of the low current duration can be achieved using a timer.
[0088] S172. When the low current duration reaches the first preset duration, the control module enters a sleep state.
[0089] Specifically, the first preset duration is a pre-set trigger duration for the control module to enter a sleep state. The control module includes a normal state and a sleep state. When the control module enters a sleep state, it stops processing data, shuts down all or part of its internal registers and computing units, and reduces its power consumption.
[0090] Figure 5 This is a flowchart of another battery anti-sparking control method provided by an embodiment of the present invention. Optionally, based on the above embodiments, refer to... Figure 5 After the control module enters sleep mode when the low current duration reaches the first preset duration, it also includes:
[0091] S173, continuously detect the second current based on the current sampling module, the first resistive module and the second resistive module.
[0092] Specifically, when the first switch module is off and the second switch module is on, the battery is connected to the electrical device through the second switch module, the second resistive module, and the first resistive module. The current sampling module can obtain the second current by applying the voltage to the first and second resistive modules and the resistance value of the first and second resistive modules connected in series.
[0093] S174. Determine whether the second current is greater than the second preset current; if yes, execute S175; if no, execute S173.
[0094] Specifically, the second preset current is the maximum self-discharge current of the battery in a static state. When the second current is less than or equal to the second preset current, it indicates that the battery is still in a static state; when the second current is greater than the second preset current, it indicates that the battery has entered the working state.
[0095] S175, The control module exits hibernation mode.
[0096] For example, when the battery enters the working state, that is, when the second current is greater than the second preset current, the current sampling module outputs an interrupt signal, and the control module exits the sleep state and enters the working state according to the interrupt signal.
[0097] Based on the above embodiments, optionally, refer to... Figure 5 After the control module exits the sleep state when the second current is greater than the second preset current, it also includes:
[0098] S176. The duration for which the second current is greater than the second preset current is timed to obtain the high current duration.
[0099] Specifically, when a battery is connected to an electrical device, the capacitive load in the device needs a certain amount of time to charge. Therefore, when the battery is connected to the device, the duration of the battery's operation, i.e., the duration of high current, is timed.
[0100] S177. When the high current duration reaches the second preset duration, the first switch module is turned on.
[0101] Specifically, the second preset duration is the charging time required for the capacitive load in the electrical equipment. In practical applications, this can be set according to actual needs; this embodiment does not impose any restrictions. When the second preset duration is reached in the high-current market, it indicates that the capacitive load in the electrical equipment is fully charged, and the battery can directly discharge to the electrical equipment. At this time, the first switch module is turned on. It should be noted that the resistance of the branch containing the first switch module is lower than the resistance of the branch containing the second switch module. Therefore, when the first switch module is turned on, the branch containing the second switch module is short-circuited, and the battery discharges to the electrical equipment through the first switch module.
[0102] Figure 6 This is a flowchart of another battery anti-sparking control method provided by an embodiment of the present invention. Optionally, based on the above embodiments, refer to... Figure 6 The battery anti-sparking circuit also includes a voltage sampling module; after the control module enters sleep mode, it also includes:
[0103] S178. When the control module has been in sleep mode for a period of time that reaches the third preset duration, the battery voltage is detected based on the voltage sampling module to obtain the battery voltage.
[0104] For example, when the control module enters a sleep state, it times the duration of the sleep state. When the sleep time reaches a third preset duration, the control module exits the sleep state and detects the battery voltage based on the voltage sampling module. The third preset duration is a pre-set interval for battery voltage sampling.
[0105] It should be noted that because the battery itself self-discharges when it is in a static state, the battery voltage needs to be checked when the battery is in a static state.
[0106] S179. When the battery voltage is lower than the preset voltage, prompt the user to charge the battery.
[0107] Specifically, the preset voltage is the pre-set charging voltage of the battery. When the battery voltage is lower than the preset voltage, the control module prompts the user to charge the battery. For example, the control module can prompt the user by sending a notification message to the user terminal or by using an audible and visual alarm.
[0108] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0109] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A battery anti-sparking control method, characterized in that, An anti-sparking circuit for batteries is applied, comprising: a first resistive module, a second resistive module, a first switching module, a second switching module, and a current sampling module; the anti-sparking control method for batteries includes: Turn on the first switch module; The current in the branch where the first switch module is located is detected based on the current sampling module and the first resistive module to obtain the first current; When the first current is less than the first preset current, the first switch module is turned off and the second switch module is turned on; The current in the branch where the second switching module is located is detected based on the current sampling module, the first resistive module, and the second resistive module to obtain the second current; When the second current is less than or equal to the second preset current, the first switch module remains off and the second switch module remains on. When the second current is greater than the second preset current, the first switching module is re-energized.
2. The battery anti-sparking control method according to claim 1, characterized in that, Also includes: When the first current is greater than or equal to the first preset current, the first switch module remains on.
3. The battery anti-sparking control method according to any one of claims 1-2, characterized in that, The battery anti-sparking circuit also includes a control module; after keeping the first switch module off and the second switch module on when the second current is less than or equal to the second preset current, it further includes: The duration for which the second current is less than or equal to the second preset current is timed to obtain the low current duration; When the low current duration reaches the first preset duration, the control module enters a sleep state.
4. The battery anti-sparking control method according to claim 3, characterized in that, After the control module enters a sleep state when the low current duration reaches the first preset duration, the following further steps are included: The second current is continuously detected based on the current sampling module, the first resistive module, and the second resistive module; When the second current is greater than the second preset current, the control module exits the sleep state; When the second current is less than or equal to the second preset current, the second current is re-detected.
5. The battery anti-sparking control method according to claim 4, characterized in that, After the control module exits the sleep state when the second current is greater than the second preset current, the following steps are also included: The duration during which the second current is greater than the second preset current is timed to obtain the high current duration; When the high current duration reaches the second preset duration, the first switching module is turned on.
6. The battery anti-sparking control method according to claim 3, characterized in that, The battery anti-sparking circuit also includes a voltage sampling module; After the control module enters sleep mode, it also includes: When the control module has been in a sleep state for a period of time that reaches a third preset duration, the battery voltage is detected by the voltage sampling module to obtain the battery voltage. When the battery voltage is lower than a preset voltage, the user is prompted to charge the battery.
7. A battery anti-sparking circuit, characterized in that, include: The system comprises a control module, a first resistive module, a second resistive module, a first switching module, a second switching module, and a current sampling module. The first terminal of the first resistive module is connected to the negative terminal of the battery; the second terminal of the first resistive module is connected to the first switch module; the first switch module is also connected to the negative terminal of the electrical device; the first terminal of the second resistive module is connected to the second terminal of the first resistive module; the second terminal of the second resistive module is connected to the second switch module; the second switch module is also connected to the negative terminal of the electrical device; the first terminal of the current sampling module is connected to the first terminal of the first resistive module; the second terminal of the current sampling module is connected to the second terminal of the first resistive module; the second terminal of the current sampling module is also connected to the second terminal of the second resistive module; the third, fourth, and fifth terminals of the current sampling module are all connected to the control module; the first switch module and the second switch module are also connected to the control module; and the positive terminal of the battery is connected to the positive terminal of the electrical device. The control module is used to execute the battery anti-sparking control method as described in any one of claims 1-6; the current sampling module is used to sample the current through the first resistive module and the second resistive module; the first switch module and the second switch module are used to control the on / off state of the circuit between the battery and the electrical equipment.
8. The battery anti-sparking circuit according to claim 7, characterized in that, Also includes: The third resistive module; The third resistive module is connected between the second switching module and the negative terminal of the electrical equipment.
9. The battery anti-sparking circuit according to claim 7, characterized in that, Also includes: Voltage sampling module; The first terminal of the voltage sampling module is connected to the positive terminal of the battery, the second terminal of the voltage sampling module is connected to the negative terminal of the battery, and the third terminal of the voltage sampling module is connected to the control module. The voltage sampling module is used to collect the voltage of the battery.
10. The battery anti-sparking circuit according to claim 7, characterized in that, The current sampling module includes: a current sampling unit, a comparison unit, and a threshold setting unit; The first end of the current sampling unit is connected to the first end of the first resistive module, the second end of the current sampling unit is connected to the second end of the first resistive module, the second end of the current sampling unit is also connected to the second end of the second resistive module, the third end of the current sampling unit is connected to the first end of the comparison unit and the control module, the second end of the comparison unit is connected to the first end of the threshold setting unit, the second end of the threshold setting unit is connected to the control module, and the third end of the comparison unit is connected to the control module. The current sampling unit is used to sample current through the first resistive module and the second resistive module; the comparison unit is used to wake up the control module in a dormant state when the second current sampled by the current sampling unit reaches the second preset current set by the threshold setting unit.