Search found 31 matches

by djelau
12 Oct 2020, 23:52
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Please help me connect the PZEM-017 to EspEasy. I don't think you will have lot of answers in this topic for PZEM 004T. Better way would be to open a new topic about PZEM017. About directory organization, for PZEM004Tv30.cpp and PZEM004Tv30.h, I create a new directory in \lib\PZEM-004T-v30 For the ...
by djelau
14 Sep 2020, 17:21
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

lease tell me how you can integrate the library Hi, I would say: - Download the source code from official repository here - Download PZEM004Tv30.cpp and _P251_PZEM004Tv3.ino in my fork here - In PZEM004Tv30.cpp and _P251_PZEM004Tv3.ino, change library PZEM004Tv30.h by pzem-017 library - Integrate t...
by djelau
05 Sep 2020, 22:20
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Is it based on different source code compared to what is in the main repository I add the PZEM code and the associated libraries. And I modify define_plugin_sets.h in order to add my plugin and activate the AM2320 plugin. Otherwise, initial source code hasn't been modified. What do you call differe...
by djelau
05 Sep 2020, 11:53
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hi,

I compile this version with AM2320:
ESP_Easy_mega_20200905_normal_ESP8266_4M1M.zip
(567.35 KiB) Downloaded 129 times
I don't test it, I only connect to the Wemos and check devices are available (PZEM and AM2320)
by djelau
24 Aug 2020, 11:49
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Would you recommend that or can I drive the D1 mini with 5V to the GPIO Pins without having fear to burn it? For professional application (I'm electronic engineer), I would say that it is forbidden. The D1 datasheet says max input voltage 3V3. And we always apply some margin to improve reliability....
by djelau
14 Aug 2020, 21:32
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hello ice77, It's ok to set 10sec polling to all of them. Each instance of slave are executed sequentially (not simultaneaously). I don't test with 6PZEM but it should work: Eventually you can supply PZEM by using the 5V from the AC/DC of wall plug rather than the one from wemos. Just connect gnd al...
by djelau
10 Jul 2020, 11:16
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

xxrock wrote: 10 Jul 2020, 06:36 I just did not study carefully the connection diagram. Now everything works as expected. Thank you all for the help, especially to djelau (for firmware and help). :)
Good job !
by djelau
09 Jul 2020, 20:52
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

xxrock wrote: 09 Jul 2020, 17:36 Ноw can I check PZEM send any current and power data?
If displayed current is 0A then data are sent correctly. Otherwise, you will have NAN. (and power would be NAN if no communication)
With current =0A, power=0, it's normal.

So a photo of your overall wiring setup will be helpful.
by djelau
09 Jul 2020, 15:25
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

I don't know why, but GPIO01 and GPI03 don't work :roll: It should work but in your initial set up, you should select SW serial rather than HW serial and set GPIO <- TX as GPIO-1 and GPIO->RX as GPIO-3 How can I check that coils works normally? What kind of load do you connect ? For your info, coil...
by djelau
06 Jul 2020, 18:10
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Can you please give advise what I do wrong? I think you cumulate all the errors that I solve previously: - Avoid Node MCU because voltage level are 3V3 whereas PZEM expects 5V. It could work but it's not sure - Avoid HW serial - RX and TX are inverted to work with HW serial - Deactivate serial comm...
by djelau
02 Jul 2020, 10:03
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

For PZEM v3, have a look to this post:
viewtopic.php?p=41093#p41093

I advice not to use NodeMCU because voltage level are 3v3 whereas PZEM expects 5V. Try a Wemos.
by djelau
01 Jul 2020, 23:55
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hello,

You connect a PZEM 004T v3 but the plugin that you use is not the one that I create for v3: PZEM-004Tv30-Multiple. So I can't help you.
by djelau
02 May 2020, 14:15
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

What does CT mean ?

However, your PZEM is a v1.0 not a v30 because optocoupler are black and not white. So not use the plugin for PZEMv30 is not compatbile with your PZEM.
by djelau
01 Apr 2020, 16:33
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hello Marco,

OK I'll try to add Blynk controller (C012). This is what you want ?
For 4Mb ?

Update:
I don't test it !
by djelau
11 Mar 2020, 07:55
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Strange behavior...
Perhaps you can copy the value to a dummy device and then send this dummy value to your controller.
by djelau
06 Mar 2020, 21:46
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

I need to uplug tx and rx cable during the sketch upload, and ok, but with the rx and tx connected the ESP is hung and no values are published because it cannot connect to the pzem As already repeated: it's really not mandatory to use RX/TX pin of your WEMOS/nodeMCU => Any pin can be used with the ...
by djelau
29 Feb 2020, 09:43
Forum: ESP Easy: General Discussion
Topic: Stability problem
Replies: 11
Views: 4674

