Il giorno mercoledì 18 aprile 2012 21:59:22 UTC+2, William Premerlani ha scritto:
Hi Nick,It
looks like the handwriting is on the wall...the diydrones UAV world is
moving to digital gyros. There is a good chance that the next version of
the UDB will have the digital gyro/accelerometer from Invensense, with
the SPI interface.
Best regards,
Bill
Been doing a couple calcs regarding the above mentioned question.
To read each sensor 8000 times a second, you have to:
write the address, write the register, read 2 bytes for every acc axis
write the address, write the register, read 2 bytes for every gyro axis.
-
This is assuming the 6 registers holding high-byte and low-byte values for each accelerometer are consecutive as well as those of the gyroscopes.
In the case of the Invensense parts, that is true. -
This means each read effectively is 16 bytes long.
Now assuming you can chain these without delays, this accounts for a complessive read throughput of
16 * 8 * 8000 = 1024000 bits/second
way above the fast I2C specs and near the maximum speed of SPI!
So at the moment there is no Invensense part capable of sustaining this thourghput (both MPU6050 and MPU9150 have I2C at 400KHz) apart fom maybe the MPU6000 which nobody has tested.
Moreover it is also a problem of interface: nearing the real megabit of throughput represents a taxing environment for any low-level MCU interface.
Most SPIs are rated at this speed as maximum, while there are almost no parts supporting megabit I2C (apart from I2S parts maybe).
Anyone got a look at the ST
LY4150 pitch/yaw?
Claudio