Posted: Tue Jul 14, 2020 12:36 pm Post subject: Power Factor calculator
In AC circuits it is necessary to measure power factor to determine
actual power being used, its normally complicated thing to do.
But there is a old way with meters , resistor and pencil and paper
with help from a calculator to save paper.
Note resistor value only needs to be large enough to get a reasonable reading
its value is not used.
So I thought why not use an AVR even bascom simulator.
I will put together a circuit with an AVR when I get time.
Regards Paul
this is a diagram:
This code provides the power factor from measurements
Cos_phi is the answer
Code:
$regfile="m1284pdef.dat"' specify the used micro
Const Xtal =20000000'use constant for baud rate
$crystal= Xtal ' used crystal frequency $baud=9600' use baud rate $hwstack=100 $swstack=100 $framesize=150
Dim Cos_phi AsSingle Dim U1 AsSingle Dim U2 AsSingle Dim U3 AsSingle Dim A1 AsSingle Dim A2 AsSingle Dim A3 AsSingle Dim A4 AsSingle
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum