Sampling circuit, system, battery, vehicle, method, device, medium and product
By adopting a first sampling module with the negative electrode of the battery terminal as the reference ground and a second sampling module with the negative electrode of the external terminal as the reference ground in the battery system, sampling is switched under different states of the main switch, thereby solving the problem of inaccurate external terminal voltage detection when the main switch is disconnected in the battery system, and achieving high-accuracy and low-cost voltage sampling.
Patent Information
- Application Number
- CN202510395087.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-09-05
AI Technical Summary
In the prior art, the battery system cannot accurately sample the voltage at the external terminal when the main switch is disconnected, and the use of an isolated operational amplifier causes signal transmission delay and error, affecting sampling accuracy.
A first sampling module with the negative electrode of the battery terminal as the reference ground and a second sampling module with the negative electrode of any external terminal as the reference ground are used. The first sampling module is used for sampling when the main switch is closed, and the second sampling module is used for sampling when the main switch is disconnected to realize voltage detection of the external terminal. When the main switch is disconnected, the first sampling module is disconnected to isolate the battery terminal, avoiding the use of an isolation op amp.
The voltage of the external terminal can be accurately detected under any working conditions, avoiding the sampling error caused by the isolated operational amplifier, improving the sampling accuracy and safety, and reducing the hardware cost and processor resource requirements.
Smart Images

