1 / 6
DC-UPS-2CH — ESP32 DC UPS  for router + ONT — image 1
1 / 6

DC-UPS-2CH — ESP32 DC UPS for router + ONT

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

3D-printable case for the DC-UPS-2CH: a two-channel DC UPS that keeps your Wi-Fi router and fibre ONT online through mai

Rating
0 / 5
Likes
2
Downloads
1
Makes
0
Views
52
Reviews
0

Updated at source:

Model information

Category
Electronics
License
GNU General Public License v3.0

Keep your internet alive when the power drops

DC-UPS-2CH is a compact DC uninterruptible power supply designed for one very specific job: keeping a home Wi-Fi router and a fibre ONT online through mains outages. It runs from a 230 V AC input, keeps a 12 V AGM battery topped up, and drives two independent DC outputs - typically 12 V for the router and 9-12 V for the ONT.

An ESP32 supervises the whole thing and adds features a passive UPS simply can't:

  • Seamless mains ↔ battery switching over a shared 13.8 V bus - no relay, no click, no dropout.

  • Two independent outputs, each with manual ON / OFF / AUTO and a "restart just this channel for 5 seconds" button.

  • Low-voltage disconnect with configurable thresholds and hysteresis, plus a fallback deep-sleep so a flat battery doesn't get any flatter.

  • Staged auto-recovery - no Wi-Fi -> power-cycle the router; Wi-Fi OK but WAN dead -> power-cycle the ONT; then both; then optionally reboot the ESP. Counters reset after 10 minutes of stable connectivity.

  • ntfy.sh push notifications for outages, low-voltage events, boot, sleep and recovery. Read-only !ups status / !ups ping commands come back over the same topic.

  • Local web panel at http://dc-ups.local/ (mDNS), with a captive setup AP (DC-UPS-Setup) for first-time configuration.

  • Shelf Sleep: hold the button 10 seconds and everything switches off; only another press wakes it. Perfect for storage or transport without draining the battery.

Everything else

Model on OnShape

Firmware, wiring diagrams, GPIO map, BOM, calibration procedure and full documentation live on GitHub: https://github.com/MrZloHex/dc-ups-2ch

Docs site (PDFs + quick reference): https://mrzlohex.github.io/dc-ups-2ch/

 

TL;DR bill of materials for the electronics side:

  • ESP32 DevKit v1 (USB-C or micro)

  • AC/DC 230 V → 24 V brick, ≥ 60 W

  • XL4016 CC/CV step-down (13.8 V @ ~1.5 A)

  • AGM/SLA 12 V 7 Ah battery

  • 2 × XL6009 buck-boost (one per output)

  • 2 × IRF9Z34N (or equivalent) P-MOSFETs + 2 × 2N2222 NPN drivers

  • Voltage-divider resistors, two LEDs, a tact switch, a 5 A automotive fuse

Assembly (short version)

Step-by-step is in docs/HARDWARE.md on GitHub.

  1. Print the case; add threaded inserts if your CAD variant uses them.

  2. Mount the AC/DC brick, XL4016 charger, ESP32 and both XL6009s.

  3. Wire the P-MOSFET high-side switches per the diagram in HARDWARE.md.

  4. Add the 5 A fuse at the battery + terminal, as close as possible.

  5. Fit the battery last, after verifying every output voltage with a multimeter under no load.

Tags