Тёмный

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

GreatScott!
Подписаться 2 млн
Просмотров 502 тыс.
50% 1

Have fun and win via JLCPCB E-exhibition: jlcpcb.com/E-e...
$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.co...
More project information (pictures, schematics,....) on Patreon: / esp32-power-43701117
Parts list: (affiliate links)
ESP32: s.click.aliexp...
Current Transformer: s.click.aliexp...
Voltage Transformer: s.click.aliexp...
Resistor Kit: s.click.aliexp...
Capacitor Kit: s.click.aliexp...
Websites which were shown in the video:
learn.openener...
github.com/Sav...
esphome.io/ind...
esphome.io/com...
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

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 588   
@Asu01
@Asu01 3 года назад
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 года назад
Glad I could help!
@Asu01
@Asu01 3 года назад
I'm happy you glad, @@greatscottlab. Sorry for the late reply, my neighbour's Wi-Fi was down for a moment.
@geetanshgautam
@geetanshgautam 3 года назад
Lmfao
@prathambhat2803
@prathambhat2803 3 года назад
😂😂
@galladeblade6001
@galladeblade6001 3 года назад
@@greatscottlab I think you didn't understand correctly. 😅
@adityag.5372
@adityag.5372 3 года назад
Hey! This video doesn't start with the word "recently" 😅😅
@_BSG_
@_BSG_ 3 года назад
Vah bhai vah
@allbeit582
@allbeit582 3 года назад
ha ha
@shingGOLDmonkey224
@shingGOLDmonkey224 3 года назад
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 года назад
Cool!
@compthing5656
@compthing5656 3 года назад
This needs to get pinned. Pretty good reply. Thanks for sharing info
@xxcr4ckzzxx840
@xxcr4ckzzxx840 3 года назад
Sick reply, thanks alot!
@shingGOLDmonkey224
@shingGOLDmonkey224 3 года назад
​@@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
@Ke_Mis
@Ke_Mis 3 года назад
If you want to save energy, just turn off the light strip in the background (0:15), Scott! Jokes aside, great project!
@С-8КОМ
@С-8КОМ 3 года назад
this dude read my thought i wanted to do that exact thing
@backdemoletor4654
@backdemoletor4654 3 года назад
Yeah me too... It's impressing
@aromal4807
@aromal4807 3 года назад
Absolutely Like RU-vid algorithm 😂
@TheAvdeevVladimir
@TheAvdeevVladimir 3 года назад
Same here, but I thought it will be not accurate.
@nikgru4577
@nikgru4577 3 года назад
Same here
@LuckySingh-ob4bw
@LuckySingh-ob4bw 3 года назад
And he made the cable tracker video right when I needed it
@ZeroMass
@ZeroMass 3 года назад
My Sunday morning is complete... Coffee and *GREAT SCOTT!!*
@greatscottlab
@greatscottlab 3 года назад
Enjoy!
@POWERFPV2024
@POWERFPV2024 3 года назад
I have learnt so many things by watching your video and again a big love from India ❤️❤️👍❤️❤️❤️❤️
@Evgen-Evgen-Evgen
@Evgen-Evgen-Evgen 3 года назад
Oh lucky you, it's sunday night for me((
@SriTejaChilakapati
@SriTejaChilakapati 3 года назад
@@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..
@owenmcpro
@owenmcpro 3 года назад
"which is handy and SHOCKING at the same time" me: i see what you did there
@greatscottlab
@greatscottlab 3 года назад
;-)
@POWERFPV2024
@POWERFPV2024 3 года назад
For your RU-vid channel islands so many things a love ❤️❤️from India
@RajendraBhattRajDa
@RajendraBhattRajDa 3 года назад
He pulled a little sneaky on ya
@linorocha6319
@linorocha6319 3 года назад
Also "handy" is cellphone in deutsch ;)
@etmoimeme
@etmoimeme 3 года назад
Could you explain, I don't get it?
@rzdakira
@rzdakira 3 года назад
"Handy and shocking." A pun across two languages. I love it
@AgentOffice
@AgentOffice 3 года назад
What's it mean
@BrianLough
@BrianLough 3 года назад
@@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
@bhu1334
@bhu1334 3 года назад
Part of the error in the measurements is due to the crappy adc of the esp32
@greatscottlab
@greatscottlab 3 года назад
I mean it is 12-bit. Not that bad.
@fabhorvi7236
@fabhorvi7236 3 года назад
@@greatscottlab The problem with esp32 adc is no linearity and lot of noises on the adc input.
@Tortillin0077
@Tortillin0077 3 года назад
@@fabhorvi7236 true!
@glmnet
@glmnet 3 года назад
Yeah. It’s a well known issue. Using the ads1115 is far more accurate, sw should be dead simple with esphome and you can even go with a cheaper d1 mini - excellent video
@jdeg2000
@jdeg2000 3 года назад
The meters here are much more accurate, and work directly with ESPHome (ATM90E32): circuitsetup.us/
@mojo_jojo
@mojo_jojo 3 года назад
Wouldn't be one of the eastron meters an option? I use the sdm630 which is connected via modbus to a raspberry pi. The values can be published via mqtt.
@DJ-Manuel
@DJ-Manuel 3 года назад
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.
@CWies
@CWies 3 года назад
what a coincidence! have to start to Programm a esp32 Bluetooth audio receiver like... now
@CWies
@CWies 3 года назад
@@ruakij6452 OH YEA!
@korishan
@korishan 3 года назад
I have built one of these, but with an Arduino Nano. Works pretty good, though not very accurate, especially with low power usage. So I decided to go the Esp32 route. But the built-in ADC resolution is still too low. Which I went with an ADS1115, which gives me 16-bit resolution. Problem is, I can't get the ADC to properly work with the EmonLib code. I've even done the procedure injection, or what ever it's called and made the changes for it. Still nothing. And the guy who originally made the altered code for the ADS1115 with EmonLib won't help. Any ideas on how to get these to work together? I know the ADS1115 can only do about 800sps. To get "real" power consumption, need at least 1500sps or something like that. But it'd be better than the built-in ADC. Also to note, the standard EmonLib can only do about 4 return values per second, and this is because it does several loops per run to get the values. This does slow down the returning values quite a bit.
@jeffpkamp
@jeffpkamp 3 года назад
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.
@ΔημήτρηςΚαφφάτος
@ΔημήτρηςΚαφφάτος 3 года назад
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 :-)
@MeisterQ
@MeisterQ 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.
@matiastripaldi406
@matiastripaldi406 3 года назад
Great vid as always! Just one question, if you used a current transformer that supports up to 5A how are you going to measure the power for your whole house with it? Surely the house draws more than 5A and that could destroy the transformer
@eDoc2020
@eDoc2020 3 года назад
It looks like he was just measuring a single circuit. Plus I don't think it would destroy the transformer, it would just give incorrect readings.
@BenCos2018
@BenCos2018 3 года назад
It can destroy the transformer if you put more than 5 through it I think You can just get a larger amperage one though to measure larger circuits tbh
@BenCos2018
@BenCos2018 3 года назад
@@eDoc2020 he was only measuring one circuit
@asrithtechsys6954
@asrithtechsys6954 3 года назад
I have literally no idea what I'm watching But I still love his videos :)
@JoaoSilva-jr9ez
@JoaoSilva-jr9ez 3 года назад
Power meter: shows -43W real power Great Scott: "the power meter still works perfectly fine"
@mewantsmash
@mewantsmash 3 года назад
I think he has solar panels, but I was also confused by this
@JoaoSilva-jr9ez
@JoaoSilva-jr9ez 3 года назад
@@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 года назад
He probably just hooked up his sensor backwards.
@khayhensarveswarah5731
@khayhensarveswarah5731 3 года назад
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.
@johnavonvincentius1884
@johnavonvincentius1884 3 года назад
The more easier way is probably using the pzem-004T module with an esp-01...maybe a future project? :D
@tfoutfou21000
@tfoutfou21000 3 года назад
PZEM-016 is better in many aspect (many device on one single uart/bus , power factor report , 100A max , much much safer PCB design) i personnaly have 20 of them in my house :D
@tfoutfou21000
@tfoutfou21000 3 года назад
Personnaly i prefer the pzem. I dont want 20+ more device on my wireless network. And I prefer not to have the current passing thru the device , pzem use an external current transformer. Regarding price the pzem is cheaper by 20 to 50%. (9 USD in china)
@tfoutfou21000
@tfoutfou21000 3 года назад
@@Android-ng1wn The pzem 016 and pzem 014 Need only one Arduino (or any controler) And they output their own 5v to power the controller. They work on a bus and you Can have as many as 256 on a single uart. Currently is use mqtt to send data where i want 👍
@Felix-ve9hs
@Felix-ve9hs 3 года назад
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
@affehombula6840
@affehombula6840 3 года назад
Hey, nice video, like always
@MagSun
@MagSun 3 года назад
8:40 how do you calibrate these values? Do you need a 1000€ power meter to find the right values? 😱
@05PAJA
@05PAJA 3 года назад
No, you dont need power meter. Just a good multimeter and calibrate the voltage and current values to get match with the value's output on IDE serial monitor.
@wilsonho1010
@wilsonho1010 3 года назад
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.....
@andrewkieran8942
@andrewkieran8942 3 года назад
I'd like to hear more about the circuit at 6:40 that scales the AC voltage and shifts it to be above the ground reference used by the ADC.
@greatscottlab
@greatscottlab 3 года назад
It is a voltage divider. Nothing more.
@andrewkieran8942
@andrewkieran8942 3 года назад
@Kevin Counihan Thanks. I understand the resistor values, but what about the cap? Why 10uf?
@andrewkieran8942
@andrewkieran8942 3 года назад
@Kevin Counihan Thank you! That's very helpful.
3 года назад
Hi! I tried this method but I ends up using the PZEM-004T or HLW8032. It shows more efficiency since I have one dedicated chip to measure the power and let the ESP32 to register and casting the data. The only problem that I found is that I don't know how to find if the power factor is capacitive or inductive. They just show me the power factor, without a positive or negative sign =/ Otherwise is perfect.
@eugrafcmg
@eugrafcmg 3 года назад
Will it not be easier to use tasmota or espeasy?
@maxk3673
@maxk3673 3 года назад
Nice Project but one thing strikes me about it. Is the RealPower supposed to be negative? @ 10:42
@greatscottlab
@greatscottlab 3 года назад
Yes
@steefant
@steefant 3 года назад
@@greatscottlab can you please elaborate? is it another joke I didn't get? :)
@raagamparmar179
@raagamparmar179 3 года назад
I want to be like you when I grow up fully (hehe I am teen )......EXPERT IN THIS FIELD..... any tips plz? :D
@KonradSzproncel
@KonradSzproncel 3 года назад
I'm using energy meter with pulse output wired to esp8266 and just counting pulses during time. Class 1 IEC 62053-21 45A 230V 1000imp/kWh - everything is simple. Paid 54PLN (~14USD).
@Trught
@Trught 3 года назад
Same here, 1 module 1 phase or 7 module 3 phase maneler energy meter output 800 impulse/kWh very cheap and accurate enough for me, esphome already integrated pulse count energy meter.
@engrjolo1631
@engrjolo1631 3 года назад
The ADC of esp32 is not accurate enough
@MeisterQ
@MeisterQ 3 года назад
Its non-linear. Thats why
@sol3406
@sol3406 3 года назад
It's a pile of shite
@vylbird8014
@vylbird8014 3 года назад
@@sol3406 Is it consistently shite, in a manner that can be compensated for in software?
@TheRainHarvester
@TheRainHarvester 3 года назад
@@vylbird8014 Yeah is it precise or accurate cr4p?
@drstefankrank
@drstefankrank 3 года назад
Yep, put in another dollar and add an i2c 16-bit AD like the ADS1115.
@watchara109
@watchara109 3 года назад
Good​ job.​ I​ recommend IC​ : Ade7753​
@Kyle-ye4nj
@Kyle-ye4nj 3 года назад
"A PGA in the current channel allows direct interface to shunts and current transformers" Nice
@Tortillin0077
@Tortillin0077 3 года назад
@@Kyle-ye4nj Indeed, nice!
@Aybex97
@Aybex97 3 года назад
Great video as always, But I have a question, would the transformer not influence the phase of the measured votlage? Wich will make the power factor and active power not precise . Or was that accounted for in the code ?
@eDoc2020
@eDoc2020 3 года назад
It would influence the signal, but as long as the transformer isn't tiny the effect should be negligible.
@misteragony
@misteragony 3 года назад
Can someone explain why you need the voltage sensor? Isn't a current clamp enough?
@greatscottlab
@greatscottlab 3 года назад
Necessary for the power factor calculation.
@misteragony
@misteragony 3 года назад
@@greatscottlab Ok, thanks for the reply. I ask because I have been using Flukso for doing similar stuff only using current probes: www.flukso.net/. I have three phases at home, so I would need to install 3 voltage monitors.
@solieeeeeee
@solieeeeeee 3 года назад
There is a simplier solution for power measuring which is called PZEM-004T (with great accuracy of measurements too!)
@BadassUchiha
@BadassUchiha 3 года назад
You should add a money had to pay by you for electricity , it will be shown in your home assistant
@AmplifierWorld
@AmplifierWorld 3 года назад
What a great energy you delivered while saying " stay creative and see u next time"
@resources5166
@resources5166 3 года назад
I had a doubt Scott, why dont you use ACS712- Current sensor and ZMPT101B- Voltage Sensor and make it as simple as possible and well portable as well with no external circuits as well?
@AndreaDeNardiRp98
@AndreaDeNardiRp98 3 года назад
Very interesting video. GreatScott never disappoints! I made a similar circuit with the CS5490. Have you calculate the accuracy of the measurements with your multimeter?
@AndreaDeNardiRp98
@AndreaDeNardiRp98 3 года назад
I suggest you to take a look at the datasheet of the CS5490 which has some very interesting features
@blackbird8982
@blackbird8982 3 года назад
What about using an optocoupler as a reference point for timing?(zero voltage detector as an interrupt)
@TheOrginalHumibold
@TheOrginalHumibold 3 года назад
If you got one of the newer electricity meters just count the light pulses it emitts and calculate the power drawn
@eDoc2020
@eDoc2020 3 года назад
You can do that but it only gives an indication of power (actually energy), not the other parameters like power factor.
@TheOrginalHumibold
@TheOrginalHumibold 3 года назад
@@eDoc2020 that's true but that the most important thing to know in my opinion. Because that's what you pay for and if you are using this to monitor your power consumption that's all you need
@vaibhavhayaran
@vaibhavhayaran 3 года назад
exactly what i needed thanks!!
@greatscottlab
@greatscottlab 3 года назад
You're welcome!
@arduino2914
@arduino2914 3 года назад
Thanks for the helpful video
@LanceMcCarthy
@LanceMcCarthy 3 года назад
I love how popular Home Assistant has become.
@AJBtheSuede
@AJBtheSuede 3 года назад
Great construction :) Unfortunately, here in Sweden almost 2/3 of my energy bill is made out from static taxes and grid fees.... This would be ok in an apartment - but me and my GF live in a fairly big house of our own, where the main heating is electrical (deep ground heat exchangers to heating water circulation). If I cut my actual consumption of energy by 99%, my electricity bill would only go down by maybe 35% :(
@DrGreenGiant
@DrGreenGiant 3 года назад
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!
@electronic7979
@electronic7979 3 года назад
Very good video. I liked it
@ziadalkhory4019
@ziadalkhory4019 3 года назад
Can I know your smart phone model ? Heheh, Am familiar with almost all models but this type seems different 😅.
@tomaszr5064
@tomaszr5064 3 года назад
Is there some source code ? github ? I would like to see more videos abaout HomeAssistant !
@vaibhavbhasin3861
@vaibhavbhasin3861 3 года назад
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. 👍
@petersage5157
@petersage5157 3 года назад
GreatScott! glosses over a summation formula that probably has most viewers' eyes glazing over. "And just like that..."
@nathantron
@nathantron 3 года назад
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.
@tvishmaychoudhary69
@tvishmaychoudhary69 3 года назад
Hey what about the Tesla coil you have talked in the yt stories???
@greatscottlab
@greatscottlab 3 года назад
The video will come out when it is done
@tvishmaychoudhary69
@tvishmaychoudhary69 3 года назад
@@greatscottlab ok☺
@richardkuhne5054
@richardkuhne5054 3 года назад
how about another project for a 24 or 48V system to measure current and voltage i.e from a battery
@marekklucka4407
@marekklucka4407 2 года назад
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
@KevinDC5
@KevinDC5 3 года назад
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!🤘🏼🤘🏼
@attilamolnar3791
@attilamolnar3791 3 года назад
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! :)
@RedShift5
@RedShift5 3 года назад
Skip 06:00 to 06:05 if you like to live dangerously
@mahm8079
@mahm8079 3 года назад
honestly i expected some electroboom moments
@pulkitjoshi1078
@pulkitjoshi1078 3 года назад
It was really weird to not hear :hi there
@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.
@vitperet
@vitperet 3 года назад
My version of the ESP power meter using PZEM-004T and ESP-12F (ESP8266) github.com/viperet/esp8266-power-monitor
@moeburn
@moeburn Год назад
6:46 it is day 19 of me watching Arduino hobbyists on RU-vid. I have still yet to see someone who doesn't solder like a psychopath. Either use the perfectly good breadboard you have it plugged into, or remove the headers and solder to the holes (with the stripped wire going THROUGH the hole). For some reason nobody on RU-vid can figure this out.
@avejst
@avejst 3 года назад
Great video as always👍😀 Thanks for sharing👍😀
@j_j_black
@j_j_black 3 года назад
It looks stupid, really. A step down transformer + voltage divider + ADC on ESP... Heavy solution and metering accuracy is not sharp I guess. Much easier to connect pulse or data output from power metering unit.
@djokinac
@djokinac 3 года назад
Greeting Compliments for the job. I follow you constantly on youtube and now I have subscribed. But I have to tell you something without getting angry. In my country it is said: When you get a good seed, keep it and propagate it because it is worth a lot. That goes for you too. Make as many children as possible because there are so many stupid people in the world today that it is rare to find someone like you. Once again, compliments and greetings from Serbia.
@jvon3885
@jvon3885 3 года назад
Here's the thing. Turning electronics on and off cost them longevity. I've owned a 48" Samsung Smart Tv for over 5 years and it was already a few years old. I've never turned it off. I have 4 other tv's that are newer that got shut off constantly and they lasted for no time. But. I'm learning how to refurbish them.
@sayantanmaiti2513
@sayantanmaiti2513 3 года назад
I would suggest to use those Hilink 220v to 3.3v AC-Dc converter for directly run esp from mains
@prathamkalgutkar7538
@prathamkalgutkar7538 3 года назад
It won't be Suitable here, Cause those Generate Stable 3.3V DC while here we need to Sample the AC Voltage which Fluctuate Constantly
@sayantanmaiti2513
@sayantanmaiti2513 3 года назад
@@prathamkalgutkar7538 i'm talking of supply to the esp
@Private_Duck
@Private_Duck 3 года назад
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.
@executive
@executive 3 года назад
I love my cheap electricity. Never have to worry about wasting my time on this.
@John_Ridley
@John_Ridley 3 года назад
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.
@TECHBUSTERNAMAN
@TECHBUSTERNAMAN 2 года назад
I wonder how accurately you make your projects ....
@elesjuan
@elesjuan 3 года назад
This is neat, but there's an easier way to do this. Check out the circuit setup energy meter, which is compatible with esphome right out of the box. I put together a complete system for under a hundred bucks using his stuff.
@Rolly369
@Rolly369 3 года назад
for semi diy: use an SDM230 and read it with an esp via modbus.. pretty acurat ;)
@legominimovieproductions
@legominimovieproductions 3 года назад
SDM230M (the M is important as the non-m version wont have modbus)
@Danixu86
@Danixu86 3 года назад
5 Amps looks quite low... even a toaster can reach 1100W.
@clems6989
@clems6989 2 года назад
Ypu let me down on this one Scott. Needed more explaination..Especially on the code...good job anyways..
@rubabmubarrat
@rubabmubarrat 3 года назад
your beard style looks good
@PiyushNikam
@PiyushNikam 2 года назад
You must have used a more generalized component for stepping down the voltage similar to the CT
@YourAliasIsNotAvailable
@YourAliasIsNotAvailable 3 года назад
The average power consumption is rather high compared to what? Regarding private households the energy consumption lowered from >4500kwh to like 3500-3000kwh for 4 persons since 2002 in Germany (Energieverbrauch Abschlussbericht BMWI 2002). And thats without electrical water heating and without electrical heating. As a lot more people tend to have multiple of those crappy electric heating devices in
@Karthi14314
@Karthi14314 3 года назад
Hi brother ... Can u please tell me what is the best replacement for NJM5532D DUAL OP AMP.. because I didn't found njm5532d so please suggest me better replacement ic (microphone booster project)... How about NE5532D DUAL OP AMP
@Od3o_ela_sabil_rabek
@Od3o_ela_sabil_rabek 3 года назад
06:42 what's this circuit please mention the name of this one
@letenof
@letenof 3 года назад
The AC voltage is both positive and negative. ESP32 ADC input accepts only positive. The circuit adds a positive offset (half of 3.3V) so that negative voltage will never reach ESP32 and damage it.
@greatscottlab
@greatscottlab 3 года назад
It is a voltage divider.
@Od3o_ela_sabil_rabek
@Od3o_ela_sabil_rabek 3 года назад
@@greatscottlab Ok Thank you for you're attention
@MaxGoddur
@MaxGoddur 3 года назад
This may be off-topic but can't seem to find any updated information on the subject. Have managed to build a sprinkler controller and a couple of temp monitors for around the house. Using ESP8266 dev kit and the ESP8266 Wemos D1 Mini. But have been struggling with creating a cell phone app with buttons and other display items. I did find cell phone app programming software called Blynk. Unfortunately, I don't know why it dropped from popularity well I kind of do. If you ever decide to create a video on Blynk I would surely watch and possibly donate to the cause. I have watched many videos and many have stated it is easy to use. But upon further discussion, most if not all are based on a simple button that has an on/off capability. I think if you try and used this software you will spot the failed sections of the process as I have. Really would like to be able to control things from my cell phone as in ESP 8266 devices. Fingers crossed you take a peek at this and decide to do some videos on this subject. Oh, and BTW there are many videos online for BLYNK but they are either of poor audio quality or years old.
@DreadQuill
@DreadQuill 3 года назад
I have a question about the esp32-s2-wroom-1 series... and maybe the esp32 in general. I am completely new to programming and got this for my birthday. After some libraries and coding I have gotten an hc-sr04 and a dht-11 working together to output data to the arduino serial monitor... my question is on WiFi do I have to do the network and password or is there a way to just communicate wireless without a network??? I haven't really done much with programming before??? Thanks for any replies!!!
@Beansswtf
@Beansswtf Год назад
Not sure why, but my outputs are just massively off... I can adjust the calibration number to get it to match, but then as soon as the current changes the output is again massively off.. Using esp32 with ads1115 and the standard emonlib library, but with a slightly modified calcIrms function to take an array of readings from the ads1115 as an input variable, instead of using the built in ADC.
@fabianoleite4175
@fabianoleite4175 2 года назад
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?
@floris00
@floris00 3 года назад
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.
@thetechboy8529
@thetechboy8529 3 года назад
I am waiting for this video for a long time. The most informative video on this topic on RU-vid Thanks sir
@arshamskrenes
@arshamskrenes 3 года назад
I did exactly this but found the ADC on the ESP32 to he horrible. Despite it being 12-bit, the Arduino was far more accurate due to its linearity and lower noise. When I get a chance, I’m going to use the ADS1115 that can be purchased on Ali Express for a dollar or two.
@raybright5805
@raybright5805 3 года назад
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 RU-vid videos.
@galladeblade6001
@galladeblade6001 3 года назад
This is one element of my thesis paper on college. Those stressful days.
@pravindev4370
@pravindev4370 3 года назад
Hey Scott, nicely done ✌️ Will you please tell Hey is Nodmcu is capable of reading sinusoidal waveform ?
@greatscottlab
@greatscottlab 3 года назад
Yes
@pravindev4370
@pravindev4370 3 года назад
@@greatscottlab Have you connected additional circuit to current transformer?
@rickhuntraslam2925
@rickhuntraslam2925 3 года назад
I always imagined, by the voice I was listening , That he would be a very elegant British guy or a blond boy, but he looks Latin or maybe from the Middle East, I don't know, There's nothing offensive, just like that, I hope I don't disturb anyone.
@richielonewolf7725
@richielonewolf7725 3 года назад
Lol "handy and shocking" made my day😆
@thespazticator
@thespazticator 3 года назад
The ESP32 ADC has significant non-linearity. I don't know whether this is fixed in firmware now, but a few years ago it was a big problem. Just FYI.
@DownToNerd
@DownToNerd 3 года назад
I was going to ask you for a vid on what oscilloscope to buy for tinkering like you. Then i saw the part number on this vid and searched for the one you use, holy shyte, thats a 12000 euro oscilloscope. ok nevermind, i'm gonna keep using my multimeter like the noob i am. good vid btw, as always
@pokojnitozo2360
@pokojnitozo2360 3 года назад
I think this is project where is better to buy, than DIY. You can get modbus/mbus 3phase energy meter for 50eur. Look at tme.eu It have tons of measurements... Not to mention it is safer... Your safety transformer probably cost as much.
@ВладимирПетров-ш5ф
You can just buy sonoff pow r2 for 11 euro and reprogram it via esphome. it does actually the same, but can handle 10A cont./16A peak, has built-in relay, and you do not need to write your own code and build the device
@mleitner0
@mleitner0 3 года назад
This is cool I did this the far using cheep aliexpress bluetooth AC meters. But not as small as this one.
@patricedeschilder1321
@patricedeschilder1321 3 года назад
Hi, May be a stupid question: I have got solar panels and I would like to measure the power going home from grid but eventually the one going out when solar production is greater than consumption. For that I need to identify the direction of current. Do you think this is feasable ? Thanks for advise.
Далее
ХОККЕЙНАЯ КЛЮШКА ИЗ БУДУЩЕГО?
00:29
Make Dumb Electronics Smart for $3
13:13
Просмотров 677 тыс.
12 Mind-Blowing ESP32 Projects to try in 2024!
8:50
Просмотров 141 тыс.
How I Started in Electronics (& how you shouldn't)
7:05