Open NA7KR opened 4 years ago
Has anyone got this working with PZEM-004t v3 in Python
I get no response from unit.
Hi, did you find something that worked?
I have been working on some code can post to github what I have over weekend
Sent from iPhone
From: Wouter de Bruijn notifications@github.com Sent: Friday, January 24, 2020 6:20 AM To: JhonControl/PZEM-004t-basic-ESP32-Arduino-ESP8266-Python-RPi Cc: NA7KR; Author Subject: Re: [JhonControl/PZEM-004t-basic-ESP32-Arduino-ESP8266-Python-RPi] PZEM-004t v3 (#1)
Has anyone got this working with PZEM-004t v3 in Python
I get no response from unit.
Hi, did you find something that worked?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/JhonControl/PZEM-004t-basic-ESP32-Arduino-ESP8266-Python-RPi/issues/1?email_source=notifications&email_token=ABP7QGO4OPBMTENNSBB4VUTQ7L2MTA5CNFSM4KCW7BH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ25XLA#issuecomment-578149292, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABP7QGJNM72J6ORZ6I6JEH3Q7L2MTANCNFSM4KCW7BHQ.
My pzem-004t v3 uses Modbus protocol. Try changing the communications codes. This worked for me on Raspberry Pi via a USB-serial TTL dongle. class PZEM:
#readVoltageBytes = [0xB0,0xC0,0xA8,0x01,0x01,0x00,0x1A]
readVoltageBytes = [0x1,0x4,0x0,0x0,0x0,0xa,0x70,0xd]
...
...
Has anyone got this working with PZEM-004t v3 in Python
I get no response from unit.