DIY Mini UPS for WiFi Router V2.0

by opengreenenergy in Circuits > Electronics

65841 Views, 462 Favorites, 0 Comments

DIY Mini UPS for WiFi Router V2.0

IMG_0752ccc.jpg
IMG_0762cc.jpg
3d cover.png
BookBrushImage3D-eReader-front.png.png

The pandemic COVID-19 outbreak forced companies to continue with work-from-home policy to maintain social distancing and for business continuity. More and more of us are working from home these days, and that means your home's WiFi networks are more important than ever.

Anyone with a fixed-line connection will know that their WiFi drops whenever the power goes out. It is annoying if you are in an important meeting/webinar through Zoom, WebEx, or MS-Team, and there is an interruption due to power cuts.

Support me On Patreon:

If you enjoy my work here on Instructables, consider joining my Patreon, it will be a great help for me to make more interesting projects in the future.

Patreon Link: https://www.patreon.com/opengreenenergy

To keep your internet uninterrupted during power-failures you have the following solutions

Solutions :

1. Using a conventional UPS ( Bulky and Costly )

2. Mini-UPS ( Light and Cheap )

I have already posted an Instructables on DIY Mini UPS, but there are some issues that were reported by the users. In this Instructable, I will guide you on how to make a powerful UPS for your Router.

Features:

1. Light Weight ( 200 grams )

2. Output: 12V / 2A

3. Back up time up to 2 Hours

4. Uses 2 x 3400 mAh 18650 Battery

5. Battery Voltage Display

6. 3D Printed Enclosure

My Book : DIY Off-Grid Solar Power for Everyone

You can order my Book on Off-Grid Solar Power from Amazon

  1. eBook
  2. Paperback - Black & White
  3. Paperback - Color Print


Supplies

Components Required :

1. TP4056 Charger ( Amazon / Banggood )

2. Boost Converter ( Amazon / Banggood )

3. 2S BMS ( Amazon/ Banggood )

4. LEDs ( Amazon )

5. DC Jack- Female ( Amazon / Banggood )

6. DC Jack-Male ( Amazon / Banggood )

7. Rocker Switch 15*21mm ( Amazon )

8. 18650 Battery ( Banggood )

9. Diode 1N5822 ( Amazon / Banggood )

10. 20 AWG Wires ( Amazon / Banggood )

11. Heat Shrink Tube ( Amazon / Banggood)

12. Volt Meter: ( Amazon / Banggood)

13. Electrical tape ( Amazon / Banggood )

14.Duoble-sided Tape: ( Amazon / Banggood )

Tools Used :

1.Soldering Iron ( Amazon / Banggood)

2. Hot Glue Gun ( Amazon / Banggood)

3. Wire Cutter ( Amazon / Banggood )

4. Wire Stripper ( Amazon / Banggood )

5. 3D Printer ( Amazon / Banggood )

6. Hot Air Gun ( Amazon / Banggood )

7. Nitecore Charger ( Banggood )

How It Works?

Schematic_DIY UPS for WiFi Router V2.0_2020-10-02_23-37-01.png

The working of the circuit is very simple, in normal condition, power from the mains is drawn by a 12V DC adapter to charge the 2x 18650 batteries and to provide power to the router. When the mains power fails, the stored energy in the battery is used to power up the router. The voltmeter display is used to display the battery voltage level. The two diodes 1N5822 are used to block the reverse current flow.

In the schematic diagram, the two18650 batteries are connected in series and then they are connected to a 2S BMS board for protection during the charging and discharging.

The positive terminal input DC jack is connected to the positive terminal of the output DC jack through a Schottky diode ( 1N5822 ).

The 12V input power from the DC adapter is connected to the input terminal of the TP5100 module through a 5.5mm DC Jack. The output terminal of the TP5100 charging module is connected to the battery pack.

The battery positive terminal is connected to boost converter LM2587 IN+ terminal through a rocker switch and the negative terminal is directly connected to boost converter IN- terminal.

The boost converter LM2587 Out+ terminal is connected to the positive terminal of the output DC Jack through a Schottky diode ( 1N5822 ) and the Out- terminal is connected directly to the negative terminal of the DC jack.

