Build a Compact WiFi UPS at Easy
by Pro Maker_101 in Circuits > Electronics
1230 Views, 11 Favorites, 0 Comments
Build a Compact WiFi UPS at Easy

In areas with frequent power outages, maintaining a stable internet connection can be a challenge. Most WiFi routers stop working as soon as the power goes out, disrupting everything from video calls to smart home systems. To solve this problem, I built a compact DIY WiFi UPS (Uninterruptible Power Supply) that gives up to 8 hours of backup using just two 18650 lithium batteries!
This UPS automatically powers your WiFi router when the electricity goes off and recharges when the power is back. It’s lightweight, affordable, and uses easily available components like the XL6009 boost converter, 3S 20A BMS, and a 0.28” voltmeter for battery monitoring.
You can use this UPS not only for your router but also for other 12V devices like CCTV cameras, small modems, or even LED lights via the 12V sockets.
Let’s build it!
Supplies
- 3x 18650 Li-ion batteries with holder
- 1x XL6009 boost converter (adjustable 5V–35V)
- 1x 20A 3S BMS (Battery Management System)
- 2x 12V DC socket (for router/modem output)
- 1x 0.28” digital voltmeter (for battery voltage display)
Connect XL6009 to 12V Socket






- Identify the OUT+ and OUT− terminals on the XL6009 module.
- Solder the center pin (+) of the 12V socket to OUT+.
- Solder the outer pin (–) of the socket to OUT– (GND).
- Use a short copper wire or jumper to strengthen the GND connection, as shown in the photo.
- Make sure all connections are solid and insulated properly.
📌 Tip: Adjust the XL6009 output to exactly 12V using a multimeter before connecting any device.
Add 12V Input Socket to XL6009




- Take a new 12V socket and mount it (e.g., on the case side for charging input).
- Solder the + pin of the socket to the IN+ of the XL6009 module.
- Solder the – pin of the socket to the IN– (GND) of the XL6009.
- Use short wires or copper bridge for clean connections.
📌 This socket is for input power—like charging from a 12.6V charger or solar adapter.
Fix Voltmeter and Connect to Output








- Use a small drop of hot glue near the XL6009 (like beside the potentiometer) to fix the voltmeter onto the board or case—only for holding, not locking the screw.
- Connect OUT+ of XL6009 to the V+ and V (sense) pins of the voltmeter (they’re usually internally shorted or can be bridged).
- Connect OUT– to the voltmeter GND (–) pin.
Dd 3-Cell 18650 Holder, Mount BMS & Connect for 12V Output








- Glue the 3S BMS to the backside of the case using hot glue.
- Make sure the pads B+, B–, B1, and B2 are clearly visible.
- From the 3-cell 18650 battery holder:
- Connect the first cell’s + to B+.
- Connect the between first and second cell (middle wire) to B1.
- Connect the between second and third cell to B2.
- Connect the third cell’s – to B–.
Make It Look Pro: Turn Your Circuit Into a Real PCB With PCBWay!

✅ Why PCBWay?
- High-precision manufacturing
- Fast delivery and global shipping
- Low-cost for students, makers, and pros
- PCB Assembly service available
- Excellent support and instant online quoting
🧾 Simple Ordering Steps:
- Design your PCB in software (like KiCad, EasyEDA, or Eagle)
- Export Gerber files
- Go to PCBWay.com
- Upload your Gerber files
- Get an instant quote and place your order!
🚀 Make your project neater, stronger, and ready for real-world use with PCBWay!
👉 Order now at PCBWay.com
Connect BMS Output (P+ / P–) to XL6009 Input



- Take two wires (red for +, black for –).
- Solder one end of red wire to P+ terminal of the BMS.
- Solder one end of black wire to P– terminal of the BMS.
- Solder the other ends to the IN+ and IN– pads of the previously fixed XL6009 module.
- Ensure solder joints are clean and not touching nearby components.
- Use short, thick wires for better current flow.
Enclose Circuit With 3mm Acrylic Sheets






- After completing all wiring and soldering,
- Cut 4 pieces of 3mm acrylic sheet to fit the sides of your circuit like a box (front, back, left, right).
- Cut 1 acrylic piece as the base plate (bottom), and 1 for the top cover.
- Use strong glue or hot glue to fix the circuit board onto the base acrylic sheet.
- Then glue the side panels around the base to form the box walls.
📌 This gives your DIY UPS a clean, strong, and portable enclosure.
Insert Batteries & Set 12V Output





- Insert 3 fully charged 18650 batteries into the 3-cell holder, following correct polarity.
- The BMS will now start supplying power to the XL6009 boost module.
- Power up the circuit and watch the 0.28” voltmeter display.
- Use a small screwdriver to carefully turn the potentiometer screw on the XL6009 module.
- Adjust slowly until the voltmeter shows a stable 12.0V output.
- Once set, avoid touching the potentiometer again to keep the output fixed.
📌 Always check output with a multimeter if voltmeter is not calibrated.
Install UPS and Connect to Router








- Fix the completed UPS on the wall near your router/modem using screws, tape, or wall hooks.
- Make sure the ventilation is clear and sockets are accessible.
- Disconnect your router’s original 12V adapter from the power input.
- Plug that 12V adapter into the input socket of your UPS (to charge the batteries).
- Use a 12V male-to-male DC cable to connect the UPS output socket to your router’s power input port.
- Now, when the main power is ON, the router runs normally and batteries charge.
- During power cuts, the UPS instantly powers the router from batteries (12V output remains stable).
📌 Test backup time by removing adapter plug—router should stay ON without any delay.
Benefits & Demo Video

Benefits of This DIY WiFi UPS:
- Keeps your WiFi router or modem powered during power cuts—no internet disconnection.
- Uses rechargeable 18650 batteries – eco-friendly and easily replaceable.
- Built-in BMS protects against overcharge, over-discharge, and short circuit.
- Boost converter gives stable 12V output for routers, cameras, or small 12V devices.
- Compact, wall-mountable design made with acrylic—safe, clean, and portable.
- Affordable and easy to build with basic tools and common parts.
▶️
Watch the Demo Video:
See it in action and learn how it works!