A $20-energy meter for your home

Parts

Pinmap
# ESP8266 Parts
1 5V V+ (Hi-Link Adapter)
2 GND V- (Hi-Link Adapter)
3 D6 RX (PZEM-004T)
4 D5 TX (PZEM-004T)
parts
Arrangment of items
hook up
Hook up the meter to the main breaker

You may notice that we have an aluminum capacitor rated at 16V. This capacitor is used to smooth out the 12V DC converted by a big, yellow capacitor and a resistor, however; sharing the DC source, instead of using Hi-Link converter, could overload this 12V setup, and the main energy chip is not stable. At peak of transmitting, ESP8266 needs 200mA.