-->
Page 3 of 6

Re: Integrate EmonLib (energy monitor) library to ESP

PostPosted: Wed May 20, 2015 11:48 am
by gambituk
Hi, ok, i can see how that would be worth doing depending on the setup. i also have a setup running in the past but just using the full range of the 100A, maybe after we get this running i will experiment with lowering the range.

I have been working also using the same site (openenergymonitor.org), and i made my calcualtions based on another pagehttp://openenergymonitor.org/emon/buildingblocks/ct-sensors-interface

This is a more simple project to just get the current calculations from the CT sensor.

I believe my calculations for the voltage divider should be correct.

Let me know when you start working on the library, i will be interested to help where i can.

Re: Integrate EmonLib (energy monitor) library to ESP

PostPosted: Wed May 20, 2015 1:04 pm
by juanpintom
I think I get the 220ohm value following this web:
http://openenergymonitor.org/emon/build ... -interface

Regards

Re: Integrate EmonLib (energy monitor) library to ESP

PostPosted: Fri May 22, 2015 1:22 am
by gambituk
Did you make any progress on using this library with the ide?

Re: Integrate EmonLib (energy monitor) library to ESP

PostPosted: Fri May 22, 2015 8:53 am
by juanpintom
I don't started yet, just searched for some info but I think it's a simpler option meassure with an ATTINY85 and Send the current meassure via serial to the ESP.

The ADC on the ESP it's 0-1v Range, so it's more accurate the attiny.

Other good option is the MCP3421 18bit ADC via I2C.
http://www.esp8266-projects.com/2015/04/18-bit-adc-mcp3421-i2c-driver-esp8266.html

Anyway if someone is interested on integrate the library we can work on it, as I said before we only need to use the getVcc() from ESP.h instead of readVcc() from the function on the first post, and change analogRead(inPinI); with analogRead(A0); on the double EnergyMonitor::calcIrms(unsigned int Number_of_Samples) function.

Regards.