Page 1 of 1

Need Library for PZEM004T module.....?

Posted: Sat Jun 24, 2017 10:52 am
by mahmud
I have 5 PZEM004T modules. I want to measure Energy, Power, Voltage and Current from PZEM004T module. I have done some research on net. PZEM004T has library for Arduino IDE. Please anyone, would like to share this module library or guide me how to convert arduino library into python code.
Thanks

Re: Need Library for PZEM004T module.....?

Posted: Sun Jun 25, 2017 4:50 am
by mcauser
The Arduino library is pretty well documented:
https://github.com/olehs/PZEM004T

It's communicates over serial, so I'd start by getting a USB-serial module and fire commands at it an manually interpret the responses.

Theres a python3 version here:
https://www.raspberrypi.org/forums/view ... 8&p=838694
Seems pretty easily portable to micropython

Re: Need Library for PZEM004T module.....?

Posted: Sun Jun 25, 2017 7:32 pm
by mahmud
Hi mcauser,
Thanks for your fast reply. I will try it.