Your original question seemed to be more about I2C code examples.  Anyway, 
I don't see any reason why you can't do what you're asking.  The eval 
board's I2C interface is brought out to a header and you'd just hook that 
up to the bone's I2C bus (be sure to also connect the boards' grounds 
together).  The eval board doesn't make any assumptions about power so 
there are no I2C pull-ups on it.  If you need to add pull-ups to the I2C 
lines, be sure to use 3v3 from the bone's header.

While not 100% relevant, I have two I2C posts here 
<http://andicelabs.com/2013/06/linux-using-i2c-from-user-land/> and here 
<http://andicelabs.com/2013/07/adafruit7segment/> with simpler examples.

-Ron

On Monday, September 21, 2015 at 12:13:27 PM UTC-5, Chintan Pathak wrote:
>
> Hey Ron, 
>
> Your work at andicelabs.com seems fantastic. Long live Open source :)
>
> Just to be clear about my question, I want to power a battery using the TI 
> battery charger board, BQ24261 and I want to control (program) the charger 
>  board using a Beaglebone black. Reading the datasheet of the charging 
> board, I found that, it can be controlled via a GUI, that can be accessed 
> by interfacing the charging board to a PC using a USB-GPIO interface board. 
>
> In absence of the said board, and with the need to programmatically set 
> the charging voltage for my battery, I plan to use the BBB. 
>
> Your code in powercape.c is quite exhaustive, I wanted to further know, 
> whether I will need any additional hardware to connect the charging board 
> to BBB, and any other information / source relevant to this topic. 
>
> - Thanks 
> Chintan Pathak 
>
>
>
>
> On Monday, September 21, 2015 at 8:26:08 PM UTC+5:30, Ron B. wrote:
>>
>> Hi Chintan,
>>
>> I don't use I2C to control the charger, but I do use it to talk to the 
>> power monitor and the supervisor.  Our code for the host-side I2C utilities 
>> are on Github <https://github.com/AndiceLabs/PowerCape/tree/master/utils> 
>> and should make a reasonable example.
>>
>> -Ron
>>
>> On Monday, September 21, 2015 at 2:58:12 AM UTC-5, Chintan Pathak wrote:
>>>
>>> I have a battery charger : 
>>> http://www.ti.com/tool/BQ24261EVM-079?keyMatch=bq24261evm-079&tisearch=Search-EN-Everything
>>>
>>> and I want to program it using the BBB I2C. Can I get any code sample to 
>>> proceed or any guidance ?
>>>
>>>
>>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to