From eb3d6d7d43284a62ddaa698de178ec001ad3767d Mon Sep 17 00:00:00 2001 From: Jose Carlos Serrano Catena Date: Fri, 30 Aug 2019 01:01:23 +0200 Subject: [PATCH] Update comments --- README.md | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 071f33e..225e9e1 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,20 @@ # PZEM-004T v3.0 -with MODBUS PROTOCOL- -Arduino library to connect, with the Modbus protocol, with the PZEM004T-v3.0 sensor. +Arduino library to connect to the PZEM004T v3.0 sensor, thanks to the Modbus protocol +### Manufacturer specifications -### Manufacturer (optimistic) specifications - -| Function | Measuring range | Resolution | Accuracy | TODO: Realistic specifications | -|---------------|--------------------|-----------------|----------|--------------------------------| -| Voltage | 80~260V | 0.1V | 0.5% | | -| Current | 0\~10A or 0\~100A* | 0.01A or 0.02A* | 0.5% | | -| Active power | 0\~2.3kW or 0\~23kW* | 0.1W | 0.5% | | -| Active energy | 0~9999.99kWh | 1Wh | 0.5% | | -| Frequency | 45~65Hz | 0.1Hz | 0.5% | | -| Power factor | 0.00~1.00 | 0.01 | 1% | | - -\* Using the external current transformer instead of the built in shunt +| Function | Measuring range | Resolution | Accuracy | +|---------------|--------------------|-----------------|----------| +| Voltage | 80~260V | 0.1V | 0.5% | +| Current | 0\~10A or 0\~100A | 0.01A or 0.02A | 0.5% | +| Active power | 0\~2.3kW or 0\~23kW | 0.1W | 0.5% | +| Active energy | 0~9999.99kWh | 1Wh | 0.5% | +| Frequency | 45~65Hz | 0.1Hz | 0.5% | +| Power factor | 0.00~1.00 | 0.01 | 1% | ### Example ```c++ -#include "PZEM004Tv30_MODBUS.h" +#include PZEM004Tv30_MODBUS sensor(&Serial2, 1); @@ -65,4 +62,13 @@ double value; } ``` -Author: José Carlos Serrano Catena \ No newline at end of file +### Tested boards +- ESP32 + +### Improvements +- Currently only connections are used through hardwareserial port, so it would be interesting to include the possibility of using Softwareserial + +### Author: +José Carlos Serrano Catena. + +#First Version: 30/08/2019 \ No newline at end of file