Need Library for PZEM004T module.....?

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
mahmud
Posts: 9
Joined: Fri Feb 03, 2017 8:14 pm

Need Library for PZEM004T module.....?

Post by mahmud » Sat Jun 24, 2017 10:52 am

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

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

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

Post by mcauser » Sun Jun 25, 2017 4:50 am

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

mahmud
Posts: 9
Joined: Fri Feb 03, 2017 8:14 pm

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

Post by mahmud » Sun Jun 25, 2017 7:32 pm

Hi mcauser,
Thanks for your fast reply. I will try it.

Post Reply