Tympan / Tympan_Rev_E_Hardware

Repository for Tympan Rev E Electronics and case designs
MIT License
12 stars 2 forks source link

Fuel Gauge for Battery Level #7

Closed eyuan-creare closed 4 years ago

eyuan-creare commented 4 years ago

Add a fuel gauge (or spec a charging IC with that feature) to report the estimated battery level of the device. This will allow the Tympan to close an SD recording before a power failure. Note that Lithium batteries cannot rely on voltage to determine charge level.

@chipaudette : is this a nice-to-have feature or a must?

biomurph commented 4 years ago

Here is a candidate for fuel gauge https://www.mouser.com/datasheet/2/308/LC709203F_D-1810548.pdf

eyuan-creare commented 4 years ago

Thanks for checking into these. I've never used one of these chips before. I see that it uses a special technique that doesn't use a sense resistor, but it looks like it relies on a thermistor. Are there other reliable methods of measuring battery capacity? I simply ask because it adds another component to the battery. image

chipaudette commented 4 years ago

Did we really talk about doing this for Rev E, or is it for the MIT hardware?

chipaudette commented 4 years ago

@biomurph, that's the same IC as used in the recently-advertised Adafruit board, right?

https://www.adafruit.com/product/4712

eyuan-creare commented 4 years ago

Looks like Adafruit is using it without a thermistor, so they forgo temperature compensation.

@chipaudette Yes, we talked about it in the context of the Dosimeter. We can shelve this if not needed.

biomurph commented 4 years ago

@chipaudette Yes! it does look like Adafruit is using the same IC! Funny, I did not even check to see if there was one broken out by the SparkFruit people.

@eyuan-creare I selected the LC709203 because it does not require an external current sense resistor, and also noticed that it can be used with or without thermistor temperature measurement. It seems to be the easiest to implement, and since we are not doing anything that is high current, or really stressing the battery in any way, I thought that the temperature measurement would be optional. Do you guys feel that it is something that we should look into?

If you're interested in playing around with this IC in the Tympan Library, I can add it into the Tympan Rev D spec and we can drive it around a bit?

chipaudette commented 4 years ago

I'm interested in this, but I'm more interested in getting Rev E built for the first time. So, let's not do this (yet) for Rev E.

biomurph commented 4 years ago

@chipaudette There is room for it, and I can route it in but leave it unpopulated for now. How does that sound?

biomurph commented 4 years ago

I added it into the layout, and we can decide to populate it or not. Super easy.