CN115754459A - Power consumption measuring device - Google Patents

Power consumption measuring device Download PDF

Info

Publication number
CN115754459A
CN115754459A CN202211297399.5A CN202211297399A CN115754459A CN 115754459 A CN115754459 A CN 115754459A CN 202211297399 A CN202211297399 A CN 202211297399A CN 115754459 A CN115754459 A CN 115754459A
Authority
CN
China
Prior art keywords
voltage
module
power consumption
circuit
direct
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211297399.5A
Other languages
Chinese (zh)
Inventor
黄振兴
王连忠
原义栋
沈红伟
宋海飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Smartchip Microelectronics Technology Co Ltd
Beijing Smartchip Semiconductor Technology Co Ltd
Original Assignee
Beijing Smartchip Microelectronics Technology Co Ltd
Beijing Smartchip Semiconductor Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Smartchip Microelectronics Technology Co Ltd, Beijing Smartchip Semiconductor Technology Co Ltd filed Critical Beijing Smartchip Microelectronics Technology Co Ltd
Priority to CN202211297399.5A priority Critical patent/CN115754459A/en
Publication of CN115754459A publication Critical patent/CN115754459A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

The embodiment of the invention provides a power consumption measuring device, and belongs to the technical field of measuring devices. The device comprises: the device comprises a conversion module, a sampling module, a signal amplification module and a processing module; the conversion module is connected in series in a circuit to be tested and is used for converting alternating current output by the circuit to be tested into direct current; the sampling module is connected with the conversion module and is used for converting the direct current output by the conversion module into direct voltage; the signal amplification module is connected with the sampling module and is used for amplifying direct-current voltages at two ends of the sampling module; the processing module is connected with the signal amplification module and used for calculating the power consumption to be measured of the circuit to be measured according to the direct-current voltage and the parameters of the signal amplification module. The power consumption measuring device can realize power consumption measurement of alternating voltage input, direct current negative pressure input and other occasions.

Description

