Comments (4)
from emonlib.
@jamipraveeen adding 9v adapter and change code
adapter
input - AC100~240V 50/60Hz 0.2A
output - DC9V 0.5A
#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.
@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.
@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.
from emonlib.
Related Issues (20)
- ESP32 resolution HOT 1
- Not a issue but a question HOT 1
- CalcVI async calculation HOT 6
- Arduino Wifi rev 2 compatibility HOT 3
- How many veriable can use to voltage measurement?
- Wrong (lower) current values with SCT-013-030? HOT 3
- Emonlib+Esp32+ADS1115 outputting inconsistant data HOT 9
- Stm8 with emon HOT 2
- Does EmonLib work for Raspberry PI too? HOT 1
- Measure 400 amp current with EmonLib and Arduino?
- Calibration Error
- Making Emonlib non-blocking HOT 1
- Arduino Nano Every NOT Supported HOT 1
- Arduino Nano IoT is not supportet?
- Problems with the phase_shift calibration
- STM32 Bluepill support
- Solve most of your issues, ESP32 HOT 4
- can not compile code using lgt8f328
- High reading at the beginning HOT 5
- 3-Phase Timing and Calculation Problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emonlib.