The HLW8032 is a high precision energy metering IC that uses a CMOS process and is primarily used in single phase applications. It measures line voltage and current and can calculate active power, apparent power and power factors. The device integrates two
-
It can measure the active power, apparent power, current and voltage RMS
-
Active energy pulse PF pin output
-
In the dynamic range of 1000:1, the measurement error of active power reaches 0.2%
-
In the dynamic range of 1000:1, the effective current measurement error reaches 0.5%.
-
In the dynamic range of 1000:1, the effective voltage measurement error reaches 0.5%.
-
Built-in 3.579Mhz crystal oscillator
-
Built-in voltage reference Source
-
built-in power monitoring circuit
-
UART communication mode
-
SOP8 package type
For the following design two 5V supplies are used: one isolated for the MCU and one non-isolated for the HLW8032. Isolation can be achieved with a current type voltage transformer and current transformer together; details found here.
If a 3v3 MCU (e.g. an ESP32) is used, you'll need a level shifter since the GPIO pins will likely not be 5v tolerant.