This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

INA260: Any example code in C for programming that device?

Part Number: INA260
Other Parts Discussed in Thread: , INA231, INA230, INA226, INA220, INA219

Hello,

I'd like to use the current sensing INA260 in a design.

Do you have any example code in C for programming that device?

On the TI site there is only user interface software for testing the INA260.

Thanks for your help

Awal

  • Hello Awal,

    We do not provide source code for our current sensors unfortuantely, but there are a couple options. You could search online for source code. Here are a couple libraries I found on GitHub:

    github.com/.../INA260-current-sensor
    github.com/.../draw

    You could also probe the SDA and SCL pins of the INA260 on the INA260EVM to help ensure you are on the right track in establishing communication and sending I2C commands to the part. This mean using a sniffer or oscilloscope and then watching the reading as you send commands with the GUI.

    Hope this helps.

    Best Regards,
    Peter Iliya
    Current Sensing Applications
  • Peter Iliya said:
    Hello Awal,

    We do not provide source code for our current sensors unfortuantely, but there are a couple options. You could search online for source code. Here are a couple libraries I found on GitHub:

    github.com/.../INA260-current-sensor
    github.com/.../draw

    You could also probe the SDA and SCL pins of the INA260 on the INA260EVM to help ensure you are on the right track in establishing communication and sending I2C commands to the part. This mean using a sniffer or oscilloscope and then watching the reading as you send commands with the GUI.

    Hope this helps.

    Best Regards,
    Peter Iliya
    Current Sensing Applications

    Hello Peter,

    thanks a lot.

    I really appreciate it.

    Regards
    Awal

  • Awal,

    In addition to Peter's resources, we also have a linux reference driver on ti.com (INA2XXSW-LINUX) that works with the INA219, INA220, INA226, INA230 and INA231 devices.  The INA260 is very similar to these devices with the addition of the internal shunt resistor, so that code could possibly also be a good starting point for you.