Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By TylerDurden
#24359
juanpintom wrote:Yes, probably you're right, but for now am working with the Attiny why the code of Emonlib must be modified too and I've no time, but is planned :) If you get it emolib working on ESP and ADC PIN please share your results :)

Regards!


I've tried it - works fine. The only change that was necessary, was the one documented in this thread.
User avatar
By TylerDurden
#24396
juanpintom wrote:Ok, i'll do some test on two weeks (on my holydays). Then we only need to change getVcc?

Regards


You have to provide a replacement for the sqrt function: #define sqrt(x) exp(log(x) / 2.f)
And just set the getVcc to 1V static - alternatively leave the function alone and simply calibrate against the lib with a watt meter.