ESP8266-PZEM004T
ESP8266-PZEM004T copied to clipboard
V3 support for PZEM004T?
Tonight I thought I would give your code a try and see it does not support V3 of the PZEM004T board. I'm pretty impressed with your setup routine athough without V3 support I couldn't give it a full test run. Do you have any plans to support V3 on the power board?
Taking a quick look at the code since you wrote your own PZEM004T driver code the way I would shoehorn the code is by using the PZEM004Tv30 library (https://github.com/mandulaj/PZEM-004T-v30/blob/master/PZEM004Tv30.h) and write a quick handler routine that does the same as your handler does with similar shim routines to get voltage/power/current. I would also actually the power from the board and not just multiple voltage and current together as total power depends upon power factor and hence has the possibility of being more accurate.
I started doing this though for my use it might be easier to start with another base software and add some of your setup ideas to it.