The voltmeter positive terminal is connected to boost converter IN+ and the negative terminal is connected to IN-.


Disclaimer: Please note that you are working on a Li-Ion battery which is potentially very hazardous. I cannot be held responsible for any loss of property, damage, or loss of life if it comes to that. This tutorial is written for those who have ample knowledge of rechargeable lithium-ion technology. Please do not attempt this if you are a novice. Stay Safe.

Prepare the 18650 Battery

IMG_0587.jpg
IMG_7633.jpg
IMG_7637.jpg
IMG_7640.jpg
Screenshot (100).jpg

First, charge the two 18650 batteries by using a good charger. Here I am using a NITECORE charger.

Clean the terminal of the 18650 battery by using a clean cloth, if required you can use fine sandpaper.

Apply a small amount of soldering flux in all the four terminals.

Then make a series connection between the two batteries. Keep two battery side by side, one battery positive terminal shall face towards the negative terminal of another battery. You can see the above picture for your reference. Then Join them together by using 3M double-sided tape.

Connect the BMS Board

IMG_7651.jpg
IMG_7622.jpg
Schematic_2S Battery Pack_2020-10-02_16-55-00cbcb.jpg
IMG_7668.jpg
IMG_7672.jpg

Solder a thick wire ( 20 AWG ) in the midpoint of the two battery ( junction of the positive and negative terminal )

Solder a black wire to the negative terminal of the first battery and red wire to the positive terminal of the second battery.

Before soldering the wires to the BMS board, tin all the soldering pads for the good soldering joint.

The red wire from the middle point of the battery pack is connected to the BMS MB terminal.

The red wire is connected to BMS B+ and the black wire is connected to B-.

At last, connect a red wire to the BMS P+ terminal and black wire to the BMS P- terminal. These two terminals will be used for charging or discharging the battery pack.

Insulate the Battery Pack

IMG_0555.jpg
IMG_0556.jpg
IMG_7694.jpg

It is essential to protect the battery pack from metal on metal contact, which is very important for your safety.

The best way to wrap the battery pack is by using the PVC Heat Shrink Wrap.

Cut the heat shrink wrap to the size of your battery (remember to leave a little extra on the ends as you want it to wrap around the corners). Then apply heat over the surface by using a hot air gun until the wrap is tightly fitted around the battery.

I have used Electrical tape to wrap the battery pack because of the unavailability of heat shrink wrap.

After wrapping the battery pack, check the terminal voltage by using a multimeter. If the battery is in a fully charged condition, then the voltage must be above 8V.

Prepare the TP5100 to Charge 2S Battery Pack

IMG_7698.jpg
IMG_7700.jpg
IMG_7701.jpg

The TP5100 is a charging management module suitable for charging a single/double lithium battery (4.2V / 8.4V).

The default setting of the board is suitable for charging a single cell ( 4.2V ) lithium battery. To set it for double cell ( 8.4V) charging, you have to short the soldering pad named as " SET ".

Apply a small amount of solder to your soldering iron tip and then short the two soldering pad.

Prepare the Charging Status LEDs

Screenshot (63).jpg
Screenshot (64).jpg
Screenshot (67).jpg
Screenshot (68).jpg
Screenshot (62).jpg
IMG_7861.jpg
IMG_0609.jpg

The TP5100 charging module has one onboard bi-color LED ( red and blue ) to indicate the charging status. But the objective is that the led should be visible to the outside of the enclosure. We are fortunate that the module also has some pads for connecting an external bi-color LED (common anode) next to the input. You can use a common anode bi-color LED or use two LEDs ( Red and Green)

I have used two 3mm LED instead of a common anode bi-color LED.

First, bend the two anodes of LED at the right angle as shown in the above picture. Then trim the legs as per the desired length and solder them together.

Solder a red wire to the red LED cathode, green wire to the green LED cathode, and a yellow wire to the common anode. I have used 24AWG hookup wires to the LED legs. For solid connections and protection to the soldering joints, apply a heat-shrink tube.

At last, solder the terminal wires to the 3 soldering pads of charging module TP5100.

