Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
commonslibs committed Aug 29, 2019
1 parent 6db3235 commit eb3d6d7
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.h>

PZEM004Tv30_MODBUS sensor(&Serial2, 1);

Expand Down Expand Up @@ -65,4 +62,13 @@ double value;
}
```
Author: José Carlos Serrano Catena
### 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

0 comments on commit eb3d6d7

Please sign in to comment.