xoseperez / hlw8012

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

current == active power ? #9

Open thaeger71 opened 5 years ago

thaeger71 commented 5 years ago

I hacked a small wifi stwitch with hlw8012 to test with espurna. In espurna the shown current seems not to be the active current, it seems to be the reactive or apparent current. Is that intended ? I mean if I plug a comsumer with 21 W active power, espurna shows 21 W active power and 9.285 A current ...I mean this is not what we want to know or am I wrong ?

xoseperez commented 5 years ago

Certainly not. That current value is completely out. The current reading is reported by the HLW8012 chip and it should be RMS current.