Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Shed the load before the inverter does it for you
When the battery is nearly empty the inverter simply shuts down, and everything stops, including the things you cared about. A smarter plan is to cut the boiler, the air conditioner or the washing machine early and keep the router, lights and fridge alive for hours longer.
Design decisions
Use a current reading and the battery voltage together. Voltage sags under load, so compare it with a smoothed value and a margin, or better, take the state of charge from the BMS (see the BMS monitor idea). Define a shedding order and a recovery order, and keep a minimum delay of several minutes before re-connecting, otherwise the relay will chatter around the threshold.
Switch 220 V loads through a contactor or a relay rated well above the load, not through a small module relay.
Decide what should happen if the ESP32 hangs. A normally closed contact keeps the load on, a normally open one drops it. For heavy loads dropping is usually the safer default.
The inverter’s own low-battery cut-off stays as the last line of defence; never rely only on the ESP32.
Other countries: order these parts on AliExpress with the links below.
Some links are affiliate links: we may earn a commission at no extra cost to you.
Related ideas
⛔ High risk
Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Comments
No comments yet. Share your experience or ask a question.