xoseperez / hlw8012

HLW8012 library for Arduino and ESP8266 using the Arduino Core for ESP8266.
GNU General Public License v3.0
126 stars 48 forks source link

HLW8012 board calibration #24

Open pw44 opened 3 years ago

pw44 commented 3 years ago

seams this one is also becoming popular.

but i'm not find out to calibarte it. any help?

Thx in advance.

HLW8012_High-Precision_Energy_Metering_Module_Arduino_Energy_Monitoring

xoseperez commented 3 years ago

You have a calibration example in the "HLW8012_Interrupts" example. It returns the multipliers you can use on library setup with the setCurrentMultiplier, setVoltageMultiplier and setPowerMultiplier.

pw44 commented 3 years ago

i used the HLW8012_Basic example, with no luck.

By calibrate section, i setted:

400W (my toaster) 127V (my AC mains, according my MM and 400/127

// Calibrate using a 60W bulb (pure resistive) on a 230V line hlw8012.expectedActivePower(60.0); hlw8012.expectedVoltage(230.0); hlw8012.expectedCurrent(60.0 / 230.0);

got the multipliers, used it, bit output does not shows 127, 400, etc....

Being used on ESPEasy firmware.