Output power detection circuit of multi-path output port and electronic equipment
By using a sampling circuit in the multiple output port of the energy storage power supply to obtain the output current and voltage, and calculating the output power through the control module, the problems of long production time, low efficiency and high cost of detection devices in the prior art are solved, and efficient and low-cost power detection is achieved.
Patent Information
- Application Number
- CN202421102063.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2034-05-20
AI Technical Summary
When the prior art performs power detection of multi-output port energy storage power supply, the testing device is produced and manufactured and tested for a long time, has low production efficiency and high production costs.
It provides an output power detection circuit of a multiple output port, including a power supply module and a control module. It performs operation sampling at the output port through the sampling circuit, obtains the output current and output voltage, and transmits it to the control module through the sampling pin of the control module, and performs data processing to calculate the output power.
The power detection of multiple output ports is realized without the need for additional operational amplifiers, which simplifies the logic and circuit of the detection circuit, reduces production and manufacturing test time, improves production efficiency and reduces production costs.
Smart Images

Figure CN222866777U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of energy storage power supplies, and in particular to an output power detection circuit and electronic equipment with multiple output ports. Background Art
[0002] When detecting the output power of the port of an energy storage power product, the prior art mostly adopts the following scheme: obtaining the voltage signal when the current output from the output port passes through the current sensing resistor, amplifying the voltage signal through an operational amplifier, and finally performing a logical operation on the amplified voltage signal through an MCU, and determining the output power of the output port based on the current value output from the output port and the amplified voltage signal.
[0003] At present, most energy storage power supply products on the market are equipped with multiple output ports. For energy storage power supply products with multiple output ports, if the existing technology is used to detect the output power of the multiple output ports, it is necessary to set an operational amplifier at each output port, and each operational amplifier needs to be calibrated for zero drift during the production test process, which results in a long production and testing time for the detection device, low production efficiency and high production cost. Utility Model Content
[0004] The present application provides an output power detection circuit and electronic equipment with multiple output ports to solve the technical problems in the prior art of long production and testing time, low production efficiency and high production cost of the detection device when performing power detection on a multi-output port energy storage power supply.
[0005] In a first aspect, the present application provides an output power detection circuit for multiple output ports, the circuit comprising a power supply module and a control module, the control module comprising a plurality of sampling pins, each of the sampling pins corresponding to a different output port, and the output port is connected to the corresponding sampling pin through a sampling circuit;
[0006] One end of the power supply module is connected to an external power supply, and the other end of the power supply module is connected to the control module. The power supply module is used to divide the voltage of the external power supply to provide a working voltage for the control module;
[0007] The sampling circuit includes a voltage sampling unit and a current sampling unit, wherein the voltage sampling unit is used to detect the output voltage of the output port and input the output voltage into the control module, and the current sampling unit is used to detect the output current of the output port and input the output current into the control module;
[0008] The control module is used to calculate the output power of the output port corresponding to the sampling pin according to the received output voltage and the output current.
[0009] In a second aspect, the present application provides an electronic device, which includes an output power detection circuit of multiple output ports as described in the first aspect.
[0010] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: through the technical solution provided by the present application, the output current and output voltage of the output port are sampled by the sampling circuit at the output port, and the sampled output current and output voltage are transmitted to the control module through the sampling pin of the control module, and the control module processes the sampled data, thereby completing the calculation of the output power of the output port based on the output current and output voltage; a plurality of sampling pins are provided on the control module, and each sampling pin corresponds to a different output port connected, so as to realize the power detection of multiple output ports. The technical solution provided by the present application does not require the aid of an additional operational amplifier when performing output power detection of the output port, the logic and circuit of the detection circuit are relatively simple, and no additional settings are required, which effectively reduces the production and testing time of the detection device, improves the production efficiency of the detection device, and reduces the production cost of the detection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] 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.
[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0013] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0014] Figure 1 A connection diagram of an output power detection circuit for multiple output ports provided in an embodiment of the present application.
[0015] Figure 2 A circuit connection diagram of an output power detection circuit for multiple output ports provided in an embodiment of the present application.
[0016] Figure 3 A circuit connection diagram of a power supply module in an output power detection circuit of multiple output ports provided in an embodiment of the present application.
[0017] Figure 4 A circuit connection diagram of a port control unit in an output power detection circuit for multiple output ports provided in an embodiment of the present application.
[0018] Description of the drawings: 1. Power supply module; 2. Control module; 3. Sampling pin; 4. Sampling circuit; 41. Voltage sampling unit; 42. Current sampling unit; 43. Port control unit; 5. Communication pin; R1. First resistor; R2. Second resistor; R3. Third resistor; R4. Fourth resistor; C1. First capacitor; C2. Second capacitor; C3. Third capacitor; C4. Fourth capacitor; D1. Diode; U1. Voltage divider unit. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0020] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0021] In order to solve the technical problems in the prior art that when the prior art performs power detection on a multi-output port energy storage power supply, the production and testing time of the detection device is long, the production efficiency is low, and the production cost is high, the present application provides an output power detection circuit with multiple output ports, which can realize output power detection of multiple output ports without using an operational amplifier, thereby reducing the production time and production cost of the detection device.
[0022] Figure 1 A connection diagram of an output power detection circuit for a multi-channel output port provided in an embodiment of the present application, referring to Figure 1 The present application provides an output power detection circuit for multiple output ports, including a power supply module 1 and a control module 2, wherein the control module 2 includes a plurality of sampling pins 3, each sampling pin 3 corresponds to an output port of a different path, and the output port is connected to the corresponding sampling pin 3 through a sampling circuit 4;
[0023] One end of the power supply module 1 is connected to an external power supply, and the other end of the power supply module 1 is connected to the control module 2. The power supply module 1 is used to divide the voltage of the external power supply to provide a working voltage for the control module 2;
[0024] The sampling circuit 4 includes a voltage sampling unit 41 and a current sampling unit 42. The voltage sampling unit 41 is used to detect the output voltage of the output port and input the output voltage into the control module 2. The current sampling unit 42 is used to detect the output current of the output port and input the output current into the control module 2.
[0025] The control module 2 is used to calculate the output power of the output port corresponding to the sampling pin 3 according to the received output voltage and output current.
[0026] Specifically, the output power detection circuit of a multi-channel output port provided by the present application can be set inside the energy storage power supply product, and when the output port of the energy storage power supply product is outputting to the outside, the output power detection of the multi-channel output port is realized. In another aspect, the output power detection circuit of a multi-channel output port provided by the present application can also be set in a supporting external detection device of the energy storage power supply product, and by connecting the detection device to the energy storage power supply product, the output power detection of the multi-channel output port is realized when the multi-channel output port of the energy storage power supply product is working.
[0027] The output ports of the energy storage power supply product may include multiple types, including but not limited to USB_A, USB_C, DC and other types of ports. The output power detection circuit of a multi-channel output port provided in the present application can realize the output power detection of any of the above types of output ports.
[0028] The output port is connected to an external power supply and is used to supply power to an electrical load connected to the output port. When the output port of the energy storage power supply product outputs externally, the external power supply supplies power to the electrical load through the output port. It should be noted that the external power supply generally refers to a power supply device that is not included in an output power detection circuit of a multi-channel output port provided in this application. The external power supply can be a power supply device contained in the energy storage power supply product or the energy storage power supply product itself.
[0029] On one hand, the external power supply is directly connected to the output port to supply power to the output port, and on the other hand, the external power supply is connected to the control module 2 to supply power to the control module 2 through voltage division to provide the control module 2 with a working voltage.
[0030] The control module 2 includes a plurality of sampling pins 3 , each sampling pin 3 corresponds to an output port, and the output port is connected to the corresponding sampling pin 3 via a sampling circuit 4 .
[0031] The sampling circuit 4 includes a current sampling unit 42 and a voltage sampling unit 41. The voltage sampling unit 41 is connected between the output port and the power supply module 1, and is used to sample the output voltage of the output port. The voltage sampling unit 41 is also connected to the control module 2, and can transmit the output voltage to the control module 2 through the corresponding sampling pin 3 of the sampled output port; the current sampling unit 42 is connected to the output port and is also connected to the control module 2, and is used to sample the output current of the output port, and transmit the output current to the control module 2 through the corresponding sampling pin 3 of the sampled output port.
[0032] In a feasible embodiment of the present application, the sampling pin 3 includes a voltage sampling pin 3 and a current sampling pin 3;
[0033] One end of the voltage sampling unit 41 is connected to the voltage sampling pin 3 and the power supply module 1 respectively, and the other end of the voltage sampling unit 41 is connected to the output port;
[0034] One end of the current sampling unit 42 is connected to the current sampling pin 3 and the output port respectively, and the other end of the current sampling unit 42 is grounded.
[0035] Specifically, in the internal logic of the control module 2, the voltage sampling pin 3 and the current sampling pin 3 connected to the same sampling circuit 4 can be regarded as a group of sampling pins 3, a group of sampling pins 3 corresponds to an output port, and the output current of the corresponding output port can be determined through the current sampling pin 3 in the group of sampling pins 3, and the output voltage of the corresponding output port can be determined through the voltage sampling pin 3 in the group of sampling pins 3, thereby determining the output power of the output port.
[0036] Through the technical solution provided by this embodiment, when multiple output ports are working at the same time, different output ports can be distinguished based on different groups of sampling pins 3 connected to different output ports, thereby accurately detecting the output power of different output ports.
[0037] In a feasible embodiment of the present application, the voltage sampling unit 41 includes a first resistor R1, a second resistor R2 and a third resistor R3;
[0038] One end of the first resistor R1 is connected to the output port, the other end of the first resistor R1 is respectively connected to one end of the second resistor R2 and one end of the third resistor R3, the other end of the second resistor R2 is connected to the voltage sampling pin 3, and the other end of the third resistor R3 is grounded.
[0039] Specifically, refer to Figure 2 , Figure 2A circuit connection diagram of an output power detection circuit for a multi-channel output port provided in the present application. In the present embodiment, the control module 2 includes 32 pins 1-32, of which pins 13, 18, 21, 22, 23, 24, and 25 are voltage sampling pins 3. Taking pin 25 as an example, the voltage sampling unit 41 is connected to pin 25. When the output voltage of the output port passes through the voltage sampling unit 41, it is divided on the first resistor R1, the second resistor R2, and the third resistor R3. The output voltage of the output port is sampled by sampling the voltages on the first resistor R1, the second resistor R2, and the third resistor R3.
[0040] In a feasible embodiment of the present application, a third capacitor C3 is also connected between the second resistor R2 and the voltage sampling pin 3, one end of the third capacitor C3 is respectively connected to one end of the second resistor R2 and the voltage sampling pin 3, and the other end of the third capacitor C3 is grounded. The third capacitor C3 is used to filter the voltage sampling unit 41.
[0041] In a feasible embodiment of the present application, the current sampling unit 42 includes a fourth resistor R4 , one end of the fourth resistor R4 is respectively connected to the current sampling pin 3 and the output port, and the other end of the fourth resistor R4 is grounded.
[0042] Specifically, refer to Figure 1 and Figure 2 When the output port is output with load, the output current generates a voltage drop through the fourth resistor R4, and the voltage drop on the fourth resistor R4 will be transmitted to the current sampling pin 3 connected to the current sampling unit 42. After the control module 2 knows the resistance value of the fourth resistor R4 and the voltage drop on the fourth resistor R4, the output current of the output port can be determined.
[0043] In a feasible embodiment of the present application, refer to Figure 2 One end of the fourth resistor R4 is connected to the output port, the other end of the fourth resistor R4 is respectively connected to the current sampling pin 3 and one end of the fourth capacitor C4, the other end of the fourth capacitor C4 is grounded, and the fourth capacitor C4 is used to filter the current sampling unit 42.
[0044] like Figure 2 In the circuit shown, pins 6, 7, 8, 9, 10, 11, and 12 are current sampling pins 3.
[0045] In a feasible embodiment of the present application, the control module 2 further includes a communication pin 5, and the communication pin 5 is used to transmit the output power of the output port to the upper circuit through an I2C signal.
[0046] Specifically, refer to Figure 2, pins 19 and 20 are the communication pins 5 of the control module 2, which are used to transmit the output power of the output port calculated by the control module 2 to the upper circuit. The upper circuit can be connected to a display or interactive device for interacting with the user to show the user the current output power of each output port.
[0047] In other feasible embodiments of the present application, the communication pin 5 can also transmit the output power of the output port calculated by the control module 2 to the upper circuit based on serial port communication.
[0048] In a feasible embodiment of the present application, the control module 2 is a 12-bit MCU, and the model of the control module 2 is N32G031.
[0049] In a feasible embodiment of the present application, the sampling pin 3 is an AD input pin of a 12-bit MCU.
[0050] Based on the above embodiments, refer to Figure 2 The specific connection method of the output power detection circuit of a multi-channel output port provided by the present application can be as follows: Figure 2 shown.
[0051] When the control module 2 is an MCU of model N32G031, pins 1, 32 and pins 16 and 17 of the control module 2 are power supply pins, connected to the power supply module 1; pins 2, 3, 4 and 5 of the control module 2 are reset pins, used to reset the control module 2; pins 6, 7, 8, 9, 10, 11 and 12 of the control module 2 are current sampling pins 3, connected to the multi-channel output port through the current sampling unit 42, and used to adopt the output current of the output port; pins 13, 18, 21, 22, 23, 24 and 25 of the control module 2 are voltage sampling pins 3, connected to the multi-channel output port through the voltage sampling unit 41, and used to adopt the output voltage of the output port; pins 19 and 20 of the control module 2 are communication pins 5, used to communicate with the upper circuit; pins 14, 15, 26, 27, 28, 29 and 30 of the control module 2 are left empty; and pin 31 of the control module 2 is a ground pin.
[0052] In a feasible embodiment of the present application, the power supply module 1 includes a diode D1, a voltage dividing unit U1, a first capacitor C1 and a second capacitor C2;
[0053] The positive electrode of the diode D1 is connected to the external power supply, the negative electrode of the diode is respectively connected to the input end of the voltage divider unit U1 and one end of the first capacitor C1, the other end of the first capacitor C1 is grounded, the output end of the voltage divider unit U1 is respectively connected to the second capacitor C2 and the control module 2, the other end of the second capacitor C2 is grounded, and the ground end of the voltage divider unit U1 is grounded;
[0054] The voltage dividing unit U1 is used to divide the voltage of the external power supply, divide the external voltage input by the external power supply into the working voltage of the control module 2 , and input the working voltage into the control module 2 .
[0055] Specifically, refer to Figure 3 The power supply module 1 includes a voltage divider unit U1. The model of the voltage divider unit U1 can be SOT23-3. When the external voltage is input through the input end of the voltage divider unit U1, the voltage divider unit U1 divides the external voltage into a fixed working voltage and outputs it at the output end of the voltage divider unit U1. The output end of the voltage divider unit U1 is connected to the voltage input end of the control module 2, and the voltage divider unit U1 supplies power to the control module 2.
[0056] Based on the embodiment in which the control module 2 is model N32G031, the divided working voltage of the voltage divider unit U1 may be 3.3V, and the voltage input terminal of the control module 2 connected to the output terminal of the voltage divider unit U1 is pin 1 of the control module 2 .
[0057] In the power supply module 1 , the first capacitor C1 and the second capacitor C2 are both used for filtering.
[0058] In a feasible embodiment of the present application, the sampling circuit 4 further includes a port control unit 43;
[0059] The port control unit 43 is connected between the output port and the power supply module 1 , and is used to control the output voltage of the output port corresponding to the port control unit 43 .
[0060] Specifically, the port control unit 43 can control the output voltage of the output port connected thereto. When multiple output ports output simultaneously, separate control of specific ports can be achieved through different port control units 43 .
[0061] The port control unit 43 is specifically composed of a port control MCU and an external circuit, wherein the external circuit forms a BOOST-BUCK circuit in its connection mode, and controls the output power of the output port through the logic control of the port control MCU.
[0062] In a feasible embodiment of the present application, the port control unit 43 may include a communication pin 5, and the communication pin 5 of the port control unit 43 communicates with the communication pin 5 of the control module 2, so that the port control unit 43 can control the output voltage of the output port based on the output power of the output port detected by the control module 2.
[0063] In a feasible embodiment of the present application, the USB_A port and the USB_C port need to be controlled by different port control units 43 because of their different port structures. When the output port is USB_C, the connection method of the port control unit 43 can be as follows: Figure 4 shown.
[0064] Through the technical solution provided in the present application, the control module 2 can determine the output current of the corresponding output port connected to the current sampling unit 42 through the current sampling unit 42, determine the output voltage of the corresponding output port connected to the voltage sampling unit 41 through the voltage sampling unit 41, and multiply the output voltage received by the sampling pin 3 by the output current inside the control module 2 to obtain the output power of the corresponding output port connected to the sampling pin 3; when multiple sampling pins 3 set on the control module 2 are connected to multiple output ports, the output power detection of the multiple output ports is realized.
[0065] In addition, an embodiment of the present application further provides an electronic device, which includes an output power detection circuit of a multi-channel output port as described in each of the above embodiments.
[0066] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0067] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. An output power detection circuit for multiple output ports, characterized in that: The circuit includes a power supply module and a control module, the control module includes a plurality of sampling pins, each of the sampling pins corresponds to an output port of a different path, and the output port is connected to the corresponding sampling pin through a sampling circuit; One end of the power supply module is connected to an external power supply, and the other end of the power supply module is connected to the control module. The power supply module is used to divide the voltage of the external power supply to provide a working voltage for the control module; The sampling circuit includes a voltage sampling unit and a current sampling unit, wherein the voltage sampling unit is used to detect the output voltage of the output port and input the output voltage into the control module, and the current sampling unit is used to detect the output current of the output port and input the output current into the control module; The control module is used to calculate the output power of the output port corresponding to the sampling pin according to the received output voltage and the output current.
2. The circuit according to claim 1, characterized in that The sampling pins include a voltage sampling pin and a current sampling pin; One end of the voltage sampling unit is connected to the voltage sampling pin and the power supply module respectively, and the other end of the voltage sampling unit is connected to the output port; One end of the current sampling unit is connected to the current sampling pin and the output port respectively, and the other end of the current sampling unit is grounded.
3. The circuit according to claim 2, characterized in that The voltage sampling unit includes a first resistor, a second resistor and a third resistor; One end of the first resistor is connected to the output port, the other end of the first resistor is respectively connected to one end of the second resistor and one end of the third resistor, the other end of the second resistor is connected to the voltage sampling pin, and the other end of the third resistor is grounded.
4. The circuit according to claim 2, characterized in that The current sampling unit includes a fourth resistor, one end of the fourth resistor is respectively connected to the current sampling pin and the output port, and the other end of the fourth resistor is grounded.
5. The circuit according to claim 1, characterized in that The control module further includes a communication pin, and the communication pin is used to transmit the output power of the output port to the upper circuit through an I2C signal.
6. The circuit according to any one of claims 1 to 5, characterized in that: The control module is a 12-bit MCU.
7. The circuit according to claim 6, characterized in that The sampling pin is the AD input pin of the 12-bit MCU.
8. The circuit according to claim 1, characterized in that The power supply module includes a diode, a voltage dividing unit, a first capacitor and a second capacitor; The anode of the diode is connected to the external power supply, the cathode of the diode is respectively connected to the input end of the voltage divider unit and one end of the first capacitor, the other end of the first capacitor is grounded, the output end of the voltage divider unit is respectively connected to the second capacitor and the control module, the other end of the second capacitor is grounded, and the ground end of the voltage divider unit is grounded; The voltage dividing unit is used to divide the voltage of the external power supply, divide the external voltage input by the external power supply into the working voltage of the control module, and input the working voltage into the control module.
9. The circuit according to claim 1, characterized in that The sampling circuit also includes a port control unit; The port control unit is connected between the output port and the power supply module, and is used to control the output voltage of the output port corresponding to the port control unit.
10. An electronic device, characterized in that: The electronic device comprises the output power detection circuit of the multiple output ports according to any one of claims 1 to 9.