Electronics > Projects, Designs, and Technical Stuff

Ina3221 workings

(1/1)

Klompenzijncool:
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

Zarhi:
Hex 1348 is 4937 decimal.

Klompenzijncool:
Yessss,

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

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod