Gosund SP111 HLW8012

HLW8012 is used to measure active power, voltage and current.

https://github.com/xoseperez/hlw8012

Current measurements

Maximum differential voltage measured on current shunt resistor is 43.75mV. 1mOhm resistor is enough to measure currents up to 30A.

Voltage measurements

Voltage is measured on V2P pin, which supports voltage range +-700mV. Datasheet recommends voltage divider of 5x470kOhm and 1kOhm. Scale factor is 2821 which convert 230V RMS into 82mV.