Thursday, 23 February 2017

How to use Arduino to measure the real power (Measure Circuit)

·        What is Real Power

The two types of load will appear in the home appliance is Resistive Load and Partially Reactive Load.
Resistive load means its current draw is equal to the voltage divided by resistance (Ohm's Law). A purely resistive load gives a voltage and current waveform output similar to the following:

Figure 1 Resistive Load

Referring to the waveform above, the power is always positive.
However, there are the home appliance are not so straightforward, like fridges, which runs like Partially Reactive Load. As these appliances take in a certain amount of energy, then release some energy back into the mains supply. A partially inductive load gives a voltage and current waveform output similar to the following:


Figure 2 Partially Reactive Load

Referring to the waveform above, the positive bit is energy flowing to the load and the negative bit is energy flowing back from the load.

Real power is often defined as the power used by a device to produce useful work. Therefore, the power going to, minus the power going back, is the real power. The real power or active power can be found out through calculating the average of the instantaneous power also:


·        Adjust Voltage

The circuit diagram below is for adjusting the AC voltage before it goes to the analog pin of Arduino.

Figure 3 Circuit for Adjusting Voltage

For this part, the tasks should be done are scaling down the waveform and adding an offset for making sure there is no negative component.
The Voltage Transformer used is for converting 230 Vac to 9 Vac. Resistors R1 and R2 form a voltage divider that scales down the AC voltage. Depending on the theory between voltage and resistor, the calculation will be:

Voltage Transformer Output = 9 Vrms
9 Vrms x √2 = 12.7 Vp
12.7 Vp x 2 = 28.45 Vpp
28.45 Vpp x 10 / (100+10) = 2.58 Vpp


At the same time, Resistors R3 and R4 provide the voltage bias. Capacitor C1 provides a low impedance path to ground for the AC signal. As the R3 and R4 are connected in series between the Arduino Vcc and GND, the mid-point of them will be the half of the Vcc while R3 and R4 are the same value. (The reason for choosing 470k Ohm is for safety as this value is big enough.)
Referring to the circuit, the mid-point of R3 and R4 are connected to one side of R1, so the voltage of the other side of R1 will be shift up the half of the Vcc. As the part of R1 Voltage peak to peak is about 2.58 Vpp, which is smaller than 3.3V, then it can go to the analog pin of Arduino safety.

·       Adjust current to Voltage output
The component and circuit diagram below is for adjusting the AC current to Voltage output before it goes to the analog pin of Arduino.

With using the component of ACS712, the tasks of scaling down the waveform and adding an offset can be done directly. As the output of ACS712 is an analog singal, Vout, that varies linearly with the uni- or bi-directional AC or DC primary sensed current, Ip, within the range specified, referring to the circuit diagram above and below.


No comments:

Post a Comment