Use PZEM-016 with MODWRT: Difference between revisions
Line 14: | Line 14: | ||
=Modwrt Config= | =Modwrt Config= | ||
By default the PZEM-016 as a slave ID of 0x01 and comms as 9600,8,N,1. So we will setup the RTU as shown below. | By default the PZEM-016 as a slave ID of 0x01 and comms as 9600,8,N,1. So we will setup the '''RTU''' page as shown below. | ||
[[File:Pzem016modwrtrtuconfig.png | 600px]] | [[File:Pzem016modwrtrtuconfig.png | 600px]] |
Revision as of 21:20, 21 July 2018
We will demonstrate how to use the ModWrt to interface with the PZEM-016 modulw and forward data to EmonCMS.
PZEM-016

This is a electric meter unit with serial modbusRTU interface. This is for single phase measurements and produces Voltage, Power, Frequency, Energy and Power Factor.
Connections are straight forward and well explained in the manual. The manual for the PZEM-016 can be found here.
Only two wire are needed to connect to the Modwrt. Just connect the A and B terminals. Leave the %v and Ground unconnected.
Modwrt Config
By default the PZEM-016 as a slave ID of 0x01 and comms as 9600,8,N,1. So we will setup the RTU page as shown below.
In the Streams configuration page make sure you have one instance setup to forward to Emoncms.
In the Dataflow page configure each registers as shown in this picture below.