Author Topic: Ina3221 workings  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Offline KlompenzijncoolTopic starter

  • Newbie
  • Posts: 5
  • Country: nl
Ina3221 workings
« on: July 07, 2020, 09:41:40 am »
Hello,

I hope someone can help me because I’m starting to pull my hair out.

I’m was trying to learn something about the I2C protocol. I had an INA3221 at hand so I started reading and writing stuff to the registers. Al great, learned a lot, except:

How on earth do I convert the register values to an actual reading. The hex reading it gave me in register 02 is 13 48. My voltage reads 4.9v. I’ve checked the datasheet (didin’t help me), checked the Arduino library (didn’t understand that) and checked the Internet. There I learned that I had to multiply that value with the value of the LSB. So 1348 * 8mV. That doesn’t make 4.9v. Also tried 4mV. Didn’t work either.

Is there anybody that can explain to me what I have to do?

Thanks in advance,

Michel
« Last Edit: July 07, 2020, 09:45:22 am by Klompenzijncool »
 

Online Zarhi

  • Contributor
  • Posts: 24
  • Country: bg
Re: Ina3221 workings
« Reply #1 on: July 07, 2020, 10:21:31 am »
Hex 1348 is 4937 decimal.
 

Offline KlompenzijncoolTopic starter

  • Newbie
  • Posts: 5
  • Country: nl
Re: Ina3221 workings
« Reply #2 on: July 07, 2020, 06:27:04 pm »
Yessss,

Thanks Zarhi. Seems like I was thinking way to hard.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf