PZEM-004T Energy Sensor with ESP-8266 and Node Red Dashboard

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024

Комментарии • 23

  • @jpfreitas86
    @jpfreitas86 6 месяцев назад

    Thank you for sharing your knowledge. Is it possible to reset the energy counter?

    • @YaserAliHusen
      @YaserAliHusen  6 месяцев назад

      Yes you can
      Or you can record into database

    • @Jihenguesmi
      @Jihenguesmi 6 месяцев назад

      how exactly can i record into database
      @@YaserAliHusen

    • @YaserAliHusen
      @YaserAliHusen  6 месяцев назад +1

      When you can get data from ESP in Node-RED, you can record data into database from node-red after getting data.
      You can use postgresql or MSSQL database or another, you can vie lirbary in manage pallet@@Jihenguesmi

  • @tenghorheav582
    @tenghorheav582 7 месяцев назад

    Thank for your really good video. But how can you reset the data ?

    • @YaserAliHusen
      @YaserAliHusen  7 месяцев назад

      I was continuously sending data to the Node-RED dashboard in real-time without any reset. You can enhance this by recording the data into a database like PostgreSQL and visualize it on the dashboard based on specific time intervals.

  • @sohaibdje3811
    @sohaibdje3811 4 месяца назад

    hello i hope u answer me as soon possible , i ve got too many unknown node in ur js project u provided , how to solve this

    • @YaserAliHusen
      @YaserAliHusen  4 месяца назад

      I use only node-red-contrib-modbus,
      The others node is default node.
      My flow was not complicated, you can compare in the video

  • @yinyenlee109
    @yinyenlee109 5 месяцев назад

    Thank you for the sharing, I have some question about the code.
    #ifdef ESP8266
    #include
    #else
    #include
    #endif
    #include
    How do I find those files? (, & ) Or I should include which library?

    • @YaserAliHusen
      @YaserAliHusen  5 месяцев назад +1

      For modbus, you can download from the github and paste into library folder.
      Link: github.com/emelianov/modbus-esp8266

    • @yinyenlee109
      @yinyenlee109 5 месяцев назад

      @@YaserAliHusen how about the ESP8266wifi.h and wifi.h?

    • @YaserAliHusen
      @YaserAliHusen  5 месяцев назад +1

      @@yinyenlee109, You can find it in Libary, usually if you choose board ESP8266, will automatically add this library

    • @yinyenlee109
      @yinyenlee109 4 месяца назад

      @@YaserAliHusen Thank you for the information! May I know can I try this with esp32? I just tried it and it can run using Arduino, but cannot run in node red. Is that anything I need to change inside node red? (I had changed the IP address). Or I need to create the TCP server as previous video?

    • @YaserAliHusen
      @YaserAliHusen  4 месяца назад +1

      ​@@yinyenlee109, for ESP32, maybe you can use ESP32.
      You must check connection between ESP and computer (node-red) you can ping the ESP to check connection.
      Then in node-red flow, check the IP of ESP as modbus TCP server

  • @indrapurnama8659
    @indrapurnama8659 5 месяцев назад

    Maaf pak apakah ada tutorial untuk menghubungkan node rednya perstepnya
    bila ada tolong pak
    terimakasih

    • @YaserAliHusen
      @YaserAliHusen  5 месяцев назад

      Apakah sudah download filenya?
      Seingat saya, saya sudah share juga flow node-rednya, jadi tinggal import saja file jsonnya.

    • @indrapurnama8659
      @indrapurnama8659 5 месяцев назад

      ​@@YaserAliHusen saya kebingungan untuk menghubungkan esp dengan rednote
      Apakah ada tutorial untuk menghubungkan esp dengan rednote seperti video itu

    • @YaserAliHusen
      @YaserAliHusen  5 месяцев назад

      @@indrapurnama8659, apakah sudah download file ESP dan node-rednya?
      ESP dan node-red berkomunikasi menggunakan modbus TCP, jadi pastikan ESP dan node-red dalam jaringan yang sama

    • @indrapurnama8659
      @indrapurnama8659 5 месяцев назад

      @@YaserAliHusen apakah itu menggunakan modbus terlebih dahulu agar bisa tersambung pada ip node red?

    • @YaserAliHusen
      @YaserAliHusen  5 месяцев назад

      @@indrapurnama8659 ​Apakah sudah mencoba kode dari saya?
      Pada ESP kita setting modbus TCP
      Kemudian Node-Red membaca nilai pada modbus di ESP.
      Silahkan dilihat juga video saya yg lain terkait modbus