Prepare the DC Jacks

Screenshot (57).jpg
Screenshot (58).jpg
Screenshot (60).jpg
IMG_0596.jpg
IMG_0601.jpg
IMG_7831.jpg

The DC jacks are used for supplying power to the UPS ( 12V input ) from a DC adapter and delivering power to the Router ( 12V Output ).

Clean the terminals of the DC Jacks and then apply a small amount of soldering flux to them. The main purpose of the flux is to prepare the metal surfaces for soldering by cleaning and removing any oxides and impurities. Oxides are formed when metal is exposed to air and may prevent the formation of good solder joints.

Before soldering the terminal wires, tin them by applying a small amount of solder.

Solder a red wire to the positive terminal and black wire to the negative terminal of the DC Jack.

Apply heat-shrink tubing to insulate the exposed soldering joints.

Prepare the Schottky Diode

IMG_0495.jpg
Screenshot (70).jpg
Screenshot (71).jpg
Screenshot (73).jpg
IMG_0614.jpg
IMG_0618.jpg

In this project, we will use two Schottky diodes to prevent reverse current flow. You can also use general-purpose diodes but the main reason for using the Schottky diode is that they have a lower forward voltage drop then the general purpose diode.

The negative terminal of the diode is indicated by a silver ring on it.

Trim the two legs of the diode by using a nipper and then solder two pieces of wire to them.

Then apply heat-shrink tubing to the terminal joints as shown in the above picture.

The datasheet of the 1N5822 diode is attached below for your reference.

Downloads

Prepare the Rocker Switch

Screenshot (74).jpg
Screenshot (75).jpg
Screenshot (77).jpg
Screenshot (78).jpg

The switch is used between the battery pack and the boost converter input terminal.

Soldering wires to the rocker switch is normally very difficult because the solder does not stick easily to the metal terminals. To avoid this, apply a small amount of soldering flux before soldering the terminal wires.

Tin the terminals of the rocker switch as well as the wires to be solder by applying a small amount of solder.

Always use heat-shrink tubing at the exposed conductive parts.

Prepare the Voltmeter

IMG_0568.jpg
IMG_0583.jpg
IMG_7786.jpg

The voltmeter display that I have used in this project has 3 wires. The red and black wire is given to power the meter and the third wire ( yellow ) is given for measuring the voltage allowing for a greater range of measurement.

In our case, we will measure the battery pack voltage only, so there is no need to use the third wire. You can short the soldering pads of the red and yellow wire together.

Then check it by connecting the display to a 18650 battery.

Note: You can buy a two-wire voltmeter instead of three-wire for this project.

Prepare the DC Output Jack

IMG_0672.jpg
IMG_0676.jpg
IMG_0678.jpg
F65X5EAJU31TYBC.jpg

Now you have to prepare the adapter to connect the UPS output to the router input. First, check the specification of your router to confirm the size of the jack ( Sleeve size ) and the tip polarity. Your router will have a small diagram indicating the polarity expected by it; care should be taken to adhere to this, as an improper power supply may damage the device.

In my case, the size of the jack is 5.5mm and the tip polarity is positive. According to the size, order two male DC Jack. Then solder red wire to the tip (smaller one ) and black wire to the sleeve.

Enclosure Designing

main body.png
Screenshot (103).png
Screenshot (97).jpg
Screenshot (98).jpg

To give a nice commercial product look, I designed an enclosure for this project. I used Autodesk Fusion 360 to design the enclosure. The dimensions of all the components are measured by a vernier caliper then the same were considered during the design.

The enclosure has two parts:

1. Main Body

2. Cover Lid

The Main Body is basically designed to fit all the components including the battery. The Cover lid is to cover up the main body opening.

3D Printed Enclosure

IMG_7749.jpg
IMG_0562.jpg
IMG_7920.jpg

I have used my Creality CR-10S printer and 1.75 mm Grey and Red PLA filaments to print the parts. It took me about 3 hours to print the main body and around 1.5 hours to print the top lid.

My settings are:

Print Speed: 60 mm/s

Layer Height: 0.2mm ( 0.3 also works well)

Fill Density: 25%

