danpeig / ESP32EnergyMonitor

Multiple phase DIY energy consumption monitor using ESP32 and ESPHome
GNU Affero General Public License v3.0
133 stars 21 forks source link

Calibration of SCT013 current sensor #12

Open zamojski opened 4 months ago

zamojski commented 4 months ago

The calibration program is supposed to calculate CI1 etc. values. But what are these factors in real world? Is it a power factor of calibrated load?

zamojski commented 4 months ago

I've troubles adapting this code to work on Kincony M16v2 where I've fully calibrated SCT013 sensor but only apparent power calculations. On the below screenshot the voltage reading is accurate (~0.2V error). I've calibrated CI1 but I don't know if this approach will work for for varying current (like standby using 5W and PF 90 and turned on 35W PF 45).

Nonetheless power factor doesn't seem to be right. @danpeig Can you please advise? image

For this particular device PF is 45 and load current is 33W.

zamojski commented 4 months ago

Here on pure resistive load when turned on: image and when load is unplugged: image