Author Topic: LiFePO4 repurpose with Arduino  (Read 15478 times)

0 Members and 3 Guests are viewing this topic.

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
LiFePO4 repurpose with Arduino
« on: September 27, 2017, 05:03:53 PM »
Folks;
With a nice task requested of me. I thought it best to begin at the beginning and document it here so other trying to get a better understanding of the Arduino as it relates to it usefulness.


Here is one of the battery packs that I have been asked to repurpose into a 12V pack that is able to run a SIM card based router.

The current battery is from an old DeWalt hammer drill, the battery pack is a 36V system with no real way of telling what the Ah rating is.
Opening the pack up I am happy to see the A123 sized LiFePO4 cells. There's 10 of them with numbers A123 & ANR26650M1A.

I looked up the information which tells me they are 3.2Vdc at rated at 2300mAh.

Knowing this; I quickly realized my little USB based 18650 could be a hazard since the cut-off voltage is 4.2
A kind word often goes unsaid BUT never goes unheard

frackers

  • Sr. Member
  • ****
  • Posts: 435
  • Country: nz
  • Picard spits "Hello"
Re: LiFePO4 repurpose with Arduino
« Reply #1 on: September 27, 2017, 08:08:21 PM »
LiFePO4 can be charged to 4.2v without catching fire but its not recommended. Stick a  1N4004 diode in series to loose 0.7 volts (unlikely that USB will be charging at more than 1 amp).

Robin Down Under (Or Are You Up Over)

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
Re: LiFePO4 repurpose with Arduino
« Reply #2 on: September 28, 2017, 09:19:28 AM »
LiFePO4 can be charged to 4.2v without catching fire but its not recommended. Stick a  1N4004 diode in series to loose 0.7 volts (unlikely that USB will be charging at more than 1 amp).

True, these little gems top out at ~1A with a solid incoming voltage at ~5Vdc using a diode is what I have on a lone LiFePO4 cell, but where's the fun in that.

Cheers
Bruce S
A kind word often goes unsaid BUT never goes unheard

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
Re: LiFePO4 repurpose with Arduino
« Reply #3 on: September 28, 2017, 12:27:19 PM »
The pic I have here isn't the best quality and it certainly does not show how well these cases are built.
 
This is the case top showing how everything is covered.


This hopefully can show how they use the idea of coiled battery connections to maintain those tight connections and how they inter-connect each sets



Here are the batteries with the case covers removed.

Ten of these batteries and so far 3 packs, will allow me to reconfigure them into 13Vdc packs. I plan on building at least two packs from each of these giving 13Vdc@2.3Ah each. IF I get lazy, I'll have 2 batteries left on each of these units that won't be used to their fullest , but will still have a total of 13Vdc@ 12Ah back that will weigh in at less than 3Kgs.

Bruce S
A kind word often goes unsaid BUT never goes unheard

OperaHouse

  • Hero Member
  • *****
  • Posts: 1308
  • Country: us
Re: LiFePO4 repurpose with Arduino
« Reply #4 on: September 28, 2017, 03:25:31 PM »
Not sure if you are talking about a drop from 5V or from a 4.2V charger. Think I would go with a Schottkey diode for less drop if from a charger. Incidentally, choose one with a reverse voltage of less than 30V and preferably in the several amp range. Forward voltages of Schottkey diodes over 30V approaches that of plain silicon.  At lower % currents the forward drop is also less.
« Last Edit: September 28, 2017, 03:33:25 PM by OperaHouse »

Simen

  • Sr. Member
  • ****
  • Posts: 479
  • Country: no
  • Grimstad, Norway
Re: LiFePO4 repurpose with Arduino
« Reply #5 on: September 29, 2017, 12:11:46 AM »
DO remember that the optimal max charge voltage for LiFePO4 cells are 3.60V +/- 0.05V, NOT 4.20V as it is for LiCoO2/LiMnO2...
I will accept the rules that you feel necessary to your freedom. I am free, no matter what rules surround me. If I find them tolerable, I tolerate them; if I find them too obnoxious, I break them. I am free because I know that I alone am morally responsible for everything I do. - (R. A. Heinlein)

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
Re: LiFePO4 repurpose with Arduino
« Reply #6 on: September 29, 2017, 10:53:58 AM »
I Plan on trying to make sure these reach only reach about 80 -90% of their full charge. From all the reading I could find on these, they like NiCds like being used and a full charge is only needed once in a while (First balancing charge being one of them).

For those who might have access to the DeWalt 36Vdc Hammer drills, my testing of these have found that it is the charger block on the inside that tells the whole system it's bad. I had a 4th block , but fully charging the system with a balancer fix it's problem.

My thought is to use the Arduino to charge these up to a set voltage ~13.4Vdc and leave it at that. The resting voltage was 3.3 on my HF free meter. I let it sit for a full 24hrs once I took off my little tester.

IF I balance these packs one at a time, then hook them up as a single unit I'll use it for the portable router and probably use a cutoff voltage of 12.8. This should give me a nice range.
A kind word often goes unsaid BUT never goes unheard

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
Re: LiFePO4 repurpose with Arduino
« Reply #7 on: September 29, 2017, 02:42:46 PM »
As part of this project I also am trying to make this:

