supla PZEM004 v2

elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

PZEM004 v2 based on SoftVer 2.3.0. (Supla Arduino develop) By klew.

using the pulse counter channel for the energy meter and a temperature and humidity channel for voltage and wattage.
It is not an ideal solution but waiting for the implementation of energy meter can be a temporary solution.

Image
Image

Gpio 5 // D1 RX connect to TX of PZEM
Gpio 4 // D2 TX connect to RX of PZEM
Gpio 0 // D3 wisiconfig


To access the Wi-Fi configuration, press Gpio 0 for at least 5 seconds.
in the configuration page enter the data for "suplaServer, Email and Supla Device Name (name with which it will be seen in the cloud)"
added read-only field for Supla Last State to wificonfig.
wificonfig.png
wificonfig.png (21.54 KiB) Viewed 6276 times
Supla_PZEM004_V2_DOUT_16Mbit.rar
compiled firmware
(502.41 KiB) Downloaded 348 times
User avatar
klew
Posts: 8184
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Nice :)

I'll try to add energy meter channel for you! :)
Widzimy się na Supla Offline Party vol. 2 :!:
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

klew wrote: Wed Dec 11, 2019 1:07 pm Nice :)

I'll try to add energy meter channel for you! :)
thank you very much.
You are doing a very good job with the new library and if you add energy meter there will be many grateful people.
PioKar
Posts: 411
Joined: Thu May 03, 2018 5:56 am

Super.
User avatar
QLQ
Posts: 2276
Joined: Sun Sep 03, 2017 9:13 am
Location: Koszalin

elmaya wrote: Wed Dec 11, 2019 1:47 pm
klew wrote: Wed Dec 11, 2019 1:07 pm Nice :)

I'll try to add energy meter channel for you! :)
thank you very much.
You are doing a very good job with the new library and if you add energy meter there will be many grateful people.
Elemaya ist The Best! 😁
...energy meter in Arduino ...yeeeee!!
jak coś nie działa to włącz zasilanie.....
User avatar
Robert Błaszczak
Posts: 3970
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Contact:

Let's not forget about the great work of a colleague @klew :D
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

Robert Błaszczak wrote: Thu Dec 12, 2019 4:02 pm Let's not forget about the great work of a colleague @klew :D
Exactly the whole merit is for Klew.
User avatar
pzygmunt
Posts: 18282
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Everything OK but it should work as SUPLA_CHANNELTYPE_ELECTRICITY_METER
User avatar
QLQ
Posts: 2276
Joined: Sun Sep 03, 2017 9:13 am
Location: Koszalin

Robert Błaszczak wrote: Thu Dec 12, 2019 4:02 pm Let's not forget about the great work of a colleague @klew :D
yes, yes of course I am so sorry my fault. colleague @klew does a great job here and thanks to him we have a new library SuplaDevice under Arduino and thanks to him new softs are created. a big bow to him for his work
jak coś nie działa to włącz zasilanie.....
Darkman
Posts: 40
Joined: Fri Apr 26, 2019 11:34 am

Could you give source code in Arduino IDE for compile to another socket - SmartDGM DSG-W162
oSuplowane:
11x MiniTiger RF 2gang -N [czekają kolejne sztuki]
3x MiniTiger RF 1gang -N
1x Sonoff Touch 1gang +N
3x SmartDGM DSG-W162 gn. z pomiarem
2x GreenBlue GB155 gn.
1x MediaTech MT3105 gn.
1x Lanberg SM01-WP10 gn.
2x Yunshan
1x Geekcreit 4ch
Post Reply

Return to “Ideas and concepts”