Git Product home page Git Product logo

Comments (4)

jamipraveeen avatar jamipraveeen commented on June 30, 2024

from emonlib.

AbrahamYu avatar AbrahamYu commented on June 30, 2024

@jamipraveeen adding 9v adapter and change code

adapter
input - AC100~240V 50/60Hz 0.2A
output - DC9V 0.5A

image

#include "EmonLib.h"             // Include Emon Library
EnergyMonitor emon1;             // Create an instance

void setup()
{  
  Serial.begin(9600);

  emon1.voltage(1, 234.26, 1.7);  // Voltage: input pin, calibration, phase_shift
  emon1.current(0, 111.11);       // Current: input pin, calibration.
}

void loop()
{
  emon1.calcVI(20,2000);         // Calculate all. No.of wavelengths, time-out
  emon1.serialprint();           // Print out all variables
}

but
...
-0.16 0.37 3.90 0.09 -0.45
-0.13 0.37 3.81 0.10 -0.36
-0.12 0.33 3.80 0.09 -0.37
-0.12 0.35 3.85 0.09 -0.35
-0.12 0.34 3.99 0.09 -0.34
-0.14 0.35 3.87 0.09 -0.41
-0.14 0.35 3.85 0.09 -0.40
-0.12 0.35 3.78 0.09 -0.35
-0.16 0.34 3.80 0.09 -0.46
-0.14 0.35 3.86 0.09 -0.38
-0.14 0.35 3.88 0.09 -0.40
-0.13 0.32 3.74 0.09 -0.40
-0.14 0.35 3.86 0.09 -0.40
-0.15 0.33 4.00 0.08 -0.46
-0.13 0.34 3.84 0.09 -0.39
-0.12 0.35 3.89 0.09 -0.36
...

8.5W lamp measurement output data....????

from emonlib.

jonathanrjpereira avatar jonathanrjpereira commented on June 30, 2024

@AbrahamYu In the first image, the ECS1030-L72 has a CT Ratio = 30A/15mA = 2000. You also mentioned that the burden resistance connected is 120ohms.
Hence the CT Sensor Calibration value = CT Ratio / Burden resistance = 2000/120 = 16.66
Change the calibration value from the default 111.11 to 16.66

In order to calculate Apparent Power, you multiplied Irms by 220.0V. Did you measure your mains supply and then use this value? In the second image & code, you set the voltage to 234.26V.
Set the voltage calibration values to the value of your mains AC supply read by your Multimeter.

from emonlib.

jonathanrjpereira avatar jonathanrjpereira commented on June 30, 2024

@AbrahamYu In the second image & code, you mentioned an AC-DC adapter with specifications:

adapter
input - AC100~240V 50/60Hz 0.2A
output - DC9V 0.5A

But Open Energy Monitor measures the AC voltage using an AC-AC adapter & hence it requires scale down & offset circuit so that there is no negative component.

OEM - Voltage Sensing - AC-AC Adapter

You must set the voltage calibration value to the value read by the multimeter at the AC mains supply.
Adjust the phase shift value so that Real & Apparent Power are equal for a resistive load.

Calibration

from emonlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.