
DIY ESP32 AC Power Meter (with Home Assistant/Automation Integration)
video description
Since this thing is powered by mains power, I had severe problems to stabilize the input. I finally ended up with using a Schmitt-Trigger.
I would really love to see you building such a sensor using one of these mini transformers you can buy on AliExpress to power it.
Date: 2020-11-22
Related videos

• TED-Ed
Comments and reviews: 9
education
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 witch 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: -)
reply
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 witch 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: -)
reply
Asle
For most people this is illegal. To do some work inside the fusebox you have to be an authorized electrician, with a company behind you to take the responsibility for the work. At least here in Norway. For those who has got installed the new wireless smartmeters in the fusebox, it does almost the same thing. There you can read how much electricity you use almost all the time. (I refused to have a wireless meter installed by the way. I don't want to be monitored 24/7)
reply
For most people this is illegal. To do some work inside the fusebox you have to be an authorized electrician, with a company behind you to take the responsibility for the work. At least here in Norway. For those who has got installed the new wireless smartmeters in the fusebox, it does almost the same thing. There you can read how much electricity you use almost all the time. (I refused to have a wireless meter installed by the way. I don't want to be monitored 24/7)
reply
alex
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.
reply
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.
reply
Mr.
I love your videos sooo much. Also on your spot welder project, why does it need all that circuit? Just connect the power to capacitors and flip the output of pedal then if pedal is pressed energy passes through pedal out to your output pins. so when you press the pedal it discharges capacitors and when you release it starts charging it.
reply
I love your videos sooo much. Also on your spot welder project, why does it need all that circuit? Just connect the power to capacitors and flip the output of pedal then if pedal is pressed energy passes through pedal out to your output pins. so when you press the pedal it discharges capacitors and when you release it starts charging it.
reply
user73o1u
the explanations get worse and worse. I'm now convinced that people that already know how it works, can follow the explanations - but the others? It's always very high level and short - that's pretty sad! Other than that great video(s)
reply
the explanations get worse and worse. I'm now convinced that people that already know how it works, can follow the explanations - but the others? It's always very high level and short - that's pretty sad! Other than that great video(s)
reply
brucemangy
i suggest PZEM-004T + a 8266 for TTL and link to domotic box -> done: ) i graphed with rrdtool and now integrated in grafana + influxDB. solar production and many home appliances are monitored that way.
reply
i suggest PZEM-004T + a 8266 for TTL and link to domotic box -> done: ) i graphed with rrdtool and now integrated in grafana + influxDB. solar production and many home appliances are monitored that way.
reply
Vinit
I built a similar project, but instead used a hall current sensor with an ESP8266. On software side, I wrote a custom Node. js mqtt broker and Android mqtt client to publish and read power data.
reply
I built a similar project, but instead used a hall current sensor with an ESP8266. On software side, I wrote a custom Node. js mqtt broker and Android mqtt client to publish and read power data.
reply
Konrad
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.
reply
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.
reply
SOURAV
Hi Great Scott, thanks for your videos. Can you make a MIDI controller using arduino. I know you made a launchpad. But something like a piano with control knobs?
It would be great.
reply
Hi Great Scott, thanks for your videos. Can you make a MIDI controller using arduino. I know you made a launchpad. But something like a piano with control knobs?
It would be great.
reply
Add a review, comment
Other channel videos














