INA219 reading rate

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
keoma
 
Posts: 4
Joined: Tue Jul 08, 2014 8:04 am

INA219 reading rate

Post by keoma »

Hi,

I’m looking for “relatively” high rate measurements and I can’t find any information about that.
How quickly can I read the values current and voltage value on the INA219 board? I’m looking for something like 10ms reading rate.

Thanks,

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: INA219 reading rate

Post by Franklin97355 »

Here is the datasheet http://www.adafruit.com/datasheets/ina219.pdf If your micro's i2c interface can send and receive the required code to the chip fast enough I'm relatively sure the chip will respond within 10ms. i2c is pretty fast.

keoma
 
Posts: 4
Joined: Tue Jul 08, 2014 8:04 am

Re: INA219 reading rate

Post by keoma »

Alright, thank you.
I'll try and give you a feedback.

matzrm
 
Posts: 2
Joined: Thu Jul 24, 2014 10:35 am

Re: INA219 reading rate

Post by matzrm »

Hello Keoma,

have you tried this component?
According to my tests, Arduino use more than 2ms to read any data from INA219.
You can confirm it?

keoma
 
Posts: 4
Joined: Tue Jul 08, 2014 8:04 am

Re: INA219 reading rate

Post by keoma »

Hi,

Sorry, I forgot to give you feed back.
I'm currently measuring current and voltage values without adding any delay function in the script and I have values every 7ms ich.
I've tryed with the minimum print() function and it's the same.
This 7ms delay might be produced by the measurement calculation.

Do you think I can reduce that?

Thanks

matzrm
 
Posts: 2
Joined: Thu Jul 24, 2014 10:35 am

Re: INA219 reading rate

Post by matzrm »

There's a way to increase the Arduino I2C frequency, try to google it and test.
In my case, with Arduino Uno, I can read two data from INA219 in 5.5ms.

Let me know if you need help.

Mattia

keoma
 
Posts: 4
Joined: Tue Jul 08, 2014 8:04 am

Re: INA219 reading rate

Post by keoma »

You're right!
Using this forum, I turn the I2C frequency to 400Hz and I could read every 5 or 6 ms:
http://forum.arduino.cc/index.php/topic,16793.0.html

Thank you Mattia.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”