Home Power Monitoring with the PZEM Part 2

Поделиться
HTML-код
  • Опубликовано: 6 авг 2024
  • This video is meant to address some of the questions that came up in the previous video on using multiple PZEM-004T modules to monitor power usage at home. While I was at it I decided to add a bit on how I'm actually using the system a couple months on, some of the issues I have with it and show some of the updates that have come out since the initial video was created.
    The first video can be found here: • Home Power Monitoring ...
    Github link with example code can be found here: github.com/Fionnoch/ESPHome_P...
    0:00 Intro
    1:36 Components
    4:47 Wiring
    6:56 Mock Layout
    10:57 HomeAssistant Implementation
    14:27 Improvements
  • НаукаНаука

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

  • @darkphotonllc
    @darkphotonllc 2 года назад

    Thank you!

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

    very good many thanks for sharing

  • @johnnyjones5385
    @johnnyjones5385 Год назад

    thanks...
    So there is a hardware and a software version of Tx and Rx.
    Very useful information
    Cheers

  • @cgreene3745
    @cgreene3745 2 года назад +1

    Have you done any validation of the readings you are getting. I've looked and tried a few different supposed power monitoring devices or circuits and have found the results questionable.
    Have you tried running a known load against the PZEM and say a wattmeter to see if they actually agree on what the load is pulling?

  • @protoTYPElab44
    @protoTYPElab44 2 года назад +1

    Hi, nice video i have been doing the same stuff as you but i am not using pzem module, just wondering if i can see your dashboard for monitoring, btw i am using the ubidots platform

    • @fionnoch9867
      @fionnoch9867  2 года назад

      Thank you, I appreciate it! I've uploaded a copy of one of my basic dashboards on HomeAssistant to my github page github.com/Fionnoch/ESPHome_PZEM_Monitoring/blob/main/Basic_Dashboard_Code.yaml
      Its basic but its what I use most. Also HomeAssistant recently added an energy monitoring tab though that is really good for power monitoring and its fairly intuitive, I'd recommend checking it out

  • @barrybpl
    @barrybpl 3 месяца назад

    It's been over 2 years since you uploaded this video (at time of writing), did you ever find out where your electricity was going?
    Are you still running the system you built?
    I've recently started using a pzem-016 connected to a pi and the pymodbus library, reports back to my server running grafana.

    • @fionnoch9867
      @fionnoch9867  3 месяца назад +1

      ah nice one! yeah it helped a good bit, the big thing was knowing when power is being consumed but we need to optimize a few things which is the tough bit tbh!
      It has had its fair share of troubles though as the esp32 can have difficulty communicating with multiple modules. I recently tweaked the housing and added am going to dig into the code a bit more to see whats happening.
      I might make a video if I get it all working together , down the line I'd like to maybe start adding some sort of analysis on the power (for e.g power factor and current draw) to figure out which appliance is running at what time but at this point thats mainly a pipe dream!

  • @rossicullen
    @rossicullen Год назад

    Great video and really useful... looking to build similar...have parts ordered from Aliexpress for PZEM-004T on the slow boat/train from China. Have you made much changed to the setup 17 months later? Go raibh maith agat!

    • @fionnoch9867
      @fionnoch9867  Год назад +1

      So I actually have made an update to this since, been meaning to do a follow-up actually but need to make the time! Basically I tried connecting directly to the hardware serial ports rather than doing software serial, had an odd problem where the PZEM would randomly disconnect with the esp8266 and I'd have to update or reboot the system then it would work. Weird but not the end of the world, hardware serial seemed to sort that out but comes with a few difficulties too, mostly the fact that you use the same serial connection for debugging/logging.
      Also bought new clamps as the ones I had weren't actually the correct ones, I'm in the same boat as yourself waiting for them to arrive back from China! When I get them in maybe I'll do a recap, but good luck in the meantime!

  • @PhatTan-yo1vy
    @PhatTan-yo1vy 5 месяцев назад

    Using three pzem004t with arduino nano to module sd card, code

  • @andremedeiros7113
    @andremedeiros7113 Год назад

    Hello. I want to connect the PZEM to a regular ESP32 via the RX2 and TX2 ports. Is a 5v to 3.3v voltage converter needed?

    • @fionnoch9867
      @fionnoch9867  Год назад

      yeah so you'd need a voltage converter if you're powering it directly from the esp32, some esp32s have a 5v output but not all, its worth checking if you do but the pzem won't work with 3.3V. The board I used did have a 5V pin but what I did was use a 230VAC to 5VDC power supply to power the PZEM and esp8266, you could do the same and have the power supplies 5v dc connected to the Vin of you're board maybe

  • @nirveshsooful1089
    @nirveshsooful1089 2 года назад

    The esp8266 pins are 3.3V and I have seen other implementations use a 5v to 3v logic level shifter. However you are not doing this. Have you experienced any issues with this?
    I also see other implementations of multiple pzems using diodes to avoid clashes on response. However, again, it seems that you are not doing this. Again, any issues with that?

    • @fionnoch9867
      @fionnoch9867  2 года назад

      Yeah so I'm using a 5V power supply but the board I'm using is a wemos d1 mini which has a 5v to 3.3v regulator so that's how im powering the device. The 5v for the pzem's comes directly from the 5v power supply.
      In terms of diodes I havent had any issues with miscommunication with the pzem. They're all addressable so I'm not sure it would be too much of an issue. Occasionally I do have issues with reading not being taken but I've been told it could be because I use software serial rather than hardware serial, but I havent been able to test it out!

  • @rossicullen
    @rossicullen 11 месяцев назад +1

    @fionnOCH hope alls well... never got much further because the JST XH cables i keep ordering are the incorrect width 😢 Any chance you could post a link to the version you ordered? Thanks as ever 😊

    • @fionnoch9867
      @fionnoch9867  11 месяцев назад +1

      sure thing, I used these myself so can guarantee they work, you can get them on aliexpress for cheaper but you'll have to wait. Another thing is make sure you have a half decent crimper. the ferrule things are small enough on these
      www.amazon.co.uk/Litorange-500PCS-Housing-Adapter-Connector/dp/B086W9HB3M/ref=sr_1_5?keywords=jst%2Bconnectors&qid=1692049849&sprefix=jst%2Caps%2C74&sr=8-5&th=1

    • @fionnoch9867
      @fionnoch9867  11 месяцев назад +1

      I'm still hoping to do a part 3 on this, changed up the config slightly and also realized I made a mistake in the video, if you're wiring up you want to connect rx on the arduino to tx on the PZEM and vice versa. annoyingly its not rx to rx and tx to tx like I thought.

    • @rossicullen
      @rossicullen 11 месяцев назад

      @@fionnoch9867 Thanks for link... any chance I could twist your arm to make up and sell me 5 of them?! 🙏

    • @fionnoch9867
      @fionnoch9867  11 месяцев назад

      @@rossicullen the JST connectors or the PZEMs? I can make up JST connectors or pre connected if you'd like but they might end up coming the same as ones online but they'll have a very DIY esthetic 😅

    • @rossicullen
      @rossicullen 9 месяцев назад

      Just the JST connectors with a bit of wire on them plz :-) think my last comment got deleted

  • @johanwolbink1516
    @johanwolbink1516 2 года назад

    Verry nice Video. Good explaned. I have it setup with ESPHome and now I get the next message on my HA screen : PZEM Current UNKNOW. What I'm doing wrong ?

    • @fionnoch9867
      @fionnoch9867  2 года назад +1

      thank you! hard to diagnose without a screenshot but I do occasionally have an issue where occasionally it might stop taking reading for a while generally i just turn it off and on and it fixes it. If you're not able to connect at all I'd check you have the correct address assigned to it first, if you're confident the wiring is all correct and the continuity of the wires are good I'd maybe try swapping the Rx and Tx pins in esphome

    • @johanwolbink1516
      @johanwolbink1516 2 года назад

      @@fionnoch9867 Right now I have it up and running. I have changed the wiring between TX and RX. Yhanks for your replay.

    • @joserosado1842
      @joserosado1842 2 года назад

      @@fionnoch9867 That's because you are using software serial. Software serial is a crap. Connect the pzems to the hardware serial port of the esp and use hardware serial.