Multiranger deck I2C(frequency )

Discussions about all things Bitcraze
Post Reply
eric.jing
Beginner
Posts: 1
Joined: Thu Apr 01, 2021 7:12 am

Multiranger deck I2C(frequency )

Post by eric.jing »

Hi,

I am now using the same 4 tof sensors with arduino board to make a ranger deck. But I found the sensor data frequency is too low only 7Hz, indeed the tof sensor can be up to 30Hz. I just wonder if i2c read the address one by one and the frequency was divided. And is any solution to increase the frequency? And who know the frequency of multiranger deck of the crazyflie? I didn't find it.

Best,
Eric
tobias
Bitcraze
Posts: 2120
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Multiranger deck I2C(frequency )

Post by tobias »

It is probably a parallelism problem. The Crazyflie is starting the reads in parallel and my guess is that the Arduino is doing it in series and that is why you get a low update rate. On the Muliranger deck the default setup is 10 times/sec for the 5 tof sensors but I'm pretty sure we have tested it with 25 times/sec as well.
Post Reply