Hi All,
Few months back I had made my first UPS for Routers using lithium ion battery 18650, I had made two UPS, One for my router and one for my fibre converter. It was bit of mess with two power adaptor. It was in my to do list to make single UPS with dual output...
Making this my main challenge was that
Step 2: Circuit Design
We do not have any 2s lithium ion battery charging boards, like TP4056 that can supply constant voltage, current and provide battery protection on single module.
So have to break this into two
To charge 2s lithium battery, we must set CV as 8.4 and ideal charging current upto 2A. Based on the your lithium ion batteries, these value may vary. please check datasheet before setting these value
My Charger could not supply 2A, so i set it to the max current it could supply without tripping
Anticlock : reduces voltage / current
Clockwise : increases voltage / current
If the variable resistors do not respond, disconnect power and turn clockwise till you hear "click" sound or the end. Note that now you have max current (5A), make sure your ammeter can take more than 5A . Turn anticlock to set the desired voltage with no load and then current
You need to charge the batteries before you connect any output. Set the MT3608 to 9V and LM2956 to 5V ( this is the voltage i need for my modem. You could adjust them )
If you want a 12V UPS,
I am adding a video to demo, UPS working
Please share your comments and suggestions
Few months back I had made my first UPS for Routers using lithium ion battery 18650, I had made two UPS, One for my router and one for my fibre converter. It was bit of mess with two power adaptor. It was in my to do list to make single UPS with dual output...
Making this my main challenge was that
- Single 5V charger, cannot provide enough power
- Single Li ion battery cannot supply enough current
- Solution was to use battery in 2S mode but TP4056 cannot be used
So in this blog, I will share how I made my UPS with avaliable modules
I have been making and using DC Lithium ion battery UPS for few years now. Based on requests from friends and family, I have been modifying these circuits to support different setup and I think after 3 years, I have all the combinations as below, depending on your power requirement you can choose which version you want to make...
- Version 1 :Link (5W)
- Single Output 9V and 0.5A
- Can be modified to set output to 5V, but not 12V
- Version 2:Link (15W) This Page
- Dual Output 9V/0.5A and 5V/1.5A
- Can be modified to supply two 5V outputs
- Version 3: Link (24W)
- Single output 12V/2A
- Can be modified to step-down to 5 or 9V
- Version 4 Link (36W)
- Dual Output 12V and 5V
- Output can be modified to both 5V or 9V
- Or Single output at 12V- I have attached circuit for this variant as part of this instructions
Step 1: What Do We Need ?
Material- 2 Lithium Ion 18650 batteries ( extracted from old laptop)
- 2S battery protection board
- CC CV Step down XL4015
- DC Step up volt MT3608
- Step Down LM2956
- Male Power connector- 5.1x2.3mm, 5.1x2.1mm
- Female Power connector - 5.1 x 2.1mm
- Switch
- Wires ( Using copper wire with multi strands)
- Case ( I made my own wooden case)
- 12V 1.5A DC adaptor
- Soldering Iron
Step 2: Circuit Design
We do not have any 2s lithium ion battery charging boards, like TP4056 that can supply constant voltage, current and provide battery protection on single module.So have to break this into two
- WH 2S80A: 2 S 18650 battery protection, capable to divide voltage across two batteries, overcharge protection, short circuit protection etc. Battery once charged does not draw current and this module will prevent overcharging. This is key for this circuit to work as UPS
- XL4015 : To work as CC of 1.3A and CV of 8.4V
- Green light : When Battery is completely charged
- Blue light : Battery not charged or supplying constant current
Step 3: Setting Up XL4015
The XL4015 is a step down with adjustable CC and CV, using onboarded variable resisters .To charge 2s lithium battery, we must set CV as 8.4 and ideal charging current upto 2A. Based on the your lithium ion batteries, these value may vary. please check datasheet before setting these value
My Charger could not supply 2A, so i set it to the max current it could supply without tripping
Anticlock : reduces voltage / current
Clockwise : increases voltage / current
If the variable resistors do not respond, disconnect power and turn clockwise till you hear "click" sound or the end. Note that now you have max current (5A), make sure your ammeter can take more than 5A . Turn anticlock to set the desired voltage with no load and then current
Step 4: 2s Battery
- Connect the battery protection board to 2 lithium ion batteries in 2S config
- Charge the batteries
- Note that while charging the Blue led on XL4015 should be on, this ensures the batteries are getting requires charging current
- When the batteries are completely charged the Green led will be on and Blue led will be off
- If the Green and blue leds are toggling that means the power adaptor is not able to supply enough current and we must either change to new adaptor or reduce constant current
Step 5: Circuit and Testing
Build the circuit as per the circuit diagram. I added a switch to disconnect battery when I want.You need to charge the batteries before you connect any output. Set the MT3608 to 9V and LM2956 to 5V ( this is the voltage i need for my modem. You could adjust them )
If you want a 12V UPS,
- set the value MT3608 to 12V
- Replace power supply that can supply required current
- remove LM2956 from the circuit
Step 6: Finishing
I build my case using 4mm MDF sheet and added my logo to it.I am adding a video to demo, UPS working
Please share your comments and suggestions








Hi Amit,
ReplyDeletei am really impressed with your work. Need some assistance as i am also trying to make the same.
why cannot we replace XL4015 with LM2596?
Why cannot we replace MT3608 with XL6009?
I Tried the above thing,and y 12v 0.5A adaptor stopped working. i am not much sure about the reason. can you pls help me out. if you can share me the things on mobile also, that will also help.
Any comment Amit?
ReplyDeleteHi ankur
ReplyDeleteSorry, i did not get alerts
Do you still need help
Do you still need help ?
ReplyDeleteI saw comments today.. no alerts
Why you are using 2 step down module?
ReplyDeleteHi Sunny
DeleteOne is used to charge 2s lithum in n battery with cc cv.
I needed two outputs, 9v and 5v. The output from battery will be 8v, that needs to be step up to 9v and step down to 5v