More manageable.
The specs: UPS: Apc unit has cold start ability , but only a 12 7Ah battery.
Battery bank:13Vdc 48Ah AGM batteries Batteries are 6V 12Ah wired up for 12V gives me 12V @48Ah !!!
 The mil-spec router has a near constant draw of 12.5Vdc 1.3A with 3 CAT5 connections and 4 SSID connections all with MSN running on Chrome.

The UPS was really never meant to charge this many batteries, and it will eventually not be able to keep up with the current draw, hence the reasoning behind the large bank.
APC is known for constantly charging up batteries even once they are fully charged.
During my testing for charge, it puts out a voltage of 13.5 (No load ). I connected an AGM battery pack with a voltage reading of 12.3 , this UPS topped out at 0.25Amps. This is a constant. Once the battery's voltage was up reading 13.2 it was still running 0.25Amps.
It's nice having 2 digital meters!!
My PI eyed idea is this: hook up all the 6Vdc AGMs I have, let it charge them up and run the system. This poor little charging will take a week to completely recharge  :o.

The router has pretty interesting programmable settings. I have adjusted the minimum voltage cut-off to be 12.5 ( I know this is too low but the TEST battery is bulging and will not ever fit back into the case).  I was able to test that the cutoff works. This was important!

Once the weeks worth of charging for the battery bank is finished I will set the cutoff to be 12.8. Using the AGMs I should get about 30Ahrs of run time before the router shuts itself off due to voltage minimum at which point the UPS will continue to recharge the batteries.

Once ALL of this testing has done a repeated a few more times, I'll move the LiFePO4s into the spot for testing as well.
I know the Li batteries will not be able to last more than a couple hours (4 at most) but it's their portability that counts.  The AGMs are hard to beat when it comes to W/kg but this will be a good exercise in taking stuff that would normally be recycled and making them useful again.

NOT to mention all of the learning I will get.
A kind word often goes unsaid BUT never goes unheard

george65

  • Sr. Member
  • ****
  • Posts: 499
  • Country: au
Re: LiFePO4 repurpose with Arduino
« Reply #8 on: September 29, 2017, 07:25:32 PM »
The UPS was really never meant to charge this many batteries, and it will eventually not be able to keep up with the current draw, hence the reasoning behind the large bank.
APC is known for constantly charging up batteries even once they are fully charged.

I had a setup using an APC UPS with some solar panels and a couple of car batteries. I was running the outside fridge on it to play and learn.
I used a cheap PWM controller ( 2 in the end) to charge the batteries from the panels and had a Voltage relay module connected to the mains input so if the battery voltage went low at night, the UPS kicked in to charge them up.

The UPS always did seem to drive the battery voltage higher that I thought was ideal and now I know its the way those units are. The batteries didn't last long but they were old to start with and I figured all my mucking around just killed them. Maybe not that alone.
Supposedly you can alter the voltages in the setup of the UPS but mine is not new and I didn't have a suitable cable or was able to find the software to connect it to my laptop. I believe the units can also be configured to automatically hot start when the batterys are disconnected then re connected or hit minimum voltage. This would be a good feature to activate.

All the APC UPS units I have ( and there are a number of them) use the 7.2/ 7.5 Ah batteries but they are paralleled to give 24V. I was surprised reading yours was running 12V but then remembered you only run half the voltage we do so that probably explains it.
The units I have all use Anderson? Connectors from the unit to the battery pack . I got another and connected it to some battery cables and used that to connect to the car batteries.

I had quite a setup of controllers, SSR's and PWM modules to let me run things like a kettle which were over the UPS output rating and it was fun to play with and I learnt a lot as well.  It's all sitting in a box in the garage now and I keep seeing and missing playing with it. I'd like to play with it again as it's going to waste there but then I'd have to buy new batteries which would probably soon die so bit of an expense for nothing. Then again, I have a bit tied up in everything else now including a 2000W 24V Inverter I bought. Got it cheap and it's a great unit but just sitting there.
I was thinking/ wondering if I could just get a couple of those 7.2 AH batteries to power the UPS or inverter up and use it to power the hot water heater through the PWM controller.  Would probably switch off every time a cloud came over as there would be no power in reserve and I'd have to set a point on the variable PWM  which would probably be hopelessly inefficient with out some sort of automatic tracking.

One day I'll get my head enough around arduino to build the solar water heater controller and do things properly. I thught I saw something not too long back about how to run a grid tie inverter as a stand alone which may work but can't find the piece now so for the meantime, all the 24V stuff is gathering dust along with the 1.8KW of panels I had driving it all.

JW

  • Development Manager
  • Super Hero Member Plus
  • *****
  • Posts: 4019
  • Country: us
    • Flashsteam.com
Re: LiFePO4 repurpose with Arduino
« Reply #9 on: September 29, 2017, 08:58:20 PM »

Quote from: george65
One day I'll get my head enough around arduino to build the solar water heater controller and do things properly.


Read these two books for using Arduino

