amare
February 16, 2016, 4:11am
1
Hello,
I’ve read in this subject : http://www.dexterindustries.com/topic/segway-with-brickpi-not/ , that reading a sensor can take half a second with brickpi+. Is this true or i have misunderstood?
More generallyi am interesting to know the typical delay for reading a sensor and the speed for reading the motors encoders.
Thanks
ThHibaut
JohnC
February 17, 2016, 1:20am
2
Hey amare, it can take that long depending on the sensor, yes. This person wanted to get a very quick response though for implementing a segway.
amare
February 17, 2016, 3:31am
3
It is very long !! This time depends of the number of datum reads ?
JohnC
February 18, 2016, 11:57pm
4
It might actually read quicker, I can’t find where I wrote that down in the documentation. But yes, you do need to leave at least 10 ms between reads to make sure you get a consistent data flow back and forth if you’re using Python or C.
amare
February 19, 2016, 6:13am
5
10ms it seems good with the I2C delay and the delay between Rpi and the board. It is better than 500ms !!