Re: Stability problem

Hello,

do you check if the power supply is sufficient to supply everything? Isn't it a reset of the espeasy due to weak power supply ?
If you try to drive a simple LED, does it work correctly ?
Do you have free wheeling diodes ?

Same than Wiki, never have such behavior with my wemos.
by djelau
18 Feb 2020, 23:36
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

But it does not work DS18B20 It works on the original firmware I perform some test without problem on "ESP_Easy_mega-20191003_PZEM_core_ESP8266_4M1M.bin": I'm able to have DS18B20 and 2 PZEM on the same Wemos. My PZEM are connected with software serial on D1/D2 pin / Refresh 2s and 6s. DS...
by djelau
18 Feb 2020, 23:20
Forum: ESP Easy: Software
Topic: "Git Build" field is empty:where to fill it ?
Replies: 1
Views: 3088

"Git Build" field is empty:where to fill it ?

Hello everybody,

on my custom firmware, based on 20200204, I would like to write something in the field "Git Build" of system info. What should I modify in source code to do that ?
thx
Capture.JPG
Capture.JPG (33.63 KiB) Viewed 3088 times
by djelau
18 Feb 2020, 13:36
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hello, i install the firmware pzem-004 v30 multiple, but only use one pzem, the problem is that the energy shown on espeasy is not correct. I tested on 1 PZEM with sucess. What do you mean by not correct ? Stucked? alway 0? Have in mind that the vealue is in kWh thus I could take a couple of hours ...
by djelau
18 Feb 2020, 12:52
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

NodeMcu + PZEM-004Tv30 (2pcs), works fine I requested "ESP_Easy_mega-20191003_PZEM_core_ESP8266_4M1M.bin" But it does not work DS18B20 It works on the original firmware I don't test this configuration. Normally, plugins are independant so my plugin shouldn't have any impact on the DS18B20...
by djelau
06 Feb 2020, 16:43
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

So, you have your answer about the connection of phase and neutral: do the opposite of me and it will work (I am from France). :D
by djelau
06 Feb 2020, 09:15
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

There is no wrong way as it is AC. It can be connected in any direction. What is also confusing is the choice of colours. Here in the UK we use 'brown' as 'live' and 'blue' as 'neutral' (no red wires at all) - but maybe in China it's different ?? And about wires color, neutral shall be blue. Line ca...
by djelau
05 Feb 2020, 16:07
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

I don't have clear answer about how to connect L and N. But I made so many test when I developped the plugin without taking care of the direction of L/N. And I never noticed that the measurements was negative (cos phi or current). Thus I can deduce that PZEM internal component detects the direction ...
by djelau
03 Feb 2020, 08:32
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

NiCOOLaS wrote: 02 Feb 2020, 11:04 If only one PZEM, then try select HW default, not SW serial.
Yes but orange and pink purple must be inverted to connect PZEM TX to Node RX / Node TX to PZEM RX
by djelau
03 Feb 2020, 08:14
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hello everyone, Something to clarify for everyone: it's really not mandatory to use RX/TX pin of your WEMOS/nodeMCU => Any pin can be used with the solution of "software serial". Then, if you have trouble, first try to change for other pins. As an example, for my 5 PZEM on a WEMOS, here is...
by djelau
22 Jan 2020, 22:59
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hi, First I update my code since last month. Updated files are https://www.letscontrolit.com/forum/viewtopic.php?f=5&t=2595&start=100#p41093 . Perhaps it can help. Sources are now https://github.com/djelau/ESPEasyPluginPlayground Otherwise, you use GPIO1 as TX and GPIO3 as RX. I said "d...
by djelau
20 Jan 2020, 13:55
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

I don't know about domoticz, because I use Jeedom. But what I know is in Espeasy, it's not possible to have more than 4 data in a pluggin. To bypass this, you can create a second occurence of this plugin with the same PZEM address than the first occurence. In this second occurence, you can select th...
by djelau
01 Dec 2019, 21:17
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

I try to do something in "Pull requests" of ESPEasyPluginPlayground. Don't know if I'm in right way ...
by djelau
01 Dec 2019, 00:04
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Why not. But unfortunately, I ve no knowlege about how to work with github! As said I'm a beginner.
by djelau
30 Nov 2019, 23:05
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 251
Views: 178726

Re: Support for PZEM 004T Energy monitor

Hi guys, This is my first post, so keep cool. I'm a great fan of ESPeasy; So I try to contribute with this code for PZEM004Tv30. I'm not a software expert so please be tolerant with me. Hardware part: PZEM004Tv30 can be wired in parallel without any aditionnal component: simply connect RX of PZEM to...