WO2014031653A1 - Systems and methods of input power and current measurement - Google Patents
Systems and methods of input power and current measurement Download PDFInfo
- Publication number
- WO2014031653A1 WO2014031653A1 PCT/US2013/055813 US2013055813W WO2014031653A1 WO 2014031653 A1 WO2014031653 A1 WO 2014031653A1 US 2013055813 W US2013055813 W US 2013055813W WO 2014031653 A1 WO2014031653 A1 WO 2014031653A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current
- input
- pfc
- voltage
- sense
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
- G01R35/005—Calibrating; Standards or reference devices, e.g. voltage or resistance standards, "golden" references
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R21/00—Arrangements for measuring electric power or power factor
- G01R21/133—Arrangements for measuring electric power or power factor by using digital technique
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
- G01R35/04—Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
Definitions
- Real-time energy consumption measurement including input power and RMS current (Irms) measurement, is becoming more and more important in today's "green world” environment. These measurements may be used to adjust power delivery and optimize energy usage. Moreover, they encourage off-peak period energy consumption and efficient energy resource management.
- a power factor correction (PFC) control device comprising: a plurality of analog to digital converter (ADC) inputs and a PWM output, a first at least one of the plurality of ADC inputs configured for sensing an input voltage, a second at least one of the plurality of ADC inputs configured for sensing an input current, the PWM output configured to control an output voltage of a PFC circuit; an input voltage signal conditioning module configured to receive an input voltage and adjust the input voltage range for the measurement range of the first of the plurality of ADC inputs; and a current sense signal conditioning module configured to sense an input current of the PFC control circuit and adjust a signal representing the sensed input current to fit within a measurement range of the second at least one of the plurality of ADC inputs, the PFC control device configured to adjust the determined input current to compensate for reactive current in an electromagnetic filter to determine a
- ADC analog to digital converter
- Described embodiments can also be viewed as providing methods of input power and current measurement.
- one embodiment of such a method can be broadly summarized by the following steps:
- PFC power factor correction
- adjusting the determined PFC input current value to compensate for a phase shift in a current sense circuit to determine an adjusted input current calculating the input power using the correlated PFC input voltage and the adjusted input current, and adjusting the determined input current to compensate for reactive current in an electromagnetic interference (EMI) filter to determine a total input current.
- EMI electromagnetic interference
- FIG. 1 is a circuit diagram of an example embodiment of a system of input power and current measurement.
- FIG. 2 is a circuit diagram of an example embodiment of a simplified circuit of the EMI filter of FIG. 1 .
- FIG. 3 is a circuit diagram of an example embodiment of the current measurement circuit of FIG. 1 .
- FIG. 4 is a circuit diagram of an example embodiment of the input voltage sensing circuit of FIG. 1 .
- FIG. 5 is a flow diagram of an example embodiment of a method of input power and current measurement.
- Input power and current measurement may be used, for example, by servers to identify power costs.
- a power factor control (PFC) device is utilized to enable any electrical load to appear like a resistor to the voltage source that powers it.
- PFC may be government mandated (as in Europe, Japan, etc.) or a guideline from public interest entities (such as Energy Star in the U.S.).
- the PFC control device may be used as both for power factor correction and for input power and current measurement.
- the PFC device on the front end of a power supply control circuit collects an alternating current (AC) input signal and adjusts the current signal to follow the phase of the voltage signal.
- the voltage signal is generally sinusoidal; so the current signal is adjusted to follow the voltage signal with a sinusoidal signal and in-phase.
- To control the PFC the input voltage and the input current are measured so that the input current can be appropriately adjusted.
- input voltage and input current are determined. These measurements may be performed using a current sensor and a voltage sensor, for example.
- the current is measured after an electromagnetic interference (EMI) filter.
- EMI electromagnetic interference
- the actual input current includes the EMI filter reactive current and the current measured after the EMI filter.
- a formula may be utilized to calculate the EMI filter reactive current.
- the EMI filter may be simplified as a single capacitor for this calculation.
- the input voltage and the total capacitance of the EMI filter may be used to determine the EMI filter reactive current.
- FIG. 1 provides circuit 100, an example embodiment of a system of input power and measurements using an example PFC control device (UCD3138).
- Circuit 100 uses an example conventional PFC application.
- the input line and neutral voltage are both sensed through conditioning block 140 and subsequently sampled by separate analog to digital converter (ADC) inputs. These measurements may be "rectified" by firmware for both the control and monitoring functions.
- Output voltage sensed through conditioning block 160 by another ADC may be used for voltage loop control.
- the current signal may be sensed by a current shunt and amplified and filtered in signal conditioning block 150, and then connected to an error ADC (EADC) for current loop control.
- EDC error ADC
- the current signal may be further filtered and connected to an ADC for input current measurement.
- the example configuration of FIG. 1 uses almost the same existing PFC circuit, adding a low pass filter for ADC current sensing. Example embodiments greatly reduce the cost and design effort for input power and current measurement.
- the measured current sensed at the ADC of the PFC control device may not represent the total input current since the contribution of the capacitance in the EMI input filter is not included.
- the difference between measured current and actual input current increases at high line and light load and may be included for accurate input current reporting.
- FIG. 2 provides simplified EMI filter circuit 200.
- the inductors are removed and the total capacitance is replaced with a single capacitor C.
- I EMI represents the RMS current of EMI capacitor 210.
- Ijneasure represents the input RMS current measured by PFC control device 220.
- lin represents the total input RMS current.
- the equivalent capacitance of this EMI filter is 3 F.
- Vin 265V
- AC frequency 65Hz
- Ijneasure 0.25A.
- An input current measurement accuracy may be required to be less than 0.05A at this power level.
- the I EMI is a reactive current and leads the measured current Ijneasure by 90 degree, therefore:
- FIG. 3 provides current feedback and measurement circuit 300.
- the voltage drop on resistor 320 is amplified and filtered, its output "ISENSE_SHUNT” will go to a current loop for PFC input current regulation. "ISENSE_SHUNT” is adjusted so that the voltage swing fits within the measurement range of the EADC.
- ISENSE_SHUNT may have a high frequency ripple, which may affect the input current measurement accuracy.
- the ADC may have a higher measurement range than the EADC.
- another op-amp and a low pass filter may be used to change "ISENSE_SHUNT" to "IIN_SENSE”.
- IIN_SENSE will be a smooth waveform and accommodate the ADC measurement range. It may then be measured by the ADC, which may be, for example, a 12-bit ADC.
- the current sense signal may then be measured and reported in digitized ADC counts.
- the ADC counts may be translated back to current in Amperes.
- the relation between ADC counts and Ampere may be derived from the circuit. However, the component tolerances may make the measurement accuracy unacceptable. Therefore, a calibration may be implemented to determine the relationship between digitized ADC counts and Amperes.
- Equation (4) allows the use of a DC source to calibrate the current measurement.
- a constant DC power is applied on the PFC input; then a 25% load and a 75% load are applied.
- the average input current value is compared to the ADC conversion output at each of the two load values:
- the calibrated k, and m may be stored in data flash of the PFC control device, for example, for input power and current measurement.
- the calculated k, and m. may be decimal values and may be less than 1 , and the PFC control device may use fixed point mathematical calculations.
- the following items may then be defined as programmed in C:
- IIN_SLOPE and IIN_OFFSET are used to perform the multiplication. Then the result is right shifted by IIN_SLOPE_SHIFT and IIN_OFFSET_SHIFT. For example, instead of calculating:
- the voltage sense circuit is a voltage divider as provided in circuit 400 of FIG. 4.
- the AC input line voltage is divided down by resistors 410 and 420, and the AC neutral voltage is divided down by resistors 430 and 440.
- v is the input voltage (in V)
- k v is the voltage sense gain
- C v is the ADC conversion output (in counts)
- m v is the voltage sense offset.
- the gain k v and offset nriv may be calibrated through in a similar way as the input current was calibrated. However, due to the simplicity of the circuit and saving the cost of calibration, it may be sufficient to calculate k v and m v from the schematic.
- the accuracy of the resistance used for the voltage divider will affect the measurement accuracy.
- low tolerance resistors for example 0.1 % tolerance, are used as the voltage divider to reduce the error and forego the calibration steps.
- the input voltage is attenuated by the voltage divider. Then the attenuated signal goes to an ADC (for example, a 12 bit ADC) and is converted to a digital signal.
- ADC for example, a 12 bit ADC
- the reference of the ADC is 2.5V. In this case,
- the voltage sense gain and offset may be multiplied by 2 N and then rounded to the closest integer to reduce the calculation error.
- the voltage sense gain and offset will be:
- VIN_SLOPE and VIN_OFFSET are used to perform the multiplication first, and then the result is right shifted by
- VIN_SLOPE_SHIFT and VIN_OFFSET_SHIFT are VIN_SLOPE_SHIFT and VIN_OFFSET_SHIFT.
- Real input power may be defined as:
- Equation (15) uses Vin and lin sampled substantially simultaneously.
- Vin and lin may be sampled by two different ADC channels with dual sample and hold functions.
- the dual sample and hold functions allows these two channels to be sampled simultaneously so that the input power calculation is accurate.
- the measured current signal is delayed and out of phase with actual current.
- the IIN_SENSE signal from the low pass filter has a phase delay from the actual current signal.
- a simple way to compensate for this is to delay the Vin sense signal by the amount of the phase delay.
- the delayed Vin signal may be used to calculate the input power. If, for example, Vin is measured every 20 s and the phase delay is 220 s, the Vin sense signal is delayed by 220/20, or 1 1 times.
- a delay pointer may be defined in firmware as:
- the ADC sampled Vin signal values is stored in a circulated data array, and the delay is implemented by the following code in firmware:
- iv.cir_buff[iv.cir_buff_ptr] iv.vin_raw;
- iv.ipm_pointer (iv.cir_buff_ptr - iv.ipm_buff_delay) & 0x3f;
- iv.cir_buff_ptr (iv.cir_buff_ptr + 1 ) & 0x3f;
- iv.vin iv.cir_buff[iv.ipm_pointer];
- Equation (15) may be rewritten as:
- Vin and lin are measured by the ADC every 20 s in an interrupt loop. Since the interrupt loop may be used for PFC loop control, to save CPU calculation time and prevent the interrupt loop from overflow, only Cvin)Ci(n) is calculated in the interrupt loop, and y ( ⁇ , ⁇ ⁇ ' ⁇ ; anc
- ⁇ — mav De replaced by MR filters in firmware.
- the final input real power calculation may be performed in a background loop.
- the input voltage frequency is first determined.
- the AC line and neutral voltages are sensed by 2 ADC channels, and then rectified in firmware. The zero crossing may be found by comparing the ADC results. Since the input voltage is sampled at a fixed rate, the AC frequency may be determined by counting the number of samples between 2 consecutive zero crossing points. Once input voltage frequency is determined, the reactive current of the EMI capacitor may be calculated as:
- the voltage is measured at every 20 s in the interrupt loop.
- ;(n) may be calculated in the interrupt loop, and ⁇ v and
- N may be replaced by MR filters in firmware. Then the reactive current
- the RMS current value may be calculated as:
- the current may be measured at every 20 s in an interrupt loop.
- C i (n) may be calculated in an interrupt loop, and
- the RMS input current may then be calculated in a background loop.
- FIG. 5 provides flowchart 500 of an example embodiment of a method of input power and current measurement.
- the PFC input current is determined with inputs of a PFC device.
- the PFC input voltage is determined with the inputs of the PFC device.
- the PFC input voltage and the PFC input current are correlated such that the PFC input voltage and the PFC input current are sampled substantially simultaneously.
- the PFC input current is adjusted to compensate for a phase shift in a current sense circuit to determine an adjusted input current.
- the input power is calculated using the correlated PFC input voltage and the adjusted input current.
- the PFC input current is adjusted to compensate for the reactive current in an EMI filter to determine a total input current.
- each block may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions.
- the functions noted in the blocks may occur out of the order noted in FIG. 5.
- two blocks shown in succession in FIG. 5 may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
- Any process descriptions or blocks in flow charts should be understood as representing modules, segments, or portions of code which include one or more executable instructions for
- the logic of the example embodiments can be implemented in hardware, software, firmware, or a combination thereof.
- the logic is implemented in software or firmware that is stored in a memory and that is executed by a suitable instruction execution system. If implemented in hardware, as in an alternative embodiment, the logic can be implemented with any or a combination of the following technologies: a discrete logic circuit having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
- ASIC application specific integrated circuit
- PGA programmable gate array
- FPGA field programmable gate array
- the functionality of the example embodiments disclosed herein may be embodied in logic embodied in hardware or software-configured mediums.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Rectifiers (AREA)
- Control Of Electrical Variables (AREA)
Abstract
A power factor control (PFC) control device is used for power factor correction and for input power and current measurement simultaneously. Input voltage and input current are measured (510, 520) using a current sensor and a voltage sensor. The current is measured after an electromagnetic interference (EMI) filter. The input voltage and input current are sampled substantially simultaneously (530). The measured input current is adjusted due to a phase shift introduced in the current sense circuit (540). The input power is calculated using the input voltage and adjusted input current (550). The total input current is determined using the PFC input current and the EMI filter reactive current (560).
Description
SYSTEMS AND METHODS OF
INPUT POWER AND CURRENT MEASUREMENT
[0001] This generally relates to electronics and, more particularly, to input power and current measurement.
BACKGROUND
[0002] Real-time energy consumption measurement, including input power and RMS current (Irms) measurement, is becoming more and more important in today's "green world" environment. These measurements may be used to adjust power delivery and optimize energy usage. Moreover, they encourage off-peak period energy consumption and efficient energy resource management.
Traditionally, input power and current are measured by a dedicated power metering chip. While the power metering chip has provided acceptable results, it adds significant cost and design effort. There are heretofore unaddressed needs with previous solutions.
SUMMARY
[0003] Described example embodiments provide systems of input power and current measurement. Briefly described, in architecture, one example embodiment of the system, among others, can be implemented as follows: a power factor correction (PFC) control device comprising: a plurality of analog to digital converter (ADC) inputs and a PWM output, a first at least one of the plurality of ADC inputs configured for sensing an input voltage, a second at least one of the plurality of ADC inputs configured for sensing an input current, the PWM output configured to control an output voltage of a PFC circuit; an input voltage signal conditioning module configured to receive an input voltage and adjust the input voltage range for the measurement range of the first of the plurality of ADC inputs; and a current sense signal conditioning module configured to sense an input current of the PFC control
circuit and adjust a signal representing the sensed input current to fit within a measurement range of the second at least one of the plurality of ADC inputs, the PFC control device configured to adjust the determined input current to compensate for reactive current in an electromagnetic filter to determine a total input current and to compensate for a phase shift introduced by the current sense conditioning circuit.
[0004] Described embodiments can also be viewed as providing methods of input power and current measurement. In this regard, one embodiment of such a method, among others, can be broadly summarized by the following steps:
determining power factor correction (PFC) input current with inputs of a PFC control device; determining PFC input voltage with inputs of a PFC control device;
correlating the PFC input voltage and the PFC input current such that the PFC input voltage and the PFC input current are sampled substantially simultaneously;
adjusting the determined PFC input current value to compensate for a phase shift in a current sense circuit to determine an adjusted input current; calculating the input power using the correlated PFC input voltage and the adjusted input current, and adjusting the determined input current to compensate for reactive current in an electromagnetic interference (EMI) filter to determine a total input current.
BRIEF DESCRIPTION OF THE DRAWINGS
[0005] FIG. 1 is a circuit diagram of an example embodiment of a system of input power and current measurement.
[0006] FIG. 2 is a circuit diagram of an example embodiment of a simplified circuit of the EMI filter of FIG. 1 .
[0007] FIG. 3 is a circuit diagram of an example embodiment of the current measurement circuit of FIG. 1 .
[0008] FIG. 4 is a circuit diagram of an example embodiment of the input voltage sensing circuit of FIG. 1 .
[0009] FIG. 5 is a flow diagram of an example embodiment of a method of input power and current measurement.
DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0010] Disclosed herein are systems and methods of input power and current measurement. Input power and current measurement may be used, for example, by
servers to identify power costs. In many server power circuits, a power factor control (PFC) device is utilized to enable any electrical load to appear like a resistor to the voltage source that powers it. PFC may be government mandated (as in Europe, Japan, etc.) or a guideline from public interest entities (such as Energy Star in the U.S.). As disclosed herein, the PFC control device, may be used as both for power factor correction and for input power and current measurement.
[0011] The PFC device on the front end of a power supply control circuit collects an alternating current (AC) input signal and adjusts the current signal to follow the phase of the voltage signal. The voltage signal is generally sinusoidal; so the current signal is adjusted to follow the voltage signal with a sinusoidal signal and in-phase. To control the PFC, the input voltage and the input current are measured so that the input current can be appropriately adjusted.
[0012] To determine the input power, input voltage and input current are determined. These measurements may be performed using a current sensor and a voltage sensor, for example. In an example embodiment of the systems and methods of input power and current measurement disclosed herein, the current is measured after an electromagnetic interference (EMI) filter. However, the actual input current includes the EMI filter reactive current and the current measured after the EMI filter. A formula may be utilized to calculate the EMI filter reactive current. The EMI filter may be simplified as a single capacitor for this calculation. The input voltage and the total capacitance of the EMI filter may be used to determine the EMI filter reactive current.
[0013] FIG. 1 provides circuit 100, an example embodiment of a system of input power and measurements using an example PFC control device (UCD3138). Circuit 100 uses an example conventional PFC application. The input line and neutral voltage are both sensed through conditioning block 140 and subsequently sampled by separate analog to digital converter (ADC) inputs. These measurements may be "rectified" by firmware for both the control and monitoring functions. Output voltage sensed through conditioning block 160 by another ADC may be used for voltage loop control. The current signal may be sensed by a current shunt and amplified and filtered in signal conditioning block 150, and then connected to an
error ADC (EADC) for current loop control. In addition, the current signal may be further filtered and connected to an ADC for input current measurement. The example configuration of FIG. 1 uses almost the same existing PFC circuit, adding a low pass filter for ADC current sensing. Example embodiments greatly reduce the cost and design effort for input power and current measurement.
[0014] The measured current sensed at the ADC of the PFC control device may not represent the total input current since the contribution of the capacitance in the EMI input filter is not included. The difference between measured current and actual input current increases at high line and light load and may be included for accurate input current reporting.
[0015] FIG. 2 provides simplified EMI filter circuit 200. In circuit 200, the inductors are removed and the total capacitance is replaced with a single capacitor C. I EMI represents the RMS current of EMI capacitor 210. Ijneasure represents the input RMS current measured by PFC control device 220.
lin represents the total input RMS current. In an example implementation, the equivalent capacitance of this EMI filter is 3 F. Consider a case in which Vin = 265V, AC frequency = 65Hz, and a light load with Ijneasure = 0.25A. An input current measurement accuracy may be required to be less than 0.05A at this power level. The reactive current produced by the EMI filter may be calculated by: ui =
265 * 2π * 65 * 3 *1(Γ6 = 0.325 . (1 )
[0016] The I EMI is a reactive current and leads the measured current Ijneasure by 90 degree, therefore:
Iin = -jlEMI 2 + 1 measure2 = Vo.3252 + 0.252 = 0.41 . (2)
[0017] Thus the difference between the measured input current and actual total input current will be 0.41 A - 0.25A = 0.16A, which may be much larger than a typical required accuracy of 0.05A at this power level. Therefore, the reactive current generated by the EMI filter may be included in the total reported input current.
[0018] FIG. 3 provides current feedback and measurement circuit 300. The voltage drop on resistor 320 is amplified and filtered, its output "ISENSE_SHUNT"
will go to a current loop for PFC input current regulation. "ISENSE_SHUNT" is adjusted so that the voltage swing fits within the measurement range of the EADC.
[0019] Due to the high bandwidth of a typical current sense filter,
"ISENSE_SHUNT" may have a high frequency ripple, which may affect the input current measurement accuracy. Also, the ADC may have a higher measurement range than the EADC. To remove the high frequency ripple and fully use the ADC measurement range in an example embodiment, another op-amp and a low pass filter may be used to change "ISENSE_SHUNT" to "IIN_SENSE". After this signal conditioning, "IIN_SENSE" will be a smooth waveform and accommodate the ADC measurement range. It may then be measured by the ADC, which may be, for example, a 12-bit ADC.
[0020] The current sense signal may then be measured and reported in digitized ADC counts. To get the real current value in Amperes, the ADC counts may be translated back to current in Amperes. The relation between ADC counts and Ampere may be derived from the circuit. However, the component tolerances may make the measurement accuracy unacceptable. Therefore, a calibration may be implemented to determine the relationship between digitized ADC counts and Amperes.
where i is the input current through current shunt (in mA), k, is the current sense gain, C, is the ADC conversion output (in counts), and m, is current sense offset. For constant DC input, the average current value equals the instantaneous value, so equation (3) is still valid:
[0022] Equation (4) allows the use of a DC source to calibrate the current measurement. In an example embodiment, a constant DC power is applied on the PFC input; then a 25% load and a 75% load are applied. The average input current value is compared to the ADC conversion output at each of the two load values:
25% load: lDci = Cn - mi; and (5) 75% load: IDC2 = kiCi2 - mi. (6)
[0023] The current sense gain k, and offset m, may be calculated from (5) and (6): ki ~ r _ r · ' and (7)
C I - C I
[0024] The calibrated k, and m, may be stored in data flash of the PFC control device, for example, for input power and current measurement. However, the calculated k, and m. may be decimal values and may be less than 1 , and the PFC control device may use fixed point mathematical calculations. To reduce the rounding errors and maintain enough accuracy in the calculations, the small decimal values may be multiplied by 2N and then rounded to the closest integer. For example, if the current sense gain and offset for a PFC are calculated as k, = 1 .59 and nrii = 229.04, k, may be multiplied by 28 and rounded to 407, and m, may be multiplied by 2° and rounded to 229. The following items may then be defined as programmed in C:
#define IIN_SLOPE (407)
#define IIN_SLOPE_SHIFT (8)
#define IIN_OFFSET (229)
#define IIN_OFFSET_SHIFT (0).
[0025] When the input power and current are calculated, if k, and m, are multiplied instead of using k, and m, directly, IIN_SLOPE and IIN_OFFSET are used to perform the multiplication. Then the result is right shifted by IIN_SLOPE_SHIFT and IIN_OFFSET_SHIFT. For example, instead of calculating:
y = kjX + nriiZ,
it will be calculated as:
y = ((IIN_SLOPE*x)» IIN_SLOPE_SHIFT) +
((IIN_OFFSET*z)»IIN_OFFSET_SHIFT).
[0026] In an example embodiment, the voltage sense circuit is a voltage divider as provided in circuit 400 of FIG. 4. The AC input line voltage is divided down
by resistors 410 and 420, and the AC neutral voltage is divided down by resistors 430 and 440. At any moment:
where v is the input voltage (in V), kv is the voltage sense gain, Cv is the ADC conversion output (in counts), and mv is the voltage sense offset. The gain kv and offset nriv may be calibrated through in a similar way as the input current was calibrated. However, due to the simplicity of the circuit and saving the cost of calibration, it may be sufficient to calculate kv and mv from the schematic. The accuracy of the resistance used for the voltage divider will affect the measurement accuracy. In an example embodiment, low tolerance resistors, for example 0.1 % tolerance, are used as the voltage divider to reduce the error and forego the calibration steps.
[0027] As shown in FIG. 4, the input voltage is attenuated by the voltage divider. Then the attenuated signal goes to an ADC (for example, a 12 bit ADC) and is converted to a digital signal. In an example implementation, the reference of the ADC is 2.5V. In this case,
Cv = ^ * 4096. (10)
Solving for v from above:
2.5(Rl +R2)
(1 1 )
4096i?2
Therefore,
2.5(R1+R2)
and (12) 4096R,
mv = 0. (13)
[0028] As with the input current measurement, the voltage sense gain and offset may be multiplied by 2N and then rounded to the closest integer to reduce the calculation error. For example, a circuit with kv = 0.09623 and mv = 0 may be defined as programmed in C:
#define VIN_SLOPE (197)
#define VIN_SLOPE_SHIFT (1 1 )
#define VIN_OFFSET (0)
#define VIN_OFFSET_SHIFT (0).
The voltage sense gain and offset will be:
kv = VIN_SLOPE » VIN_SLOPE_SHIFT; and
mv = VIN_OFFSET » VIN_OFFSET_SHIFT.
[0029] When the input power is calculated, if kv and mv are used being multiplied, instead of using kv and mv directly, VIN_SLOPE and VIN_OFFSET are used to perform the multiplication first, and then the result is right shifted by
VIN_SLOPE_SHIFT and VIN_OFFSET_SHIFT.
In discrete format:
∑«« ■(«))
P = N · <15>
[0031] Equation (15) uses Vin and lin sampled substantially simultaneously. Vin and lin may be sampled by two different ADC channels with dual sample and hold functions. The dual sample and hold functions allows these two channels to be sampled simultaneously so that the input power calculation is accurate.
[0032] Due to the low pass filter in current sense circuit, the measured current signal is delayed and out of phase with actual current. The IIN_SENSE signal from the low pass filter has a phase delay from the actual current signal. A simple way to compensate for this is to delay the Vin sense signal by the amount of the phase delay. Then the delayed Vin signal may be used to calculate the input power. If, for example, Vin is measured every 20 s and the phase delay is 220 s, the Vin sense signal is delayed by 220/20, or 1 1 times. Thus a delay pointer may be defined in firmware as:
iv.ipm_buff_delay = 1 1 .
[0033] In an example implementation, the ADC sampled Vin signal values is stored in a circulated data array, and the delay is implemented by the following code in firmware:
iv.cir_buff[iv.cir_buff_ptr] = iv.vin_raw;
iv.ipm_pointer = (iv.cir_buff_ptr - iv.ipm_buff_delay) & 0x3f;
iv.cir_buff_ptr = (iv.cir_buff_ptr + 1 ) & 0x3f;
iv.vin = iv.cir_buff[iv.ipm_pointer];
[0034] In an example implementation, Vin and lin are measured by the ADC every 20 s in an interrupt loop. Since the interrupt loop may be used for PFC loop control, to save CPU calculation time and prevent the interrupt loop from overflow, only Cvin)Ci(n) is calculated in the interrupt loop, and y (^ , ∑ ^ ' ^ ; anc|
N N
YC(n)
^— mav De replaced by MR filters in firmware. The final input real power calculation may be performed in a background loop.
[0035] In calculating the reactive current of the EMI capacitor, the input voltage frequency is first determined. In an example embodiment, the AC line and neutral voltages are sensed by 2 ADC channels, and then rectified in firmware. The zero crossing may be found by comparing the ADC results. Since the input voltage is sampled at a fixed rate, the AC frequency may be determined by counting the number of samples between 2 consecutive zero crossing points. Once input voltage frequency is determined, the reactive current of the EMI capacitor may be calculated as:
k 2 Y Cv 2 (n) Ik m Y C in) (17)
+ m„
N N
[0036] In the example implementation, the voltage is measured at every 20 s in the interrupt loop. To save CPU calculation time and prevent the interrupt loop c 2 C 2{n) from overflow, ;(n) may be calculated in the interrupt loop, and ^ v and
N may be replaced by MR filters in firmware. Then the reactive current
N
through the EMI capacitor may be performed in a background loop.
In discrete format:
[0038] In the example implementation, the current may be measured at every 20 s in an interrupt loop. To save CPU calculation time and prevent the interrupt loop from overflow, Ci (n) may be calculated in an interrupt loop, and
N
Vc.(«)
and N— mav De replaced by MR filters in firmware. [0039] The EMI filter reactive current compensation may then be factored in:
The RMS input current may then be calculated in a background loop.
[0040] FIG. 5 provides flowchart 500 of an example embodiment of a method of input power and current measurement. In block 510, the PFC input current is determined with inputs of a PFC device. In block 520, the PFC input voltage is
determined with the inputs of the PFC device. In block 530, the PFC input voltage and the PFC input current are correlated such that the PFC input voltage and the PFC input current are sampled substantially simultaneously. In block 540, the PFC input current is adjusted to compensate for a phase shift in a current sense circuit to determine an adjusted input current. In block 550, the input power is calculated using the correlated PFC input voltage and the adjusted input current. In block 560, the PFC input current is adjusted to compensate for the reactive current in an EMI filter to determine a total input current.
[0041] The flow chart of FIG. 5 shows the architecture, functionality, and operation of a possible implementation of the input power and current measurement software. In this regard, each block may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur out of the order noted in FIG. 5. For example, two blocks shown in succession in FIG. 5 may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. Any process descriptions or blocks in flow charts should be understood as representing modules, segments, or portions of code which include one or more executable instructions for
implementing specific logical functions or steps in the process, and alternate implementations are included within the scope of the example embodiments in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved. In addition, the process descriptions or blocks in flow charts should be understood as representing decisions made by a hardware structure such as a state machine.
[0042] The logic of the example embodiments can be implemented in hardware, software, firmware, or a combination thereof. In example embodiments, the logic is implemented in software or firmware that is stored in a memory and that is executed by a suitable instruction execution system. If implemented in hardware, as in an alternative embodiment, the logic can be implemented with any or a
combination of the following technologies: a discrete logic circuit having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array (PGA), a field programmable gate array (FPGA), etc. The functionality of the example embodiments disclosed herein may be embodied in logic embodied in hardware or software-configured mediums.
[0043] Those skilled in the art will appreciate that modifications may be made to the described embodiments, and also that many other embodiments are possible, within the scope of the claimed invention.
Claims
1 . A method of determining input power and current comprising:
determining power factor correction (PFC) input current with inputs of a PFC control device;
determining PFC input voltage with inputs of a PFC control device;
correlating the PFC input voltage and the PFC input current such that the PFC input voltage and the PFC input current are sampled substantially
simultaneously;
adjusting the determined PFC input current value to compensate for a phase shift in a current sense circuit to determine an adjusted input current;
calculating the input power using the correlated PFC input voltage and the adjusted input current; and
adjusting the determined input current to compensate for reactive current in an electromagnetic interference (EMI) filter to determine a total input current.
2. The method of claim 1 , wherein the total input current is substantially equal to a square root of a sum of a square of an EMI reactive current and a square of the determined input current, the EMI reactive current substantially equal to the input voltage divided by 1/(2nfC), where C is an EMI capacitance value.
3. The method of claim 1 , further comprising calibrating the determined input current for gain and offset in operational amplifiers in a current measurement circuit.
4. The method of claim 3, wherein the calibrating is performed using at most two calibration points.
5. The method of claim 1 , wherein the correlating of the PFC input voltage and PFC input current comprises using a dual sample and hold circuit to sample the PFC input voltage and PFC input current substantially simultaneously.
6. The method of claim 1 , wherein compensating for a phase shift in the current sense circuit comprises determining a delay of the current sense signal through the current sense circuit.
7. The method of claim 1 , wherein the calculating of the input power comprises
Ύ\ (kv Cv(n) - mv )(kt Ci in) - mi )
calculating P =— — , where kv is a voltage sense gain, Cv is a voltage ADC conversion output (in counts), mv is a voltage sense offset, k, is a current sense gain, C, is a current ADC conversion output (in counts), and m, is current sense offset.
8. A system of input power and current measurement, comprising:
a power factor correction (PFC) control device comprising:
a plurality of analog to digital converter (ADC) inputs and a PWM output, a first at least one of the plurality of ADC inputs configured for sensing an input voltage, a second at least one of the plurality of ADC inputs configured for sensing an input current, the PWM output configured to control an output voltage of a PFC circuit;
an input voltage signal conditioning module configured to receive an input voltage and adjust the input voltage range for the measurement range of the first of the plurality of ADC inputs; and
a current sense signal conditioning module configured to sense an input current of the PFC control circuit and adjust a signal representing the sensed input current to fit within a measurement range of the second at least one of the plurality of ADC inputs, the PFC control device configured to determine an input current and adjust the determined input current to compensate for reactive current in an electromagnetic filter to determine a total input current and to compensate for a phase shift introduced by the current sense conditioning circuit.
9. The system of claim 8, wherein the PFC control device determines the total input current as substantially equal to a square root of a sum of a square of an EMI reactive current and a square of the determined input current, the EMI reactive current substantially equal to the input voltage divided by 1/(2nfC), where C is an EMI capacitance value.
10. The system of claim 8, wherein the PFC control device calibrates the determined input current for gain and offset errors in operational amplifiers in the current sense signal conditioning module.
1 1 . The system of claim 10, wherein the PFC control device calibrates using at most two calibration points.
12. The system of claim 8, wherein the PFC control circuit is further configured to correlate the input voltage and the input current such that the input voltage and the input current are sampled substantially simultaneously.
13. The system of claim 12, wherein the correlating of the input voltage and input current comprises using a dual sample and hold circuit to sample the input voltage and input current substantially simultaneously.
14. The system of claim 8, wherein the PFC control device compensates for a phase shift introduced by the current sense conditioning module by determining a delay of the sensed input current signal through the current sense signal
conditioning module.
15. The system of claim 9, wherein the PFC control device calculates the input power as , where kv is a voltage sense gain, Cv is
a voltage ADC conversion output (in counts), mv is a voltage sense offset, k, is a
current sense gain, C, is a current ADC conversion output (in counts), and m, is current sense offset.
16. A system of input power and current measurement, comprising:
a plurality of analog to digital converter (ADC) inputs, a first at least one of the plurality of ADC inputs configured for sensing an input voltage, a second at least one of the plurality of ADC inputs configured for sensing an input current;
an input voltage signal conditioning module configured to receive an input voltage and adjust the input voltage range for the measurement range of the first of the plurality of ADC inputs;
a current sense signal conditioning module configured to sense an input current and adjust a signal representing the sensed input current to fit within a measurement range of the second at least one of the plurality of ADC inputs; and a PFC control device configured to determine an input current and adjust the determined input current to compensate for reactive current in an electromagnetic filter to determine a total input current and to compensate for a phase shift introduced by the current sense conditioning circuit.
17. The system of claim 16, wherein the PFC control device determines the total input current as substantially equal to a square root of a sum of a square of an EMI reactive current and a square of the determined input current, the EMI reactive current substantially equal to the input voltage divided by 1/(2nfC), where C is an EMI capacitance value.
18. The system of claim 16, wherein the PFC control device calibrates the determined input current for gain and offset errors in operational amplifiers in the current sense signal conditioning module.
19. The system of claim 16, wherein the PFC control circuit is further configured to correlate the input voltage and the input current such that the input voltage and the input current are sampled substantially simultaneously.
20. The system of claim 16, wherein the PFC control device calculates the input power as , where kv is a voltage sense gain, Cv is
a voltage ADC conversion output (in counts), mv is a voltage sense offset, k, is a current sense gain, C, is a current ADC conversion output (in counts), and m, is current sense offset.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015528595A JP6204474B2 (en) | 2012-08-20 | 2013-08-20 | Input power and current measurement system and method |
| CN201380043792.4A CN104583784B (en) | 2012-08-20 | 2013-08-20 | The system and method for Input Power & Current measurement |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US201261691153P | 2012-08-20 | 2012-08-20 | |
| US61/691,153 | 2012-08-20 | ||
| US13/915,777 US9523756B2 (en) | 2012-08-20 | 2013-06-12 | Systems and methods of input power and current measurement |
| US13/915,777 | 2013-06-12 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| WO2014031653A1 true WO2014031653A1 (en) | 2014-02-27 |
| WO2014031653A8 WO2014031653A8 (en) | 2015-01-29 |
Family
ID=50100649
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2013/055813 Ceased WO2014031653A1 (en) | 2012-08-20 | 2013-08-20 | Systems and methods of input power and current measurement |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US9523756B2 (en) |
| JP (1) | JP6204474B2 (en) |
| CN (1) | CN104583784B (en) |
| WO (1) | WO2014031653A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106018944A (en) * | 2016-08-11 | 2016-10-12 | 国网新疆电力公司信息通信公司 | Multifunctional communication machine cabinet |
| US10291115B2 (en) | 2015-11-06 | 2019-05-14 | Sumitomo Electric Industries, Ltd. | Power factor correcting device, bidirectional AC/DC conversion apparatus and computer program |
Families Citing this family (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10890961B2 (en) * | 2013-06-28 | 2021-01-12 | Microchip Technology Incorporate | Method, power monitor microcontroller, and apparatus of non-linear compensation and monitoring of power for power supply units |
| US10051701B2 (en) * | 2014-07-16 | 2018-08-14 | Philips Lighting Holding B.V. | Systems and methods for maintaining dimmer behavior in a low-power lamp assembly |
| US9973084B2 (en) | 2014-11-20 | 2018-05-15 | Infineon Technologies Austria Ag | Switching voltage regulator input power estimation |
| US10069414B2 (en) * | 2015-04-01 | 2018-09-04 | Infineon Technologies Austria Ag | Switching voltage regulator input voltage and current sensing |
| CN106210622A (en) * | 2016-06-27 | 2016-12-07 | 张超超 | Input power detecting system |
| US10389242B2 (en) | 2017-02-01 | 2019-08-20 | Infineon Technologies Austria Ag | Voltage and current sensing calibration for switching voltage regulators |
| US10193438B2 (en) | 2017-04-21 | 2019-01-29 | ERP Power, LLC | Method for measuring power factor correcting (PFC) power supply input power using a single secondary side measurement with periodic usage metrics |
| US10224812B1 (en) | 2017-10-13 | 2019-03-05 | Infineon Technologies Austria Ag | Sensing network mismatch compensation for switching voltage regulator with input voltage and current sensing |
| DE102018204317A1 (en) * | 2017-10-19 | 2019-04-25 | Tridonic Gmbh & Co Kg | Input power measurement for a control gear for building services equipment |
| US20190204467A1 (en) * | 2017-12-31 | 2019-07-04 | Power Monitors, Inc. | Method and Apparatus for a Cloud-Based Oil Well Monitoring System |
| EP3540448A1 (en) * | 2018-03-14 | 2019-09-18 | Fico Triad, S.A. | Electronic device with pfc circuit and method for measuring alternating current input to the electronic device |
| CN111756227B (en) * | 2019-03-29 | 2024-07-05 | 株式会社村田制作所 | Power factor correction method |
| EP3829043A1 (en) * | 2019-11-26 | 2021-06-02 | OSRAM GmbH | Electronic converter, corresponding lighting system and method of operating an electronic converter |
| WO2021168831A1 (en) * | 2020-02-28 | 2021-09-02 | Astec International Limited | Power measurements in switched mode power supplies |
| FR3108802B1 (en) * | 2020-03-24 | 2022-02-18 | Vitesco Technologies | AC/DC converter with power factor correction and method for calibrating such a converter |
| US11695327B2 (en) * | 2021-02-25 | 2023-07-04 | Nxp B.V. | Power converter control using current reconstruction of power factor correction inductor current |
| DE102021134236B4 (en) | 2021-12-22 | 2025-09-11 | Dr. Ing. H.C. F. Porsche Aktiengesellschaft | Device for determining electrical power |
| WO2025110275A1 (en) * | 2023-11-22 | 2025-05-30 | 엘지전자 주식회사 | Image display device and operation method thereof |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5600549A (en) * | 1994-09-20 | 1997-02-04 | Astec International, Ltd. | Power factor corrected electrical power converter |
| US5959849A (en) * | 1997-06-23 | 1999-09-28 | University Of Central Florida | Single-switch AC/DC converter with power factor correction (PFC) |
| US20020180408A1 (en) * | 2001-06-05 | 2002-12-05 | Mcdaniel William D. | Automatic power factor correction system |
| US7015682B2 (en) * | 2003-01-30 | 2006-03-21 | Hewlett-Packard Development Company, L.P. | Control of a power factor corrected switching power supply |
| US20080285318A1 (en) * | 2007-01-15 | 2008-11-20 | Oyl Research And Development Centre Sdn. Bhd. | Power Factor Correction Circuit |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08262073A (en) * | 1995-03-27 | 1996-10-11 | Kyushu Henatsuki Kk | Method and device for measuring power factor |
| ES2150072T3 (en) * | 1995-05-26 | 2000-11-16 | At & T Corp | CONTROL OF THE POWER FACTOR IN SWITCHED RECTIFIERS. |
| JPH10105261A (en) * | 1996-09-30 | 1998-04-24 | Toshiba Corp | Power converter |
| US6373734B1 (en) * | 2000-09-15 | 2002-04-16 | Artesyn Technologies, Inc. | Power factor correction control circuit and power supply including same |
| US6462519B1 (en) * | 2001-06-05 | 2002-10-08 | Mcdaniel William D. | Automatic power factor correction system |
| US7279868B2 (en) * | 2004-03-12 | 2007-10-09 | Comarco Wireless Technologies, Inc. | Power factor correction circuits |
| JP2006172883A (en) * | 2004-12-15 | 2006-06-29 | Toshiba Lighting & Technology Corp | Lighting device such as discharge and lighting device |
| US8102164B2 (en) * | 2008-06-19 | 2012-01-24 | Power Integrations, Inc. | Power factor correction converter control offset |
| CN102437752A (en) * | 2010-09-29 | 2012-05-02 | 航天科工惯性技术有限公司 | Grading limiting circuit for aerospace alternative-current/direct-current (AC/DC) converter |
-
2013
- 2013-06-12 US US13/915,777 patent/US9523756B2/en active Active
- 2013-08-20 CN CN201380043792.4A patent/CN104583784B/en active Active
- 2013-08-20 JP JP2015528595A patent/JP6204474B2/en active Active
- 2013-08-20 WO PCT/US2013/055813 patent/WO2014031653A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5600549A (en) * | 1994-09-20 | 1997-02-04 | Astec International, Ltd. | Power factor corrected electrical power converter |
| US5959849A (en) * | 1997-06-23 | 1999-09-28 | University Of Central Florida | Single-switch AC/DC converter with power factor correction (PFC) |
| US20020180408A1 (en) * | 2001-06-05 | 2002-12-05 | Mcdaniel William D. | Automatic power factor correction system |
| US7015682B2 (en) * | 2003-01-30 | 2006-03-21 | Hewlett-Packard Development Company, L.P. | Control of a power factor corrected switching power supply |
| US20080285318A1 (en) * | 2007-01-15 | 2008-11-20 | Oyl Research And Development Centre Sdn. Bhd. | Power Factor Correction Circuit |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10291115B2 (en) | 2015-11-06 | 2019-05-14 | Sumitomo Electric Industries, Ltd. | Power factor correcting device, bidirectional AC/DC conversion apparatus and computer program |
| CN106018944A (en) * | 2016-08-11 | 2016-10-12 | 国网新疆电力公司信息通信公司 | Multifunctional communication machine cabinet |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104583784B (en) | 2018-04-03 |
| JP6204474B2 (en) | 2017-09-27 |
| US20140052394A1 (en) | 2014-02-20 |
| JP2015527044A (en) | 2015-09-10 |
| WO2014031653A8 (en) | 2015-01-29 |
| CN104583784A (en) | 2015-04-29 |
| US9523756B2 (en) | 2016-12-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104583784B (en) | The system and method for Input Power & Current measurement | |
| US9077243B2 (en) | Current-balancing in interleaved circuit phases using a parameter common to the phases | |
| JP7471402B2 (en) | Measuring Power in Switch-Mode Power Supplies | |
| CN110907700B (en) | Direct-current electric energy meter for direct-current distribution network and metering method | |
| CN102545611B (en) | The system and method for the measurement of inductive current in DC DC transducer | |
| US20090287428A1 (en) | Fractional samples to improve metering and instrumentation | |
| WO2010059900A1 (en) | Digital compensator for power supply applications | |
| US8680842B2 (en) | Method for measurement of total harmonic distortion | |
| GB2408107A (en) | Electrical power meter with phase compensation | |
| JP5958431B2 (en) | Switching power supply | |
| CN109874378B (en) | Current estimation device | |
| CN112513650A (en) | Current sensor configuration and calibration | |
| CN109085425B (en) | A kind of shock load calculation method | |
| WO2024243492A2 (en) | System and method for digital twin-based health and fault monitoring for power electronics systems | |
| CN102809684B (en) | Power detection method and power detection circuit of power supply primary side circuit | |
| CN105652205A (en) | Electric quantity measuring device with temperature compensation and temperature compensation method thereof | |
| JP5348370B2 (en) | Voltage detector offset and gain adjustment method | |
| CN112583317B (en) | Weak magnetic control method and device for motor and readable storage medium | |
| US8280655B2 (en) | Digital power monitoring circuit and system | |
| KR20140140863A (en) | Method for Estimating Current of DC-DC converter | |
| EP2672616B1 (en) | DC current sensing utilizing a current transformer | |
| KR101606232B1 (en) | Electronic watt-hour meter | |
| US20140232371A1 (en) | Apparatus and method for detecting frequency | |
| US20140046609A1 (en) | Metering chip and method of metering | |
| US12119742B2 (en) | Integrated circuit and method of digitally controling critical mode power factor correction circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13830361 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2015528595 Country of ref document: JP Kind code of ref document: A |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 13830361 Country of ref document: EP Kind code of ref document: A1 |





