0
\$\begingroup\$

I have a battery charger that I want to program /control. http://www.ti.com/tool/BQ24261EVM-079?keyMatch=bq24261evm-079&tisearch=Search-EN-Everything

How can I use a BeagleBone Black (BBB) to connect to this charger using an I2C interface ?

\$\endgroup\$
  • \$\begingroup\$ Related: Question closed because yes/no answer "When asking a yes/no question there are one of two possibilities..." \$\endgroup\$ – Nick Alexeev Sep 21 '15 at 8:12
  • \$\begingroup\$ This isnt a yes no type question, I want some guidance on how it can be connected, I have edited the question to state the same, also, it might require some programming on the BBB \$\endgroup\$ – Chintan Pathak Sep 21 '15 at 8:20
2
\$\begingroup\$

First thing you need to do is to connect the SDA and SCL pins of the charger to the SDA and SCL at the beaglebone. The beaglebone has 3 I2C ports. SDA0 and SDA0 is internal and cannot be accessed. SDA1 SCL1 and SDA2 SCL2 can be accessed. Do not use external pull up resistors as the beaglebone has inbuilt pull-ups.

To read the data on the beaglebone's terminal follow this:

https://www.youtube.com/watch?v=8C2zk6B-eLU

If you want to adjust a few parameters on your own then you could write a small C/java/python code with the following library.

https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/i2c

I can't help more since I don't know more technical specifications of your project. But this is the max I can do for now.

\$\endgroup\$
0
\$\begingroup\$

So, I got to a code, that works, https://github.com/chintanp/i2c-charger/blob/master/charger.c

It updates the voltage delivered by the charger every few seconds, similarly other parameters like the charging current can be tweaked.

Thanks a lot to all the folks, ;)

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.