-->
Page 1 of 1

Reading code for a sensor module .

PostPosted: Tue Jul 18, 2017 7:49 am
by HamzaHajeir
Hi
There's an Arduino library for a sensor using serial communication (PZEM-004T) , then someone developed a code reads the sensor for ESP8266 NARODMON .

Arduino library link : https://github.com/olehs/PZEM004T
Developed code (for NARODMON) : https://www.youtube.com/watch?v=MQjcbAkxpGo
Download link (rar file) : https://vk.com/doc93686786_439324628?ha ... 9e21554912


Now ,how can I change the code to be compatible for NodeMCU ?

Re: Reading code for a sensor module .

PostPosted: Sat Jul 22, 2017 1:52 pm
by Millstone
It's plug and play in case you use the arduino ide.

Two options:

-PZEM004T(uint8_t receivePin, uint8_t transmitPin) -->define your desired softserial pins
-PZEM004T(HardwareSerial *port)--> use your hardware serialport

Have fun. no liability.