openenergymonitor / emonlibcm Goto Github PK
View Code? Open in Web Editor NEWContinuous Monitoring alternative to EmonLib
Continuous Monitoring alternative to EmonLib
Hello Wonderfull People !,
I hope you're all very well, I am going to get straight to the point. I want to use this library for the ESP32, Previously I was using emonlib esp32 version by @Savjee https://github.com/Savjee/EmonLib-esp32 , its working fine but there is no accuracy if the current is lower than 1 Amp. Found this library and want to shift to this one as this EmonlibCM has more accuracy.
I am unable to even compile the code. Just using esp32 dev kit v1 and a YHDC 30A/1V CT with the circuit mentioned by the emon learn page. (Really appreciate the work you guys do)
Kindly help me out here.
I removed the rf module part from the EmonLibCM Max example and I am getting this error
EmonLibCM-master/emonLibCM.h:50:24: fatal error: util/crc16.h: No such file or directory compilation terminated. exit status 1 Error compiling for board ESP32 Dev Module
Thanking in advance
Regards
This affects the avrdb branch.
This is more a question than an issue. I tried to calculate the time to pass into EmonLibCM_setADC() as ADC_duration from the data sheet. While the data sheet calculates the formatting duration as 2/f_CLK_PER, EmonLibCM uses 2/f_CLK_ADC. The result is 36.75µs in the datasheet case and 39.3µs in the EmonLibCM case. The EmonLibCM value is more correct than the value calculated with the data sheet.
Do you have any explanation for your way of determining ADC_duration?
I've recently switched to the continuous monitoring firmware and discovered 2 problems:
Continuous Sketch reported 8.3Kwh, actual use 12.12Kwh
Discrete Sketch reported 11.7Kwh, actual use 10.79
I wonder if there is a problem somewhere in the Library with higher values
I am looking at the code, and it doesn't seem to follow any particular style guide. For example, indentations are sometimes 2 spaces, and other time 4 spaces. Also, comment tabulation is not consistent across the .cpp/.h file.
One common solution is to use an auto formatter such as the ClangFormatter, and either use one of the predefined styles, or customize your own. Comments would need more manual work to make them consistent across the file.
Is that something that openenergymonitor is interested in? I could give it a try and send a PR...
This has no effect
ADCSRA |= (0<<ADATE);
ADCSRA |= (0<<ADIE);
ADCSRA |= (0<<ADSC);
Should this have been?
ADCSRA &= ~(1 << ADATE);
ADCSRA &= ~(1 << ADIE);
ADCSRA &= ~(1 << ADSC);
Hi @TrystanLea, can you create an annotated Tag version & release. It should then be possible to give a directive to use a specific version in PlatformIO I think.
so
lib_deps_external =
https://github.com/openenergymonitor/EmonLibCM.git#master
lib_deps_external =
https://github.com/openenergymonitor/EmonLibCM.git#v2.2.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.