Shop OBEX P1 Docs P2 Docs Learn Events
INAI2C Current Sensor from Bits to Amps — Parallax Forums

INAI2C Current Sensor from Bits to Amps

daylan9046daylan9046 Posts: 3
edited 2014-02-13 15:52 in Accessories
Hello:

I'm working with an INAI2C Current Sensor and the Basic Stamp, and the code I got for it works well, but but reads in bits. Does anyone know a conversion from bits to amps that I could use? I attached the code I got working and a screenshot of the debug terminal with nothing attached to the sensor.

Code: I2C.bs2

Debug: http://puu.sh/5bqGY

Comments

  • davejamesdavejames Posts: 4,047
    edited 2013-11-14 08:07
    Hello daylan - have you the datasheet for the INAI2C?

    Are you sure of the part number

    I searched for "INAI2C" and didn't find anything useful. I did stumble across "INA 219", which is a current sensor from TI.
  • daylan9046daylan9046 Posts: 3
    edited 2014-02-13 10:21
    davejames wrote: »
    Hello daylan - have you the datasheet for the INAI2C?

    Are you sure of the part number

    I searched for "INAI2C" and didn't find anything useful. I did stumble across "INA 219", which is a current sensor from TI.

    Yes that is the one I'm talking about.
  • kwinnkwinn Posts: 8,697
    edited 2014-02-13 15:52
    The calibration instructions start on page 17 of the data sheet, and are a bit too long and involved to go into here. Once they are done the outputs for current, voltage, and power can be read from the registers as binary numbers and converted to Amps, Volts, or Watts. The exact procedure depends on how you have programmed the chip registers and the shunt resistor you are using.
Sign In or Register to comment.