Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Login
825, Alhafeez Shopping Mall, Gulberg, Lahore. +92-332-6062060
Your cart 0
theenggprojects help@theengineeringprojects.com
Search
Custom Search
453 FOLLOWERS
Hello friends, hope you all are fine and having fun. Today’s post is
about Power Factor Measurement using Microcontroller in Proteus
ISIS. As usual, I have this project simulation in which I have to 497 CONNECTIONS
simulate a power factor measuring project using atmega
microcontroller. So, I use atmega8 microcontroller and the used
497 FOLLOWERS
Proteus ISIS as the simulating software. Power Factor Measurement
isn’t that difficult but its a quite tricky and in today’s post we are gonna
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 1/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
The Engineering P
cover it in full
detail. YouTube
zero crossing of our signal and then we are Buy This Project Learn Free Pro
gonna do the power factor measurement based
on the detection of zero crossing of our voltage RSS G+
But before going into the details of power factor measurement, let’s
first discuss the basics of power factor measurement because before Receive Quality Tutorials St
that you wont understand a bit. Inbox by submitting your Em
We have designed this simulation after quite a lot of effort so its not for enter your email here...
sale but has a quite small cost of $20 so that engineering students can
SUBMIT
buy it easily. You can buy the simulation along with hex file and code
by clicking on the above button and it will lead you to Product page of
this product. So, let get started with it.
Capacitive Loads.
PIC Projects
Inductive Loads.
Visual Studio Projects
8051 Projects
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 2/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
MATLAB Projects
LabView Projects
PLC Projects
We are all quite well aware of these and if you are not then I must say
you wont read further and must first get some basic knowledge about Electronics Projects
these loads. Among these three loads Resistive loads are known as
the most decent loads as they don’t mess up with the current and just C# Tutorials
simply let the current pass through it and that’s why there’s no such
power loss in these types of loads. But when it comes to Capacitive or Embedded System Projects
Inductive loads. they are quite disturbing types of loads and hence
they don’t let the current easily pass through them and slightly distort
the current signals. In case of Capactive loads, the current waveform
SUPPORT US !!!
got ahead of the voltage waveform and hence got a lead angle. In
other words, current waveform leads the voltage waveform. While in
case of Inductive loads, the scenario is quite the opposite. In
Inductive loads, current waveform lags the voltage waveform. The
below figure shown the difference between these loads output.
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 3/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 4/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
So, if we calculate the power factor for the above waveform, for
which the leading or lagging angle (both) are 60 degrees, then
we get:
So, the power factor of our above system is 0.5 which is quite
bad.
Now, whats the meaning of this 0.5 power factor, it means that
our system’s efficiency is 50% and the energy dissipation is also
50% so our system’s efficiency is as well 50%.
So, now we have seen the basics of power factor and have got quite
an idea about what is it so now let’s start with how to measure power
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 5/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
HOME andcurrent
As we all know, thevoltage CONTACT US are
waveform BLOG
basically SHOP
the sine waves so they must cross the zero point at some time.
Search
So, now I suppose you have used the CT PT and you are getting
your current and voltage waveforms in the order of 5V but now
again there’s another issue that the voltage we are getting is AC
while our microcontroller works on DC so we need to find some
way to convert this AC into DC.
You can see clearly that I have placed a GND on the non
inverting pin of LM358 so whenever we get zero crossing on the
inverting side it will send us a HIGH pulse at output.
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 7/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
The below two waveform are the current and voltage waveform,
red one is current while the green one is voltage and I have
placed a lagging angle of 30 degrees that’s why current
waveform is lagging the voltage waveform.
While the above two waveform are the output of LM358 and we
can see clearly they are giving the high peaks when the lower
waveform cut their zero axis.
We have got the zero crossing detection and now what we are
gonna do in programming is to first detect the zero crossing of
current waveform and then we will start counting the time until
we get the zero crossing of voltage waveform.
We have got the time difference and we have already know the
frequency of our system which is normally 50 HZ or 60Hz.
Then we will start a timer which will start counting and we will
stop this counting when we get the voltage curve.
1 void pf_func(){
2 while(1)
3 {
4 if ( PINC.4==1 )
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 8/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
5 {
6 TCNT1=0;
7 TCCR1B = 0x01;
8 break;
9 }
10 else {
11 continue;
12 }
13 }
14 while(1){
15 if ( PINC.3 == 1 ){
16 TCCR1B = 0x00;
17 g=TCNT1;
18 break;
19 }
20 else {
21 continue;
22 }
23 }
24 }
1 int powerfactor(){
2 k=0;
3 // To complete number of counts
4 g=g+1; //Value from the timer
5 //To convert into seconds
6 pf=(float)g/1000000;
7 //To convert into radians
8 pf=pf*50*360*(3.14/180);
9 //power facor
10 pf = cos(pf);
11 //power factor into percentage
12 k=abs(ceil(pf*100));
13 return k;
14 }
Now when you get the code then make your hex file and upload
it in Proteus.
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 9/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
Now run your Proteus simulation and you will get something like
this:
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 10/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
That’s all for today, I hope you have enjoyed today’s post on Power
Factor Measurement. You can buy the complete simulation along with
hex file and the complete code by clicking on below button.
So, buy it and test it and hopefully you will get something big out of it.
So that’s all about Power Factor Measurement using Atmega. I will
post it on Arduino as well quite soon and may be on PIC
Microcontroller as well. So, till next tutorial take care !!!
10kVA APC UPS @Best PIC Microcontroller TI's DualCool™ NexFet™ Receive SMS with
Price - 1 years hassle Projects Commands using
free warranty Sim900 and Arduin
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 12/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
PREVIOUS NEXT
LED BLINKING
SCROLLING TEXT
PROJECT
8051
USING
ON LED MATRIX
8×8 USING
MICROCONTROLLER
ARDUINO
IN PROTEUS
Related posts
Servo DC Current
Motor Sensor
Control ACS712
using Arduino
Arduino Interfacing
May 22, 2017 May 6, 2017
Scrolling Stepper
Text on Motor
LCD with Speed
Arduino Control
May 3, 2017 using
Arduino
April 24, 2017
Stepper DC Motor
Motor Speed
Direction Control
Control using
using Arduino
Arduino April 10, 2017
Leave a Reply
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 13/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
Your email address will not be published. Required fields are marked *
Comment
Name*
Email*
Website
Post comment
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 14/15
7/10/2017 Power Factor Measurement Using Microcontroller - The Engineering Projects
Introduction to Declaration of
Phone Number:
MAX232 Variables in
+92-332-6062060
July 8, 2017 MATLAB
E-mail:
Introduction to kamran kami on
info@theengineeringprojects.com
2N3906 Display ADC value
support@theengineeringprojects.
July 7, 2017 on LCD using PIC
help@theengineeringprojects.com
https://www.theengineeringprojects.com/2015/12/power-factor-measurement.html 15/15