Figure CN120594907A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of batteries, and in particular to a sampling circuit, system, battery, vehicle, method, device, medium and product. Background Art
[0002] The vehicle battery is the core energy storage device for electric and hybrid vehicles, providing driving energy and supporting the operation of onboard electronic devices. A battery system typically consists of battery terminals, which directly connect to the positive and negative terminals of the battery, external terminals for connecting to external devices, such as the load terminal for connecting to the vehicle's drive loads, and the charging terminal for connecting to external charging equipment. In practical applications, to ensure system safety and reliability, it is necessary to monitor the voltage status of each terminal.
[0003] In related technologies, a high-voltage sampling chip is typically placed at the negative terminal of the battery, working in conjunction with sampling circuits at each port to sample the voltage at each port. The battery terminal is connected to the other terminals via a main switch. When the main switch is off, the voltage at the external terminal cannot be sampled. One solution is to add an isolation op amp to the sampling circuit to isolate the battery terminal from the other terminals, allowing the voltage at the external terminal to be sampled when the main switch is off. However, the isolation op amp in this solution causes signal transmission delays, resulting in poor sampling accuracy. Summary of the Invention
[0004] Embodiments of the present application provide a sampling circuit, system, battery, vehicle, method, device, medium, and product for achieving accurate sampling of an external terminal.
[0005] In a first aspect, an embodiment of the present application provides a sampling circuit, the sampling circuit comprising a battery terminal and an external terminal, the battery terminal being used to connect a battery; wherein the positive electrode of the battery terminal is connected to the positive electrode of at least one external terminal through a main positive switch, and the negative electrode of the battery terminal is connected to the negative electrode of at least one external terminal through a main negative switch; the sampling circuit further comprises: a first sampling module (100) and a second sampling module (200); the first sampling module (100) uses the negative electrode of the battery terminal as a reference ground, and the second sampling module (200) uses the negative electrode of any external terminal as a reference ground; the first sampling module (100) and the second sampling module (200) are both connected between the main positive switch and the positive electrode of the first sampling terminal, the first sampling terminal being one of the at least one external terminal; the first sampling module (100) is used to sample and obtain a first sampling signal when the main switch is closed, and is disconnected when the main switch is disconnected; the second sampling module (200) is used to sample and obtain a second sampling signal when the main switch is disconnected; the first sampling signal and the second sampling signal are used to detect the voltage of the first sampling terminal.
[0006] In a possible implementation, the at least one external terminal includes: a load terminal and a charging terminal; the load terminal is used to connect to an external load, and the charging terminal is used to connect to a charging signal from an external battery terminal.
[0007] In a possible embodiment, the first sampling module (100) comprises: a first sampling network (110); a first end of the first sampling network (110) is connected between the main positive switch and the positive electrode of the first sampling end, and a second end is connected to the negative electrode reference ground of the battery end; the first sampling network (110) is provided with a first sampling point, and the first sampling signal comprises a sampling signal at the first sampling point.
[0008] In a possible implementation, the first sampling network (110) includes: a first voltage divider unit (111) and a first sampling unit (112); the first voltage divider unit (111) and the first sampling unit (112) are connected in series, and a connection point between the first voltage divider unit (111) and the first sampling unit (112) serves as a first sampling point.
[0009] In a possible implementation, the first voltage dividing unit (111) and the first sampling unit (112) include: an impedance element.
[0010] In a possible embodiment, the first sampling module (100) further includes: a first control switch (120); the first sampling network (110) and the first control switch (120) are connected in series, and the first control switch (120) is configured to be closed when the main switch is closed, and to be opened when the main switch is opened.
[0011] In a possible embodiment, the first sampling module (100) further includes: a first processing module (130); the first processing module (130) is connected to the first sampling network (110) and is used to process the signal provided by the first sampling point to obtain a first sampling signal.
[0012] In a possible embodiment, the first processing module (130) comprises: a first sampling chip (131); a first end of the first sampling chip (131) is connected to a power supply, and a second end is connected to a negative reference ground of a battery end; and a first input end of the first sampling chip (131) is connected to a first sampling point.
[0013] In a possible embodiment, the second sampling module (200) comprises: a second sampling network (210); a first end of the second sampling network (210) is connected between the main positive switch and the positive electrode of the first sampling end, and a second end is connected to the reference ground of the second sampling module (200); the second sampling network (210) is provided with a second sampling point and a third sampling point, and the second sampling signal comprises sampling signals at the second sampling point and the third sampling point.
[0014] In a possible embodiment, the second sampling network (210) includes: a first sub-sampling network (211) and a second sub-sampling network (212); a first end of the first sub-sampling network (211) is connected between the main positive switch and the positive electrode of the first sampling end, and a second end is connected to a first end of the second sub-sampling network (212); the first sub-sampling network (211) is used to provide a second sampling point; a second end of the second sub-sampling network (212) is connected to a reference ground of the second sampling module (200), and the second sub-sampling network (212) is used to provide a third sampling point.
[0015] In a possible implementation, the first sub-sampling network (211) includes: a second voltage divider unit (2111) and a second sampling unit (2112), the second voltage divider unit (2111) and the second sampling unit (2112) being connected, and the connection point between the second voltage divider unit (2111) and the second sampling unit (2112) being the second sampling point; and / or the second sub-sampling network (212) includes: a third voltage divider unit (2121) and a third sampling unit (2122), the third voltage divider unit (2121) and the third sampling unit (2122) being connected, and the connection point between the third voltage divider unit (2121) and the third sampling unit (2122) being the third sampling point.
[0016] In a possible implementation, the sampling circuit according to claim 11 is characterized in that the second voltage divider unit (2111) and the second sampling unit (2112) include: an impedance element; and / or the third voltage divider unit (2121) and the third sampling unit (2122) include: an impedance element.
[0017] In a possible implementation, the second sampling module (200) further includes: a second control switch (220); the second sampling network (210) and the second control switch (220) are connected in series, and the second control switch (220) is configured to be opened when the main switch is closed, and closed when the main switch is opened.
[0018] In a possible embodiment, the second control switch (220) includes: a first control sub-switch (221) and a second control sub-switch (222); the first control sub-switch (221) is connected between the first sampling terminal and the second sampling network (210); and the second control sub-switch (222) is connected between the second sampling network (210) and a reference ground of the second sampling module (200).
[0019] In a possible embodiment, the second sampling module (200) further includes: a second processing module (230); the second processing module (230) is connected to the second sampling network (210) and is used to process the signals provided by the second sampling point and the third sampling point to obtain a second sampling signal.
[0020] In a possible embodiment, the second end of the second sub-sampling network (212) is connected between the main negative switch and the negative electrode of the first sampling end; the second processing module (230) comprises: a second sampling chip (231); a first end of the second sampling chip (231) is connected to a power supply, a second end is connected to a connection point between the first sub-sampling network (211) and the second sub-sampling network (212), and a third end is connected to a negative reference ground of the second sampling end; the second sampling end is any external end of at least one external end except the first sampling end; a first input end of the second sampling chip (231) is connected to the second sampling point, and a second input end is connected to the third sampling point.
[0021] In a possible embodiment, the second sampling module (200) includes: a fourth voltage divider unit (241) and a fourth sampling unit (242), a first isolation operational amplifier (243), and a third control switch (244); wherein the fourth voltage divider unit (241) and the fourth sampling unit (242) include: an impedance element; a first end of the fourth voltage divider unit (241) is connected between the positive electrode of the first sampling end and the main positive switch, and a second end is connected to the first end of the fourth sampling unit (242); a second end of the fourth sampling unit (242) is connected to the negative electrode reference ground of the first sampling end; the third control switch (244) and the fourth voltage divider unit (241) are connected to the negative electrode reference ground of the first sampling end. The first isolation operational amplifier (243) is connected in series with the fourth sampling unit (242), and the third control switch (244) is configured to be closed when detecting the voltage of the first sampling terminal; the first terminal of the input side of the first isolation operational amplifier (243) is connected to the power supply, the second terminal of the input side is connected to the connection point of the fourth voltage dividing unit (241) and the fourth sampling unit (242), and the third terminal of the input side is connected to the negative reference ground of the first sampling terminal; the first terminal of the output side of the first isolation operational amplifier (243) is connected to the power supply, the second terminal of the output side serves as the fourth sampling point, and the third terminal of the output side of the first isolation operational amplifier (243) is connected to the negative reference ground of the battery terminal; the second sampling signal includes the sampling signal at the fourth sampling point.
[0022] In a possible implementation, the fourth sampling point is connected to the second input terminal of the first sampling chip (131).
[0023] In a possible embodiment, the sampling circuit further comprises a third sampling module (300); the third sampling module (300) comprises: a fifth voltage dividing unit (311), a fifth sampling unit (312), and a fourth control switch (313); wherein the fifth voltage dividing unit (311) and the fifth sampling unit (312) comprise: an impedance element; a first end of the fifth voltage dividing unit (311) is connected between the positive electrode of the battery terminal and the main positive switch, and a second end is connected to the first end of the fifth sampling unit (312); a second end of the fifth sampling unit (312) is connected between the negative electrode of the battery terminal and the main negative switch, and a connection point between the fifth voltage dividing unit (311) and the fifth sampling unit (312) serves as a fifth sampling point; the fifth sampling point is used to output a third sampling signal, and the third sampling signal is used to detect the voltage of the battery terminal; the fourth control switch (313) is connected in series with the fifth voltage dividing unit (311) and the fifth sampling unit (312), and the fourth control switch (313) is configured to be closed when detecting the voltage of the battery terminal.
[0024] In a possible implementation, the fifth sampling point is connected to the third input terminal of the first sampling chip (131).
[0025] In a possible embodiment, the sampling circuit further comprises a fourth sampling module (400); the fourth sampling module (400) comprises: a sixth voltage dividing unit (411), a sixth sampling unit (412), and a fifth control switch (413); wherein the sixth voltage dividing unit (411) and the sixth sampling unit (412) comprise: an impedance element; a first end of the sixth voltage dividing unit (411) is connected between the positive electrode of the second sampling terminal and the main positive switch, and a second end is connected to the first end of the sixth sampling unit (412); a second end of the sixth sampling unit (412) is connected between the negative electrode of the second sampling terminal and the main negative switch, and a connection point between the sixth voltage dividing unit (411) and the sixth sampling unit (412) serves as a sixth sampling point, and the sixth sampling point is used to output a fourth sampling signal, and the fourth sampling signal is used to detect the voltage of the second sampling terminal; the fifth control switch (413) is connected in series with the sixth voltage dividing unit (411) and the sixth sampling unit (412), and the fifth control switch (413) is configured to be closed when detecting the voltage of the second sampling terminal.
[0026] In a possible implementation, the sixth sampling point is connected to the third input terminal of the second sampling chip (231).
[0027] In one possible implementation, the first sampling end is a load end, and the second sampling end is a charging end; the sampling circuit further includes a charging switch; the battery end is connected to the charging end via a main switch and a charging switch; and the charging switch is configured to be disconnected when the first sampling module performs sampling.
[0028] In a second aspect, an embodiment of the present application provides a battery management system, which includes the sampling circuit as described above.
[0029] In a third aspect, an embodiment of the present application provides a battery, which includes the above sampling circuit or the above battery management system.
[0030] In a fourth aspect, an embodiment of the present application provides a vehicle, which includes the battery as described above.
[0031] In a fifth aspect, an embodiment of the present application provides a voltage detection method based on the above sampling circuit, the method comprising: when the main switch is closed, obtaining a first sampling signal sampled by a first sampling module of the sampling circuit; and when the main switch is disconnected, obtaining a second sampling signal sampled by a second sampling module of the sampling circuit; and obtaining a voltage at the first sampling end based on the first sampling signal or the second sampling signal.
[0032] In one possible implementation, when the main switch is closed, obtaining a first sampling signal sampled by a first sampling module of a sampling circuit includes: when the main switch is closed, controlling a first control switch in the first sampling module to close and controlling a second control switch in the second sampling module to open, so that the first sampling module performs sampling.
[0033] In one possible implementation, when the main switch is disconnected, obtaining a second sampling signal sampled by a second sampling module of the sampling circuit includes: when the main switch is disconnected, controlling a second control switch in the second sampling module to close and controlling a first control switch in the first sampling module to disconnect, so that the second sampling module performs sampling.
[0034] In a possible implementation, controlling the second control switch to be closed includes: controlling the first control sub-switch and the second control sub-switch to be closed.
[0035] In a sixth aspect, the present application provides a voltage detection device, based on the sampling circuit as described above, the device including: an acquisition module, used to acquire a first sampling signal sampled by a first sampling module of the sampling circuit when the main switch is closed; and when the main switch is disconnected, acquire a second sampling signal sampled by a second sampling module of the sampling circuit; a calculation module, used to obtain the voltage of the first sampling end based on the first sampling signal or the second sampling signal.
[0036] In a seventh aspect, the present application provides an electronic device, comprising: a memory, a processor;
[0037] The memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor performs the above method.
[0038] In an eighth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above method.
[0039] In a ninth aspect, the present application provides a computer program product, characterized in that it includes a computer program that implements the above method when executed by a processor.
[0040] The sampling circuit, system, battery, vehicle, method, apparatus, medium, and product provided in the embodiments of the present application utilize a first sampling module using the negative electrode of the battery terminal as a reference ground and a second sampling module using the negative electrode of any external terminal as a reference ground. The first sampling module is used for sampling when the main switch is closed, and the second sampling module is used for sampling when the main switch is disconnected. This allows detection of the voltage of any external terminal under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is disconnected, thereby isolating the battery terminal from the load terminal, avoiding sampling errors caused by the use of an isolation op amp, and achieving accurate sampling of the external terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] Figure 1 A schematic diagram of the structure of the battery system provided in this application;
[0043] Figure 2 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0048] Figure 7 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0049] Figure 8 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0050] Figure 9 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0051] Figure 10 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0052] Figure 11 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0053] Figure 12 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0054] Figure 13 A schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application;
[0055] Figure 14 A schematic diagram of a flow chart of a voltage sampling method provided in an embodiment of the present application;
[0056] Figure 15 A schematic diagram of the structure of a voltage detection device provided in an embodiment of the present application;
[0057] Figure 16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0058] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0059] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0060] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and usual meanings. The terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings, as well as any variations thereof, are intended to cover but not exclude inclusion. For example, a product or device that includes a series of components is not necessarily limited to those components that are clearly listed, but may include other components that are not clearly listed or are inherent to these products or devices. The term "module" used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that can perform the functions associated with the element.
[0061] Figure 1 The structural diagram of the battery system provided in this application is as follows: Figure 1 As shown, the positive and negative poles of the battery terminal of the battery system are directly connected to the positive and negative poles of the battery, and the battery terminal is connected to the load terminal and the charging terminal respectively through the main switch. Among them, the main switch includes a main positive switch and a main negative switch, the main positive switch is connected to the positive poles of the load terminal and the charging terminal respectively, and the main negative switch is connected to the negative poles of the load terminal and the charging terminal respectively. In the related art, a high-voltage sampling chip is usually set at the negative pole of the battery terminal, and sampling circuits are respectively set at the battery terminal, the load terminal and the charging terminal to connect to the high-voltage sampling chip, so as to realize voltage sampling of the three ports through a single high-voltage sampling chip. However, in this solution, when the main switch is disconnected, the sampling circuits of the load terminal and the charging terminal are in an open circuit state with the high-voltage sampling chip, and the load terminal and the charging terminal are not grounded with the battery terminal, resulting in the inability to perform voltage sampling on the load terminal and the charging terminal.
[0062] In one related technology solution, connecting the load and battery terminals through an isolation op amp allows for normal voltage sampling at the load terminal when the main switch is off, while also isolating the voltage between the load and battery terminals when the main switch is off. However, due to internal errors from input to output within the isolation op amp, and the analog signal being susceptible to interference during transmission, the accuracy of voltage sampling at the load and battery terminals is low.
[0063] Another related solution, by providing a corresponding sampling circuit and high-voltage sampling chip for each port, can accurately sample the battery, load, and charging terminals when the main switch is open or closed. However, the multiple high-voltage chips in this solution increase hardware costs and also increase the demand on processor communication resources.
[0064] The technical content provided by this application is intended to solve the above-mentioned technical problems in related technologies. The sampling circuit, system, battery, vehicle, method, device, medium and product provided by this application use a first sampling module with the negative pole of the battery terminal as the reference ground and a second sampling module with the negative pole of any external terminal as the reference ground. The first sampling module is used for sampling when the main switch is closed and the second sampling module is used for sampling when the main switch is disconnected. In this way, the voltage of any external terminal can be detected under any working condition. The first sampling module is disconnected when the main switch is disconnected, which can achieve isolation between the battery terminal and the load terminal, avoid sampling errors caused by the use of an isolated operational amplifier, and achieve accurate sampling of the external terminal.
[0065] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0066] Figure 2 A schematic diagram of a sampling circuit according to an embodiment of the present invention is shown in FIG. Figure 2 As shown, the battery terminal is used to connect a battery; wherein the positive electrode of the battery terminal is connected to the positive electrode of at least one external terminal through a main positive switch, and the negative electrode of the battery terminal is connected to the negative electrode of at least one external terminal through a main negative switch;
[0067] The sampling circuit also includes: a first sampling module 100 and a second sampling module 200; the first sampling module 100 uses the negative terminal of the battery as a reference ground ( Figure 2 G1 in the second sampling module 200 takes the negative electrode of any external terminal as the reference ground ( Figure 2 G2); the first sampling module 100 and the second sampling module 200 are both connected between the main positive switch and the positive electrode of the first sampling terminal, the first sampling terminal being one of the at least one external terminal;
[0068] The first sampling module 100 is used to sample and obtain a first sampling signal when the main switch is closed, and is disconnected when the main switch is disconnected; the second sampling module 200 is used to sample and obtain a second sampling signal when the main switch is disconnected; the first sampling signal and the second sampling signal are used to detect the voltage of the first sampling end.
[0069] In practical applications, the sampling circuit in this example can be used in conjunction with an energy storage device to perform corresponding functions. An energy storage device is any component that can store electrical energy and release it when needed, such as a battery module. It should be understood that the sampling circuit can be integrated with other components of the energy storage device or implemented as a separate device independent of the other components.
[0070] Exemplarily, the battery terminal refers to an electrical connection point in the sampling circuit that is directly connected to the positive and negative poles of the energy storage device. Optionally, the battery terminal may also be a physical interface such as a connector, a terminal, a pad, etc. The battery terminal is connected to at least one external terminal through a main switch. The main switch may be a mechanical switch such as a relay, a contactor, or a semiconductor switch, etc. Exemplarily, the external terminal may be an interface of other circuits or devices connected to the battery terminal. For example, the external terminal may be a connection point for a load, a charger, or other external circuit. The external terminal may be a charging terminal, a load terminal, a battery status detection terminal, a voltage balancing terminal, a communication terminal, etc., or the external terminal may be a combination of any multiple of the above ports.
[0071] Illustratively, the first sampling module 100 and the second sampling module 200 may include components such as a voltage divider, an operational amplifier, and an analog-to-digital converter. It should be understood that the components and circuit structures of the first sampling module 100 and the second sampling module 200 may be the same or different, and this example does not limit this. The first sampling signal obtained by the first sampling module 100 may be the battery terminal voltage or a portion of the first sampling terminal voltage, and the second sampling signal obtained by the second sampling module 200 may be a portion of the first sampling terminal voltage. Illustratively, the first sampling module 100 or the second sampling module 200 may calculate the voltage at the first sampling terminal based on the corresponding sampling signal using an internal processing unit. Optionally, the first sampling module 100 or the second sampling module 200 may also transmit the corresponding sampling signal to other circuits or components for signal processing to obtain the voltage at the first sampling terminal. Illustratively, the voltage at the first sampling terminal may be obtained based on the first sampling signal or the second sampling signal through calculations such as voltage divider calculation, voltage calibration, and compensation.
[0072] It should be understood that the first sampling terminal is any external terminal connected to the battery terminal. The second sampling module 200 uses the negative pole of any external terminal as the reference ground. Any external terminal can be the first sampling terminal or an external terminal other than the first sampling terminal.
[0073] Exemplarily, there may be one first sampling terminal, that is, a sampling signal is obtained and the voltage of the first sampling terminal A is detected by the first sampling module 100 and the second sampling module 200 corresponding to the first sampling terminal A in the sampling circuit. Optionally, there may be multiple first sampling terminals, that is, a sampling signal is obtained and the voltage of the first sampling terminal B and the voltage of the first sampling terminal C are detected by the first sampling module 100 and the second sampling module 200 corresponding to the first sampling terminal B and the first sampling terminal C, respectively, in the sampling circuit.
[0074] In this example, when the main switch is closed, a first sampling signal is obtained through a first sampling module 100, which uses the negative terminal of the battery terminal as a reference ground. When the main switch is open, a second sampling signal is obtained through a second sampling module 200, which uses the negative terminal of any external terminal as a reference ground. This allows sampling to be performed through the second sampling module 200, eliminating the need for an isolation op amp when the main switch is disconnected and the first sampling module 100 is unable to perform sampling. In practical applications, when the second sampling module 200 is sampling, the ground connection between the first sampling module 100 and the battery terminal is disconnected, achieving high and low voltage isolation between the first sampling terminal and the battery terminal, thereby improving the safety of the sampling circuit.
[0075] In the sampling circuit provided in the embodiment of the present application, a first sampling module 100 using the negative electrode of the battery terminal as a reference ground and a second sampling module 200 using the negative electrode of any external terminal as a reference ground are used. The first sampling module 100 is used for sampling when the main switch is closed, and the second sampling module 200 is used for sampling when the main switch is open, so as to detect the voltage of any external terminal. This avoids sampling errors caused by the use of an isolated operational amplifier and achieves accurate sampling of the external terminal.
[0076] As yet another example, the at least one external terminal includes: a load terminal and a charging terminal;
[0077] The load terminal is used to connect an external load, and the charging terminal is used to connect the charging signal of the external battery terminal.
[0078] The load end is connected to an external load (such as a motor or electronic device) and is used to supply power to the load when the battery is discharging; the charging end is connected to an external charger and is used to receive a charging signal to realize the battery charging function. In actual applications, the load end and the charging end can share the same physical interface, or they can be independent interfaces (such as separate charging interface and load interface). For example, the physical structure of the load end can be designed as a spring contact, a plug-in connector, etc.; the charging end can use a standard charging interface such as a DC jack or a customized terminal. In this example, the charging and discharging functions of the energy storage device can be realized through the load end and the charging end.
[0079] As another example, the first sampling end is a load end or a charging end.
[0080] In the solution of this example, the first sampling module 100 and the second sampling module 200 can respectively sample the load end or the charging end, thereby reducing interference between different external terminals and improving the stability and accuracy of sampling.
[0081] Figure 3 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 3 As shown, the first sampling module 100 includes: a first sampling network 110;
[0082] The first end of the first sampling network 110 is connected between the main positive switch and the positive electrode of the first sampling end, and the second end is connected to the negative reference ground (G1) of the battery end. The first sampling network 110 has a first sampling point, and the first sampling signal includes a sampling signal at the first sampling point.
[0083] The first sampling network 110 may include a resistor divider circuit, a current sampling resistor, or other signal conditioning circuit. Exemplarily, the first sampling network 110 may be composed of multiple electronic components, such as resistors, capacitors, and amplifiers. The combination and configuration of these components is used to achieve accurate sampling of the voltage at the first sampling terminal. Specifically, the first sampling network 110 may include a resistor divider for reducing the voltage to a level suitable for measurement, or include an operational amplifier for enhancing the stability and accuracy of the signal. Specifically, in the design of the resistor divider, the first sampling point may be located at the connection node between the two resistors, which node can provide a divided voltage signal reflecting the voltage condition at the first sampling terminal. On the other hand, in the design of the operational amplifier, the first sampling point may be located at the output of the amplifier to ensure that the collected signal is properly amplified and filtered. Optionally, the first sampling network 110 may also include a capacitor for filtering and removing high-frequency noise in the voltage signal to ensure the stability of the sampled signal. Optionally, the first sampling network 110 may also include a diode for protecting the circuit from reverse voltage or for rectification. In the solution of this example, the first sampling network 110 can be used to sample and obtain a first sampling signal when the main switch is closed, so as to analyze the voltage at the first sampling terminal.
[0084] As another example, the first sampling network 110 includes: a first voltage dividing unit 111 and a first sampling unit 112;
[0085] The first voltage dividing unit 111 and the first sampling unit 112 are connected in series, and a connection point between the first voltage dividing unit 111 and the first sampling unit 112 serves as a first sampling point.
[0086] In this example, first voltage divider unit 111 and first sampling unit 112 are connected in series, with a first end of first voltage divider unit 111 connected to the positive electrode of the first sampling terminal, and a second end connected to the first end of first sampling unit 112. The second end of first sampling unit 112 is connected to the reference ground of first sampling module 100 (i.e., battery terminal reference ground G1). The connection point between first voltage divider unit 111 and first sampling unit 112 serves as a first sampling point for outputting a first sampling signal.
[0087] The first voltage divider unit 111 or the first sampling unit 112 can be composed of resistors or a resistor network, and is used to divide the voltage at the first sampling terminal into a voltage suitable for processing by the sampling circuit. Optionally, the first sampling unit 112 can include one or more combinations of resistors, capacitors, filtering circuits, or signal conditioning circuits, and is used to sample, filter, or condition the divided signal to obtain a stable first sampling signal. In this example, the coordination of the first voltage divider unit 111 and the first sampling unit 112 enables accurate sampling and signal processing of the voltage at the first sampling terminal.
[0088] As another example, the first voltage dividing unit 111 and the first sampling unit 112 include an impedance element.
[0089] Exemplarily, the first voltage divider unit 111 is typically composed of resistors, such as fixed resistors or adjustable resistors, for achieving voltage division; the first sampling unit 112 may include resistors, capacitors, or a combination thereof, for sampling and signal conditioning. The impedance element in the first voltage divider unit 111 is primarily used for voltage division, converting a high voltage into a low voltage suitable for subsequent circuit processing; the impedance element in the first sampling unit 112 is used for sampling and signal conditioning, such as forming a low-pass filter with a capacitor to filter out high-frequency noise, or combining with an operational amplifier to achieve signal amplification. In this example, by reasonably configuring the impedance elements in the first voltage divider unit 111 and the first sampling unit 112, accurate sampling and reliable processing of the voltage at the first sampling terminal can be achieved.
[0090] As another example, the first sampling module 100 further includes: a first control switch 120;
[0091] First sampling network 110 and first control switch 120 are connected in series. First control switch 120 is configured to close when the main switch is closed and open when the main switch is open. The introduction of first control switch 120 isolates the battery terminal from the load terminal, avoiding sampling errors and increased costs associated with using an isolated op amp, while also enabling accurate sampling of the external terminal.
[0092] Illustratively, the first end of the first sampling network 110 is connected to the positive electrode of the first sampling terminal, and the second end is connected to the first end of the first control switch 120. The second end of the first control switch 120 is connected to the reference ground of the first sampling module 100 (i.e., the battery terminal reference ground G1). The control end of the first control switch 120 can be connected to a control circuit for controlling the operating state of the first sampling module 100 based on the state of the main switch (closed or open).
[0093] Specifically, the first control switch 120 can be a semiconductor switch (such as MOSFET, BJT, etc.) to achieve fast response and low power consumption. Optionally, the first control switch 120 can also be a mechanical relay to achieve control in high voltage or high current scenarios. Optionally, the first control switch 120 can also be an optocoupler switch to achieve good electrical isolation. In this example, when the main switch is closed, the first control switch 120 is closed, so that the first sampling network 110 can sample the voltage of the first sampling end to obtain a first sampling signal; when the main switch is disconnected, the first control switch 120 is disconnected, and the first sampling module 100 stops working, thereby avoiding unnecessary power consumption or interference. For example, when the second sampling module 200 is working, the first sampling network is disconnected from the negative pole of the battery terminal, thereby achieving voltage isolation between the first sampling terminal and the battery terminal.
[0094] As another example, the first sampling module 100 further includes: a first processing module 130;
[0095] The first processing module 130 is connected to the first sampling network 110 and is configured to process the signal provided by the first sampling point to obtain a first sampling signal.
[0096] The first processing module 130 is connected to the first sampling network 110 . Specifically, an input end of the first processing module 130 is connected to the first sampling point for receiving a signal provided by the first sampling point.
[0097] Exemplarily, the first processing module 130 processes the signal, such as by amplification, filtering, analog-to-digital conversion, or signal conditioning, to obtain a first sampling signal. Specifically, the first processing module 130 may include one or more of the following circuits: an amplification circuit: using an operational amplifier to amplify the signal at the first sampling point to increase the signal amplitude for subsequent processing or measurement; a filtering circuit: using an RC circuit, an LC circuit, or an active filter to filter out noise or interference in the signal; a signal conditioning circuit: using a level shifting circuit or a linearization circuit to perform offset adjustment, linearization processing, or other forms of conditioning on the signal to ensure signal accuracy and stability. In this example, through processing by the first processing module 130, the original signal at the first sampling point can be converted into a first sampling signal suitable for use in subsequent circuits or systems, thereby improving the accuracy and reliability of the sampling circuit.
[0098] As another example, the first processing module 130 includes: a first sampling chip 131;
[0099] A first end of the first sampling chip 131 is connected to a power supply, and a second end is connected to a reference ground of the first sampling module 100 ;
[0100] The first input terminal of the first sampling chip 131 is connected to the first sampling point; the first sampling chip 131 is used to convert the input signal into a digital signal.
[0101] The first terminal of the first sampling chip 131 is connected to a power supply to provide an operating voltage. The second terminal is connected to the reference ground of the first sampling module 100 (i.e., the negative reference ground of the battery terminal) to establish a reference potential. The first input terminal of the first sampling chip 131 is connected to the first sampling point to receive an analog signal provided by the first sampling point. The first sampling chip 131 is configured to convert the input analog signal into a digital signal, thereby generating a first sampling signal.
[0102] Specifically, the first sampling chip 131 can be an analog-to-digital converter, the type of which includes but is not limited to a successive approximation type, an integral type, or a flash memory type. Parameters such as the resolution, sampling rate, and input range of the first sampling chip 131 can be selected according to actual application requirements. For example, in a scenario where high precision is required, a high-resolution (such as 16-bit or 24-bit) analog-to-digital converter can be selected. Exemplarily, the analog-to-digital converter can be integrated into a microcontroller, or a separate chip can be used. In this example, the analog-to-digital conversion function of the first sampling chip 131 can convert the analog signal of the first sampling point into a digital signal, which is convenient for further processing and analysis by a subsequent digital system (such as a microcontroller or processor).
[0103] Figure 4 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 4 As shown, the first sampling module 100 includes: a first voltage divider unit 111 (ie, R1) and a first sampling unit 112 (ie, R2) under a first sampling network 110, a first control switch 120 (ie, S1), and a first sampling chip 131 (ie, ADC1) under a first processing module 130.
[0104] Specifically, switch S1 controls the working state of the first sampling module 100. When S1 is closed, the voltage is divided from the positive electrode of the first sampling terminal by the voltage divider resistor R1, and then passes through the sampling resistor R2 to the ground terminal (G1) of the negative electrode of the battery terminal, and then through the first sampling point to the analog-to-digital converter ADC1. ADC1 converts the analog signal of the first sampling point into a digital signal.
[0105] For example, ADC1 may be connected to a microprocessor to transmit the first sampling signal to the microprocessor, so that the microprocessor can calculate the voltage at the first sampling terminal based on the voltage divider ratio. In this example, after the main switch is closed, the voltage-divided signal at the first sampling terminal is collected and a corresponding digital signal is obtained.
[0106] It should be noted that the above-mentioned embodiments related to the first sampling module 100 can be used to detect and obtain the voltage of any external terminal, such as a load terminal or a charging terminal.
[0107] Figure 5 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 5 As shown, based on any example, the second sampling module 200 includes: a second sampling network 210;
[0108] The first end of the second sampling network 210 is connected between the main positive switch and the positive electrode of the first sampling terminal, and the second end is connected to the reference ground of the second sampling module 200 ( Figure 5 The second sampling network 210 is provided with a second sampling point and a third sampling point, and the second sampling signal includes the sampling signals at the second sampling point and the third sampling point.
[0109] In this example, the second sampling module 200 includes a second sampling network 210. A first terminal of the second sampling network 210 is connected to the positive electrode of the first sampling terminal, and a second terminal is connected to the reference ground of the second sampling module 200 (i.e., the negative electrode of any external terminal). It is understood that the embodiment of this example is applicable to situations where the reference ground of the second sampling module 200 is the negative electrode of the first sampling terminal or not.
[0110] Specifically, the second sampling network 210 may include one or more combinations of a voltage divider circuit, a filter circuit, or a signal conditioning circuit. For example, the second sampling network 210 may be composed of a voltage divider circuit composed of multiple resistors, which is used to divide the voltage at the first sampling terminal, thereby obtaining voltage signals of different proportions at the second sampling point and the third sampling point. The second and third sampling points can be configured to implement multi-stage sampling or differential sampling to improve sampling accuracy and anti-interference capabilities.
[0111] On the one hand, when the reference ground connected to the second sampling module 200 is the reference ground of the first sampling terminal, the reference potential of the second sampling network 210 is consistent with the reference ground potential of the first sampling terminal, and the sampling signal only reflects the voltage change at the first sampling terminal. Accordingly, the sampling signals at the second sampling point and the third sampling point can be directly used to perform multi-level sampling of the voltage at the first sampling terminal to improve sampling accuracy. On the other hand, when the reference ground connected to the second sampling module 200 is the reference ground of an external terminal other than the first sampling terminal, the second sampling network 210 can be used to detect the voltage difference between the first sampling terminal and the reference ground of the second sampling module 200. Accordingly, the sampling signals at the second sampling point and the third sampling point can be used to perform differential sampling of the voltage at the first sampling terminal to achieve common-mode noise suppression. Optionally, the sampling signals at the second sampling point and the third sampling point can also be used for voltage offset sampling. The solution of this example, through the design of the second sampling network 210, can flexibly adapt to different reference ground configurations and improve the accuracy and reliability of voltage sampling.
[0112] As another example, the second sampling network 210 includes: a first sub-sampling network 211 , a second sub-sampling network 212 ;
[0113] A first end of the first sub-sampling network 211 is connected between the main positive switch and the positive electrode of the first sampling terminal, and a second end is connected to a first end of the second sub-sampling network 212. The first sub-sampling network 211 is used to provide a second sampling point. A second end of the second sub-sampling network 212 is connected to the reference ground of the second sampling module 200. The second sub-sampling network 212 is used to provide a third sampling point.
[0114] For example, when the first subsampling network 211 or the second subsampling network 212 is used for voltage gradation sampling, the subsampling network may include a voltage divider circuit composed of multiple resistors, with the second sampling point and the third sampling point connected to different nodes of the voltage divider circuit to obtain voltage signals of different proportions. For example, when the first subsampling network 211 or the second subsampling network 212 is used for differential sampling, the subsampling network may include a differential amplifier or a differential analog-to-digital converter to eliminate common-mode interference and improve sampling accuracy. This exemplary solution, by designing different first subsampling networks 211 and second subsampling networks 212, can flexibly adapt to different sampling requirements.
[0115] As another example, the first subsampling network 211 includes: a second voltage divider unit 2111 and a second sampling unit 2112, wherein the second voltage divider unit 2111 and the second sampling unit 2112 are connected, and a connection point between the second voltage divider unit 2111 and the second sampling unit 2112 is a second sampling point;
[0116] And / or, the second subsampling network 212 includes: a third voltage divider unit 2121 and a third sampling unit 2122, the third voltage divider unit 2121 and the third sampling unit 2122 are connected, and the connection point between the third voltage divider unit 2121 and the third sampling unit 2122 is the third sampling point.
[0117] In this example, the second voltage divider unit 2111 and the second sampling unit 2112 are connected in series, where a first end of the second voltage divider unit 2111 is connected to the positive electrode of the first sampling end, and a second end of the second sampling unit 2112 is connected to the first end of the second sampling unit 2112. The second end of the second sampling unit 2112 is connected to the second sub-sampling network 212. The connection point between the second voltage divider unit 2111 and the second sampling unit 2112 serves as a second sampling point for outputting a sampling signal.
[0118] In this example, the third voltage divider unit 2121 and the third sampling unit 2122 are connected in series. A first end of the third voltage divider unit 2121 is connected to the first subsampling network 211, and a second end is connected to the first end of the third sampling unit 2122. A second end of the third sampling unit 2122 is connected to the reference ground of the second sampling module 200. The connection point between the third voltage divider unit 2121 and the third sampling unit 2122 serves as a third sampling point for outputting a sampling signal.
[0119] It can be understood that the first sub-sampling network 211 and the second sub-sampling network 212 can be implemented independently or simultaneously in actual applications.
[0120] The implementation methods and technical effects of the second voltage divider unit 2111 and the second sampling unit 2112 , and the third voltage divider unit 2121 and the third sampling unit 2122 are similar to those of the first voltage divider unit 111 and the first sampling unit 112 , and are not elaborated herein.
[0121] As another example, the second voltage dividing unit 2111 and the second sampling unit 2112 include: an impedance element; and / or the third voltage dividing unit 2121 and the third sampling unit 2122 include: an impedance element.
[0122] The implementation methods and technical effects of the second voltage divider unit 2111 and the second sampling unit 2112 , and the third voltage divider unit 2121 and the third sampling unit 2122 are similar to those of the first voltage divider unit 111 and the first sampling unit 112 , and are not elaborated herein.
[0123] As another example, the second sampling module 200 further includes: a second control switch 220;
[0124] Second sampling network 210 is connected in series with second control switch 220. Second control switch 220 is configured to open when the main switch is closed and close when the main switch is open. The introduction of second control switch 220 isolates the positive and negative electrodes of the load terminal, avoiding sampling errors and increased costs associated with using an isolated op amp, while also enabling accurate sampling of the external terminal.
[0125] Illustratively, a first terminal of the second sampling network 210 is connected to the positive electrode of the first sampling terminal, and a second terminal is connected to a first terminal of the second control switch 220. The second terminal of the first control switch 220 is connected to the reference ground of the second sampling module 200. The control terminal of the second control switch 220 can be connected to a control circuit for controlling the operating state of the second sampling module 200 based on the state of the main switch.
[0126] In actual applications, the implementation of the second control switch 220 is similar to that of the first control switch 120 and will not be described in detail here.
[0127] In this example, when the main switch is off, controlling the second control switch 220 to close enables the second sampling module 200 to sample the voltage at the first sampling terminal. When the main switch is closed, controlling the second control switch 220 to open causes the second sampling module 200 to cease operation, thereby avoiding unnecessary power consumption or interference. For example, when the ground terminal of the second sampling module 200 is not the negative terminal of the first sampling terminal (the negative terminal of the second sampling terminal), opening the second control switch 220 can achieve voltage isolation between the first sampling terminal and the connected ground terminal (i.e., the second sampling terminal).
[0128] As another example, the second control switch 220 includes: a first control sub-switch 221 and a second control sub-switch 222;
[0129] The first control sub-switch 221 is connected between the first sampling terminal and the second sampling network 210;
[0130] The second control sub-switch 222 is connected between the second sampling network 210 and the reference ground of the second sampling module 200 .
[0131] Exemplarily, the first end of the first control sub-switch 221 is connected to the positive electrode of the first sampling terminal, and the second end is connected to the first end of the second sampling network 210. The first end of the second control sub-switch 222 is connected to the second end of the second sampling network 210, and the second end is connected to the reference ground of the second sampling module 200. In this exemplary embodiment, the first control sub-switch 221 and the second control sub-switch 222 enable flexible control of the operating state of the second sampling network 210, thereby improving control reliability.
[0132] As another example, the second sampling module 200 further includes: a second processing module 230;
[0133] The second processing module 230 is connected to the second sampling network 210 and is configured to process the signals provided by the second sampling point and the third sampling point to obtain a second sampling signal.
[0134] In this example, the second processing module 230 is connected to the second sampling network 210 . Specifically, an input terminal of the second processing module 230 is connected to the second sampling point and the third sampling point for receiving signals provided by the second sampling point and the third sampling point.
[0135] The implementation of the second processing module 230 is similar to that of the first processing module 130 and will not be described in detail here.
[0136] In the solution of this example, the second processing module 230 can convert the original signals of the second sampling point and the third sampling point into second sampling signals suitable for use by subsequent circuits or systems, thereby improving the accuracy and reliability of the sampling circuit.
[0137] As another example, the second end of the second sub-sampling network 212 is connected between the main negative switch and the negative electrode of the first sampling end (G3); the second processing module 230 includes: a second sampling chip 231;
[0138] The first terminal of the second sampling chip 231 is connected to the power supply, the second terminal is connected to the connection point of the first sub-sampling network 211 and the second sub-sampling network 212, and the third terminal is connected to the negative reference ground (G4) of the second sampling terminal. The second sampling terminal is any external terminal of the at least one external terminal except the first sampling terminal.
[0139] The first input terminal of the second sampling chip 231 is connected to the second sampling point, and the second input terminal is connected to the third sampling point. The second sampling chip 231 is used to convert the input signal into a digital signal.
[0140] It should be noted that G3 is the negative reference ground of the first sampling terminal, and G4 is the negative reference ground of the second sampling terminal; the first sampling terminal and the second sampling terminal are both external terminals, so it is a possible situation that G3 and G4 are both G2 (the negative reference ground of any external terminal).
[0141] The first terminal of the second sampling chip 231 is connected to a power supply to provide an operating voltage, and the second terminal is connected to the connection point (i.e., the bias voltage node) between the first sub-sampling network 211 and the second sub-sampling network 212 to establish a reference potential. The first input terminal of the second sampling chip 231 is connected to the second sampling point, and the second input terminal is connected to the third sampling point, for receiving analog signals provided by the second and third sampling points. The second sampling chip 231 is configured to convert the input analog signal into a digital signal, thereby generating a second sampling signal.
[0142] The implementation of the second sampling chip 231 is similar to that of the first sampling chip 131 , and will not be described in detail here.
[0143] In this example, the analog-to-digital conversion function of the second sampling chip 231 can convert the analog signals at the second and third sampling points into digital signals, facilitating further processing and analysis by a subsequent digital system (such as a microcontroller or processor). Furthermore, by connecting the second end of the second sub-sampling network 212 to G3 (the load end) between the main negative switch and the negative electrode of the first sampling end, and by connecting the third end of the second sampling chip 231 to the negative reference ground G4 (the charging end) of the second sampling end, the load end and the charging end can be isolated by turning the first control sub-switch 221 and the second control sub-switch 222 on and off. This avoids the sampling errors and increased costs associated with using an isolation op amp, while achieving accurate sampling of the external end.
[0144] Figure 6 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 6 As shown, the second sampling module 200 includes: a first sub-sampling network 211 and a second sub-sampling network 212 under the second sampling network 210, the first sub-sampling network 211 including a second voltage divider unit 2111 and a second sampling unit 2112 (i.e., R3 and R4), the second sub-sampling network 212 including a third voltage divider unit 2121 and a third sampling unit 2122 (i.e., R5 and R6), a first control sub-switch 221 and a second control sub-switch 222 (i.e., S2 and S3) under the second control switch 220, and a second sampling chip 231 (i.e., ADC2) under the second processing module 230.
[0145] Specifically, switches S2 and S3 control the working state of the second sampling module 200. When S2 and S3 are closed, the voltage is divided from the positive electrode of the first sampling terminal by the voltage divider resistor R3, and then passes through the sampling resistor R4 to the voltage divider resistor R5, and passes through the second sampling point to the first input terminal of the analog-to-digital converter ADC2; after voltage division by R5, the voltage passes through the sampling resistor R6 to the negative reference ground of the first sampling terminal (G3 in the figure), and the voltage after voltage division by R5 also passes through the third sampling point to the second input terminal of the analog-to-digital converter ADC2. Among them, ADC2 is also connected between R4 and R5 to receive the bias voltage, and obtains the analog signals of the first input terminal and the second input terminal with the bias voltage as a reference and converts them into corresponding digital signals. The solution of this example can collect the voltage signal of the first sampling terminal by biasing after the main switch is disconnected, and obtain the corresponding digital signal.
[0146] It should be noted that the above-mentioned embodiments related to the second sampling module 200 can be used to detect and obtain the voltage of any external terminal, such as a load terminal or a charging terminal.
[0147] Figure 7 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 7 As shown, in Figure 3 Based on the example, the second sampling module 200 includes: a fourth voltage divider unit 241 and a fourth sampling unit 242 (i.e., R7 and R8), a first isolation operational amplifier 243, and a third control switch 244 (i.e., S4); wherein the fourth voltage divider unit 241 and the fourth sampling unit 242 include: an impedance element;
[0148] A first end of the fourth voltage divider unit 241 is connected between the positive electrode of the first sampling terminal and the main positive switch, and a second end is connected to the first end of the fourth sampling unit 242; a second end of the fourth sampling unit 242 is connected to the negative reference ground (G3) of the first sampling terminal; a third control switch 244 is connected in series with the fourth voltage divider unit 241 and the fourth sampling unit 242, and is configured to close when detecting the voltage of the first sampling terminal;
[0149] A first terminal of the input side of the first isolation operational amplifier 243 is connected to the power supply, a second terminal of the input side is connected to the connection point between the fourth voltage divider unit 241 and the fourth sampling unit 242, and a third terminal of the input side is connected to the negative reference ground (G3) of the first sampling terminal;
[0150] A first terminal of the output side of the first isolation operational amplifier 243 is connected to a power supply, a second terminal of the output side serves as a fourth sampling point, and a third terminal of the output side of the first isolation operational amplifier 243 is connected to the negative reference ground (G1) of the battery terminal; the second sampling signal includes a sampling signal at the fourth sampling point.
[0151] It should be noted that the embodiment of this example is applicable to the case where the reference ground of the second sampling module 200 is the negative electrode of the first sampling terminal. The implementation of the fourth voltage divider unit 241 and the fourth sampling unit 242 is similar to that of the first voltage divider unit 111 and the first sampling unit 112, and will not be further described here. In this example, the solution, through the cooperation of the fourth voltage divider unit 241 and the fourth sampling unit 242, can achieve accurate sampling and signal processing of the voltage at the first sampling terminal. The implementation of the third control switch 244 is similar to that of the first control switch 120, and will not be further described here. In this example, the solution controls the operating state of the second sampling module 200 through the third control switch 244, enabling flexible sampling of the voltage at the first sampling terminal. In this example, the isolated op amp can level-convert the signal at the connection point of the fourth voltage divider unit 241 and the fourth sampling unit 242 after the voltage division of the first sampling terminal to the reference ground of the first sampling module 100 (i.e., the negative electrode of the battery terminal), achieving unified processing of the sampled signals.
[0152] In this example, when the main switch is closed, the first sampling module is used to measure the voltage at the first sampling terminal, while the second sampling module is not used for sampling. This avoids sampling errors caused by the isolation op amp and improves sampling accuracy. On the other hand, when the main switch is disconnected, the second sampling module is used for sampling, which allows successful sampling of the first sampling terminal when the switch is disconnected. At the same time, the isolation op amp in the second sampling module can also achieve voltage isolation between the first sampling terminal and the battery terminal.
[0153] Figure 8 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 7 Based on the example, the fourth sampling point is connected to the second input terminal of the first sampling chip 131 .
[0154] In the solution of this example, the first sampling signal at the first sampling point and the second sampling signal at the fourth sampling point can be centrally processed simultaneously by the first sampling chip 131 , thereby simplifying the sampling circuit and reducing the cost of the sampling circuit by sharing the chip.
[0155] Optionally, the second sampling module 200 described above can be used for multiple external terminals simultaneously. For example, the second sampling modules 200 at the load terminal and the charging terminal can be connected to the first sampling chip 131 respectively, so that the first sampling chip 131 can process the second sampling signals of the load terminal and the charging terminal simultaneously.
[0156] Figure 9 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 9 As shown, in Figure 3 Based on the example, the sampling circuit further includes: a third sampling module 300;
[0157] The third sampling module 300 includes: a fifth voltage dividing unit 311 (ie, R9), a fifth sampling unit 312 (ie, R10), and a fourth control switch 313 (ie, S5); wherein the fifth voltage dividing unit 311 and the fifth sampling unit 312 include: an impedance element;
[0158] A first end of the fifth voltage divider unit 311 is connected between the positive electrode of the battery terminal and the main positive switch, and a second end is connected to the first end of the fifth sampling unit 312. A second end of the fifth sampling unit 312 is connected between the negative electrode of the battery terminal and the main negative switch (G1). The connection point between the fifth voltage divider unit 311 and the fifth sampling unit 312 serves as a fifth sampling point. The fifth sampling point is used to output a third sampling signal, which is used to detect the voltage of the battery terminal.
[0159] The fourth control switch 313 is connected in series with the fifth voltage dividing unit 311 and the fifth sampling unit 312 . The fourth control switch 313 is configured to be closed when detecting the voltage at the battery terminal.
[0160] In practical applications, the third sampling module 300 can also transmit the sampling signal to other circuits or components for signal processing to obtain the battery terminal voltage. For example, the battery terminal voltage can be obtained from the third sampling signal through calculations such as voltage division, voltage calibration, and compensation. This exemplary solution can be used in any of the embodiments to sample the battery terminal voltage through the third sampling module 300, thereby improving the data acquisition efficiency and sampling flexibility of the sampling circuit.
[0161] The implementation of the fifth voltage divider unit 311 and the fifth sampling unit 312 in this example is similar to that of the first voltage divider unit 111 and the first sampling unit 112, and will not be further described here. The solution of this example, through the cooperation of the fifth voltage divider unit 311 and the fifth sampling unit 312, can achieve accurate sampling and signal processing of the battery terminal voltage. In practical applications, by properly configuring the impedance elements in the fifth voltage divider unit 311 and the fifth sampling unit 312, accurate sampling and reliable processing of the battery terminal voltage can be achieved.
[0162] The control terminal of the fourth control switch 313 can be connected to a control circuit to control the operating state of the third sampling module 300 based on the battery terminal voltage detection requirements. The implementation of the fourth control switch 313 is similar to that of the first control switch 120 and will not be further described here. In this example, the fourth control switch controls the operating state of the third sampling module 300, enabling flexible sampling of the battery terminal voltage.
[0163] Figure 10 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 9 Based on the example, the fifth sampling point is connected to the third input terminal of the first sampling chip 131 .
[0164] It is understood that the ground terminal of the first sampling chip 131 is the negative terminal of the battery, and the third sampling module 300 is also connected to the negative terminal of the battery. Therefore, in this example, the fifth sampling point can be directly connected to the first sampling chip 131. In this example, the first sampling chip 131 can simultaneously and centrally process the first sampling signal at the first sampling point and the third sampling signal at the fifth sampling point. By sharing the chip, the sampling circuit is simplified and the cost of the sampling circuit is reduced.
[0165] Figure 11 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 11 As shown, in Figure 5 Based on the example, the sampling circuit further includes: a fourth sampling module 400;
[0166] The fourth sampling module 400 includes: a sixth voltage dividing unit 411 (ie, R11), a sixth sampling unit 412 (ie, R12), and a fifth control switch 413 (ie, S6); wherein the sixth voltage dividing unit 411 and the sixth sampling unit 412 include: an impedance element;
[0167] A first end of the sixth voltage divider unit 411 is connected between the positive electrode of the second sampling terminal and the main positive switch, and a second end is connected to the first end of the sixth sampling unit 412; a second end of the sixth sampling unit 412 is connected between the negative electrode of the second sampling terminal and the main negative switch (G4 in G2). The connection point between the sixth voltage divider unit 411 and the sixth sampling unit 412 serves as a sixth sampling point, which is used to output a fourth sampling signal. The fourth sampling signal is used to detect the voltage of the second sampling terminal.
[0168] The fifth control switch 413 is connected in series with the sixth voltage dividing unit 411 and the sixth sampling unit 412 . The fifth control switch 413 is configured to be closed when detecting the voltage at the second sampling end.
[0169] In this example, the implementation of the sixth voltage divider unit 411 and the sixth sampling unit 412 is similar to that of the first voltage divider unit 111 and the first sampling unit 112, and will not be further described here. In this example, the solution, through the cooperation of the sixth voltage divider unit 411 and the sixth sampling unit 412, can achieve accurate sampling and signal processing of the second sampling terminal voltage. In practical applications, by properly configuring the impedance elements in the sixth voltage divider unit 411 and the sixth sampling unit 412, accurate sampling and reliable processing of the battery terminal voltage can be achieved.
[0170] For example, the control terminal of the fifth control switch 413 can be connected to a control circuit for controlling the operating state of the fourth sampling module 400 based on the voltage detection requirements of the second sampling terminal. The implementation of the fifth control switch 420 is similar to that of the first control switch 120 and is not further described here. In this example, the fifth control switch 413 controls the operating state of the fourth sampling module 400, enabling flexible sampling of the voltage at the second sampling terminal.
[0171] Figure 12 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 12 As shown, in Figure 11 Based on the example, the sixth sampling point is connected to the third input terminal of the second sampling chip 231 .
[0172] It should be noted that when the reference ground of the second sampling chip 231 is the second sampling terminal, the sixth sampling point of the fifth sampling network 410 in this example can be directly connected to the second sampling chip 231. In this example, the second sampling chip can simultaneously and centrally process the second sampling signals at the second and third sampling points, and the fourth sampling signal at the sixth sampling point. The shared chip simplifies the sampling circuit and reduces the cost of the sampling circuit.
[0173] As another example, the first sampling terminal is a load terminal, and the second sampling terminal is a charging terminal; the sampling circuit further includes a charging switch;
[0174] The battery end is connected to the charging end through a main switch and a charging switch; the charging switch is used to be disconnected when the first sampling module is sampling.
[0175] The charging switch is used to be disconnected when the first sampling module 100 performs sampling.
[0176] For example, the charging switch can be a contactor or a relay. In this example, when the first sampling module 100 samples the voltage at the first sampling terminal, the charging switch is disconnected, thereby isolating the voltage between the first sampling terminal and the second sampling terminal, that is, the load terminal and the charging terminal, thereby improving the safety and accuracy of voltage sampling.
[0177] Figure 13 This is a schematic diagram of the structure of a sampling circuit provided in an embodiment of the present application. Figure 13 As shown, R1 and R2 and the first sampling point can be used to implement voltage-divided sampling of the load terminal voltage, wherein S1 can control the sampling circuit; R9 and R10 and the fifth sampling point can be used to implement voltage-divided sampling of the battery terminal voltage, wherein S5 can control the sampling circuit; further, the ground terminals of the two sampling circuits are both G1, and analog-to-digital conversion of the voltage signals of the first sampling point and the fifth sampling point can be implemented by sharing ADC1, while reducing hardware costs;
[0178] By providing a bias voltage to ADC2 through R3 and R4 and the second sampling point, R5 and R6 and the third sampling point, and the connection point between R4 and R5, bias sampling of the load terminal voltage can be achieved, wherein S2 and S3 can control the sampling circuit; by using R11 and R12 and the sixth sampling point, divided voltage sampling of the charging terminal voltage can be achieved, wherein S6 can control the sampling circuit; by sharing ADC2, analog-to-digital conversion of the voltage signals at the second sampling point, the third sampling point, and the sixth sampling point can be achieved, while reducing hardware costs;
[0179] When the main switch is closed, reference grounds G1 and G3 are connected, and closing S1 enables voltage sampling at the load end. Simultaneously, opening the charging switch and disconnecting S2 and S3 isolates the charging and load voltages. When the main switch is open, closing S2 and S3 enables voltage sampling at the load end. Closing S1 isolates the load and charging ends from the battery voltage. Furthermore, when sampling of either the battery or charging end is required, closing S5 or S6 increases sampling flexibility.
[0180] In the sampling circuit provided in the embodiment of the present application, a first sampling module using the negative electrode of the battery terminal as a reference ground and a second sampling module using the negative electrode of any external terminal as a reference ground are used. The first sampling module is used for sampling when the main switch is closed, and the second sampling module is used for sampling when the main switch is disconnected. This allows detection of the voltage of any external terminal under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is disconnected, thereby isolating the battery terminal from the load terminal, avoiding sampling errors caused by the use of an isolation op amp, and achieving accurate sampling of the external terminal.
[0181] An embodiment of the present application further provides a battery management system, which includes the sampling circuit in any of the above embodiments.
[0182] An embodiment of the present application further provides a battery, which includes the sampling circuit in any of the above embodiments or the battery management system in any of the above embodiments.
[0183] An embodiment of the present application also provides a vehicle, which includes the battery in any of the above embodiments.
[0184] Figure 14 This is a flow chart of a voltage sampling method provided in an embodiment of the present application. Figure 14 As shown, the method includes:
[0185] Step 101: When the main switch is closed, a first sampling signal obtained by sampling by a first sampling module of a sampling circuit is obtained; and when the main switch is open, a second sampling signal obtained by sampling by a second sampling module of the sampling circuit is obtained;
[0186] Step 102: Obtain a voltage at a first sampling terminal according to the first sampling signal or the second sampling signal.
[0187] In practical applications, the method can be implemented by a voltage sampling device. This can be done in a variety of ways, including through a computer program, such as application software; or through a medium storing the relevant computer program, such as a USB flash drive or cloud storage device; or through a physical device, such as a chip, that integrates or installs the relevant computer program. Optionally, the method can also be implemented by the microprocessor of a battery management system.
[0188] It should be noted that the second sampling module can operate to obtain the second sampling signal not only when the main switch is disconnected. When the ground terminal and the negative connection terminal of the second sampling module are the same terminal, the second sampling module can also operate to obtain the second sampling signal when the main switch is closed.
[0189] For example, the voltage at the first sampling terminal can be calculated based on the voltage divider ratio of the voltage divider circuits in the first sampling module and the second sampling module. Optionally, voltage calibration and compensation can be performed on the obtained first sampling signal and the second sampling signal to obtain the voltage at the first sampling terminal.
[0190] In the voltage sampling method provided in the embodiments of the present application, a first sampling module using the negative electrode of the battery terminal as a reference ground and a second sampling module using the negative electrode of any external terminal as a reference ground are used. The first sampling module is used for sampling when the main switch is closed, and the second sampling module is used for sampling when the main switch is disconnected. This allows detection of the voltage of any external terminal under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is disconnected, thereby isolating the battery terminal from the load terminal, avoiding sampling errors caused by the use of an isolation op amp, and achieving accurate sampling of the external terminal.
[0191] In one example, when the main switch is closed, obtaining a first sampling signal sampled by a first sampling module of a sampling circuit includes: when the main switch is closed, controlling a first control switch in the first sampling module to be closed and a second control switch in the second sampling module to be open, so that the first sampling module performs sampling.
[0192] In one example, obtaining the voltage of the first sampling end according to the first sampling signal specifically includes: obtaining the voltage of the first sampling end based on a voltage division detection method according to the sampling signal at the first sampling point.
[0193] The solution of this example, based on the voltage division detection method, can improve the accuracy of voltage calculation at the first sampling terminal.
[0194] In one example, obtaining the voltage of the first sampling end based on the sampling signal at the first sampling point based on a voltage divider detection method includes: calculating the ratio of the sum of the resistance of the first voltage divider unit and the resistance of the first sampling unit to the resistance of the first sampling unit, and multiplying the sampling signal at the first sampling point by the ratio to obtain the voltage of the first sampling end.
[0195] Exemplarily, the voltage calculation formula of the first sampling terminal is:
[0196]
[0197] Wherein, R1 is the resistance of the first voltage divider unit, R2 is the resistance of the first sampling unit, and V1 is the sampling signal at the first sampling point. The solution of this example can improve the accuracy of the voltage calculation of the first sampling terminal through the voltage calculation formula of the first sampling terminal.
[0198] In one example, when the main switch is disconnected, obtaining a second sampling signal sampled by a second sampling module of the sampling circuit includes: when the main switch is disconnected, controlling a second control switch in the second sampling module to close and controlling a first control switch in the first sampling module to disconnect, so that the second sampling module performs sampling.
[0199] In one example, controlling the second control switch to be closed includes controlling the first control sub-switch and the second control sub-switch to be closed.
[0200] In the solution of this example, the flexibility and reliability of sampling by the second sampling module can be improved through the first control sub-switch and the second control sub-switch.
[0201] In one example, obtaining the voltage of the first sampling terminal according to the second sampling signal includes: obtaining the voltage of the first sampling terminal based on a biased detection method according to sampling signals at the second sampling point and the third sampling point.
[0202] The solution of this example, based on the voltage division detection method, can improve the accuracy of voltage calculation at the first sampling terminal.
[0203] In one example, obtaining the voltage of the first sampling end based on the sampling signals at the second sampling point and the third sampling point based on a bias detection method includes: calculating the ratio of the sum of the resistance of the second voltage divider unit and the resistance of the second sampling unit to the resistance of the second sampling unit; calculating the difference between the sampling signal at the second sampling point and the signal at the third sampling point, and multiplying the difference by the ratio to obtain the voltage of the first sampling end.
[0204] Exemplarily, the voltage calculation formula of the first sampling terminal is:
[0205]
[0206] Where R3 is the resistance of the second voltage divider unit, R4 is the resistance of the second sampling unit, V2 is the sampling signal at the second sampling point, and V3 is the sampling signal at the third sampling point. The solution of this example improves the accuracy of the voltage calculation at the first sampling end through the voltage calculation formula at the first sampling end.
[0207] In one example, when the main switch is disconnected, obtaining the second sampling signal sampled by the second sampling module of the sampling circuit includes: when the main switch is disconnected, controlling the third control switch to close so that the second sampling module performs sampling.
[0208] The solution of this example, based on the voltage division detection method, can improve the accuracy of voltage calculation at the first sampling terminal.
[0209] In one example, obtaining the voltage of the first sampling end based on the sampling signal at the fourth sampling point based on a voltage divider detection method includes: calculating a ratio of a sum of the resistance of the fourth voltage divider unit and the resistance of the fourth sampling unit to the resistance of the fourth sampling unit, and multiplying the sampling signal at the fourth sampling point by the ratio to obtain the voltage of the first sampling end.
[0210] Exemplarily, the voltage calculation formula of the first sampling terminal is:
[0211]
[0212] Wherein, R7 is the resistance of the fourth voltage divider unit, R8 is the resistance of the fourth sampling unit, and V4 is the sampling signal at the fourth sampling point. The solution of this example can improve the accuracy of the voltage calculation of the first sampling terminal through the voltage calculation formula of the first sampling terminal.
[0213] In one example, the method further includes: controlling the fourth control switch to be closed so that the third sampling module performs sampling to obtain a third sampling signal; and obtaining the voltage at the battery terminal according to the third sampling signal.
[0214] In the solution of this example, the fourth control switch can improve the sampling accuracy of the third sampling module, and based on the third sampling signal obtained by the third module, the voltage of the battery terminal can be calculated on any exemplary basis.
[0215] In one example, obtaining the voltage of the battery terminal according to the third sampling signal includes: obtaining the voltage of the battery terminal based on a voltage division detection method according to the sampling signal at the fifth sampling point.
[0216] The solution of this example, based on the voltage division detection method, can improve the accuracy of battery terminal voltage calculation.
[0217] In one example, obtaining the voltage at the battery terminal based on the sampling signal at the fifth sampling point based on a voltage divider detection method includes: calculating a ratio of a sum of the resistance of the fifth voltage divider unit and the resistance of the fifth sampling unit to the resistance of the fifth sampling unit, and multiplying the sampling signal at the fifth sampling point by the ratio to obtain the voltage at the battery terminal.
[0218] For example, the voltage calculation formula of the battery terminal is:
[0219]
[0220] Wherein, R9 is the resistance of the fifth voltage divider unit, R2 is the resistance of the fifth sampling unit, and V5 is the sampling signal at the fifth sampling point. The solution of this example can improve the accuracy of the battery terminal voltage calculation by using the battery terminal voltage calculation formula.
[0221] In one example, the method further includes: controlling the fifth control switch to be closed, so that the fourth sampling module performs sampling to obtain a fourth sampling signal; and obtaining the voltage of the second sampling end according to the fourth sampling signal.
[0222] In the solution of this example, the fifth control switch can improve the sampling accuracy of the fourth sampling module, and based on the fourth sampling signal obtained by the fourth module, the voltage of the second sampling terminal can be calculated on any exemplary basis.
[0223] In one example, the fourth sampling signal includes a sampling signal at a sixth sampling point.
[0224] In the solution of this example, the voltage at the second sampling terminal can be accurately calculated through the sampling signal at the sixth sampling point.
[0225] In one example, obtaining the voltage of the second sampling terminal according to the fourth sampling signal includes: obtaining the voltage of the second sampling terminal based on a voltage division detection method according to the sampling signal at the sixth sampling point.
[0226] The solution of this example, based on the voltage division detection method, can improve the accuracy of voltage calculation at the second sampling terminal.
[0227] In one example, obtaining the voltage of the second sampling end based on the sampling signal at the sixth sampling point based on a voltage divider detection method includes: calculating a ratio of a sum of the resistance of the sixth voltage divider unit and the resistance of the sixth sampling unit to the resistance of the sixth sampling unit, and multiplying the sampling signal at the sixth sampling point by the ratio to obtain the voltage of the second sampling end.
[0228] Exemplarily, the voltage calculation formula of the second sampling terminal is:
[0229]
[0230] Among them, R 11 is the resistance of the sixth voltage divider unit, R 12 is the resistance value of the sixth sampling unit, and V6 is the sampling signal at the sixth sampling point. In this embodiment, the voltage calculation formula of the second sampling terminal can improve the accuracy of the voltage calculation of the second sampling terminal.
[0231] In the voltage sampling method provided in the embodiments of the present application, a first sampling module using the negative electrode of the battery terminal as a reference ground and a second sampling module using the negative electrode of any external terminal as a reference ground are used. The first sampling module is used for sampling when the main switch is closed, and the second sampling module is used for sampling when the main switch is disconnected. This allows detection of the voltage of any external terminal under any operating condition. Furthermore, the first sampling module is disconnected when the main switch is disconnected, thereby isolating the battery terminal from the load terminal, avoiding sampling errors caused by the use of an isolation op amp, and achieving accurate sampling of the external terminal.
[0232] Figure 15 This is a schematic diagram of the structure of a voltage detection device provided in an embodiment of the present application. Figure 15 As shown, the voltage detection device includes:
[0233] An acquisition module 91 is configured to acquire a first sampling signal sampled by a first sampling module of a sampling circuit when the main switch is closed, and to acquire a second sampling signal sampled by a second sampling module of the sampling circuit when the main switch is open;
[0234] The calculation module 92 is configured to obtain the voltage of the first sampling terminal according to the first sampling signal or the second sampling signal.
[0235] The voltage detection device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0236] Figure 16 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 16 As shown, the electronic device provided in this embodiment includes: a processor (processor) 291, the electronic device also includes a memory (memory) 292; and may also include a communication interface (communication interface) 293 and a bus 294. The processor 291, memory 292, and communication interface 293 can communicate with each other via bus 294. The communication interface 293 can be used for information transmission. The processor 291 can call the logic instructions in the memory 292 to execute the method of the above example.
[0237] In addition, the logic instructions in the memory 292 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0238] Memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. Processor 291 executes the software programs, instructions, and modules stored in memory 292 to execute functional applications and data processing, thereby implementing the methods in the above-mentioned method examples.
[0239] Memory 292 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Memory 292 may also include high-speed random access memory and non-volatile memory.
[0240] An embodiment of the present application further provides a computer program product, including a computer program, which implements the method of the above embodiment when executed by a processor.
[0241] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method of the above embodiment is implemented.
[0242] Finally, it should be noted that those skilled in the art will readily identify other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein. The present invention is not limited to the precise structure described above and illustrated in the accompanying drawings, and various modifications and variations may be made without departing from the scope thereof. The scope of the present invention is limited solely by the appended claims.
Claims
1. A sampling circuit, characterized in that: The sampling circuit includes a battery terminal and an external terminal, wherein the battery terminal is used to connect to a battery; wherein the positive electrode of the battery terminal is connected to the positive electrode of at least one of the external terminals via a main positive switch, and the negative electrode of the battery terminal is connected to the negative electrode of the at least one external terminal via a main negative switch; The sampling circuit further comprises: a first sampling module (100) and a second sampling module (200); the first sampling module (100) uses the negative electrode of the battery terminal as a reference ground, and the second sampling module (200) uses the negative electrode of any external terminal as a reference ground; the first sampling module (100) and the second sampling module (200) are both connected between the main positive switch and the positive electrode of the first sampling terminal, and the first sampling terminal is one of the at least one external terminal; The first sampling module (100) is used to sample and obtain a first sampling signal when the main switch is closed, and is disconnected when the main switch is disconnected; the second sampling module (200) is used to sample and obtain a second sampling signal when the main switch is disconnected; the first sampling signal and the second sampling signal are used to detect the voltage of the first sampling end.
2. The sampling circuit according to claim 1, wherein: The at least one external terminal includes: a load terminal and a charging terminal; the load terminal is used to connect to an external load, and the charging terminal is used to connect to a charging signal from the battery terminal.
3. The sampling circuit according to claim 1, wherein: The first sampling module (100) comprises: a first sampling network (110); The first end of the first sampling network (110) is connected between the main positive switch and the positive electrode of the first sampling end, and the second end is connected to the negative electrode reference ground of the battery end; the first sampling network (110) is provided with a first sampling point, and the first sampling signal includes a sampling signal at the first sampling point.
4. The sampling circuit according to claim 3, characterized in that: The first sampling network (110) comprises: a first voltage dividing unit (111) and a first sampling unit (112); The first voltage dividing unit (111) and the first sampling unit (112) are connected in series, and the connection point between the first voltage dividing unit (111) and the first sampling unit (112) serves as the first sampling point.
5. The sampling circuit according to claim 4, characterized in that: The first voltage dividing unit (111) and the first sampling unit (112) include: an impedance element.
6. The sampling circuit according to claim 3, characterized in that: The first sampling module (100) further includes: a first control switch (120); The first sampling network (110) and the first control switch (120) are connected in series, and the first control switch (120) is configured to be closed when the main switch is closed, and to be opened when the main switch is opened.
7. The sampling circuit according to claim 3, characterized in that: The first sampling module (100) further includes: a first processing module (130); The first processing module (130) is connected to the first sampling network (110) and is used to process the signal provided by the first sampling point to obtain the first sampling signal.
8. The sampling circuit according to claim 7, wherein: The first processing module (130) comprises: a first sampling chip (131); The first end of the first sampling chip (131) is connected to a power source, and the second end is connected to the negative reference ground of the battery end; the first input end of the first sampling chip (131) is connected to the first sampling point.
9. The sampling circuit according to claim 1, wherein: The second sampling module (200) comprises: a second sampling network (210); The first end of the second sampling network (210) is connected between the main positive switch and the positive electrode of the first sampling end, and the second end is connected to the reference ground of the second sampling module (200); the second sampling network (210) is provided with a second sampling point and a third sampling point, and the second sampling signal includes sampling signals at the second sampling point and the third sampling point.
10. The sampling circuit according to claim 9, characterized in that: The second sampling network (210) includes: a first sub-sampling network (211) and a second sub-sampling network (212); A first end of the first sub-sampling network (211) is connected between the main positive switch and the positive electrode of the first sampling end, and a second end is connected to a first end of the second sub-sampling network (212). The first sub-sampling network (211) is used to provide the second sampling point; a second end of the second sub-sampling network (212) is connected to a reference ground of the second sampling module (200). The second sub-sampling network (212) is used to provide the third sampling point.
11. The sampling circuit according to claim 10, characterized in that: The first sub-sampling network (211) comprises: a second voltage divider unit (2111) and a second sampling unit (2112), wherein the second voltage divider unit (2111) and the second sampling unit (2112) are connected, and a connection point between the second voltage divider unit (2111) and the second sampling unit (2112) is the second sampling point; And / or, the second sub-sampling network (212) comprises: a third voltage divider unit (2121) and a third sampling unit (2122), the third voltage divider unit (2121) and the third sampling unit (2122) are connected, and the connection point between the third voltage divider unit (2121) and the third sampling unit (2122) is the third sampling point.
12. The sampling circuit according to claim 11, characterized in that: The second voltage dividing unit (2111) and the second sampling unit (2112) include: an impedance element; And / or, the third voltage dividing unit (2121) and the third sampling unit (2122) include: an impedance element.
13. The sampling circuit according to claim 9, wherein: The second sampling module (200) further includes: a second control switch (220); The second sampling network (210) and the second control switch (220) are connected in series, and the second control switch (220) is configured to be opened when the main switch is closed, and closed when the main switch is opened.
14. The sampling circuit according to claim 13, wherein: The second control switch (220) comprises: a first control sub-switch (221) and a second control sub-switch (222); The first control sub-switch (221) is connected between the first sampling terminal and the second sampling network (210); The second control sub-switch (222) is connected between the second sampling network (210) and the reference ground of the second sampling module (200).
15. The sampling circuit according to claim 10, wherein: The second sampling module (200) further includes: a second processing module (230); The second processing module (230) is connected to the second sampling network (210) and is used to process the signals provided by the second sampling point and the third sampling point to obtain the second sampling signal.
16. The sampling circuit according to claim 15, characterized in that: The second end of the second sub-sampling network (212) is connected between the main negative switch and the negative electrode of the first sampling end; the second processing module (230) includes: a second sampling chip (231); The first end of the second sampling chip (231) is connected to a power supply, the second end is connected to a connection point between the first sub-sampling network (211) and the second sub-sampling network (212), and the third end is connected to the negative reference ground of the second sampling end; the second sampling end is any external end of the at least one external end except the first sampling end; The first input end of the second sampling chip (231) is connected to the second sampling point, and the second input end is connected to the third sampling point.
17. The sampling circuit according to claim 8, wherein: The second sampling module (200) comprises: a fourth voltage dividing unit (241) and a fourth sampling unit (242), a first isolation operational amplifier (243), and a third control switch (244); wherein the fourth voltage dividing unit (241) and the fourth sampling unit (242) comprise: an impedance element; The first end of the fourth voltage dividing unit (241) is connected between the positive electrode of the first sampling terminal and the main positive switch, and the second end is connected to the first end of the fourth sampling unit (242); the second end of the fourth sampling unit (242) is connected to the negative reference ground of the first sampling terminal; the third control switch (244) is connected in series with the fourth voltage dividing unit (241) and the fourth sampling unit (242), and the third control switch (244) is configured to be closed when detecting the voltage of the first sampling terminal; The first end of the input side of the first isolation operational amplifier (243) is connected to a power supply, the second end of the input side is connected to a connection point between the fourth voltage divider unit (241) and the fourth sampling unit (242), and the third end of the input side is connected to the negative reference ground of the first sampling end; A first end of the output side of the first isolation operational amplifier (243) is connected to a power supply, a second end of the output side serves as a fourth sampling point, and a third end of the output side of the first isolation operational amplifier (243) is connected to a negative reference ground of the battery terminal; the second sampling signal includes a sampling signal at the fourth sampling point.
18. The circuit according to claim 17, characterized in that The fourth sampling point is connected to the second input end of the first sampling chip (131).
19. The sampling circuit according to claim 8, wherein: The sampling circuit further comprises a third sampling module (300); the third sampling module (300) comprises: a fifth voltage dividing unit (311), a fifth sampling unit (312), and a fourth control switch (313); wherein the fifth voltage dividing unit (311) and the fifth sampling unit (312) comprise: an impedance element; The first end of the fifth voltage dividing unit (311) is connected between the positive electrode of the battery terminal and the main positive switch, and the second end is connected to the first end of the fifth sampling unit (312); the second end of the fifth sampling unit (312) is connected between the negative electrode of the battery terminal and the main negative switch, and the connection point between the fifth voltage dividing unit (311) and the fifth sampling unit (312) serves as the fifth sampling point; the fifth sampling point is used to output a third sampling signal, and the third sampling signal is used to detect the voltage of the battery terminal; The fourth control switch (313) is connected in series with the fifth voltage dividing unit (311) and the fifth sampling unit (312), and the fourth control switch (313) is configured to be closed when detecting the voltage at the battery terminal.
20. The sampling circuit according to claim 19, wherein: The fifth sampling point is connected to the third input terminal of the first sampling chip (131).
21. The sampling circuit according to claim 16, wherein: The sampling circuit further comprises a fourth sampling module (400); the fourth sampling module (400) comprises: a sixth voltage dividing unit (411), a sixth sampling unit (412), and a fifth control switch (413); wherein the sixth voltage dividing unit (411) and the sixth sampling unit (412) comprise: an impedance element; The first end of the sixth voltage dividing unit (411) is connected between the positive electrode of the second sampling terminal and the main positive switch, and the second end is connected to the first end of the sixth sampling unit (412); the second end of the sixth sampling unit (412) is connected between the negative electrode of the second sampling terminal and the main negative switch, and the connection point between the sixth voltage dividing unit (411) and the sixth sampling unit (412) serves as a sixth sampling point, and the sixth sampling point is used to output a fourth sampling signal, and the fourth sampling signal is used to detect the voltage of the second sampling terminal; The fifth control switch (413) is connected in series with the sixth voltage dividing unit (411) and the sixth sampling unit (412), and the fifth control switch (413) is configured to be closed when detecting the voltage of the second sampling end.
22. The sampling circuit according to claim 21, characterized in that: The sixth sampling point is connected to the third input terminal of the second sampling chip (231).
23. The sampling circuit according to claim 22, characterized in that: The first sampling terminal is a load terminal, and the second sampling terminal is a charging terminal; the sampling circuit further includes a charging switch; The battery terminal is connected to the charging terminal via a main switch and the charging switch; The charging switch is configured to be disconnected when the first sampling module performs sampling.
24. A battery management system, characterized in that: The battery management system comprises the sampling circuit according to any one of claims 1 to 23.
25. A battery, characterized in that: The battery includes the sampling circuit according to any one of claims 1 to 23 or the battery management system according to claim 24.
26. A vehicle, characterized in that: The vehicle includes the battery of claim 25 .
27. A voltage detection method, characterized in that: Based on the sampling circuit according to any one of claims 1 to 23, the method includes: When the main switch is closed, a first sampling signal sampled by the first sampling module of the sampling circuit is obtained; and when the main switch is open, a second sampling signal sampled by the second sampling module of the sampling circuit is obtained; The voltage of the first sampling end is obtained according to the first sampling signal or the second sampling signal.
28. The method according to claim 27, characterized in that When the main switch is closed, obtaining the first sampling signal sampled by the first sampling module of the sampling circuit includes: When the main switch is closed, the first control switch in the first sampling module is controlled to be closed and the second control switch in the second sampling module is controlled to be opened, so that the first sampling module performs sampling.
29. The method according to claim 27, characterized in that When the main switch is disconnected, obtaining a second sampling signal sampled by a second sampling module of the sampling circuit includes: When the main switch is disconnected, the second control switch in the second sampling module is controlled to be closed and the first control switch in the first sampling module is controlled to be disconnected, so that the second sampling module performs sampling.
30. The method according to claim 29, wherein The controlling the second control switch to be closed includes: The first control sub-switch and the second control sub-switch are controlled to be closed.
31. A voltage detection device, characterized in that: Based on the sampling circuit according to any one of claims 1 to 23, the device comprises: an acquisition module, configured to acquire a first sampling signal sampled by the first sampling module of the sampling circuit when the main switch is closed; and to acquire a second sampling signal sampled by the second sampling module of the sampling circuit when the main switch is open; A calculation module is used to obtain the voltage of the first sampling end according to the first sampling signal or the second sampling signal.
32. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 27 to 30.
33. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 27 to 30 when executed by a processor.
34. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 27 to 30.