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

Moderator: igrr

User avatar
By juanpintom
#18881 I finally decided to acomplish this with an ATTINY85, maybe it's simple to do on ESP directly but the 0-1v Range on ADC limits the accuracy of readings, here you have a simple example and guide to connect and get this working with an Attiny85 connected to ESP12:

If anyone wants to integrate emolib directly on the ESP is really welcome! :P

User avatar
By gi0nzi
#23337 Hi,
I had work on it and at first I was stuck in the calcIrms function due to the SQRT function tlead ESP to crash and reboot, because of some problem in its math library when you program via the ArduinoIDE.
to overcame the issue, I implemented an approximated method to calculate the squareroot and it works fine.
that's the link where i took the algotithm: ... on-Precisi

hoping can be usefull