Updated PZEM 004T Energy Monitor (markdown)

Theo Arends 2018-08-29 11:08:56 +02:00
parent 096ceff884
commit a47e19f4f5
1 changed files with 4 additions and 4 deletions

@ -1,5 +1,5 @@
When a clamp on energy monitor is needed the PZEM-004T together with a Sonoff Basic can be used.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-done.jpg" width="250" align="right" /> <img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-done.jpg" width="250" align="right" />
When a clamp on energy monitor is needed the PZEM-004T together with a Sonoff Basic can be used.
## Parts needed ## Parts needed
- Sonoff Basic - Sonoff Basic
@ -14,7 +14,7 @@ Install Tasmota on the Sonoff Basic and confirm it's functionality before connec
## Hardware connections ## Hardware connections
As the PZEM-004T expects 5V serial data and the Sonoff Basic only provides up to 3V3 the expected optocoupler input power of the PZEM-004T has to reduced. This can be accomplished by soldering a 1k resistor between the joints as shown below. As the PZEM-004T expects 5V serial data and the Sonoff Basic only provides up to 3V3 the expected optocoupler input power of the PZEM-004T has to reduced. This can be accomplished by soldering a 1k resistor between the joints as shown below.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-fix.jpg" height="250" /> <img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-fix.jpg" height="400" />
Now connect the serial interface of the Sonoff Basic with the serial interface of the PZEM-004T. See picture regarding used colors and connections. Now connect the serial interface of the Sonoff Basic with the serial interface of the PZEM-004T. See picture regarding used colors and connections.
@ -23,13 +23,13 @@ Now connect the serial interface of the Sonoff Basic with the serial interface o
- Tx Green - Tx Green
- Gnd Grey - Gnd Grey
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-basic.jpg" height="250" /> <img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-basic.png" height="400" />
Cut the power cable in two and connect the input to both Sonoff Basic and PZEM-004T. Route one of the power output lines through the PZEM-004T core and connect it to the Sonoff Basic output. Cut the power cable in two and connect the input to both Sonoff Basic and PZEM-004T. Route one of the power output lines through the PZEM-004T core and connect it to the Sonoff Basic output.
## Software configuration ## Software configuration
Configure the GPIO's for hardware serial connection as shown below. Configure the GPIO's for hardware serial connection as shown below.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-tasmota.jpg" height="250" /> <img src="https://github.com/arendst/arendst.github.io/blob/master/media/pzem/pzem-tasmota.png" height="400" />