DIY ESP32 AC Power Meter (with Home Assistant/Automation Integration)
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
Пікірлер: 590
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.
Part of the error in the measurements is due to the crappy adc of the esp32
Hey! This video doesn't start with the word "recently" 😅😅
I think I better not to know how many power I'm using. I like big number, if I could see it, i might turn on something unnecessary to drive up the number.....
Do you really need a 1,500 dollar oscilloscope to do what he did with his here ?
I tried to do the same with esp32, but I couldn't. I made the compilation and transferred it to esp32 and when I try to visualize it on the serial monitor, it just shows random data from any... I tried several rate speed combinations.. 9600, 115200, but nothing. Could you help me?
honestly i expected some electroboom moments
I laugh when you I see the video is sponsored by JLC PCB and you build your circuit on a perf board.
The ADC of esp32 is not accurate enough
Who prints documents, though...?
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!🤘🏼🤘🏼
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.
What a great energy you delivered while saying " stay creative and see u next time"
The circuit shown at
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.
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.
I had something like that in mind for a long time, great job!!!
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
My Sunday morning is complete... Coffee and
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!