Cov txheej txheem:

Meter PZEM-004 + ESP8266 & Platform IoT Node-RED & Modbus TCP/IP: 7 Kauj Ruam
Meter PZEM-004 + ESP8266 & Platform IoT Node-RED & Modbus TCP/IP: 7 Kauj Ruam

Video: Meter PZEM-004 + ESP8266 & Platform IoT Node-RED & Modbus TCP/IP: 7 Kauj Ruam

Video: Meter PZEM-004 + ESP8266 & Platform IoT Node-RED & Modbus TCP/IP: 7 Kauj Ruam
Video: Power Meter PZEM 004 Peacefair + Arduino & ESP8266 : PDAControl 2024, Hlis ntuj nqeg
Anonim
Meter PZEM-004 + ESP8266 & Platform IoT Node-RED & Modbus TCP/IP
Meter PZEM-004 + ESP8266 & Platform IoT Node-RED & Modbus TCP/IP

Hauv lub sijhawm no peb yuav suav nrog peb lub zog ntsuas hluav taws xob lossis kev siv hluav taws xob, Pzem-004-Kev sib haum xeeb nrog IoT Node-RED kev sib koom ua ke siv hauv kev qhia yav dhau los, peb yuav siv ESP8266module teeb tsa ua Modbus TCP / IP qhev, tom qab ntawd peb yuav pom lub ntsuas hauv Node- RED Dashboard kom pom qhov 4 muaj qhov hloov pauv xws li lub zog muaj zog, kev siv hluav taws xob ntau, qhov hluav taws xob thiab tam sim no.

Duab
Duab

Cov Lus Qhia Yav Dhau Los Pom Zoo

Kev teeb tsa Platform Node-Liab

Hauv cov lus qhia hauv qab no peb yuav qhia yuav ua li cas rau nruab Node-RED rau linux thiab thaum muaj lwm yam OS peb pom zoo Virtualbox.

pdacontrolen.com/installation-node-red-plat…

Hloov kho ESP8266 Industrial Modbus TCP IP V2.0

Lub sijhawm ntev dhau los kuv tau ua qee qhov kev ntsuam xyuas ntawm ESP8266 ua Modbus TCP/IP qhev, cov lus qhia hauv qab no tuaj yeem raug coj los ua keeb kwm yav dhau los ntawm kev sim tam sim no.

pdacontrolen.com/update-esp8266-industrial-…

Kev siv hluav taws xob ntsuas hluav taws xob Peacefair PZEM 004 + ESP8266 & Arduino Nano

Yog tias koj xav paub ntau ntxiv txog Pzem-004 Peacefair, Kuv pom zoo cov lus qhia hauv qab no:

Nta, Arduino kev sib txuas thiab ESP8266.

pdacontrolen.com/electricity-consumption-me…

Kauj Ruam 1: Kev Xeem Ua Tau

Kuaj tau ua

Peb yuav ntsuas kev siv hluav taws xob ntawm kev tiv thaiv dej kom sov, haus kwv yees li 920 Watts thiab peb yuav pom kev ntsuas hauv lub dashboard tsim hauv Node-RED Dashboard thiab kev sib txuas lus siv Modbus TCP / IP.

Duab
Duab

Kauj Ruam 2: Kev Ntsuas Yooj Yim PZEM-004 & ESP8266 Platform IoT Node-RED Dashboard Modbus TCP/IP

Image
Image

Kev ntsuas ntsuas lub zog nquag lossis siv hluav taws xob nrog Peacefair PZEM-004 Meter thiab ESP8266 cov ntaub ntawv

kis thiab pom kev hauv IoT Platform Node-RED / Node-RED Dashboard siv Modbus raws tu qauv TCP / IP

Kauj Ruam 3: Cov Khoom thiab Qhov Yuav Yuav Lawv Li Pheej Yig Heev

Node-RED
Node-RED

