PropBOE+Li-ion power pack+charge level
Rsadeika
Posts: 3,837
I just picked up a PropBOE at Micro Center, and I am trying to figure out, the best way to read the charge levels of the Parallax Li-ion power pack/charger. I know that their have been discussions about voltage dividers, and such. But, it has never been discussed in terms of the PropBOE and Li-ion power pack.
I know that the PropBOE has an ADC, I am assuming it is for 5V, which simplifies it on that end, but what do you need for the Li-ion power pack side, like where would you hook up the wire(s) to get a reading while it was in charge mode, and when it is in use. Also, since the Li-ion power pack is rated at 7.5V, I have not seen any info as to what the fully charged rate would be. If the fully charged state is, let say, 7.9V, then how would you overcome this with a voltage divider setup, and still get useable readings? I guess basically I am asking if anybody has done this, and if the information is available?
Ray
I know that the PropBOE has an ADC, I am assuming it is for 5V, which simplifies it on that end, but what do you need for the Li-ion power pack side, like where would you hook up the wire(s) to get a reading while it was in charge mode, and when it is in use. Also, since the Li-ion power pack is rated at 7.5V, I have not seen any info as to what the fully charged rate would be. If the fully charged state is, let say, 7.9V, then how would you overcome this with a voltage divider setup, and still get useable readings? I guess basically I am asking if anybody has done this, and if the information is available?
Ray
Comments
Lithium ion batteries are a special problem for measuring battery capacity as the voltage curve is so flat in the middle that just reading voltage really isn't going to tell you much. You have to do something more sophisticated, and that generally means monitoring how long at a given voltage as well as the voltage.
Are you up for the complexity, or were you just hoping for an easy study project?
And BTW, the 5 volts is regulated - so that will not show anything about the state of the battery. You have to actually get your reading from the unregulated battery outputs (via a voltage divider).
AT full charge, the per cell voltage can go as high a 4.2v, though Parallax may not actually have its charger go as high as that. With two cells, that would be 8.4v. Just make a voltage divider out of two 1/4 watt resistors of the same value - say 10K ohms each and the tap in the center would always be less than the +5 ADC limitation. 5volts/20,000ohms = ? (very little current drain on the batteries, BUT you should still have a disconnect when you are not using the power anyway.).
These lithium ion cells should Never discharge below about 3.2v or they become damaged. So with a 50/50 voltage divider, your ADC range will roughly be between 4.2V high and 3.2V low and the cell will hang around 3.6 or 3.7 for most of its use.
I think the Lithium Ion power pack will actually shut down around 3.2V to protect the cells. I have no idea about the exact details of how it manages charge and discharge. That can become quite complicated.
If gathering charge level data for the li-ion pack is going to be that difficult, than maybe I should consider ni-cads? But the problem with that, I have not seen any battery holder units where it would hold 6 AA batteries plus have a built in charge unit that would have the same foot print as the li-ion power pack. I guess I would need at least 7.2V output with at least a 24 hour usage period, before a charge is necessary. I am open to some new ideas for this.
Ray
The chip mentioned above might be gotten as a free sample and eliminates the need to measure current as well as voltage - so it really is the optimal way to go.
The interface is some sort of SPI serial that is easily done by the Propeller. You will have to have a time base as well by either using one COG to provide a RTC or use an outboard RTC. Data might be stored in an EEPROM.
Note quite. The chip is interfaced to via I2C, and it provides a charge level and charge rate. It's powered via the battery. So, you don't need an RTC or an EEPROM to use in conjunction with the MAX17049.
Ray
Anyway, if you do get your hands on some then it's simple to hook up. Look on page 15 of the datasheet, and there is only one external component needed (a capacitor). I've got a board design that uses the MAX17048 (the single cell brother), so I'll be developing the code for that. Eventually it will be released as open source.
I agree: Parallax should have incorporated some sort of charge level indicator onboard the power pack.