Power consumption measuring device
Technical Field
The invention relates to the technical field of measuring devices, in particular to a power consumption measuring device.
Background
With the miniaturization of consumer products, the power consumption of the whole system is required to be higher and higher, so that the continuous reduction of the power consumption is an important index of the product. The existing device for measuring the power consumption of the system single board, the terminal single board or the chip is only suitable for a direct current application scene, cannot be applied to alternating current, has narrow application occasions and brings inconvenience to the power consumption measurement.
Disclosure of Invention
It is an object of embodiments of the present invention to provide a power consumption measuring apparatus by which problems existing in the prior art can be solved or partially solved.
In order to achieve the above object, an embodiment of the present invention provides a power consumption measurement apparatus, including: the device comprises a conversion module, a sampling module, a signal amplification module and a processing module;
the conversion module is connected in series in a circuit to be tested and is used for converting alternating current output by the circuit to be tested into direct current;
the sampling module is connected with the conversion module and is used for converting the direct current output by the conversion module into direct voltage;
the signal amplification module is connected with the sampling module and is used for amplifying direct-current voltages at two ends of the sampling module;
the processing module is connected with the signal amplification module and used for calculating the power consumption to be measured of the circuit to be measured according to the direct current voltage and the parameters of the signal amplification module.
Optionally, the conversion module includes a rectifier bridge and a filter capacitor, one end of the filter capacitor is connected to the output terminal of the rectifier bridge, and the other end of the filter capacitor is grounded.
Optionally, the processing module includes an analog-to-digital converter and a processor, where the analog-to-digital converter is configured to convert the dc voltage amplified by the signal amplifying module into a digital quantity; the processor is used for calculating the power consumption to be measured of the circuit to be measured according to the direct-current voltage of the digital quantity and the parameters of the signal amplification module.
Optionally, the analog-to-digital converter is in data communication connection with the processor through at least one of an I2C interface, a UART interface, and an SPI interface.
Optionally, the signal amplification module includes a voltage amplification circuit and a voltage division network; the voltage amplifying circuit comprises an operational amplifier and a resistor, and the amplification factor of the voltage amplifying circuit is changed by adjusting the resistance value of the resistor; the voltage division network comprises a resistor and a capacitor and is used for adjusting the direct-current voltage output by the voltage amplification circuit to the analog voltage input range of the analog-to-digital converter.
Optionally, the parameters of the signal amplification module include: and the amplification factor of the voltage amplification circuit and the proportion of the voltage division network.
Optionally, calculating the power consumption to be measured of the circuit to be measured according to the digital dc voltage and the parameter of the signal amplification module, includes:
according to the direct current voltage of the digital quantity, the amplification factor of the voltage amplification circuit and the proportion of the voltage division network, the direct current voltage at two ends of the sampling resistor is obtained;
obtaining the current passing through the resistor according to the ratio of the direct-current voltage at the two ends of the sampling resistor to the resistor;
and obtaining the power consumption to be measured of the circuit to be measured according to the current of the resistor and the voltage of the circuit to be measured.
Optionally, the processing module further comprises an upper computer, and the upper computer performs data interaction with the processor through a serial port or a network port.
Optionally, the sampling module includes a sampling resistor, and the sampling resistor is an alloy sampling resistor.
Optionally, the resistance value of the sampling resistor is set according to a circuit to be tested.
By the technical scheme, no matter alternating voltage input, direct current input or direct current negative pressure input, the conversion module can be used for processing, so that power consumption measurement is realized, and the application occasion is wider; in addition, no matter the current to be measured is a large current or a small current, the power consumption of the target to be measured can be accurately calculated only by setting the appropriate gain of the signal amplification module, and the applicability is stronger.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention and not to limit the embodiments of the invention. In the drawings:
fig. 1 is a block diagram of a power consumption measuring apparatus according to an embodiment of the present invention;
fig. 2 is a structural diagram of a rectifying device and a filter capacitor provided in an embodiment of the present invention;
FIG. 3 is a block diagram of a voltage amplification circuit provided by an embodiment of the present invention;
FIG. 4 is a block diagram of a voltage amplifying circuit and a voltage divider network according to an embodiment of the present invention;
fig. 5 is a block diagram of a power consumption measuring apparatus according to an embodiment of the present invention;
fig. 6 is a structural diagram of a power consumption measurement apparatus according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a block diagram of a power consumption measurement apparatus according to an embodiment of the present invention.
As shown in fig. 1, the power consumption measuring apparatus includes: the device comprises a conversion module, a sampling module, a signal amplification module and a processing module;
the conversion module is connected in series in a circuit to be tested and is used for converting alternating current output by the circuit to be tested into direct current; the conversion module may be any device capable of converting an alternating current to a direct current, including but not limited to half-wave rectification and bridge rectification. Preferably, as shown in fig. 2, the conversion module includes a bridge rectifier (rectifier bridge) and a filter capacitor, and the rectifier bridge may be an integrated finished rectifier bridge or may be constructed by diodes; one end of the filter capacitor is connected with the output terminal of the rectifier bridge, and the other end of the filter capacitor is grounded. When alternating current is connected into the rectifier bridge, the current can flow in from the first input terminal 1 through the D2, and returns to the power supply through the D4 after passing through the post-stage circuit, so as to form a closed loop; similarly, if a current flows from the second input terminal 2 through the D3, the current returns to the power supply through the D1 after passing through the post-stage circuit to form a closed loop, and a current with a pulsating waveform is output. Because the current rectified by the rectifier bridge is not smooth enough, after the current is corrected by the filter capacitor, the alternating current component in the pulsating direct current can be reduced as much as possible, the direct current component is reserved, the output current ripple factor is reduced, the waveform becomes smoother, and therefore stable voltage is obtained. It should be noted that, when the direct current is connected to the rectifier bridge, the path of the direct current is the same as that of the positive half cycle alternating current, and details are not described here.
The sampling module is connected with the conversion module and is used for converting the direct current output by the conversion module into direct voltage. The sampling module may be a sampling resistor; preferably, the sampling resistor may be an alloy sampling resistor. The alloy sampling resistor has the characteristics of high power, low resistance value, high reliability, extremely high stability and the like, and the sampling by utilizing the alloy sampling resistor can ensure the precision of power consumption measurement. In a specific embodiment, the resistance value of the sampling resistor can be adjusted according to actual needs, and when the current in the circuit to be tested is small, the sampling resistor with a relatively large resistance value can be selected, so that the voltage drop at two ends of the sampling resistor is improved; when the current of the circuit to be measured is large, the sampling resistor with relatively small resistance value can be selected, so that a relatively accurate result is obtained, and the measurement accuracy is improved. In another embodiment, a plurality of sampling resistors with different resistances can be further arranged, and the resistors with different resistances are connected into the circuit, so that the current measurement range of the power consumption measurement device can be enlarged, and the current change condition of more types of circuits to be measured can be met. It should be noted that any range of resistance values of the sampling resistor meeting the measurement requirement falls within the protection scope of the present invention.
The signal amplification module is connected with the sampling module and used for amplifying the direct current voltage at two ends of the sampling module so that the processing module can collect and identify the direct current voltage signal. Preferably, the signal amplification module may include a voltage amplification circuit. The voltage amplifying circuit may include an operational amplifier and a resistor, and the amplification factor of the voltage amplifying circuit is changed by adjusting a resistance value of the resistor. In one embodiment, as shown in fig. 3, the voltage amplifying circuit is composed of an operational amplifier U1 and its peripheral resistors R1, R2, R3, R4, wherein R1 is set equal to R3, R2 is set equal to R4, and the amplification factor is R4/R3. By adjusting the resistance of R3 and R4, the gain of the amplifier can be changed so that V0 is equal to-R4/R3 (Vi-Vi +). More preferably, the signal amplification module may include a voltage amplification circuit and a voltage division network. As shown in fig. 4, the voltage divider network includes a resistor and a capacitor, and can adjust the voltage output by the voltage amplifier circuit to the analog voltage input range of the processing module.
The processing module is connected with the signal amplification module and used for calculating the power consumption to be measured of the circuit to be measured according to the voltage and the parameters of the signal amplification module, wherein the parameters of the signal amplification module refer to the amplification factor of the voltage amplification circuit and the proportion of the voltage division network, namely: the power consumption to be measured of the circuit to be measured can be calculated according to the voltage, the amplification factor of the voltage amplification circuit and the proportion of the voltage division network. Preferably, the processing module may include an analog-to-digital converter and a processor, the analog-to-digital converter may convert the dc voltage amplified by the signal amplification module into a digital quantity, the processor may calculate the current of the circuit to be tested according to the dc voltage of the digital quantity and the parameter of the signal amplification module, and the power consumption of the circuit to be tested may be obtained by combining the known input voltage. Specifically, the method comprises the following steps: after the alternating current is converted into the direct current, collecting and amplifying direct current voltages at two ends of a sampling module which is introduced with the direct current; converting the direct current voltage into a digital quantity; the method comprises the steps of obtaining direct-current voltages at two ends of a sampling resistor according to the direct-current voltages of digital quantity, amplification times of a voltage amplification circuit and a voltage division network proportion, obtaining currents passing through the resistor according to the ratio of the direct-current voltages at the two ends of the sampling resistor to the resistor, and obtaining the product of the currents and the voltage of a circuit to be tested, namely the power consumption to be tested.
In a specific embodiment, the analog-to-digital converter is connected in data communication with the processor through at least one of an I2C, UART, and SPI interface, and may include an analog-to-digital conversion chip, a resistor, and a capacitor. The processor may be any device having data processing capability, such as a single chip. In another specific embodiment, as shown in fig. 5, the processing module may further include an upper computer, and the upper computer performs data interaction with the processor through a serial port or a network port. The power consumption measuring device can be installed inside equipment, uploads the measured real-time power consumption to an upper computer, carries out real-time remote monitoring on the power consumption condition of a circuit to be measured, and can also be set into a detachable device to detect the power consumption of different equipment.
As shown in fig. 6, an alternating current of the circuit to be tested may be introduced into the rectifier bridge and the filter capacitor to obtain a direct current, then the voltage amplifying circuit and the voltage dividing network collect and amplify voltages at two ends of the sampling resistor R0, and the processing module may calculate power consumption to be tested according to the amplified voltages, the amplification factor of the voltage amplifying circuit and the ratio of the voltage dividing network, and upload the power consumption to the upper computer. No matter alternating voltage input, direct current input or direct current negative pressure input, remote monitoring and power consumption information reading can be achieved by means of the technical scheme, and application occasions are wider; in addition, no matter under the condition of large current or small current, the power consumption of the target to be measured can be accurately calculated only by setting the gain of the appropriate amplifying circuit, and the applicability is stronger.
The power consumption measuring method provided by the embodiment of the invention can measure the power consumption of a system, a terminal single board or a chip, such as the power consumption of a Synchronous Dynamic Random Access Memory (SDRAM), a Central Processing Unit (CPU), a Digital Signal Processor (DSP) and the like.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A power consumption measurement apparatus, characterized in that the apparatus comprises: the device comprises a conversion module, a sampling module, a signal amplification module and a processing module;
the conversion module is connected in series in a circuit to be tested and is used for converting alternating current output by the circuit to be tested into direct current;
the sampling module is connected with the conversion module and is used for converting the direct current output by the conversion module into direct voltage;
the signal amplification module is connected with the sampling module and is used for amplifying direct-current voltages at two ends of the sampling module;
the processing module is connected with the signal amplification module and used for calculating the power consumption to be measured of the circuit to be measured according to the direct-current voltage and the parameters of the signal amplification module.
2. The power consumption measurement device according to claim 1, wherein the conversion module includes a rectifier bridge and a filter capacitor, one end of the filter capacitor is connected to an output terminal of the rectifier bridge, and the other end of the filter capacitor is grounded.
3. The power consumption measurement device according to claim 1, wherein the processing module includes an analog-to-digital converter and a processor, the analog-to-digital converter is configured to convert the dc voltage amplified by the signal amplification module into a digital quantity; the processor is used for calculating the power consumption to be measured of the circuit to be measured according to the direct-current voltage of the digital quantity and the parameters of the signal amplification module.
4. The power consumption measurement device of claim 3, wherein the analog-to-digital converter is in data communication with the processor via at least one of an I2C, UART, and SPI interface.
5. The power consumption measurement device according to claim 3 or 4, wherein the signal amplification module comprises a voltage amplification circuit and a voltage division network; the voltage amplifying circuit comprises an operational amplifier and a resistor, and the amplification factor of the voltage amplifying circuit is changed by adjusting the resistance value of the resistor; the voltage division network comprises a resistor and a capacitor and is used for adjusting the direct-current voltage output by the voltage amplification circuit to the analog voltage input range of the analog-to-digital converter.
6. The power consumption measurement device of claim 5, wherein the parameters of the signal amplification module comprise: the amplification factor of the voltage amplification circuit and the proportion of the voltage division network.
7. The power consumption measurement device according to claim 6, wherein calculating the power consumption to be measured of the circuit to be measured according to the digital direct-current voltage and the parameters of the signal amplification module comprises:
according to the direct current voltage of the digital quantity, the amplification factor of the voltage amplification circuit and the proportion of the voltage division network, the direct current voltage at two ends of the sampling resistor is obtained;
obtaining the current passing through the resistor according to the ratio of the direct-current voltage at the two ends of the sampling resistor to the resistor;
and obtaining the power consumption to be measured of the circuit to be measured according to the current passing through the resistor and the voltage of the circuit to be measured.
8. The power consumption measurement device according to claim 3 or 4, wherein the processing module further comprises an upper computer, and the upper computer performs data interaction with the processor through a serial port or a network port.
9. The power consumption measurement device of claim 1, wherein the sampling module comprises a sampling resistor, and the sampling resistor is an alloy sampling resistor.
10. The power consumption measurement device according to claim 9, wherein a resistance value of the sampling resistor is set according to a circuit to be measured.
CN202211297399.5A 2022-10-21 2022-10-21 Power consumption measuring device Pending CN115754459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211297399.5A CN115754459A (en) 2022-10-21 2022-10-21 Power consumption measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211297399.5A CN115754459A (en) 2022-10-21 2022-10-21 Power consumption measuring device