Cov ntaub ntawv thiab qhov twg yuav lawv pheej yig heev

  • Meter PZEM 004 nrog cov zaub
  • Meter PZEM 004T & Peb theem ntsuas
  • Rhaub dej rhaub / Dej Dej Rhaub Dej Kub
  • ESP8266 NodeMCU

Kauj Ruam 4: Node-RED

Node-RED

Cov nodes siv hauv qhov kev xeem no tau rub tawm thiab teeb tsa, tsuas yog tshawb rau Node-RED "Manage palette".

Duab
Duab
  • Modbus TCP/IP, Node-RED nodes yuav yog Modbus TCP/IP tus tswv
  • Node-RED Dashboard, pob pom kev.

Hauv qhov no, tau txais Array ntawm 5 txoj haujlwm [0, 1, 2, 3, 4] tau txais, thawj txoj haujlwm hauv 0 thiab qhov seem muaj qhov tseem ceeb ntawm qhov hluav taws xob, Tam sim no, Lub Hwj Chim, Kev Siv Hluav Taws Xob.

Siv qee qhov Ntawv Ntsuas qhov txiaj ntsig tau sib cais thiab tau ua tiav qhov hloov pauv ntawm Arduino IDE tau muab faib ua 10 qhov txiaj ntsig tau txais los hloov lawv los ntawm Int rau Float hauv qhov xwm txheej xav tau, thev naus laus zis txhua qhov no ua tiav rau qhov pom tau qhov tseeb.

Duab
Duab

Kauj Ruam 5: Node-RED Dashboard

Node-RED Dashboard
Node-RED Dashboard
Node-RED Dashboard
Node-RED Dashboard

Kauj Ruam 6: Arduino IDE Code

Arduino IDE Code

Cov txheej txheem niaj hnub tsim hauv Arduino IDE, ESP8266 ua qhov nyeem ntawv ntawm lub ntsuas PZEM-004 los ntawm cov chaw nres nkoj, los ntawm kev sim yav dhau los nrog Modbus TCP / IP ib txwm tau tsim los txiav rau xa thiab tau txais Kev tuav npe.

4 qhov sib txawv tau teev tseg hauv 4 Kev Sau Npe:

  1. khoob = Tuav Sau Npe [0].
  2. Instantaneous voltage = tuav npe [1].
  3. Tam sim tam sim = Tuav Sau Npe [2].
  4. Lub zog tam sim = tuav npe [3].
  5. Lub zog muaj zog = tuav npe [4].

Kev daws sai rau xa khoom ntawm Float hauv Int

Qhov tseem ceeb ntawm lub ntsuas ntsuas yog hom ntab, Cov Ntawv Sau Npe yog 16-ntsis Integers, hauv qhov no los ntawm kev ua haujlwm yooj yim sib npaug los ntawm 10 peb ua qhov xa tus nqi, hauv kev ntsuas tom ntej peb yuav ua cov khoom xa tuaj hauv 2 cov lej ntawm 16 khoom.

Duab
Duab

Nco tseg: Rub tawm thiab / lossis txuas github hauv qab no.

Kauj Ruam 7: Cov Lus Qhia Ntxiv thiab Rub Tawm

Cov ntaub ntawv ntau ntxiv thiab rub tawm
Cov ntaub ntawv ntau ntxiv thiab rub tawm

Cov ntaub ntawv / Cov ntaub ntawv

Nyeem Kev Xav, Cov Lus Qhia thiab Cov Lus Qhia ua tiav cov ntaub ntawv ntawm qhov haujlwm hauv Meter PZEM-004 + ESP8266 & Platform IoT Node-RED & Modbus TCP/IP.

pdacontrolen.com/meter-pzem-004-esp8266-pla…

Leer Consideraciones, Recomendaciones y sugerencias documentacion Completa del proyecto en Medidor PZEM-004 + ESP8266 & Plataforma IoT Node-RED & Modbus TCP/IP.

pdacontroles.com/medidor-pzem-004-esp8266-p…

Pom zoo: