Replies: 7 comments
-
Hi! Sorry, but this library won't work with micropython. It runs under ISP-IDF/Arduino. You can check examples section for some Arduino's sketches to start with. |
Beta Was this translation helpful? Give feedback.
-
could you direct me because I am not proficient in uart / rs485 how the request to the sensor should look like these 8 bits because I know the syntax but I do not know what to send to receive data Volts Amperes and Power. |
Beta Was this translation helpful? Give feedback.
-
you do not expect me to write a new lib for you, right? :))) Better start with learning how to read datasheets before attempting to program a device it refers to. |
Beta Was this translation helpful? Give feedback.
-
it is pretty straight forward written in datasheet
|
Beta Was this translation helpful? Give feedback.
-
of course I don't require you to write a library :) for me. Thank you very much for responding. I can send a query but I don't know what to enter, what 8 bit hex. Manual says: x01 + 0x04 + 0x00 + 0x00 + 0x00 + 0x08 + 0xHH + 0xLL but I can't type 0xHH + 0xLL. These values mean something, but I don't know what. Could you give me one ready-made 8-bit query, I'll try to deduce on this basis how it is generated :) and see if the sensor will answer me at all ;p Regards, Kamil |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I read about crc last night so now i test micropython script for calculated checksum. Big Thanx for YOU :> and Happy New Year |
Beta Was this translation helpful? Give feedback.
-
Hello,
i want to use pzem-003 DC.
I use m5stack tough with UIFlow (block programming / micropython)
So i need simple just send request and get respods from pzem-003.
Can You help me what to send and how to read it.
My project is just read values so no speed is needed i can send request wait 2s and read but i dont know what to send and how read.
I try simple
uart1 = machine.UART(1, tx=14, rx=13)
uart1.init(9600, bits=8, parity=None, stop=2)
uart1.write (8bit like 0x02 ...)
and after 2sek uart1.any() but not get any bytes to read :/
Regards Kamil :>
Beta Was this translation helpful? Give feedback.
All reactions