Batteries: watch polarity, use protected cells and a charger with protection, never charge damaged cells unattended.
Measure the mini-UPS without opening it
Small 12 V DC UPS boxes for routers are popular, and their weak point is the battery: the label capacity is often optimistic, and the cells age. The easiest honest way to learn the truth is to measure the output. Put an INA219 in line between the UPS and the router, and the ESP32 sees the voltage and the current of the real load without touching the inside of the box.
What you get from it
During an outage the node integrates the energy that the router consumed from the moment the mains disappeared. After one or two real outages you know how many watt-hours the box actually delivers, and the runtime estimate becomes a measured number instead of a guess from the sticker.
Power the ESP32 from the UPS output through a small buck converter, so it stays alive exactly as long as the router does.
Warn when the output voltage sags under load toward the cut-off of the box; many models switch off around 9 to 10 V.
A swollen or hot battery is a reason to stop using it. No sensor replaces looking at it.
Keep the fuse in the supply line; short circuits in a DC circuit are not forgiving.
Runs the cabinet fan only as fast as the temperature needs, reports overheating and warns if the fan stops, so the inverter and the battery stay cool and quiet.
Comments
No comments yet. Share your experience or ask a question.