DIY ESP32 AC Power Meter (with Home Assistant/Automation Integration)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2020
  • Have fun and win via JLCPCB E-exhibition: jlcpcb.com/E-exhibition
    $2 for 4-Layer PCBs: jlcpcb.com
    Previous video: • Building a Tube Amp! D...
    Home Assistant video: • DIY Home Automation In...
    Power video: • Electronic Basics #38:...
    Facebook: / greatscottlab
    Twitter: / greatscottlab
    Support me for more videos: www.patreon.com/GreatScott?ty=h
    More project information (pictures, schematics,....) on Patreon: / esp32-power-43701117
    Parts list: (affiliate links)
    ESP32: s.click.aliexpress.com/e/_AfKZrJ
    Current Transformer: s.click.aliexpress.com/e/_A661E9
    Voltage Transformer: s.click.aliexpress.com/e/_Adyvfr
    Resistor Kit: s.click.aliexpress.com/e/_dTP...
    Capacitor Kit: s.click.aliexpress.com/e/_d7d...
    Websites which were shown in the video:
    learn.openenergymonitor.org/e...
    github.com/Savjee/EmonLib-esp32
    esphome.io/index.html
    esphome.io/components/sensor/...
    In this project I will show you how to build an ESP32 AC power meter that can be used with your home assistant setup. That means I will firstly explain how to actually measure and calculate real and apparent power along with the power factor and then I will show you how to use the ESP32 in combination with some complementary components in order to create the power meter. Let's get started!
    Thanks to JLCPCB for sponsoring this video.
    Visit jlcpcb.com to get professional PCBs for low prices.
    Music:
    2011 Lookalike by Bartlebeats
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Asu01
    @Asu01 3 ปีที่แล้ว +824

    This is exactly what I need, thanks! Now I can monitor how much power I'm drawing from my neighbour's power grid and adjust my load so it won't make any suspicion.

    • @greatscottlab
      @greatscottlab  3 ปีที่แล้ว +225

      Glad I could help!

    • @Asu01
      @Asu01 3 ปีที่แล้ว +343

      I'm happy you glad, @@greatscottlab. Sorry for the late reply, my neighbour's Wi-Fi was down for a moment.

    • @geetanshgautam
      @geetanshgautam 3 ปีที่แล้ว +21

      Lmfao

    • @prathambhat2803
      @prathambhat2803 3 ปีที่แล้ว +6

      😂😂

    • @galladeblade6001
      @galladeblade6001 3 ปีที่แล้ว +19

      @@greatscottlab I think you didn't understand correctly. 😅

  • @AmplifierWorld
    @AmplifierWorld 3 ปีที่แล้ว +2

    What a great energy you delivered while saying " stay creative and see u next time"

  • @KevinDC5
    @KevinDC5 3 ปีที่แล้ว +2

    I actually just received my very first ESP8266 NodeMCU in the mail yesterday and have been pondering a project all night. Amazing that you post this today!🤘🏼🤘🏼

  • @didnotkn0
    @didnotkn0 3 ปีที่แล้ว +1

    Great video, I love incorporating tech into homes like this. I would also like to say thank you for making videos, you have been such a huge inspiration to me and a large reason why I want to get into electrical engineering, much love from Phoenix, AZ.

  • @rzdakira
    @rzdakira 3 ปีที่แล้ว +24

    "Handy and shocking." A pun across two languages. I love it

    • @AgentOffice
      @AgentOffice 3 ปีที่แล้ว

      What's it mean

    • @BrianLough
      @BrianLough 3 ปีที่แล้ว +10

      @@AgentOffice handi is german for phone (maybe specifically mobile phone), shocking cause it's both a shock/surprise but also cause electricity can shock you

    • @hooblydoobly9125
      @hooblydoobly9125 3 ปีที่แล้ว

      Urmom

    • @hooblydoobly9125
      @hooblydoobly9125 3 ปีที่แล้ว

      @@AgentOffice urmom

    • @hooblydoobly9125
      @hooblydoobly9125 3 ปีที่แล้ว

      @@BrianLough urmom

  • @adityag.5372
    @adityag.5372 3 ปีที่แล้ว +131

    Hey! This video doesn't start with the word "recently" 😅😅

    • @_BSG_
      @_BSG_ 3 ปีที่แล้ว +3

      Vah bhai vah

    • @allbeit582
      @allbeit582 3 ปีที่แล้ว +1

      ha ha

  • @TheMechanicGamerVids
    @TheMechanicGamerVids 3 ปีที่แล้ว +7

    Your channel is always a great place to watch some cool videos utilizing microcontrollers like the ESP32. It’s such a versatile controller to have around! I’ve used them for all sorts of things, I had one hosting an access point with a simple html interface to control a project I had made.

  • @user-yq3lv4js9c
    @user-yq3lv4js9c 3 ปีที่แล้ว +9

    I had something like that in mind for a long time, great job!!!
    Adding a temperature sensor on a solar heater and a power relay we could remotely power on its internal resistor when we need it (without have it on all the time).
    We can also watch the power consumption for security reasons and be able to turn on the outside lights remotely, and so on.
    Home (and not only) automations with microcontrollers is so simple this days and we can do so many things that really worth spending some time learning how to program them which is pretty simple and a great way to learn children how and why programming is fun and why maths physics and chemistry is necessary most of the time on whatever we do :-)

  • @shingGOLDmonkey224
    @shingGOLDmonkey224 3 ปีที่แล้ว +187

    The circuit shown at 6:42 is a nice idea and definitely works in a pinch, but it's a serious source of error in your measurements and can easily DESTROY your expensive ESP32.
    Firstly it relies on the precision and drift of the offset voltage resistor divider, which is not insignificant as if you are using 5% resistors, your center voltage and thus powerline measurement could also be off by 5% (or around 16v at line level). Also at startup, before the 10uF capacitor charges to 1.65v, the input of the ADC swings negative, which can seriously damage some devices which don't have stringent input protection. Finally, if there is some fault in the line which causes the transformer to output a higher than expected voltage, this will exceed the power rail of the circuit and discharge straight into the ESP32.
    You want a circuit called a "Clamper" or "DC Restorer" which will fix your voltage above ground potential (protecting the ESP32 ADC) and allow you to take advantage of the full scale of the ADC input. This also saves on two precision resistors for the voltage divider, and a rail-to-rail buffer amplifier will tend to isolate the ESP32 from any voltages over the supply rails. With an output buffer you can also use a smaller capacitor value, with higher voltage rating and non-tantalum type for safety such as a ceramic disk capacitor. You can also safely add an external ADC if you want to increase your measurement accuracy substantially. (Just remember to sample the max voltage to calculate the zero crossing point for the AC signal, as there is no center offset voltage now)
    There is no fundamental difference between your expensive power meter and a circuit you can build at home, you just need to find all your sources of error and minimize them! :)
    Here is example circuit for reference tinyurl.com/y2aoed7z

    • @JuanFlores-rj1he
      @JuanFlores-rj1he 3 ปีที่แล้ว +3

      Cool!

    • @compthing5656
      @compthing5656 3 ปีที่แล้ว +5

      This needs to get pinned. Pretty good reply. Thanks for sharing info

    • @xxcr4ckzzxx840
      @xxcr4ckzzxx840 3 ปีที่แล้ว +2

      Sick reply, thanks alot!

    • @shingGOLDmonkey224
      @shingGOLDmonkey224 3 ปีที่แล้ว +6

      ​@@xristost68 Nice work, only problem is that during that settling time the negative analog voltage would still exceed absolute maximum specifications on popular ADCs like the ADS111x, so you should add a schottky diode from ground to the output to limit that negative swing in the startup :)
      And if you're using an expensive precision ADC like the AD7792, it only tolerates 30mV below the ground rail, so you would need more strict signal conditioning than just a schottky diode.

    • @sirente9275
      @sirente9275 3 ปีที่แล้ว

      This is cool. Do you have more info on the circuit? Function and how to choose the capacitor and resistor pls

  • @user-uj5gh3xy7n
    @user-uj5gh3xy7n 3 ปีที่แล้ว +87

    this dude read my thought i wanted to do that exact thing

    • @backdemoletor4654
      @backdemoletor4654 3 ปีที่แล้ว +3

      Yeah me too... It's impressing

    • @aromal4807
      @aromal4807 3 ปีที่แล้ว +6

      Absolutely Like TH-cam algorithm 😂

    • @TheAvdeevVladimir
      @TheAvdeevVladimir 3 ปีที่แล้ว +1

      Same here, but I thought it will be not accurate.

    • @nikgru4577
      @nikgru4577 3 ปีที่แล้ว +2

      Same here

    • @LuckySingh-ob4bw
      @LuckySingh-ob4bw 3 ปีที่แล้ว +2

      And he made the cable tracker video right when I needed it

  • @ZeroMass
    @ZeroMass 3 ปีที่แล้ว +26

    My Sunday morning is complete... Coffee and *GREAT SCOTT!!*

    • @greatscottlab
      @greatscottlab  3 ปีที่แล้ว +6

      Enjoy!

    • @onesitefpv
      @onesitefpv 3 ปีที่แล้ว +4

      I have learnt so many things by watching your video and again a big love from India ❤️❤️👍❤️❤️❤️❤️

    • @Evgen-Evgen-Evgen
      @Evgen-Evgen-Evgen 3 ปีที่แล้ว +1

      Oh lucky you, it's sunday night for me((

    • @SriTejaChilakapati
      @SriTejaChilakapati 3 ปีที่แล้ว +2

      @@Evgen-Evgen-Evgen Well, it's past midnight for me and I'm technically watching this on a monday 😅

    • @kishoreksm8366
      @kishoreksm8366 3 ปีที่แล้ว

      It's
      1.30am here..

  • @patrickjoseph9476
    @patrickjoseph9476 3 ปีที่แล้ว +1

    Great Scott, love watching your videos! It improved my electronics knowledge by a ton!

  • @jeffpkamp
    @jeffpkamp 3 ปีที่แล้ว +5

    Some points from my experience building The same thing for my own home: if you can't find a 12-volt AC former, you can step down the voltage just using a standard voltage divider with 10 or 20 times the resistance on the upstream resistor (depending on if you're in the Europe or US). If you want it isolated, you can use a one-to-one speaker transformer, or they have potted transformers the one-to-one ratio specifically for this task. Also the ESP32 ADC has abysmal accuracy without some sort of filtering in software. I actually used an Arduino nano to measure the current on the two phases coming into my house (US) and pass that off to an ESP8266 to send to my server. The values I got out of this setup were within 0.1% of what the electric company said I used.

  • @Felix-ve9hs
    @Felix-ve9hs 3 ปีที่แล้ว +2

    I just installed Home Assistend on my Proxmox Server and was searching for a "smart" Power Meter I could use with it, perfect timing :D

  • @DrGreenGiant
    @DrGreenGiant 3 ปีที่แล้ว +2

    I've recently done this myself, well similar. I wrote my own code in the IDF and used the SCT-013 current clamp so I could measure the whole house current. No touching of live wires needed since it's a clamp rather than pass through doughnut. Works very well but I am assuming voltage since I don't have an isolating transformer yet to measure it. That's the next upgrade!

  • @galladeblade6001
    @galladeblade6001 3 ปีที่แล้ว +2

    This is one element of my thesis paper on college. Those stressful days.

  • @asrithtechsys6954
    @asrithtechsys6954 3 ปีที่แล้ว +5

    I have literally no idea what I'm watching
    But I still love his videos :)

  • @HemonDey
    @HemonDey 3 ปีที่แล้ว +1

    Thanks for this video, I enjoy watching your channel and its great content. I've created an energy metering system in my house using existing energy meters with pulsed outputs, basically gives a pulse for each 1whr consumed - this significantly reduces the complexity of the project as it means only having to count pulses to get near instantaneous energy consumption values. Also if you also monitor milliseconds between pulses, you can work out near instantaneous power consumption as well. These meters are very common and easy to obtain, and they also by their nature have to be reasonably accurate - an added bonus is that they also typically come in a small form factor (1x din width), and pulses are isolated from mains. I populate the energy/power values directly into a time series database (Influx) and graph with results using Grafana.

  • @JohnBoen
    @JohnBoen 3 ปีที่แล้ว

    I came on line to just now literally to search for someone who has done this project - nice timing :)

  • @JuanoD_
    @JuanoD_ 3 ปีที่แล้ว

    This is just what I needed. Just in time. As always, great job :D

  • @nicholasbishop01
    @nicholasbishop01 3 ปีที่แล้ว

    We just did this for our EE senior design project back in the spring! We won first place!

  • @jiangxu3895
    @jiangxu3895 3 ปีที่แล้ว

    I never thought so careful about this problem. Thanks Scott

  • @thetechboy8529
    @thetechboy8529 3 ปีที่แล้ว +1

    I am waiting for this video for a long time.
    The most informative video on this topic on TH-cam
    Thanks sir

  • @edwardvanhazendonk
    @edwardvanhazendonk 2 ปีที่แล้ว

    Thanks again, great explanation of a rather complex setup in a short period of time.

  • @bsand1746
    @bsand1746 3 ปีที่แล้ว

    Your videos are awesome man. Please keep it up! Thank you

  • @1976kanthi
    @1976kanthi 3 ปีที่แล้ว

    Thank you for making excellent electronics videos. You are my favourite electronics TH-camr!!!

  • @JoaoSilva-jr9ez
    @JoaoSilva-jr9ez 3 ปีที่แล้ว +3

    Power meter: shows -43W real power
    Great Scott: "the power meter still works perfectly fine"

    • @mewantsmash
      @mewantsmash 3 ปีที่แล้ว +3

      I think he has solar panels, but I was also confused by this

    • @JoaoSilva-jr9ez
      @JoaoSilva-jr9ez 3 ปีที่แล้ว +2

      @@mewantsmash hm, his solar panels pumping current into the grid with a power factor of -0.25? dunno about that, but my guess is that solar panels should present a PF as close to 1 as possible.

    • @eDoc2020
      @eDoc2020 3 ปีที่แล้ว +1

      He probably just hooked up his sensor backwards.

  • @rob_cek
    @rob_cek 3 ปีที่แล้ว +1

    Im always so fascinated by your projects and even more how economical you make them even though you live in germany where gross can shoot up very high, keep up the spirit scott! (Im from slovakia, so you can understand the meaning of the comment)

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

    Now I need to figure out how to measure a 3 phase power which I use in my home now. Great video for me to get started. Thanks!!

  • @RomanoPRODUCTION
    @RomanoPRODUCTION 3 ปีที่แล้ว

    DIY wins again. Awesome GreatScott!

  • @khayhensarveswarah5731
    @khayhensarveswarah5731 3 ปีที่แล้ว +11

    The CT Clamp component in ESPHome is based of the emonlib library and has very easy integration, it even allows you to use a higher precision external ADC such as ADS1115.

  • @TuncayAyhan
    @TuncayAyhan 3 ปีที่แล้ว

    Home-Assistant again! Nice video Scott!

  • @goliathsuperstar
    @goliathsuperstar 3 ปีที่แล้ว

    Keep doing this esp videos i love this platform

  • @MCsCreations
    @MCsCreations 3 ปีที่แล้ว

    Fantastic work, dude! And really interesting project! 😃
    Stay safe and creative there! 🖖😊

  • @tomwilliam5118
    @tomwilliam5118 3 ปีที่แล้ว +1

    It's always nice to see the the face behind The Voice the videos I watch

  • @avejst
    @avejst 3 ปีที่แล้ว +1

    Great video as always👍😀
    Thanks for sharing👍😀

  • @angzarr9584
    @angzarr9584 3 ปีที่แล้ว +1

    We need to get this man to 2 Million

  • @Private_Duck
    @Private_Duck 3 ปีที่แล้ว +1

    I really want to see that tesla coil. I've been watching your videos since i first started electronics about three years ago. I still cannot believe that you didnt make a tesla coil that can make some interesting arcs.

  • @SirHarrisonPhillips
    @SirHarrisonPhillips 3 ปีที่แล้ว

    Great Scott is with us!!!

  • @totolastico
    @totolastico 3 ปีที่แล้ว

    i was just looking for something for my house ! thank you, i'm gonna look at all this stuff. :-)

  • @DJ-Manuel
    @DJ-Manuel 3 ปีที่แล้ว +6

    I can reccomend shelly devices, most of them have power meter feature integrated, there are aswell a dedicated powermeter wit power clamps. Even 3-phase is available. And they can be integrated very useful 👍

    • @Goni0121
      @Goni0121 3 ปีที่แล้ว

      thanks man. I needed a tree phase monitor and this is a good, easy to install and simple solution.

  • @raybright5805
    @raybright5805 3 ปีที่แล้ว +1

    Great explanation of how different loads effect the phase angle between Voltage and Current BUT to keep things simple with respect to monitoring power consumption (as charged on your power authority account) have you considered just monitoring the pulsing LED on your power meter. I suggest this for one of your excellent TH-cam videos.

  • @owenmcpro
    @owenmcpro 3 ปีที่แล้ว +71

    "which is handy and SHOCKING at the same time"
    me: i see what you did there

    • @greatscottlab
      @greatscottlab  3 ปีที่แล้ว +22

      ;-)

    • @onesitefpv
      @onesitefpv 3 ปีที่แล้ว +2

      For your TH-cam channel islands so many things a love ❤️❤️from India

    • @RajendraBhattRajDa
      @RajendraBhattRajDa 3 ปีที่แล้ว +1

      He pulled a little sneaky on ya

    • @linorocha6319
      @linorocha6319 3 ปีที่แล้ว +3

      Also "handy" is cellphone in deutsch ;)

    • @etmoimeme
      @etmoimeme 3 ปีที่แล้ว

      Could you explain, I don't get it?

  • @LanceMcCarthy
    @LanceMcCarthy 3 ปีที่แล้ว +2

    I love how popular Home Assistant has become.

  • @emilehoffmann
    @emilehoffmann 3 ปีที่แล้ว

    I am a huge fan of your videos!

  • @rameshprakash3887
    @rameshprakash3887 3 ปีที่แล้ว

    Awesome bro.... This is from India... Vera level.... Thank you for the video...

  • @Harismanniyil
    @Harismanniyil 3 ปีที่แล้ว

    Waiting for Sundays, ❤️❤️❤️

  • @FunBots
    @FunBots 3 ปีที่แล้ว

    Great Video! Thanks a lot Scott!

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

    this my favorite channel on youtube😍

  • @floris00
    @floris00 3 ปีที่แล้ว +1

    If you have a smart meter (which a lot of people have nowadays in Germany and the Netherlands) you can hook up a RPI to the P1 port of the meter. That port spits out a lot of info about your electricity and gas usage (if you have gas at your home). You can also integrate it very easy with Home Assistant.

  • @vaibhavhayaran
    @vaibhavhayaran 3 ปีที่แล้ว +5

    exactly what i needed thanks!!

  • @herik63
    @herik63 2 ปีที่แล้ว

    Wonderful exclamation, thank you so much from a old electronics technichian :)

  • @dirklaubusch5659
    @dirklaubusch5659 3 ปีที่แล้ว

    Das waren grad "Grundlagen der Elektrotechnik" (1.Semester) und "HM 1 " ( Höhere Mathematik I ) in 10 Minuten.
    Der Mann hats echt drauf ! :=)

  • @nickhubbard3671
    @nickhubbard3671 3 ปีที่แล้ว

    Very good description. Thanks!

  • @alaanoor3679
    @alaanoor3679 2 ปีที่แล้ว

    another GREAT video from GreatScott!

  • @rajig532
    @rajig532 3 ปีที่แล้ว

    I inspired from your videos. Thanks for your great effort and keep on posting. Very useful one.
    I request you to make a video on, Which is the best ceiling fan regulator type ( Electric (Resistive), Triac based (smooth control), Step control (Capacitor based ) )

  • @petersage5157
    @petersage5157 3 ปีที่แล้ว +1

    GreatScott! glosses over a summation formula that probably has most viewers' eyes glazing over.
    "And just like that..."

  • @John_Ridley
    @John_Ridley 3 ปีที่แล้ว +1

    This is what I've been wanting to do, though A) I want to do every circuit so I need about 30 channels of sampling, and B) I don't really care that much about precise values, calculating reactive power, getting RMS values, etc. I just want some relative values so I know what circuits to go after as hogs next, or which can be adjusted to run primarily in the daytime when the solar panels are producing.

  • @jcdameoh3528
    @jcdameoh3528 3 ปีที่แล้ว

    My brain is overload but great video GreatScott

  • @akhurash
    @akhurash 3 ปีที่แล้ว +1

    Nice project.

  • @PrimitiveFuturologist_YTC
    @PrimitiveFuturologist_YTC 3 ปีที่แล้ว

    Excellent video and a generous giveaway. Nice.

  • @richielonewolf7725
    @richielonewolf7725 3 ปีที่แล้ว +2

    Lol "handy and shocking" made my day😆

  • @instanoodles
    @instanoodles 3 ปีที่แล้ว

    Fantastic, thank you! I have been looking for something like this, my current energy monitoring system does not measure line voltage. I have two air sources mini splits which have an awful power factor, somewhere around .2 when the compressor is not running and it bugs me that I cant measure exactly how much power they use. This will be added to my project list.

  • @anilmaharjan5610
    @anilmaharjan5610 3 ปีที่แล้ว

    Hey, I saw your face for the first time :) After watching soooo many videos where I have only heard your voice. :) Nice to see you :)

  • @unomasenelmar
    @unomasenelmar 3 ปีที่แล้ว +1

    Excelente trabajo, felicitaciones

  • @djmello7305
    @djmello7305 2 ปีที่แล้ว

    Wow that was really cool

  • @vaibhavbhasin3861
    @vaibhavbhasin3861 3 ปีที่แล้ว +1

    Its super cool , but its really difficult when you start. For beginners point of view, various topics like working of esp32, how data came into mobile app, current sensor calibration etc are alot of things to learn. 🤖 All the best to all and do share your experiences. 👍

  • @arduino2914
    @arduino2914 3 ปีที่แล้ว

    Thanks for the helpful video

  • @BretonWiessner
    @BretonWiessner 3 ปีที่แล้ว +2

    I'm am happy now!

  • @electronic7979
    @electronic7979 3 ปีที่แล้ว +1

    Very good video. I liked it

  • @nathantron
    @nathantron 3 ปีที่แล้ว +1

    Some of the new/Modern US home power meters actually have debug output ports. You can hook into those if you want, they are read only and not encrypted in any way. So this may be even easier to access the data.

  • @EhsanHabib
    @EhsanHabib 3 ปีที่แล้ว +5

    That's what i needed ... Perfect Timing

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

    Great work

  • @EVERY.CIRCUIT
    @EVERY.CIRCUIT 3 ปีที่แล้ว

    Wow ,I like your idea

  • @solieeeeeee
    @solieeeeeee 3 ปีที่แล้ว +1

    There is a simplier solution for power measuring which is called PZEM-004T (with great accuracy of measurements too!)

  • @rubabmubarrat
    @rubabmubarrat 3 ปีที่แล้ว +3

    your beard style looks good

  • @francois-alexandrefrancois6334
    @francois-alexandrefrancois6334 2 ปีที่แล้ว

    SO STRONG MAN !!

  • @NoobHuman
    @NoobHuman 3 ปีที่แล้ว

    I nearly missed your video caz i was listening to spotify :D

  • @traditionrider
    @traditionrider 2 ปีที่แล้ว

    Handy and shocking at the same time - funny😂

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

    Hi, thanks for the video! What would you recommend for measuring the power consumption of an industrial three-phase load (600vac x 40A) using what you've taught on the video?

  • @theoneohmresistor
    @theoneohmresistor 2 ปีที่แล้ว

    now you can get similar thing for $8, and with a relay... great stuff

  • @abolfazlabbasi4854
    @abolfazlabbasi4854 3 ปีที่แล้ว

    Thank you for the great tutorial,
    Just a quick question, I have never used my oscilloscope to measure 220v AC, what is the safest way to do it without damaging my oscilloscope? Thanks again

  • @abdulkadirgozuoglu8946
    @abdulkadirgozuoglu8946 3 ปีที่แล้ว

    You may use ordinary 2-3w 230v to 12v transformer as voltage sensor. So that you can fit in small area. Thank you for very usefull application:))

  • @blackbird8982
    @blackbird8982 3 ปีที่แล้ว +2

    What about using an optocoupler as a reference point for timing?(zero voltage detector as an interrupt)

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

    Hi Scott, you should definitely do a follow up and some finalization of this. I need to do exactly this, but the situation is that I want to see each of the info about consumption per beaker, so the question is, do I need to have ESP for each of the breaker? Or is there possibility to combine them? A lot of questions which I think you've been working on in the past, so your experience would come in handy. Thanks

  • @rahulthoppil1261
    @rahulthoppil1261 3 ปีที่แล้ว

    Hi Scott, I am a great fan of yours. I see tons of equipment like in a lab. What do you do as a job?
    All the best for your efforts. You are a great teacher 😊😊😊

  • @johannglaser
    @johannglaser 3 ปีที่แล้ว

    Hi!
    Which scope probes did you use to measure the mains voltage and the current? Or asked differently: which would you recommend? :-)
    Thanks, Hansi

  • @Daveplayz-hr8kv
    @Daveplayz-hr8kv 3 ปีที่แล้ว

    So awesome i love it

  • @ajaysasikumar6931
    @ajaysasikumar6931 3 ปีที่แล้ว

    I think this would be cool to make and also use it on my solar grid so I can know how much I'm producing 👍❤️

  • @aramt.4519
    @aramt.4519 3 ปีที่แล้ว

    Hey Scott,
    I did something similar last week. I have a digital Power meter (starting at 35 Euro on Amazon for 3 Phases) which has a digital S0 Pulse output. You can read these pulses with the ESP and feed them to your mqtt broker. I used ESPEasy (no promotion here) which works completely without programming. You actually cannot read the power consumption in real time, but rather could calculate an average value inbetween pulses (in my case 1000 pulses per kWh). Maybe you want to look into this before operating on your distribution box and make it VDE compliant :D
    Grüße aus Frankfurt!
    Du machst echt gute Arbeit, weiter so!

  • @StefanWelker
    @StefanWelker 2 ปีที่แล้ว +2

    Thanks Scott for this. I wanted to make one myself a while ago and I wonder how much difference does it make just assuming everything is resistive load it seems to me that they are really few capacitive and inductive loads in a household even if there are some they might even cancel each other out. I think a similar device albeit with a little less precision can likely be made by just using the current sensor, do you agree?

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

      That would be very inaccurate as the incoming voltage would vary during the day. You need both to make proper measurements.

  • @arunbaalaji5589
    @arunbaalaji5589 3 ปีที่แล้ว

    Nice bro

  • @georgei2480
    @georgei2480 3 ปีที่แล้ว

    I'm a big fan of making cool DIY projects that you cant already buy on the market. The issue I have with this project is that you can already buy a commercial version of this product that will be more reliable and cheaper than making it yourself. The Sonoff Pow can be bought for around USD 11, It has a built-in power consumption tracker, it has a built-in relay for remotely switching the appliance on and off, it is in a clear professional enclosed, and it can easily be modded to work with home assistant. Unfortunately, there is no reason to make your own. It will cost you just as much and you will have a lesser product.

  • @attilamolnar3791
    @attilamolnar3791 3 ปีที่แล้ว +1

    Have you used the same hall sensor in your home distribution box as the one in the beginning of the video? That hall sensor can only measure up to 5A which sounds short.
    Love you vids btw! :)

  • @vishva8kumara
    @vishva8kumara 2 ปีที่แล้ว

    I'm running two circuits, one with grid power supply only (high-power appliences) and another with fail-over from an inverter/battery that has low power appliences and all lamps. I also need to monitor battery charging and discharging currents with voltage, so I could measure efficiency and battery health.
    I think one current sensor would be enough on battery +ve terminal ; should give -ve values when charging and +ve when discharging.

  • @MeisterQ
    @MeisterQ 3 ปีที่แล้ว +3

    I think your problems with such diffrent values is the non-linearity of the ESP32s ADC.
    There is alot of stuff about this on google.
    The best thing so monitor the values all the time is to use a Shelly 3EM and integrate it into your hass

    • @05PAJA
      @05PAJA 3 ปีที่แล้ว

      You are right, but the different price tag. Shelly3EM = 100€. if you calibrate precisely, the data are usable.

  • @VAKUL-DC
    @VAKUL-DC 3 ปีที่แล้ว

    Thank you. I will cehck on the emon code. but do you know if i can connect multiple current transformers and use a few more pins on the esp32. will the controller be able to handle 4-5 CT coils ?

  • @m_k_akash
    @m_k_akash 3 ปีที่แล้ว

    great video dude

  • @aazdu03
    @aazdu03 3 ปีที่แล้ว

    I would have liked more explanation on your simple circuits and the choice of your components. For your offset circuit i understood the use of the decoupling capacitor and the voltage divider but i don't get the use of the 200ohm resistor and the inductor...

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

    I ended up on this video because I'm doing the same in my house. I did a lot easier approach without using an external library but just using the CT-clamp esphome sensors support. My issue is that I have an approximate power value since I have no way to differentiate on the load type so everything is calculated as a power factor = 1 like a resistive load. I will make a better analysis on how to integrate the emon lib to have a better accuracy. Thanks