PZEM-017 (DC Energy Meter) & ESP32 Wiring , Library and Code

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 มิ.ย. 2024
  • PZem to ESP32 Wiring & Code using Hard Serial2
    My Library and Code:
    github.com/AtherSaleem/Pzem017
    Original Code :
    solarduino.com/pzem-017-dc-en...
    PS/Edit : Why I think , it will be difficult to use PZem library and ModBusMaster library together is becuase use of Declaration -- ModbusMaster node; -- in the code, which is common for both, I tried to overcome this but due to knowledge limitation couldn't make it work, so some experienced programmer may correct it at GitHub.
    00:00 - Intro
    01:07 - Credits
    02:21 - Hardware
    03:04 - ESP32 to UART/RS485 Wiring
    03:40 - PZem017 to UART/RS485 Wiring
    05:14 - Pzem0-17 to DC Current Wiring
    07:32 - Wiring (Compelete)
    09:12 - Troubleshooting
    10:04 - Pzem Windows Software
    12:50 - QModBus - A Glimpse
    15:15 - Pzem017 Arduino Library
    22:02 - Arduino Code
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 26

  • @roadeycarl
    @roadeycarl ปีที่แล้ว

    Awesome! I've been trying to get my 300A one to work with modbus and MQTT for ages! thanks so much. Legend!

  • @geryprasetya1473
    @geryprasetya1473 หลายเดือนก่อน +1

    what if it reads more than one sensor PZEM-017

  • @embeddedmicrocontroller
    @embeddedmicrocontroller ปีที่แล้ว

    thank you for explain

  • @moanggaf7407
    @moanggaf7407 9 หลายเดือนก่อน

    can u explain about procedure to change address, is it same like pzem 004?

    • @545sytes
      @545sytes  9 หลายเดือนก่อน

      I have only one such device which is currently deployed, need to detach and test before I could answer this query

  • @phillipleekit9463
    @phillipleekit9463 5 หลายเดือนก่อน

    Itried to use the PZEM software on Windows 10 but it is not working. Tried to run it in compatibility mode, I get some response but the application still does not load. Any advice on how to make it work with Windows 10 Home

    • @545sytes
      @545sytes  4 หลายเดือนก่อน

      Didn't tried on windows
      Do you have Pzem Manual, I recall communication protocol was given in it
      If you don't have one, I can try to find it , in my junk

    • @phillipleekit9463
      @phillipleekit9463 4 หลายเดือนก่อน +1

      I used the qmodbus application to send commands to the device and it worked ok for me

    • @phillipleekit9463
      @phillipleekit9463 4 หลายเดือนก่อน +1

      I will try using python or even an arduino to send the same command strings. I didn't realize I could get all the meter readings in one command which is great.

  • @tonimulyono971
    @tonimulyono971 ปีที่แล้ว

    how about using 2 or more pzem-017? Thanks sir

    • @545sytes
      @545sytes  ปีที่แล้ว

      I think that should not be an issue, as RS485 can talk with multiple equipment on same wiring, just Address of each pzem should be differnt, I have not tried multiple Pzem-017 but have some experince with Pzem-004t, Due to current limitation, you should be able to use upto 4 Pzem-017 easily. Pzem-004t multi example will help you modify the code

  • @hazardede_n
    @hazardede_n 3 หลายเดือนก่อน

    Can I use it to measure more than 100 amps ?

    • @545sytes
      @545sytes  หลายเดือนก่อน

      Not Sure, if external Ring can give correct measurement above 100A

  • @miftahq1
    @miftahq1 5 หลายเดือนก่อน

    Can for bidirectional reading

    • @545sytes
      @545sytes  5 หลายเดือนก่อน

      Sorry couldn't get the question. How to do bi directional?

  • @Sarjanandeso
    @Sarjanandeso ปีที่แล้ว

    I tried it but not working, "Failed to read modbus" what wrong?

    • @545sytes
      @545sytes  ปีที่แล้ว

      Can I know your setup, pin connections, tx Rx blink status, Pzem model number

    • @Sarjanandeso
      @Sarjanandeso ปีที่แล้ว

      @@545sytes pin GPIO 16, 17, RX TX, RX blink but tx no in konverter RS485, I used PZEM017, Please help sir

    • @545sytes
      @545sytes  ปีที่แล้ว

      @@Sarjanandeso check video around 9:20, Tx should blink, instead of Rx, check your wire connection, try replacing tx Rx wires, I hope Pzem address is same as you are using in ino/sketch

    • @Sarjanandeso
      @Sarjanandeso ปีที่แล้ว

      @@545sytes the cable connection seems to be correct, how to know pzem address? is there a setting in step 2?

    • @545sytes
      @545sytes  ปีที่แล้ว

      @@Sarjanandeso the default address is either 0x00 or 0x01, try using these in your sketch

  • @roadeycarl
    @roadeycarl ปีที่แล้ว

    I'm having real trouble getting the reset to work. It runs the code but nothing resets. Do you have an email address I could maybe send you my code to take a look for me please?

    • @545sytes
      @545sytes  ปีที่แล้ว

      Don't have spare DC Pzem , as the one I had already been deployed, anyways you can contact me at Gmail using ContactAther as id

  • @electronic102tracker8
    @electronic102tracker8 ปีที่แล้ว

    software pzem003 not working 😭

    • @545sytes
      @545sytes  ปีที่แล้ว +1

      I recall pzem003 has different serial setting, 8N1 whereas Pzem 017 works on 8N2, plus modbus master library should be not be used with custom library. Though it is difficult to comment, without knowing actual issue