Comments (6)
Hii! My objective is to read P, S, FP, Vrms and Irms.
My currente calibration is 54.5 using a 33 burden resistor.
I am using a 230/9 Vrms transformer, R1=120K e R2=10K, so the voltage calibration i use is 234.26 but the voltage values is stay less than 3V, why?
Help me please!
CODE:
{
Serial.begin(9600);
emon1.voltage(2, 234.26, 1.7); // Voltage: input pin, calibration, phase_shift
emon1.current(1, 54.5); // Current: input pin, calibration (2000/33).
}
void loop()
{
emon1.calcVI(20,2000); // Calculate all. No.of half wavelengths (crossings), time-out
emon1.serialprint(); // Print out all variables (realpower, apparent power, Vrms, Irms, power factor)
float realPower = emon1.realPower; //extract Real Power into variable
float apparentPower = emon1.apparentPower; //extract Apparent Power into variable
float powerFActor = emon1.powerFactor; //extract Power Factor into Variable
float supplyVoltage = emon1.Vrms; //extract Vrms into Variable
float Irms = emon1.Irms; //extract Irms into Variable
delay(1000);
}
from emonlib.
sensor de corrente SCT-013-000
from emonlib.
Hi!
I fix the problem, was in the hardware not in the software.
But when the sensor or the voltage transformer are disconnected it should be all zero (0), how to fix that.
Any help would be helpfull.
from emonlib.
@Aldair170496 dude please open new thread
from emonlib.
Is it possible to make calcVI function do asynchronous calculation?
Not that I'm aware I'm afraid. You can reduce the time taken and space out the different channels if you need to check or control a button at other times. Or maybe it is easier to dedicate a second micro for the control part?
from emonlib.
If You are using esp32 You can try Multithreading as it has 2 core
Energy Calculation in one core0 and switch control on core1
xTaskCreatePinnedToCore(
Task1code, /* Function to implement the task */
"Task1", /* Name of the task */
10000, /* Stack size in words */
NULL, /* Task input parameter */
0, /* Priority of the task */
&Task1, /* Task handle. */
0); /* Core where the task should run */
Void Task1code( void * parameter) {
Your Emonlib Calculation
}
}
from emonlib.
Related Issues (20)
- ESP32 resolution HOT 1
- Not a issue but a question HOT 1
- 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.