Home Power Monitoring with the PZEM

Поделиться
HTML-код
  • Опубликовано: 6 авг 2024
  • Have you ever wondered what is chewing up all your electricity but didn't want to buy an expensive power monitoring kit?
    This video shows how you can use multiple low cost power monitoring boards (PZEM-004T V3) that can be used to give you a deep insight into your home electricity consumption and also shows how it can be integrated into HomeAssistant, a free IOT software that will not only make it easy to record power but also make easy to access and visually appealing.
  • НаукаНаука

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

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

    Good video. Thanks for the help.

  • @rbland
    @rbland 2 года назад +4

    Good video what I've been looking for.
    Make sure you put spacers between the PZEM boards and the wood behind it. Any moisture in the room may cause the wood to arc across the live and neutral pins and may cause a fire

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

      Same with the main board at the top

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

      good point, it was only meant to be a temporary setup but its turning permanent. Might need to make some changes

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

      we do need no water let the mf burn!

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

      sure great video but how you not what hes saying? cuz i can't hear a thing.

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

    very good many thanks for sharing

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

    Can I use esp32 and connect each pzem004t to its own rx tx, I have 3 of them but I want to connect each one with my esp32 independently, is it possible ?

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

    Using three pzem004t with arduino nano to module sd card

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

    nice video, also exactly what i want to do, working on some OSS code to manage all of this, and a lot of the hardware setup is theoretical, but this is great, I need to monitor main, but I also need to monitor the outputs of each relay individually to know their pull/status, etc. can you drop a note on the extension from your microcontroller and how it gets connected to the board? I'm guessing you're only actually using 4 pins from the "duino" 5/gnd an rx and a tx for each of the N PZEMs?

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

      Sure thing, I've been meaning to do a follow up for a while on how the circuit is wired up, few people have asked about that but just haven't made time to make it. The circuit board is really straight forward, I have a mains to 5v breakout board I got off aliexpress and I use the 5v and ground from that to power the esp8266 and the PZEM modules. the Rx and Tx pins of the pzem's are all joined and connect to pins 6 and 7 of the esp (forget which is Rx and which is Tx, think I mention it in the video) but that is the gist of it.
      I'll hopefully have time this weekend to put together a close up of the board, planning on making a few adjustments to the setup, there's also been talk on the esphome platform of making a way to reset the total energy usage.

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

      ruclips.net/video/h9fNpurEkZI/видео.html added a few more details in this video if you're interested.

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

      @@fionnoch9867 you are an angel, thank you kindly

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

    This is what I was looking since long. How about using ARDUNO MKR 1000 instead of esp32

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

      I don't actually have an Arduino MKR however the standard Arduino PZEM libraries should work with that

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

    @FionnOCH Can this PZEM004T be used with an Arduino Uno (or) Pro Mini. Am looking to get a three phase power measurement.!?! Any arduino libraries specific to three phase would be a welcome...

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

      it can definitely be used with arduino's! in fact most of the libraries are based on arduino's. The three phase thing might be a bit trickier, I was wondering that myself as we have 3 phase at home. From the little looking I did the consensus I got was that you could just get 3 PZEM's and connect each to the live wires and have them all connected to the same neutral. a bit less elegant but its probably the only way to monitor it with these I think.

  • @kozfelipe
    @kozfelipe 9 месяцев назад +1

    Is it necessary for the power supply of the PZEM module to be the same as the circuit it is measuring, or are they independent of each other? I noticed you jumpered the power source between them

    • @fionnoch9867
      @fionnoch9867  9 месяцев назад +2

      So I think in this config I had everything connected to the same circuit. So like the main line into the house and then 3 breakers that were attached to that. I presumed it wouldn't make a difference as they'd all be the same voltage, frequency etc.
      In a later revision I was monitoring across different phases (at home we have 3 phase power) so for that one each devices live connection was connected to the breaker it was reading from but I did daisy chain the neutral to avoid on the amount of wires and mess in the board.
      Just something I noticed is that you can't daisy chain neutrals if one of the fuses is an rcbo (I think, it's a breaker type that requires a L and N) as it will trip the breaker

  • @dmk1802
    @dmk1802 2 года назад +5

    great video, will you also share your Esphome script for four PZEM?

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

      Sure think I've uploaded the files I used to my GitHub page here:
      github.com/Fionnoch/ESPHome_PZEM_Monitoring
      It has the yaml file as well as the arduino sketches I used to set the addresses and test them out

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

      @@fionnoch9867 thanks

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

      ​@@fionnoch9867 I am trying to connect 3 pzem to make triphasic medication using an esp32 but I have not been able to, does the code you show here help me to make that medication?
      I am programming the esp32 from the arduino IDE, I appreciate your help friend

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

    How did you externally aliment your esp without connecting it to your pc. How did you compile the code ??

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

      I use home assistant! so I flash the esp32 with the home assistant code then I'm able to access it via over the air (OTA) updates :)

  • @noexit6764
    @noexit6764 3 года назад +3

    sir can you make the tutor for the main board that connected by 4 pzem?

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

      Sure thing, are you looking for how to connect with the microcontroller (ESP8266) or are you wondering about the circuit board everything is on?

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

      ruclips.net/video/h9fNpurEkZI/видео.html Just made a video with a bit more elaboration on the circuit if you're interested

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

    Don't use software serial. It will lock after sometime and you will receive the same values from de pzem until you reset the all thing!

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

      That is a problem I've been having with them never thought that this might be the issue!

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

    Hello. There are 3 pzem-004t v3 in my project and I am trying to get data with nodemcu. I can retrieve data for each pzem one by one without any problems. However, when I connect to D3 and D4 pins, whether I define an address or not, only the last address is returned and mostly data is missing. Can I have your code that shows the sensor readings except the important parts?

    • @fionnoch9867
      @fionnoch9867  5 месяцев назад +2

      I've found they can be a bit temperamental, to set them up with the various addresses I used an Arduino and then for the final implementation I used esphome (which isn't really coding tbh) on the video I posted after this I have a like to the GitHub with my old config file for esphome.
      Weirdly I found that when multiple modules are connected they can conflict with one another sometimes when esphome is used. Took a while to find that out, not sure exactly what causes it but maybe try removing 1 at a time and see if you can get multiple to work? The Arduino doesn't seem to have this problem

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

      @@fionnoch9867 Thanks for the answer. Can I get the Arduino code? Maybe I can adapt it to nodemcu.

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

    Hi. Do you have a wiring diagram of this project?

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

      In the next video I have a bit more detail!

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

    We connect aurdino to raspberry Pi for building server

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

      esp8266 or esp32 not an arduino but yeah thats how it works :)

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

    I need your help can do this

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

      Sure thing if you have any questions just ask and I'll see if I can help. No promises though!

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

      @@fionnoch9867 sir i need coding can you shere to me

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

      @@sajidmanzoor3606 if you check around 7 minutes I go through an Arduino version and if you check out the end of the video around 10 minutes I go through the esphome code. Is there anything in particular you need help with?

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

    Hi, if for example I declare the following addresses:
    PZEM004Tv30 pzem0(&Serial2, 0x10);
    PZEM004Tv30 pzem1(&Serial2, 0x11);
    Is there something to modify in the software of the modules?
    Or is it just connecting the 2 modules and arduino is in charge of giving it the addresses?

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

      Correct, if you have more than 1 module you need to declare the addresses on the pzem's directly otherwise they will conflict. An Arduino can do this

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

      @@fionnoch9867 Friend, could you give me the complete code that you did, thank you very much

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

      @@TallerSalvatoreJimeno if you look at the part 2 video I have a link to a my github with example code for the ESPHome config. The Arduino address assigning bit you can use the example code for the PZEM to do that, I'd recommend using a software serial connection rather than a hardware serial and set the baud rate to 9600

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

    Nice job! Can you share with us the code?

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

      The next video has a link to some example code!

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

    Hi

  • @tomasind6840
    @tomasind6840 2 года назад +2

    power factor 0.25?! nonsense.. current 0,949, power 57W, voltage 242V. omo's law I=Power(kW)/Voltage(V). I=0,057/242=0,248A. The power factor should be between 0.8-1. Electric heater should be about 0.9-0.95

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

      Interesting, admittedly I don't understand power factor too well (hence relying on pzem rather that something where I had the think it though 😅) but I thought that it was to do with the phase difference between the true power and the real power? Or is that what you estimated and I've just misunderstood?

    • @mirkogiglioli1682
      @mirkogiglioli1682 2 года назад +3

      @@fionnoch9867 Voltage and current should be taken from same phase each instrument. Otherwise you'll get wrong power factor and power calculation due to the phases shift. Good video! thanks for having shared it!

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

    oh wow, please normalise or balance your audio, im not going to chase the volume up and down, frustrating video

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

    If using esp32 with 3 sets of pzem004, have a way to share to us via inbox, we will be very grateful.

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

      Unfortunately I don't have a setup that uses the esp32, though I don't think thered be much of a difference on the home assistant side. You'd just need to make sure you specify the rx and tx pins (like in the esp8266 I added) and just make sure your wiring is correct!