this post was submitted on 21 Jun 2026
6 points (100.0% liked)

ESP32

440 readers
8 users here now

founded 4 years ago
MODERATORS
 

Hello,

I want to covert an extention lead to a smart plug with power monitor. To just create a smart plug seems to be quite easy, got lot of alternatives but to add power monitor seems to be quite hard. Anyone can direct me to any board I can use?

Thanks!

B.

top 4 comments
sorted by: hot top controversial new old
[–] hendrik@palaver.p3x.de 1 points 1 week ago (1 children)

I'll usually buy something like a Shelly (Plus) 1PM. It's all already done and in a nice isolated plastic enclosure, you just need to screw in the wires. Depending on the version you'll probably get an ESP32 inside. A 16A relay and power monitoring. And it doesn't cost more than the components bought seperately(?)

[–] blackbeard@feddit.it 0 points 1 week ago (1 children)

My idea was to use something like this:

Just with some sort of PM device integrated, I find it quite weird there are any available.

B.

[–] hendrik@palaver.p3x.de 1 points 1 week ago* (last edited 1 week ago)

Hmmh. I think the ACS712 or something similar would do. Or a power clamp around a wire. Just make sure you know what you're doing when messing around with mains voltage. I mean most people just buy something like a Shelly. They also have variants with 2 relais. Or a smart multi-outlet power strip. There's many options to buy. Tinkering with mains voltage and wanting it all exposed is a bit of a niche, I don't know if there's many PCBs out there. That's mostly cheap boards with just the relais.

[–] pelya@lemmy.world 1 points 1 week ago* (last edited 1 week ago)

Buy an ACS 712 ammeter, the integrated board should not cost more than $3, and you don't need any special high voltage isolation, it comes with 10 A terminals. You'll get a decently accurate current reading, multiply by your socket voltage to get power in watts (120 or 220, which is actually 240 volts nowadays, you should know), but you need to read it like 300-400 times per second for AC. Just beware that even the manufacturer says the chip itself is rated for 30 A, your terminals will become melted plastic at around 15 A, and you won't even fit the wires rated for more than 15 A into them.

https://www.amazon.com/acs712/s?k=acs712