Page 2 of 7
Re: Support for PZEM 004T Energy monitor
Posted: 03 Apr 2018, 13:17
by papperone
All the calculations are performed by the module itself, the plugin is simply reading data trough softserial and update the device variables.
As in my 2 modules the data are reported correcly (as in some of the screenshot I posted previously) and not knowing any calibration is possible with those devices, I see as only diagnosys that this module is faulty....
Re: Support for PZEM 004T Energy monitor
Posted: 03 Apr 2018, 20:11
by TD-er
The cos phi is the phase shift between voltage and current.
So it is perfectly acceptable when the power in Watt is lower than the power in VA. It simply mean the cos phi is not 1 and thus there is a phase shift.
A switching power supply without power factor correction (essentially eliminating cos phi phase shift) usually has a cos phi of about 0.6, which means that a power of 100 VA results in 0.6*100 = 60 Watt.
Please try the measurement with something with a resistive load, like an oldfashioned glowing light bulb or a heating element and you'll see the power in Watt equals voltage * current.
For inductive loads (that result in a phase shift of current) the cos phi will be less than 1 and thus the power in Watt is lower than V * A.
With a cos phi of 1, the sinus of Voltage and the sinus of current are perfectly in sync. That means the current is 0 when voltage is 0 and max when voltage is max.
With inductive loads, the sinus of the current will shift a little, meaning the peak of the current is not at the moment of the voltage peak.
And with switching power supplies the curve of the current is not even a sinus anymore and its peak is very unlikely to be at the peak of the voltage.
In short:
V * A = VA
V * A * cos phi = Watt.
On electric motors, you often see a cos phi mentioned.
Re: Support for PZEM 004T Energy monitor
Posted: 03 May 2018, 19:24
by DaveS
Hi All,
Have flashed a wemos D1 mini and a nodemcu module with the firmware build posted on this thread (ESPEasy-2.0.0-dev12_test_4096.bin.zip) with the same results.
All options can be configured with no issues until selecting the PZEM004 as a device and configuring GPIO's and pressing submit radio button the device becomes unresponsive,no reply to ping after this.
A reboot will show all -1 values under devices,pages are very slow to open in browser.
Have powered ESP8266 from PC's USB port as well as a mobile phone charger so do not think 5 volt power is a problem.
PZEM module works perfectly when tested on an arduino and on ESP8266 using enode firmware file after doing R17 resistor mod for 3v3 operation.
Is there a fix for this or a later build of ESPeasy that supports the PZEM-004 module ?
Thanks
Dave
Re: Support for PZEM 004T Energy monitor
Posted: 04 May 2018, 12:31
by maluko
Re: Support for PZEM 004T Energy monitor
Posted: 04 May 2018, 17:46
by DaveS
Thank you maluko.
Will compile this and test it.
Only need MQTT functionality !
Re: Support for PZEM 004T Energy monitor
Posted: 11 May 2018, 11:21
by dio45rus
dcjona wrote: ↑12 Jan 2018, 08:19
hello
no chance for me i tried but still 0...
i tried to plug to D5 and D6 on the wemos D& mini and also D3 and D4 but still the same ...
swap RX and TX done too
Voltage (V):233
Current (A): 0
Power (W): 0
Energy (Wh):45
any help please ?
I suspect that you pull all wires of the cable throught current transformer, but need only one of them.
Re: Support for PZEM 004T Energy monitor
Posted: 29 May 2018, 20:38
by Sabado
Hello, i am completely new and lost too.
I try to link a Pezm-004t with a wemos D1 R2 board.
my goals are monitoring my energy consumption, diverting the current i don't use at any moment, with some opto couplers relays, and data-log the currrent from my solar panels.
at the very moment :
i link the Pzem-004t to a source with a load. i have 235 volts on the curent input, and the coil on pin 3 4.
RX,Tx from Pzem are connected to TX,RX on Wemos D1R2 pin 8 9.ground to GND, and 5V (Pzem) to 5V (Wemos).
Running the PzemDisplay example(modified with PZEM004T pzem(8 ,9); // (RX,TX) connect to TX,RX of PZEM)
i have allways -1.00V , with RX,TX connected or not.
at this time, i have no idea about what i may try to have results.
Please, do you have any idea?
Best regards
Re: Support for PZEM 004T Energy monitor
Posted: 07 Jun 2018, 14:09
by Raspi_0x00
I wonder how can I use 3 phase measurements.
The best would be to use one ESP module and use address of 3 PZEM modules. But fist thing is to set address to each module for each phase.
As I can see Espeasy FW dosn't support using of 3 modules or using of different address. Do you have any idea how can we find solutuion for 3 phase measurements?
Re: Support for PZEM 004T Energy monitor
Posted: 07 Jun 2018, 14:13
by aleph0
Yes... but I stopped at 2 modules because I didn't like the solution I programmed... I need to work again on this subject
Re: Support for PZEM 004T Energy monitor
Posted: 21 Jun 2018, 10:28
by Raspi_0x00
When do you think, you finish new version of FW to handle 3 PZEM modules?
Re: Support for PZEM 004T Energy monitor
Posted: 08 Jul 2018, 18:26
by ut1545
Hello,
I'm trying to compile last ESPeasy V2.0 release (ESPEasy-2.0-20180510) but I'm getting the same errors as #71
http://www.letscontrolit.com/forum/view ... 585#p22585.
Did anyone solve this issue? How to compile this plug in under the latest releases of ESPeasy software?
Thanks in advance,
Re: Support for PZEM 004T Energy monitor
Posted: 12 Jul 2018, 16:04
by asking
Raspi_0x00 wrote: ↑27 Mar 2018, 11:24
Hi,
Problem solved. Works grate!!! The problem was that my PCB was configured for use UART0 (GPIO1..3).
When I changed do 13-15 everything is OK.
But I wonder why the Voltage measurement is such unstalble ( I get -1 in most readings).
Any ideas? Update rate is 1min
i am also getting same error -1 randomely inbetween 1 minute readings... did you solved it ? what was the issue ? can you share ?
Re: Support for PZEM 004T Energy monitor
Posted: 13 Jul 2018, 08:55
by aleph0
I have two pzem connected to my wemos ; I've also got this problem on one of them
I never understood what was the cause, I simply ignore wrong reading in domoticz. Not very satisfying, but enough for my purpose
Re: Support for PZEM 004T Energy monitor
Posted: 13 Jul 2018, 18:01
by asking
aleph0 wrote: ↑13 Jul 2018, 08:55
I have two pzem connected to my wemos ; I've also got this problem on one of them
I never understood what was the cause, I simply ignore wrong reading in domoticz. Not very satisfying, but enough for my purpose
Do you think its related to software library of arduino ? or TTL 5V to 3.3V Converter issue ?
Re: Support for PZEM 004T Energy monitor
Posted: 13 Jul 2018, 18:18
by aleph0
asking wrote: ↑13 Jul 2018, 18:01
Do you think its related to software library of arduino ? or TTL 5V to 3.3V Converter issue ?
I don't think so as the 2 pzem are connected on the same module, so same software library ; I also don't use any converters and connected 5V to GPIO directly. This is not conventional but I wanted to make a test and it's working 24/7 since last november, so I think it's safe enough
It's something related to either the pzem itselft, or the GPIO used to connect them. But as my setup is now kinda "in production" I cannot make any tests anymore
I plan to buy some more for another equipment, it'll give me another testing possibility. But it'll be in a month or so
Re: Support for PZEM 004T Energy monitor
Posted: 14 Aug 2018, 11:37
by miki_tnt
Dear all,
i have tried to compile the _P171_PZEM-004T.ino plugin (last version 8 months ago) and I get some errors and warnings:
lib/AS_BH1750/AS_BH1750A.cpp: In member function 'bool AS_BH1750A::startMeasurementAsync(TimeFuncPtr)':
lib/AS_BH1750/AS_BH1750A.cpp:518:7: warning: unused variable '_lastResult' [-Wunused-variable]
int _lastResult = -1;
^
lib/AS_BH1750/AS_BH1750A.cpp: In member function 'bool AS_BH1750A::delayExpired()':
lib/AS_BH1750/AS_BH1750A.cpp:533:19: warning: comparison between signed and unsigned integer expressions [-Ws
ign-compare]
if (timestamp < _lastTimestamp)
^
lib/AS_BH1750/AS_BH1750A.cpp:536:45: warning: statement has no effect [-Wunused-value]
delayTime = MAX_U_LONG - _lastTimestamp + timestamp;
^
lib/AS_BH1750/AS_BH1750A.cpp:542:24: warning: comparison between signed and unsigned integer expressions [-Ws
ign-compare]
return (delayTime >= _nextDelay);
ESPEasy-mega-20180809/src/_P171_PZEM-004T.ino: In function 'boolean Plugin_171(byte, Eve
ntStruct*, String&)':
ESPEasy-mega-20180809/src/_P171_PZEM-004T.ino:69:68: error: too many arguments to functi
on 'void addFormNote(const String&)'
addFormNote(string, F("SoftSerial: 1st=RX-Pin, 2nd=TX-Pin"));
^
ESPEasy-mega-20180809/src/WebServer.ino:2788:6: note: declared here
void addFormNote(const String& text)
Could anybody help me with these issues?
Re: Support for PZEM 004T Energy monitor
Posted: 14 Aug 2018, 13:56
by TD-er
The signed/unsigned warning can be ignored.
The errors in WebServer.ino are also quite simple to resolve.
The functions used there in the "PLUGIN_WEBFORM_LOAD" case no longer need the first parameter "string"
So just remove that parameter:
addFormNote(string, F("SoftSerial: 1st=RX-Pin, 2nd=TX-Pin"));
Change it into:
addFormNote(F("SoftSerial: 1st=RX-Pin, 2nd=TX-Pin"));
Re: Support for PZEM 004T Energy monitor
Posted: 14 Aug 2018, 18:46
by papperone
I need to review this plugin in order to move it to the standard repository...
honestly still same issue, lack of time to improve it making it working with multiple devices (e.g. to monitor multiple lines or 3-phase AC).
Re: Support for PZEM 004T Energy monitor
Posted: 16 Aug 2018, 19:15
by miki_tnt
yes, you are right, I already corrected the error regarding addFormNote function, but I am getting more errors after the warning
ESPeasySoftwareSerial.cpp:(.iram.text+0xd4): multiple definition of `sws_isr_0()'
.pioenvs/normal_ESP8266_1024/lib010/SoftwareSerial/SoftwareSerial.cpp.o:SoftwareSerial.cpp:(.iram.text+0xf8):
first defined here
.pioenvs/normal_ESP8266_1024/libc99/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o: In function `sws_isr_1
()':
ESPeasySoftwareSerial.cpp:(.iram.text+0xec): multiple definition of `sws_isr_1()'
.pioenvs/normal_ESP8266_1024/lib010/SoftwareSerial/SoftwareSerial.cpp.o:SoftwareSerial.cpp:(.iram.text+0x110)
: first defined here
.pioenvs/normal_ESP8266_1024/libc99/ESPEasySoftwareSerial/ESPeasySoftwareSerial.cpp.o: In function `sws_isr_2
()':
ESPeasySoftwareSerial.cpp:(.iram.text+0x104): multiple definition of `sws_isr_2()'
.pioenvs/normal_ESP8266_1024/lib010/SoftwareSerial/SoftwareSerial.cpp.o:SoftwareSerial.cpp:(.iram.text+0x128)
: first defined here
collect2: error: ld returned 1 exit status
*** [.pioenvs/normal_ESP8266_1024/firmware.elf] Error 1
========================== [ERROR] Took 59.91 seconds ==========================
Environment normal_ESP8266_1024 [ERROR]
Re: Support for PZEM 004T Energy monitor
Posted: 16 Aug 2018, 21:49
by TD-er
Hmm, that's very strange, I only got those errors when building the latest ESP32 code.
Try to run a "clean" build first before recompiling.
Re: Support for PZEM 004T Energy monitor
Posted: 16 Aug 2018, 23:00
by miki_tnt
Thank you very much.
Yes, it is very strange. I have cleaned the project and compiled it again but no luck... I dont understand what it is going on. I am using last mega release.
Any other suggestion will be appreciated.
kind regards,
Re: Support for PZEM 004T Energy monitor
Posted: 29 Aug 2018, 00:16
by Dim33
Hello everybody,
My energy measurement is operationnal by following this post and this one
http://www.domoticz.com/forum/viewtopic ... 14&t=20820
I use an ESP8266_4096.
But I have a problem :
- if I boot my ESP connected to the PZEM. My ESP doesn't start (no effect if I push on RESET button),
- If I boot my ESP (not connected to the PZEM), this one start normaly and after i can connect the PZEM to the ESP and the Energy measurement is OK.
This problem is painful because if i have a power cut, my Energy measurement does not restart.
Can you help me ?
Thanks in advance.
Re: Support for PZEM 004T Energy monitor
Posted: 29 Aug 2018, 13:28
by TD-er
Maybe you connected the sensor to one of the pins needed to indicate the boot-mode?
For example GPIO0, which is connected to the "Flash" button on NodeMCU boards, will put the ESP into flash mode when pressed.
I can imagine the sensor will do the same when connected to that pin.
Re: Support for PZEM 004T Energy monitor
Posted: 30 Aug 2018, 22:56
by Dim33
Dim33 wrote: ↑29 Aug 2018, 00:16
Hello everybody,
My energy measurement is operationnal by following this post and this one
http://www.domoticz.com/forum/viewtopic ... 14&t=20820
I use an ESP8266_4096.
But I have a problem :
- if I boot my ESP connected to the PZEM. My ESP doesn't start (no effect if I push on RESET button),
- If I boot my ESP (not connected to the PZEM), this one start normaly and after i can connect the PZEM to the ESP and the Energy measurement is OK.
This problem is painful because if i have a power cut, my Energy measurement does not restart.
Can you help me ?
Thanks in advance.
I modified the GPIO pin : GPIO-12 and 13 instead of GPIO-14 and 15 and all is OK.
Re: Support for PZEM 004T Energy monitor
Posted: 30 Aug 2018, 23:17
by pppp33
Hi there,
I've got a PZEM an tried to compile, but got same "multiple definition" error, as miki_tnt :
.pioenvs\test_ESP8266_4096\lib46c\ESPEasySoftwareSerial\SoftwareSerial.cpp.o: In function `sws_isr_0()':
SoftwareSerial.cpp:(.iram.text+0xd0): multiple definition of `sws_isr_0()'
.pioenvs\test_ESP8266_4096\lib46c\ESPEasySoftwareSerial\ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xd4): first defined here
.pioenvs\test_ESP8266_4096\lib46c\ESPEasySoftwareSerial\SoftwareSerial.cpp.o: In function `sws_isr_1()':
SoftwareSerial.cpp:(.iram.text+0xe8): multiple definition of `sws_isr_1()'
.pioenvs\test_ESP8266_4096\lib46c\ESPEasySoftwareSerial\ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0xec): first defined here
.pioenvs\test_ESP8266_4096\lib46c\ESPEasySoftwareSerial\SoftwareSerial.cpp.o: In function `sws_isr_2()':
SoftwareSerial.cpp:(.iram.text+0x100): multiple definition of `sws_isr_2()'
.pioenvs\test_ESP8266_4096\lib46c\ESPEasySoftwareSerial\ESPeasySoftwareSerial.cpp.o:ESPeasySoftwareSerial.cpp:(.iram.text+0x104): first defined here
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z21Plugin171_ReadVoltagev+0x8): undefined reference to `PZEM004T::voltage(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o: In function `Plugin171_ReadVoltage()':
ESPEasy.ino.cpp:(.text._Z21Plugin171_ReadVoltagev+0x25): undefined reference to `PZEM004T::voltage(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z21Plugin171_ReadCurrentv+0x0): undefined reference to `PZEM004T::current(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z21Plugin171_ReadCurrentv+0x1d): undefined reference to `PZEM004T::current(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z19Plugin171_ReadPowerv+0x0): undefined reference to `PZEM004T::power(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z19Plugin171_ReadPowerv+0x1d): undefined reference to `PZEM004T::power(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z20Plugin171_ReadEnergyv+0x0): undefined reference to `PZEM004T::energy(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o: In function `Plugin171_ReadEnergy()':
ESPEasy.ino.cpp:(.text._Z20Plugin171_ReadEnergyv+0x1d): undefined reference to `PZEM004T::energy(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z10Plugin_171hP11EventStructR6String+0x1c): undefined reference to `PZEM004T::PZEM004T(unsigned char, unsigned char)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o:(.text._Z10Plugin_171hP11EventStructR6String+0x20): undefined reference to `PZEM004T::setAddress(IPAddress const&)'
.pioenvs\test_ESP8266_4096\src\ESPEasy.ino.cpp.o: In function `Plugin_171(unsigned char, EventStruct*, String&)':
ESPEasy.ino.cpp:(.text._Z10Plugin_171hP11EventStructR6String+0x14e): undefined reference to `PZEM004T::PZEM004T(unsigned char, unsigned char)'
ESPEasy.ino.cpp:(.text._Z10Plugin_171hP11EventStructR6String+0x15b): undefined reference to `PZEM004T::setAddress(IPAddress con
.....
.....
....
Is there any suggestion to overcome this issue ?
Perhaps something changed in libraries, etc. in the last months ?
Thanx & Regards
Paolo
Re: Support for PZEM 004T Energy monitor
Posted: 30 Nov 2018, 23:34
by GieBek
Would it give advice to throw the plugin into the latest software. PZEM has been working very well for me for half a year but I miss some features from the new software.
Greetings.
Re: Support for PZEM 004T Energy monitor
Posted: 30 Nov 2018, 23:38
by grovkillen
Please open an issue for it on GitHub and ask the maintainer to add it as a PR.
Re: Support for PZEM 004T Energy monitor
Posted: 01 Dec 2018, 00:01
by GieBek
Thank you very much for your answer.
I did what you wrote.
Greetings.
GieBek
Re: Support for PZEM 004T Energy monitor
Posted: 10 Dec 2018, 12:13
by lyovav
Re: Support for PZEM 004T Energy monitor
Posted: 23 Dec 2018, 13:25
by hnaeem07
I am not getting correct value for Watts when i did the calculation, example as below
Actual reading from meter = 232.20 Volts , 2.89 Amps, 665.00 Watts, 1311707.00 KWH
232.20 x 2.89 = 671.06 Watts, but in the meter it shows 665.00, can i know why its not accurate ?
Thanks in advance.
Re: Support for PZEM 004T Energy monitor
Posted: 23 Dec 2018, 16:11
by Domosapiens
Re: Support for PZEM 004T Energy monitor
Posted: 17 Jan 2019, 21:21
by antikiller_bm
I also have some problem with building this project
I have two builds ESPEasy_mega-20181231 and latest with changed Softwareserial library
ESPEasy_mega-20181231 compiles without error only if espsoftwareserial-3.2.3 used
20190110 compiles with new ESPEasySerial library also without any errors
But both firmwares always shows me 0.00, even old version mega 2.00 dev
I think that is not a hardware problem, wifi-iot firmware works fine, but with the hardware serial.
Im already tried to change GPIOs to another with the same result.
Interesting that is no voltage measuring in the log, A W Wh only
Re: Support for PZEM 004T Energy monitor
Posted: 30 Mar 2019, 22:14
by serjkru
Hi guys,
I got working on one esp-12f 6 of PZEM 004T. Probably I could connect up to 8 PZEM in the same time to one esp-12f.
The idea was to use many PZEM 004T on one esp-12f without using address of each one. I connected each one in parallel with RX, TX, and GND. For select with whom I am communicating right now I decided to use esp-12f ports.
If anyone interested I would share my schematic and plugin.
Thank you.
Re: Support for PZEM 004T Energy monitor
Posted: 31 Mar 2019, 09:53
by RobertM
I'm interested - can you send me plugin ?
Also you can share public
Re: Support for PZEM 004T Energy monitor
Posted: 31 Mar 2019, 21:27
by AndrewJ
Hi serjkru,
I'm very interested, too! This seems to have a good fit with the direction I'd like to take, which is to measure power use in each (main) circuit in my house.
I'd be very happy if you could share your schematic and plugin, please.
Thanks in advance,
Andrew
Re: Support for PZEM 004T Energy monitor
Posted: 01 Apr 2019, 03:10
by serjkru
Hi guys,
Thank you for your interest.
There is a pdf how to connect them
Plugin for PZEM-004T.(I used one from playground but change it a lot)
Also I had to change Software serial ESPeasySoftwareSerial.cpp because original didnot work.
I think I did not mess something.
If you have a question, do not hesitate!
Re: Support for PZEM 004T Energy monitor
Posted: 01 Apr 2019, 03:13
by serjkru
If someone use OpenHab there is sample:
items
Code: Select all
Number Sensor_Laundry_Voltage "Laundry [%.1f V]" <voltage>(Home) [ "LaundryVoltage" ] { mqtt="<[myhome:/HouseVACMeter/PZEM_1/Voltage(V):state:default]" }
Number Sensor_Laundry_Current "Laundry [%.1f A]" <current>(Home) [ "LaundryCurrent" ] { mqtt="<[myhome:/HouseVACMeter/PZEM_1/Current(A):state:default]" }
Number Sensor_Laundry_Power "Laundry [%.1f W]" <power> (Home) [ "LaundryPower" ] { mqtt="<[myhome:/HouseVACMeter/PZEM_1/Power(W):state:default]" }
Number Sensor_Laundry_Energy "Laundry [%.1f Wh]" <energy> (Home) [ "LaundryEnergy" ] { mqtt="<[myhome:/HouseVACMeter/PZEM_1/Energy(Wh):state:default]" }
sitemap
Code: Select all
Frame label="House Sensors" icon="house"{
Text label="Power management" icon="power" {
Text label="Laundry" icon="energy" {
Text item=Sensor_Laundry_Voltage label="Voltage" icon="energy"
Text item=Sensor_Laundry_Current label="Current" icon="energy"
Text item=Sensor_Laundry_Power label="Power" icon="energy"
Text item=Sensor_Laundry_Energy label="Energy" icon="energy"
}
}
}
Re: Support for PZEM 004T Energy monitor
Posted: 01 Apr 2019, 03:25
by serjkru
Hi guys,
I have developed many projects for my smart house but not sure when I should post them.
If someone lives in US or Canada, you might be interested in WiFi wall switch.
My idea was to use jst regular wall switch and put all elecrtonics right under switch button. You can see it on the photoes:
It is dimmable switch with two buttons.
I created plugin for it as well and connected to OpenHab.
Also I developed two version of Humidity/Temperature/Pressure devices. I use BME280 as sensor.
One of them looks like usb stick for remoute mouse or keyboard another one a little bit bigger.
Re: Support for PZEM 004T Energy monitor
Posted: 01 Apr 2019, 18:29
by DaveS
@serjkru.
Please could you post the wiring schematic for the PZEM-004 modules to the ESP-8266 module,I do not see the pdf file.
Looking at the wiring picture posted earlier, you are sequentially supplying power to the PZEM modules and taking readings to send to openhab.
Good idea to save IO pins !
Thanks
Re: Support for PZEM 004T Energy monitor
Posted: 02 Apr 2019, 02:18
by serjkru
My appologies,
I updated my post
viewtopic.php?p=36179#p36179
Thank you
Re: Support for PZEM 004T Energy monitor
Posted: 02 Apr 2019, 19:49
by DaveS
Cheers mate.
Very nice work !
Re: Support for PZEM 004T Energy monitor
Posted: 03 Apr 2019, 14:43
by xury
Very good idea.
What is the reading time of all sensors?
How often can you read?
Re: Support for PZEM 004T Energy monitor
Posted: 04 Apr 2019, 02:12
by serjkru
xury wrote: ↑03 Apr 2019, 14:43
Very good idea.
What is the reading time of all sensors?
How often can you read?
In my project its read every minute.
There is no problem to read each 10 second or so.
Re: Support for PZEM 004T Energy monitor
Posted: 23 Apr 2019, 18:57
by tfelleg
Hi Guys!
Thank you Serjkru for firmware. I tried with two device (Wemos D1 4 MB, and Wemos D1 mini 4 MB), but I did not found the Voltage & Current (AC) in device list.
Where did I go wrong?
Thank you
Best
Tamas
Re: Support for PZEM 004T Energy monitor
Posted: 23 Apr 2019, 19:44
by RobertM
"P183-Voltage & Current (AC) - PZEM-004T" almost at the end of the list of devices
Re: Support for PZEM 004T Energy monitor
Posted: 23 Apr 2019, 20:17
by tfelleg
I did not found.
Here is the picture about the last devices.
Thank you
Best
Tamas
- pzemespeasy.png (66.17 KiB) Viewed 1761910 times
Re: Support for PZEM 004T Energy monitor
Posted: 23 Apr 2019, 20:32
by RobertM
Try with attached file
Re: Support for PZEM 004T Energy monitor
Posted: 23 Apr 2019, 20:53
by tfelleg
RobertM, you are GENIUS!
It works!
Thank you very much!
Best
Tamas
Re: Support for PZEM 004T Energy monitor
Posted: 26 Apr 2019, 22:09
by serjkru
tfelleg wrote: ↑23 Apr 2019, 20:53
RobertM, you are GENIUS!
It works!
Thank you very much!
Best
Tamas
Hi,
Could you please answer on some questions:
What binary did you use when you was not able to find the plugin?
Did you use a binary file which I posted?
Thank you.
Re: Support for PZEM 004T Energy monitor
Posted: 03 Jun 2019, 13:29
by xury
serjkru Why did you removed R15?
And why you swap R17 to 120 Ohm except 510 Ohm?
It would not be enough to solder 1k resistor as in the picture?