supla PZEM004 v2

elmaya
Posts: 976
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Wed Dec 11, 2019 12:44 pm

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 2399 times
Supla_PZEM004_V2_DOUT_16Mbit.rar
compiled firmware
(502.41 KiB) Downloaded 125 times
User avatar
klew
Posts: 1335
Joined: Thu Jun 27, 2019 12:16 pm

Wed Dec 11, 2019 1:07 pm

Nice :)

I'll try to add energy meter channel for you! :)
elmaya
Posts: 976
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

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.
PioKar
Posts: 396
Joined: Thu May 03, 2018 5:56 am

Wed Dec 11, 2019 4:35 pm

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

Wed Dec 11, 2019 9:30 pm

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!!
User avatar
Robert Błaszczak
Posts: 1416
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Contact:

Thu Dec 12, 2019 4:02 pm

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

Strona prywatna: https://www.blaszczak.pl
Jakość powietrza: https://robert.aqi.eco
elmaya
Posts: 976
Joined: Wed Jun 27, 2018 5:48 pm
Location: Sevilla

Thu Dec 12, 2019 4:39 pm

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: 9441
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Thu Dec 12, 2019 4:42 pm

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

Thu Dec 12, 2019 9:24 pm

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
Darkman
Posts: 38
Joined: Fri Apr 26, 2019 11:34 am

Fri Dec 20, 2019 8:09 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”