Sparkfun Battery BabySitter interface

I plan to connect SparkFun Battery Babysitter to read SoC, Power consumed, Current to battery etc… This is for my academic project

Question 1

Arduino interface

I am referring to below link: https://learn.sparkfun.com/tutorials/ba … 1633541374

Can this Arduino library be downloaded to Arduino Uno board ?

https://learn.sparkfun.com/tutorials/ba … no-library

Question 2

Can this Babysitter module be interfaced with Raspberry Pi 4 board ? Appreciate if someone can help me with this Rpi library & schematic to connect ?

I am thinking that Babysitter module can read battery parameters, compute them and make them available over it’s I2C interface. If I hook Rpi to this I2C (of Babysitter), I should be able to get those battery parameters. In addition, I may be able to do some control (start/stop charging). Please comment on my this understanding as well.

Much appreciate your response and thanks in advance.

Dinesh

Question 1:

Yes, the library is for the Arduino Uno.

Question 2:

Yes it’s possible but you’re going to need to write your own library, sparkfun doesn’t have one for the pi. For connections, you only need to connect SDA. SCL and ground between the board and pi.

Thank you for lightning fast response. Now I feel motivated a bit.

Meanwhile, I beg those who have this interfaced, for RPi library. Need really quick.

One more question I have is, can I control the Start and Stop of charging the battery programmatically, in above configuration ?

Not via code but you can turn the charge current off by setting a dip switch. The guide has information on that. :slight_smile:

Thank you. That was useful. I was able to interface, read and control the charging and discharging of a LiPo battery.

I ran into another problem. Now all of a sudden, my Lipo.begin() fails and I am no longer able to communicate with Babysitter module.

Have I damaged my module ? I double-checked my connections and it all looks per Sparkfun document.

Appreciate your inputs…