Introduction: DIY UPS for WiFi Router

About: Electronics engineer who loves to experiment new things.

There are already around 50Billion internet-connected devices around the globe. Hence the Internet connectivity is the backbone to run this fast-moving world. Everything from the financial market to telemedicine depends on the internet. Younger generation like us can survive without food for some time but cannot without a proper high-speed internet connection. Internet speeds in developing nations are still picking up as it needs a huge telecom infrastructure to connect to 7 Billion population.

In developing nations like India, power outages are common. But the currently due to COVID-19 breakout almost all the working class of its 1.3 Billion total population is doing work from home as social distancing is very much essential to avoid spreading of the virus. But when we face frequent power outages our internet is at stake as WiFi modem goes down. But these ADSL routers gets input from a telecom line or a fibre which will have the power even during power-cuts as their units have backups. A simple solution to this problem is designing an Online UPS system for routers which can directly switch over to the battery power in the case of power cuts.

Our Design Goals:

1. 12V output Voltage

2. Li-ion batteries (Preferably 18650 as they have the highest energy density in class)

3. At least 1 hour of backup time.


1. 18650 batteries - 3 (3400mAh 3.7V) [I extracted from an old laptop battery you can also do that if you have o]

2. Battery balancer circuit (3S 10A one is more than enough)

3. 2.1mm Jack male and female

4. 3D printer for printing the case

Step 1: Designing the Case

To house these 18650 batteries safely and securely we need a case. I had built my 3D printer 3 years back which is serving all my casing needs. I used to design a simple case having required dimensions to house 3 18650 cells, battery balancer circuit and a 2.1mm jack. I designed it for 3S 18650 batteries if you want more backup time for different applications you can design it for the bigger pack by changing the z-axis height.

I have given holes for M3 screw. You can alter this according to your requirement.

Here's the Thingiverse repository link:

Step 2: Extracting the Cells From Old Laptop Batteries

WARNING !!!! This process is dangerous as you are dealing with Li-ion batteries. Use required protective gears for your safety.

Start from the one side of the battery with a flat tool such as a scalpel or a flat screwdriver and try to lift it from one side. Uniformly apply force by slowly moving ahead with your screwdriver tool and break open the plastic case. Once you are able to remove the case you'll be welcomed with 18650 battery pack.

Use a plyer to remove the connections between them carefully. Measure their voltages with a multimeter.

If the reading is less than 3V it got discharged beyond repair. Due to these kinds of cells, only the whole battery pack won't be able to withstand the required energy. Hence you can reuse all other good batteries whose readings are beyond 3V.

Step 3: Making the Battery Pack

Based on your requirements you can make a bigger battery pack also. Here I'm just using 3 cells to make a battery pack which is portable and can supply 12.6V with the capacity of 2700mAh. How did I deduce its 2700mAh?

Here's the calculation.

The laptop battery pack was printed with a label saying 90Wh (Yes it was a gaming laptop Dell XPS 15). I was able to recover 9 cells. 3 cells in series will give 11.1V and 3 of these packs in parallel. Hence

90Wh/(11.1*3) = 2.7Ah

Hence If we build a battery pack with 3 cells in series it will have a capacity of 2700mAh at 11.1V

i.e 30Wh.Which is enough to run my 24W ADSL router for 75 mins.

If your router is normal one i.e 6W one (12V at 500mA) then it will come for 5 hours. That's a lot in the emergency time.

So do the math and build according to your requirement.

Step 4: Connect Everything and Deploy

Now connect everything according to the schematics. Here you can observe that each cell's positive terminal is connected to the balancer circuit to have a proper battery balancing while charging and discharging. It's just like having the same diameter inlet pipes to all 3 water tanks to fill and empty them in the same rate.

Solder everything according to the schematics and use hot glue to secure the female 2.1mm jack inside the 3D printed case. Then bring out 2.1mm male jack to connect to the router. Secure the lid with the M3 screws,

Working: In normal operations, the battery will charge through the balancer circuit by the wall powered adaptor and adaptor will power the router.

When there is no power the UPS comes into the picture and runs the router without any delay. It's a safe and clean way of recycling your old laptop battery. If you feel it's useful for people, please give me a thumbs up by voting in contests.

Trash to Treasure Contest

Participated in the
Trash to Treasure Contest