Extruder Temperature: 200 deg C

Bed Temp: 60 deg C

Download the STL files from Thingiverse

Using Heat Set Inserts

IMG_0572.jpg
Screenshot (96).jpg
IMG_0577.jpg
IMG_0580.jpg

Threaded brass inserts can be a great way to add longevity to our 3D printed enclosures because we will 4 screws at the 4 corners to secure the top lid. Threaded inserts are commonly brass with a pre-formed thread within them.

Allow your soldering iron to heat for 3-5 minutes before installing inserts. This will ensure that you have to use the least amount of force to install inserts. The tip of the iron heats up the brass and softens the plastic. Pressing down pushes the insert into the part and once it cools down, it’s locked in place.

Connect the Input DC Jack to TP5100

IMG_7869.jpg
Screenshot (79).jpg

Mount the 5.5mm female DC jack to the 3d printed enclosure slot.

Then solder the terminal wires of the DC jack to the input terminal of the TP5100 as shown above. The red wire is positive and the black wire is negative.

Install the Components

Screenshot (85).jpg
Screenshot (86).jpg
Screenshot (87).jpg
Screenshot (83).jpg
Screenshot (84).jpg
Screenshot (89).jpg
Screenshot (81).jpg

Install the DC Jacks, Rocker Switch, and Voltmeter display unit to the slot provided in the 3D printed enclosure.

Apply hot glue to mount the charging status LEDs and Voltmeter.

Similarly mount the TP5100 charging board, battery pack, and the LM2587 boost converter by using hot glue.

Note: Mount the charging board, battery pack, and the boost converter only after completion of all the connections as per the schematic.

Make the Circuit

IMG_7991.jpg
IMG_8031.jpg
Schematic_DIY UPS for WiFi Router V2.0_2020-10-02_23-37-01.png
Screenshot (94).jpg

Solder one diode positive terminal to the positive terminal of the TP5100 and the negative terminal to the positive terminal of the Output DC Jack. Similarly the second diode positive terminal to the boost converter Out+ terminal and negative terminal to the DC jack positive terminal. To avoid any damages to connecting two thick wires to the DC jack terminal, I made a junction point ( covered by yellow heat-shrink tubing ).

TP5100 positive terminal is connected to the positive terminal of the battery pack and one terminal of the rocker switch. And the negative terminal is connected to the boost converter IN- and battery pack negative terminal. The other end of the rocker switch is connected to the boost converter IN+.

Voltmeter display positive is connected to boost converter IN+ and the negative terminal is connected to the IN-.

I will recommend to take a printout of the attached schematic diagram and make the circuit as per it. Before connecting the input DC adapter, double-check all the connections.

Note: Red and black wire in the schematic represent positive and negative respectively.

Set the Boost Converter Output

Screenshot (92).jpg

After connecting the wires to the Input and output screw terminal of the Boost Converter, you have to set the output voltage.

Place your multimeter prove at the output terminal and adjust the trim pot until you get 12V.

Close the Top Lid

IMG_8039.png
Screenshot (95).jpg
Screenshot (99).jpg
IMG_0685.jpg

Finally, place the top lid and secure the 4 screws at the corners.

I have used 3M x 8mm screws to secure the lid. the counter sinkholes in the enclosure fit perfectly to the screw heads. I used the Allen key to tighten the screws.

Never overtighten the screws, otherwise, the enclosure may cracks or breaks.

Final Testing

IMG_0697.jpg
IMG_0813.jpg
IMG_0823.jpg

The last step is to test the UPS, plug in the 12V adapter jack to the input jack. Now you will notice the red will glow, it indicates the battery is charging. You can always check the exact battery voltage from the voltmeter display at the output side.

Once the battery is fully charged, plug in the DC jack cable prepared in the earlier step into the female jack at the output. The other end of the cable will connect to the Router power input port.

Turn the switch ON, the router status LED starts to glow and after a few minutes, your router is ready for providing the internet service. At this stage, you can unplug the input DC adapter, you will notice the router is still working flawlessly. You can check the backup time in this condition. I have checked with my router ( 12V / 1.5A ), the backup time is more than 2 Hrs.