A current detection circuit, device and charging apparatus
Patent Information
- Application Number
- CN202521453781.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2035-07-11
AI Technical Summary
[0004]为了解决上述技术问题,本实用新型实施例提供了一种电流检测电路、装置及充电设备,解决了现有技术中电流检测电路检测结果不准确的问题
本实用新型实施例提供的电流检测电路,由微控制器、转换模块、检测电路和连接器组成,通过在连接器的一端连接一个检测电路,该检测电路包括第一控制电路和第二控制电路,使该检测电路与微控制器连接。同时连接器分别与转换模块和外部设备连接,使得微控制器根据接收外部设备与连接器连接后产生的负载信号后,控制检测电路进行电流检测,从而实现的高精度AD值采样,提高了小电流检测的准确性。
Smart Images

Figure CN224861673U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of current detection technology, and in particular to a current detection circuit, device and charging equipment. Background Technology
[0002] Modern electronic devices are trending towards miniaturization and portability, such as power banks and smart home devices. These devices require compact internal spaces and need to integrate more functional modules, leading to increasingly complex circuit designs. Furthermore, to ensure proper operation, precise detection of small currents is necessary to promptly identify circuit anomalies and guarantee the stability and reliability of the devices.
[0003] Currently, low-current circuits are basically completed using operational amplifiers. While this traditional detection method can meet the detection requirements to a certain extent, it has obvious drawbacks. For example, during the detection process, the resistance value of the feedback resistor needs to be precisely adjusted to ensure that the operational amplifier operates at the appropriate gain. Even a slight error can lead to inaccurate detection results. Utility Model Content
[0004] To address the aforementioned technical problems, this utility model provides a current detection circuit, device, and charging equipment, which solves the problem of inaccurate detection results in the prior art.
[0005] A first aspect of this utility model provides a current detection circuit, including a microcontroller, a conversion module, a detection circuit, and a connector, wherein... The conversion module is connected to the microcontroller; The detection circuit includes a first control circuit and a second control circuit, wherein the first control circuit and the second control circuit are respectively connected to the microcontroller; Connectors are used to connect to the conversion module, detection circuit, and external devices, respectively. The microcontroller is used to control the detection circuit to perform current detection based on the load signal generated after the external device is connected to the connector.
[0006] In one possible implementation of the first aspect, the microcontroller includes a first control signal output terminal, a second control signal output terminal, a load signal input terminal, a first detection terminal, and a second detection terminal, wherein... The conversion module is connected to the first control signal output terminal of the microcontroller; The detection circuit is connected to the first control signal output terminal, the second control signal output terminal, the load signal input terminal, the first detection terminal, and the second detection terminal of the microcontroller, respectively.
[0007] In one possible implementation of the first aspect, the first control circuit includes a first MOSFET, a first resistor, and a second resistor, wherein, The first end of the first resistor and the first end of the second resistor are respectively connected to the source of the first MOSFET, the second end of the first resistor is connected to the first detection terminal, and the second end of the second resistor is connected to ground. The drain of the first MOSFET is connected to the connector, and the gate of the first MOSFET is connected to the first control signal output terminal.
[0008] In one possible implementation of the first aspect, the second control circuit includes a second MOSFET, a third resistor, and a fourth resistor, wherein, The first end of the third resistor and the first end of the fourth resistor are respectively connected to the source of the second MOSFET, the second end of the third resistor is connected to the second detection terminal, and the second end of the fourth resistor is connected to ground. The drain of the second MOSFET is connected to the connector, and the gate of the second MOSFET is connected to the second control signal output terminal.
[0009] In one possible implementation of the first aspect, the detection circuit further includes a wake-up circuit, wherein, The wake-up circuit includes a fifth resistor and a transistor. The first end of the fifth resistor is connected to a connector, the second end of the fifth resistor is connected to the base of the transistor, the collector of the transistor is connected to the load signal input terminal, and the emitter of the transistor is grounded.
[0010] In one possible implementation of the first aspect, the wake-up circuit further includes a sixth resistor, wherein, The first end of the sixth resistor is connected to the second end of the fifth resistor, and the second end of the sixth resistor is grounded.
[0011] In one possible implementation of the first aspect, the conversion module includes a current input terminal, a current output terminal, and a signal input terminal, wherein, The current input terminal is used to connect to the positive terminal of the power supply; The current output terminal connects to the input terminal of the connector; The signal input terminal is connected to the second control signal output terminal of the microcontroller.
[0012] To address the same technical problem, a second aspect of this utility model provides a current detection device, including a current detection circuit as described in the first aspect of this embodiment.
[0013] To address the same technical problem, a third aspect of this utility model provides a charging device, including a current detection circuit as described in the first aspect of this embodiment, or a current detection device as described in the second aspect of this embodiment.
[0014] The technical solution of this utility model has the following advantages: The current detection circuit provided in this embodiment of the invention comprises a microcontroller, a conversion module, a detection circuit, and a connector. A detection circuit, including a first control circuit and a second control circuit, is connected to one end of the connector, thereby connecting the detection circuit to the microcontroller. Simultaneously, the connector is connected to both the conversion module and an external device. This allows the microcontroller to control the detection circuit to perform current detection based on the load signal generated after the external device connects to the connector, achieving high-precision AD value sampling and improving the accuracy of small current detection. Attached Figure Description
[0015] To more clearly illustrate the specific embodiments of this utility model or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this utility model. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the overall module structure of the current detection circuit in this embodiment of the present invention; Figure 2 This is a schematic diagram of the overall circuit structure of the current detection circuit in an embodiment of this utility model; Reference numerals: 100, Microcontroller; 200, Conversion module; 300, Detection circuit; 400, Connector; 301, First control circuit; 302, Second control circuit; 303, Wake-up circuit; 400, Connector; 101, First control signal output terminal; 102, Second control signal output terminal; 103, Load signal input terminal; 104, First detection terminal; 105, Second detection terminal; 106, Power input terminal; 11, First MOSFET; 21, First resistor; 22, Second resistor; 12, Second MOSFET; 23, Third resistor; 24, Fourth resistor; 25, Fifth resistor; 31, Transistor; 26, Sixth resistor; 201, Current input terminal; 202, Current output terminal; 203, Signal input terminal; 1, Input terminal; 2, Positive differential signal pin; 3, Negative differential signal pin; 4, GND terminal. Detailed Implementation
[0017] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0018] In the description of this utility model, it should be noted that the terms "first", "second" and "third" are used only to describe the purpose and should not be construed as indicating or implying relative importance.
[0019] In the description of this utility model, it should be noted that, unless otherwise explicitly specified and limited, the term "connection" should be interpreted broadly. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can also refer to the internal connection of two components; it can be a wireless connection or a wired connection. Those skilled in the art can understand the specific meaning of the above terms in this utility model based on the specific circumstances.
[0020] The current detection circuit provided in this embodiment of the utility model, such as Figure 1 The embodiment shown includes a microcontroller 100, a conversion module 200, a detection circuit 300, and a connector 400. The conversion module 200 is connected to the microcontroller 100; The detection circuit 300 includes a first control circuit 301 and a second control circuit 302, wherein the first control circuit 301 and the second control circuit 302 are respectively connected to the microcontroller 100; Connector 400 is connected to conversion module 200, detection circuit 300 and external devices respectively; The microcontroller 100 is used to control the detection circuit 300 to perform current detection based on the load signal generated after the external device is connected to the connector 400.
[0021] The microcontroller 100 can be understood as a highly integrated single-chip microcomputer that interacts with other devices, receiving signals, data, and other information sent by external devices, performing data processing and logical operations, and then issuing corresponding instructions. Other devices include, but are not limited to, power supply devices, conversion modules, and detection circuits. For example, such as... Figure 1 As shown, the detection circuit 300 is connected to the microcontroller 100, and the microcontroller 100 is connected to the conversion module 200. When an external device is connected to the connector 400, a load voltage is generated, which powers the detection circuit 300, thereby outputting a wake-up signal to the microcontroller 100. The microcontroller 100 sends a high-level or low-level signal to the conversion module 200 based on the received wake-up signal. When a high-level signal is sent, the conversion module 200 is activated and starts working, converting the input DC voltage into the required output voltage. When a low-level signal is sent, the conversion module 200 stops working and enters a low-power or sleep state.
[0022] The detection circuit 300 can be understood as a detection circuit composed of multiple control circuits. It can select a suitable control circuit for current detection based on the current condition of the external device. For example, the detection circuit 300 includes a first control circuit 301 and a second control circuit 302. The first control circuit 301 and the second control circuit 302 have essentially the same structure and are both connected to the microcontroller 100 through corresponding ports to receive control signals from the microcontroller 100 or to enable the microcontroller 100 to perform accurate AD value sampling, thereby achieving small current detection. By setting only one detection circuit and connecting it to the connector and the microcontroller, and connecting the conversion module to the microcontroller, load signal transmission and current detection are achieved. This circuit structure simplifies the circuit structure and reduces costs while ensuring current detection accuracy.
[0023] Connector 400 includes multiple ports, such as input terminal 1, positive differential signal pin 2, negative differential signal pin 3, and GND terminal 4. Input terminal 1 is connected to conversion module 200, GND terminal 4 is connected to detection circuit 300, and positive differential signal pin 2 and negative differential signal pin 3 are mainly used for data transmission.
[0024] It should be noted that connector 400 can be any type of connector, including but not limited to TYPE-A interface connectors, TYPE-B interface connectors and TYPE-C interface connectors.
[0025] In one embodiment, the microcontroller 100 includes a first control signal output terminal 101, a second control signal output terminal 102, a load signal input terminal 103, a first detection terminal 104, and a second detection terminal 105, wherein, The conversion module 200 is connected to the first control signal output terminal 101 of the microcontroller 100; The detection circuit 300 is connected to the first control signal output terminal 101, the second control signal output terminal 102, the load signal input terminal 103, the first detection terminal 104, and the second detection terminal 105 of the microcontroller 100, respectively.
[0026] The microcontroller 100 has multiple ports for connecting to the conversion module 200 and the detection circuit 300, for example, such as Figure 2As shown, the microcontroller 100 includes at least a first control signal output terminal 101, a second control signal output terminal 102, a load signal input terminal 103, a first detection terminal 104, and a second detection terminal 105. Specifically, the first control signal output terminal 101 of the microcontroller 100 is connected to the conversion module 200, and the first control signal output terminal 101, the second control signal output terminal 102, the load signal input terminal 103, the first detection terminal 104, and the second detection terminal 105 of the microcontroller 100 are respectively connected to the detection circuit 300. In this way, control signal transmission and small current detection can be realized between the detection circuit 300 and the microcontroller 100.
[0027] In one embodiment, the first control circuit 301 includes a first MOSFET 11, a first resistor 21, and a second resistor 22, wherein, The first end of the first resistor 21 and the first end of the second resistor 22 are respectively connected to the source of the first MOS transistor 11, the second end of the first resistor 21 is connected to the first detection terminal 104, and the second end of the second resistor 22 is connected to ground. The drain of the first MOSFET 11 is connected to the connector 400, and the gate of the first MOSFET 11 is connected to the first control signal output terminal 101.
[0028] Figure 2 The detection circuit 300 shown mainly consists of two metal-oxide-semiconductor field-effect transistors (MOS). The first control circuit 301 includes a first MOS transistor 11 and a first resistor 21. The first MOS transistor 11 includes a source, a drain, and a gate. Its source is connected to the first terminal of the first resistor 21, and the second terminal of the first resistor 21 is connected to the first detection terminal 104 of the microcontroller 100, which enables the microcontroller 100 to detect the current in the detection circuit in real time. Its drain is connected to the GND pin 4 of the connector 400, which is used to receive the load voltage output by the connector 400. Its gate is connected to the first control signal output terminal 101 of the microcontroller 100, which enables the microcontroller 100 to control the on / off state of the first MOS transistor.
[0029] The first control circuit also includes a second resistor 22 for AD value sampling. Specifically, one end of the second resistor 22 is connected to the source of the first MOSFET 11, and the other end of the second resistor 22 is grounded. When the first MOSFET 11 is turned on, the source current flows through the second resistor 22, and the microcontroller 100 detects the voltage across the second resistor 22 through the first detection terminal 104.
[0030] In one embodiment, the second control circuit 302 includes a second MOSFET 12, a third resistor 23, and a fourth resistor 24, wherein, The first end of the third resistor 23 and the first end of the fourth resistor 24 are respectively connected to the source of the second MOS transistor 12, the second end of the third resistor 23 is connected to the second detection terminal 105, and the second end of the fourth resistor 24 is connected to ground. The drain of the second MOSFET 12 is connected to the connector 400, and the gate of the second MOSFET 12 is connected to the second control signal output terminal 102.
[0031] like Figure 2 As shown, the second control circuit 302 includes a second MOSFET 12 and a third resistor 23. The first MOSFET 11 is the same type of MOSFET as the first MOSFET, and also includes a source, drain, and gate. The source of the second MOSFET is connected to the first end of the third resistor 23, and the second end of the third resistor 23 is connected to the second detection terminal 105, which is used to enable the microcontroller 100 to detect the current in the detection circuit in real time. The drain of the second MOSFET 12 is connected to the connector 400, which is used to receive the load voltage output by the connector 400. The gate of the second MOSFET 12 is connected to the second control signal output terminal 102, which is used to enable the microcontroller 100 to control the on / off state of the second MOSFET.
[0032] The second control circuit also includes a fourth resistor 24 for AD value sampling. The first end of the fourth resistor 24 is connected to the source of the second MOSFET 12, and the second end of the fourth resistor 24 is grounded. When the second MOSFET 12 is turned on, the source current flows through the fourth resistor 24, and the microcontroller 100 detects the voltage across the fourth resistor 24 through the second detection terminal 105.
[0033] When the microcontroller 100 is woken up, it outputs a high-level signal through the first control signal output terminal 101. Upon receiving the high-level signal, the gates of the first MOSFET and the second MOSFET are turned on. When both MOSFETs are turned on, the second resistor 22 and the fourth resistor 24 are connected in parallel, with a total resistance of 4.97mR. This low-resistance design reduces power loss in the circuit, improves power conversion efficiency, and provides a more stable current output to external devices.
[0034] When the current of the external device is less than the preset current threshold, the first control signal output terminal 101 of the microcontroller 100 outputs a low level, and the second control signal output terminal 102 of the microcontroller 100 outputs a high level. Here, only the second MOSFET is turned on, so that the microcontroller 100 can detect the resistance value of the fourth resistor 24 through the second detection terminal 105, thereby achieving accurate sampling of the high resistance AD value and achieving the purpose of detecting small current.
[0035] It should be noted that the total resistance after parallel connection is not limited to 4.97mR and can be set according to actual needs. The preset current threshold is not limited to 100mA.
[0036] In one embodiment, the detection circuit 300 further includes a wake-up circuit 303, wherein, The wake-up circuit 303 includes a fifth resistor 25 and a transistor 31. The first end of the fifth resistor 25 is connected to the connector 400, the second end of the fifth resistor 25 is connected to the base of the transistor 31, the collector of the transistor 31 is connected to the load signal input terminal 103, and the emitter of the transistor 31 is grounded.
[0037] like Figure 2 As shown, the GND pin 4 of connector 400 is connected to a fifth resistor 25, and the other end of the fifth resistor is connected to a transistor 31. When an external device is connected to connector 400, it outputs a load voltage, that is, the voltage of GND pin 4 of connector 400 is pulled high by the external device, outputting a high-level signal. This high-level signal, after being current-limited by the fifth resistor 25, provides sufficient current to the base of transistor 31, causing it to enter the conducting state. Because transistor 31 is conducting, the level at the collector of transistor 31 is pulled high, becoming a high-level signal. The load signal input terminal 103 of microcontroller 100 detects this high-level signal and identifies it as a wake-up signal, thereby waking up microcontroller 100 which is in a low-power standby state.
[0038] In one embodiment, the wake-up circuit 303 further includes a sixth resistor 26, wherein, The first end of the sixth resistor 26 is connected to the second end of the fifth resistor 25, and the second end of the sixth resistor 26 is grounded.
[0039] It can be understood that the wake-up circuit 303 also includes a sixth resistor 26, the first end of which is connected to the second end of the fifth resistor 25. The second end of the sixth resistor 26 is grounded and used to cooperate with the fifth resistor 25 to further adjust the voltage of the base of the input transistor 31, thereby providing a stable voltage to the base of the transistor 31.
[0040] In one embodiment, the conversion module 200 includes a current input terminal 201, a current output terminal 202, and a signal input terminal 203, wherein, The current input terminal 201 is used to connect to the positive terminal of the power supply; The current output terminal 202 is connected to the input terminal of connector 400; The signal input terminal is connected to the second control signal output terminal 102 of the microcontroller 100.
[0041] Figure 2A conversion module 200 is also shown, which includes a current input terminal 201, a current output terminal 202, and a signal input terminal 203. The current input terminal 201 is used to connect to the positive terminal of the power supply to ensure a stable DC voltage input. The current output terminal 202 of the conversion module 200 is connected to the input terminal 1 of a connector 400, which serves as a power output interface for further powering external devices. The signal input terminal is connected to the second control signal output terminal 102 of the microcontroller 100 to receive signals, such as high-level or low-level signals, from the microcontroller 100.
[0042] It should be noted that the conversion module 200 is preferably a DC-DC converter module.
[0043] In one embodiment, the microcontroller 100 further includes a power input terminal 106, wherein the power input terminal 106 is used to connect to the positive terminal of a power supply.
[0044] It can be understood that, in addition to the first control signal output terminal 101, the second control signal output terminal 102, the load signal input terminal 103, the first detection terminal 104, and the second detection terminal 105, the microcontroller 100 also includes a power input terminal 106, which is connected to the positive terminal of the power supply so that the power supply can provide power to the microcontroller 100.
[0045] The current detection device provided in this embodiment includes the current detection circuit proposed in this embodiment.
[0046] The charging device provided in this embodiment includes the current detection circuit or the current detection device proposed in this embodiment.
[0047] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0048] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this utility model. It should be understood that the above descriptions are merely specific embodiments of this utility model and do not limit the scope of protection of this utility model. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this utility model by those skilled in the art should be included within the scope of protection of this utility model.
Claims
1. A current detection circuit, characterized in that, It includes a microcontroller (100), a conversion module (200), a detection circuit (300), and a connector (400), wherein, The conversion module (200) is connected to the microcontroller (100); The detection circuit (300) includes a first control circuit (301) and a second control circuit (302), wherein the first control circuit (301) and the second control circuit (302) are respectively connected to the microcontroller (100); The connector (400) is connected to the conversion module (200), the detection circuit (300), and external devices, respectively; The microcontroller (100) is used to control the detection circuit (300) to perform current detection based on the load signal generated after the external device is connected to the connector (400).
2. The current detection circuit as described in claim 1, characterized in that, The microcontroller (100) includes a first control signal output terminal (101), a second control signal output terminal (102), a load signal input terminal (103), a first detection terminal (104), and a second detection terminal (105), wherein, The conversion module (200) is connected to the first control signal output terminal (101) of the microcontroller (100); The detection circuit (300) is connected to the first control signal output terminal (101), the second control signal output terminal (102), the load signal input terminal (103), the first detection terminal (104), and the second detection terminal (105) of the microcontroller (100).
3. The current detection circuit as described in claim 2, characterized in that, The first control circuit (301) includes a first MOSFET (11), a first resistor (21), and a second resistor (22), wherein, The first end of the first resistor (21) and the first end of the second resistor (22) are respectively connected to the source of the first MOS transistor (11), the second end of the first resistor (21) is connected to the first detection terminal (104), and the second end of the second resistor (22) is connected to ground. The drain of the first MOS transistor (11) is connected to the connector (400), and the gate of the first MOS transistor (11) is connected to the first control signal output terminal (101).
4. The current detection circuit as described in claim 2, characterized in that, The second control circuit (302) includes a second MOSFET (12), a third resistor (23), and a fourth resistor (24), wherein, The first end of the third resistor (23) and the first end of the fourth resistor (24) are respectively connected to the source of the second MOS transistor (12), the second end of the third resistor (23) is connected to the second detection terminal (105), and the second end of the fourth resistor (24) is connected to ground. The drain of the second MOS transistor (12) is connected to the connector (400), and the gate of the second MOS transistor (12) is connected to the second control signal output terminal (102).
5. The current detection circuit as described in claim 2, characterized in that, The detection circuit (300) further includes a wake-up circuit (303), wherein, The wake-up circuit (303) includes a fifth resistor (25) and a transistor (31). The first end of the fifth resistor (25) is connected to the connector (400), the second end of the fifth resistor (25) is connected to the base of the transistor (31), the collector of the transistor (31) is connected to the load signal input terminal (103), and the emitter of the transistor (31) is grounded.
6. The current detection circuit as described in claim 5, characterized in that, The wake-up circuit (303) also includes a sixth resistor (26), wherein, The first end of the sixth resistor (26) is connected to the second end of the fifth resistor (25), and the second end of the sixth resistor (26) is grounded.
7. The current detection circuit as described in claim 1, characterized in that, The conversion module (200) includes a current input terminal (201), a current output terminal (202), and a signal input terminal (203), wherein, The current input terminal (201) is used to connect to the positive terminal of the power supply; The current output terminal (202) is connected to the input terminal (1) of the connector (400); The signal input terminal (203) is connected to the second control signal output terminal (102) of the microcontroller (100).
8. The current detection circuit as described in claim 1, characterized in that, The microcontroller (100) also includes a power input terminal (106), wherein the power input terminal (106) is used to connect to the positive terminal of a power supply.
9. A current detection device, characterized in that, Includes the current detection circuit as described in any one of claims 1-8.
10. A charging device, characterized in that, It includes the current detection circuit as described in any one of claims 1-8, or the current detection device as described in claim 9.