Search found 45 matches

by djelau
27 Oct 2023, 08:37
Forum: ESP Easy: Software
Topic: No wifi AP with custom build
Replies: 6
Views: 5766

Re: No wifi AP with custom build

Once again, on the 2nd ESP, after uploading a blank bin + upload my custom files, the esp only activated STA. wifidisconnect command had no positive effect. Now that I learn it was possible to send command with serial interface, I try with allowapmode command, Then it started AT mode and I succeeded...
by djelau
26 Oct 2023, 22:17
Forum: ESP Easy: Software
Topic: No wifi AP with custom build
Replies: 6
Views: 5766

Re: No wifi AP with custom build

Feedback of my tentatives by chronology: 1) Load a blank bin => After uploading a custom fw without my own wifi credential, it doesn't start the AP (anormal behavior) 2) Enter your 3 command in the terminal (1 by 1), the STA restart and connect to my wifi (normal behavior) 3) Load a blank bin => Aft...
by djelau
26 Oct 2023, 11:47
Forum: ESP Easy: Software
Topic: No wifi AP with custom build
Replies: 6
Views: 5766

Re: No wifi AP with custom build

If I don't erase flash (thus I keep previous Wifi parameter of my own wifi network in the flash when I uploaded the Normal firmware), then it works correctly (it connect to wifi STA with my home ssid). I made the test on 2 esp8266 (wemos mini D1 board) => same issue on both, no AP after full erase. ...
by djelau
26 Oct 2023, 09:32
Forum: ESP Easy: Software
Topic: No wifi AP with custom build
Replies: 6
Views: 5766

No wifi AP with custom build

Hello, I start from the beginning with platformio: 1st, I erase flash and I follow instructions in Custom-sample.h: 1) rename this file to "Custom.h" (It is ignored by Git) 2) define your own settings below : only define some plugin (USES_P001) and controller (USES_C008) 3) define USE_CUST...
by djelau
09 Oct 2023, 09:11
Forum: ESP Easy: Software
Topic: Rules: "if %ssid% = my_ssid" doesn't works ?
Replies: 2
Views: 3273

Re: Rules: "if %ssid% = my_ssid" doesn't works ?

Thanks Ath, I think it will answer to my request. I will try this solution asap
by djelau
09 Oct 2023, 07:36
Forum: ESP Easy: Software
Topic: Rules: "if %ssid% = my_ssid" doesn't works ?
Replies: 2
Views: 3273

Rules: "if %ssid% = my_ssid" doesn't works ?

Hello,

I try to check on which wifi SSID I'm connected but it seems that rule doesn't work. Any idea to check that?

Code: Select all

on WiFi#Connected do
if %ssid% = my_ssid
 GPIO,1,0
endif
endon
djelau
by djelau
18 Feb 2022, 12:28
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

mihai.icey.ro wrote: 18 Feb 2022, 09:05 hat I could see that it sends kwh even if the value is below 10kwh
I check on my side, and it seems you are right !: I reset energy, and wait 1h at about 2000W => Energy=1.907.
I verify my code but no specific calculation on my side to convert Wh into kWh. So it's on PZEM side.
by djelau
17 Feb 2022, 19:38
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

mihai.icey.ro wrote: 17 Feb 2022, 13:04 so Energy_WH:6.7 is actual = Energy_Kwh:6.7...
strange, according to PZEM spec, the value should be 6700Wh.
by djelau
15 Feb 2022, 23:46
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

1. It should be on L (but no consequence) 3. Apparent power is U*I. But here, it's active power thus U*I*cos(phy). Among value in the plugin, you can get the power factor cos(phy). Here, your power factor is 0.8. This is a normal value for a server and switch which should be supply vwith a AC/DC sup...
by djelau
14 Feb 2022, 10:22
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

mojso wrote: 13 Feb 2022, 22:33 thanks for the reply. in espeasy pzem settings d1 and d2 are not allowed
Menu Hardware -> I2C Interface -> GPIO ⇄ SDA = None / GPIO → SCL = None
Then, D1,D2 will be available.

(Same for D9-Rx/D10-Tx in Tools->Advanced -> uncheck "Enable Serial port")
by djelau
13 Feb 2022, 22:11
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

@mojso

Supply PZEM with 5V directly (as your first schematic. No 1k requested). But don't use D3 and D4 for communication because these pin can prevent ESP to boot. D1,D2 can be used in place.
by djelau
13 Feb 2022, 12:12
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

About energy unit: < 10 kWh, unit is Wh (1 kWh= 1000 Wh), such as : 9999 Wh. 10 kWh and more,unit is kWh, such as : 9999,99 kWh So if your pzem is running for a long time, then the unit is kWh. 1. What type of current probe do you use ? If open one, be sure that it is stongly closed around a single ...
by djelau
12 Feb 2022, 20:52
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

Hello Energy_WH is the total power consumption since the PZEM is first powered (it is power loss tolerant). So each day, the Energy_WH value is higher than previous day. So Day1 consumption =Day2 @ 00h00 - Day1 @ 00h00 Or you can reset the Energy_WH value at the begining of each day and then get the...
by djelau
07 Feb 2022, 12:07
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

Re: Support for PZEM 004T Energy monitor

2) On ESP8266 it is possible to use multiple PZEM-004T (with "Software Serial)" by first - programming a unique address to each device. Note: one only device must be connected to the serial bus at that time. Yes this is exatcly like that. To configure the adress, only one PZEM should be c...
by djelau
12 Oct 2020, 23:52
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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 2738 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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 11112

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: 309
Views: 6658762

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: 5962

"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 5962 times
by djelau
18 Feb 2020, 13:36
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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: 309
Views: 6658762

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...