https://steamautomobile.com:8443/ForuM/read.php?1,26164

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
Re: LiFePO4 repurpose with Arduino
« Reply #10 on: October 02, 2017, 09:21:18 AM »
george65;
We have the 24V APC UPSs too, it's just this one was destined for the trash. This units model is APC550 , the 24V units are the XS 1500 and above. I have the older floppy disk and serial cable that allow a person to get in a muck about with the voltage settings.
I did some extensive testing about 5 years ago (when I brought home the 2nd deep freezer for my wife's home-based biz of wedding cakes. Those burn up batteries just like the little ones do , so I setup my batteries outside the casing too. I even have it setup to alert me if it goes on battery.

I'll be moving these batteries over to a better UPS once I find a donor system.
These little units also seem to use MSW when on battery.
I'd like to have 1800w of solar to connect here at work.

Kinda jealous you're able to find so many cheap solar panels so easily. I can't even get the solar installers here to let me have the broken ones.

Cheers
 Bruce S
A kind word often goes unsaid BUT never goes unheard

Bruce S

  • Administrator
  • Super Hero Member Plus
  • *****
  • Posts: 5370
  • Country: us
  • USA
Re: LiFePO4 repurpose with Arduino
« Reply #11 on: October 02, 2017, 12:34:18 PM »
In the interest of keeping with the repurpose theme.
Here is a quick pic of an old PC ATX power supply that is in the junk pile.


I plan on removing different parts from it and similar items from the same pile.

 
A kind word often goes unsaid BUT never goes unheard

Mary B

  • Administrator
  • SuperHero Member
  • *****
  • Posts: 3169
Re: LiFePO4 repurpose with Arduino
« Reply #12 on: December 29, 2021, 01:54:35 PM »
The UPS was really never meant to charge this many batteries, and it will eventually not be able to keep up with the current draw, hence the reasoning behind the large bank.
APC is known for constantly charging up batteries even once they are fully charged.

I had a setup using an APC UPS with some solar panels and a couple of car batteries. I was running the outside fridge on it to play and learn.
I used a cheap PWM controller ( 2 in the end) to charge the batteries from the panels and had a Voltage relay module connected to the mains input so if the battery voltage went low at night, the UPS kicked in to charge them up.

The UPS always did seem to drive the battery voltage higher that I thought was ideal and now I know its the way those units are. The batteries didn't last long but they were old to start with and I figured all my mucking around just killed them. Maybe not that alone.
Supposedly you can alter the voltages in the setup of the UPS but mine is not new and I didn't have a suitable cable or was able to find the software to connect it to my laptop. I believe the units can also be configured to automatically hot start when the batterys are disconnected then re connected or hit minimum voltage. This would be a good feature to activate.

All the APC UPS units I have ( and there are a number of them) use the 7.2/ 7.5 Ah batteries but they are paralleled to give 24V. I was surprised reading yours was running 12V but then remembered you only run half the voltage we do so that probably explains it.
The units I have all use Anderson? Connectors from the unit to the battery pack . I got another and connected it to some battery cables and used that to connect to the car batteries.

I had quite a setup of controllers, SSR's and PWM modules to let me run things like a kettle which were over the UPS output rating and it was fun to play with and I learnt a lot as well.  It's all sitting in a box in the garage now and I keep seeing and missing playing with it. I'd like to play with it again as it's going to waste there but then I'd have to buy new batteries which would probably soon die so bit of an expense for nothing. Then again, I have a bit tied up in everything else now including a 2000W 24V Inverter I bought. Got it cheap and it's a great unit but just sitting there.
I was thinking/ wondering if I could just get a couple of those 7.2 AH batteries to power the UPS or inverter up and use it to power the hot water heater through the PWM controller.  Would probably switch off every time a cloud came over as there would be no power in reserve and I'd have to set a point on the variable PWM  which would probably be hopelessly inefficient with out some sort of automatic tracking.

One day I'll get my head enough around arduino to build the solar water heater controller and do things properly. I thught I saw something not too long back about how to run a grid tie inverter as a stand alone which may work but can't find the piece now so for the meantime, all the 24V stuff is gathering dust along with the 1.8KW of panels I had driving it all.

Anderson power poles, they come in several sizes, can be crimped with a pair of needle nose then soldered(make sure to file excess solder off or it won't fit in the housing). PowerWerxs is a good source for them https://powerwerx.com/ as is DX Engineering www.dxengineering.com first source is sometimes a bit cheaper but often out of product, DX Engineering is my go to but I get a frequent buyer discount so I save money... I spend WAY to much with them LOL

The crimper for power poles does a solder free connection but it IS an investment to get one that does all the different sizes, DX Engineering has a very good product for this but it is overkill if you are not a ham doing coax crimps https://www.dxengineering.com/parts/dxe-ut-kit-crmp2, I have this kit...

For just a power pole crimper this works well, I have one https://powerwerx.com/tricrimp-powerpole-connector-crimping-tool

For power poles larger than 45 amps this is the crimper to use https://powerwerx.com/hex-crimping-tool-sb-series-powerpole or a hydraulic crimper(what I use)