Publications (1)

Publication Number Publication Date
CN115754459A true CN115754459A (en) 2023-03-07

Family

ID=85352727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211297399.5A Pending CN115754459A (en) 2022-10-21 2022-10-21 Power consumption measuring device

Country Status (1)

Country Link
CN (1) CN115754459A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116027103A (en) * 2023-03-29 2023-04-28 荣耀终端有限公司 Power consumption detection circuit, power consumption detection chip and terminal equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116027103A (en) * 2023-03-29 2023-04-28 荣耀终端有限公司 Power consumption detection circuit, power consumption detection chip and terminal equipment
CN116027103B (en) * 2023-03-29 2023-09-15 荣耀终端有限公司 Power consumption detection circuit, power consumption detection chip and terminal equipment

Similar Documents

Publication Publication Date Title
US20160190912A1 (en) System and Method for Measuring Power in a Power Factor Converter
CN115754459A (en) Power consumption measuring device
CN215296515U (en) Pressure detection system
CN105223411A (en) Overcurrent detection circuit and power supply system
CN109342805B (en) High-precision microampere current detection circuit
CN103780074B (en) Signal peak detector and method, and control IC and control method of PFC converter
CN104237762A (en) Semiconductor laser testing device, system and method
CN103913628B (en) The method and apparatus for measuring ac voltage signal under light load conditions
CN112747830B (en) Temperature detection method and temperature sensing device
CN211718374U (en) Current detection circuit and current detection equipment
CN211263712U (en) Storage battery impedance testing device
CN204008908U (en) Semiconductor laser detection device, system
Clarke et al. RMS-to-DC converters ease measurement tasks
CN109782057A (en) Frequency-conversion domestic electric appliances single phase poaer supply inputs wattful power messurement circuit and method
US4218736A (en) Effective value measuring apparatus
CN109391232B (en) Current detection device applied to photovoltaic power optimizer
CN103364606B (en) Simultaneously Measurement accuracy voltage and current system and adopt the instrument of this system
CN104639053A (en) High-precision weak signal amplification and measurement method
CN103869149A (en) Alternating small current high-accuracy detection module
CN117491848B (en) Device, method, equipment and system for determining circuit attribute
JP4261002B2 (en) AC voltage measuring apparatus and method
CN217305317U (en) Sinusoidal signal amplitude and cycle measuring circuit
CN218974464U (en) Frequency measurement system based on zero crossing point captured by timer
CN108681275B (en) Output voltage parametric compensation method and device for voltage linear isolation conditioning circuit
CN116754831B (en) Harmonic interference resistant frequency measurement method and device applied to intelligent circuit breaker

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination