Press enter to see results or esc to cancel. # Power Factor Improvement plant using AVR Microcontroller | Part:01

### Power Factor:

Power factor is the cosine of the phase difference between voltage & current.

### Power Factor Improvement:

Power factor Improvement is minimizing the phase difference between voltage and current so power factor maintains close to unity.

### Why Power factor correction is important???

We know Real power or active power,
\$\${P_{real}} = {V_{rms}}{I_{rms}}cos theta \$\$
Think about a situation where a system is consuming 2KW of real power and RMS voltage is almost constant, but power factor is changing depending on the load connected with the power system.
• P=2KW, Vrms=220V, cosθ = 1, so load is resistive\$\${I_{rms}} = {{{P_{real}}} over {{V_{rms}}cos theta }} = {{2kW} over {220×1}} = 9.09A\$\$
• Now P=2KW,Vrms=220 &  power factor cosθ = 0.6 for inductive load
\$\${I_{rms}} = {{{P_{real}}} over {{V_{rms}}cos theta }} = {{2kW} over {220×0.6}} = 15.15A\$\$

SO we can conclude that,

vlower power factor increase current flow and creates extra load for power system.
vUtility bill is same for both unity power factor & lower power factor.
vFor lower power factor like less than 0.9 , surcharge added.
So let’s see our project demo

### Theory to Implementation:

We know instantaneous power,

Real power or average power,
\$\${P_{real}} = {1 over T}int_0^T {p(t)dt}  = {1 over T}int_0^T {v(t)xi(t)dt} \$\$
We know another equation for real power,
\$\${P_{real}} = {V_{rms}}{I_{rms}}cos theta \$\$
Equating both of the equation we can easily find power factor,cosθ
\$\$eqalign{
& {P_{real}} = {1 over T}int_0^T {p(t)dt}  = {V_{rms}}{I_{rms}}cos theta   cr
& cos theta  = {{{1 over T}int_0^T {v(t)xi(t)dt} } over {{V_{rms}}{I_{rms}}}} = {{{mathop{rm Re}nolimits} al_Power} over {Apparent_Power}} cr} \$\$
This is how we determine power factor. So If we know voltage and current signal, it is very easy to obtain power factor from above equation.

### Voltage & Current Signal Sensing:

1. We sense current using current transformer model TA21CM-5A/5mA and then read the current signal by ADC0 pin of atmega32 microcontroller. In the simulation, we use current controller current source as C.T(There is no proteus model of our C.T). As turns ratio of C.T is 1:1000, So gain of Current controlled current source would be 0.001.
2. Voltage signal will be sensed directly using voltage divider and read the voltage ADC value by ADC1 pin of atmega32
For safety reason, I use a 220V to 12V step down transformer and developed power factor improvement plant in the 12V AC system.

There are 3 challenges for a microcontroller to read ADC value of voltage and current.
1. Our AC signal is +12 to -12V peak to peak. Microcontroller adc can only read voltage from 0v to 5V.
2. It cannot read negative voltage.
3. A microcontroller cannot read current.

To solve these problems,

### Extracting original signal:

In proteus simulation taking serial data and plot the ADC value of voltage and current, we found such graph.
Current signal.

• In the same way, we extract original current signal.

Next part of this tutorial is here:  