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,
INA219 reading rate
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: INA219 reading rate
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.
-
- Posts: 4
- Joined: Tue Jul 08, 2014 8:04 am
Re: INA219 reading rate
Alright, thank you.
I'll try and give you a feedback.
I'll try and give you a feedback.
-
- Posts: 2
- Joined: Thu Jul 24, 2014 10:35 am
Re: INA219 reading rate
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?
have you tried this component?
According to my tests, Arduino use more than 2ms to read any data from INA219.
You can confirm it?
-
- Posts: 4
- Joined: Tue Jul 08, 2014 8:04 am
Re: INA219 reading rate
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
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
-
- Posts: 2
- Joined: Thu Jul 24, 2014 10:35 am
Re: INA219 reading rate
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
In my case, with Arduino Uno, I can read two data from INA219 in 5.5ms.
Let me know if you need help.
Mattia
-
- Posts: 4
- Joined: Tue Jul 08, 2014 8:04 am
Re: INA219 reading rate
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.
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.
Please be positive and constructive with your questions and comments.