openenergymonitor / EmonLib

Electricity monitoring library - install in Arduino IDE's libraries folder then restart the IDE
openenergymonitor.org
GNU Affero General Public License v3.0
584 stars 418 forks source link

How to monitor real power,reactive power,apparent power,Powerfactor,cost of power consumed #36

Closed jamipraveeen closed 7 years ago

jamipraveeen commented 7 years ago

In the following example folder I can find only two ino files (current only and voltage and current only).But, I want to monitor real power,reactive power,apparent power,powerfactor,cost of power consumed.what are the lines of code I must add in the sketch to get the data of parameters

glynhudson commented 7 years ago

See L19 - L23, of the voltage sketch:

https://github.com/openenergymonitor/EmonLib/blob/master/examples/voltage_and_current/voltage_and_current.ino#L19