Pages: [1]   Go Down
Author Topic: sample rate of acc/gyr/mag  (Read 714 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all.

Using the platform drotek 10dof mpu6050-ms5611-hmc5883, with arduino.

I can extract raw data from accelerometer, gyroscope and magnetometer, but I was not clear the sample rate.

from the product data sheet mpu6050 read:
OUTPUT DATA RATE GYRO Programmable from 4 to 8,000 Hz
ACC OUTPUT DATA RATE Programmable from 4 to 1,000 Hz

This register specifies the divider from the output rate gyroscope used to generate the sample rate for the MPU-60X0.
The sensor output register, FIFO output, DMP sampling and motion detection are all based on the sample rate.
The sample rate is generated by dividing the output rate gyroscope by SMPLRT_DIV:
Sample Rate = Output Rate Gyroscope / (1 + SMPLRT_DIV)
where = 8kHz Output Rate Gyroscope When the DLPF is disabled (DLPF_CFG = 0 or 7), and 1kHz When the DLPF is enabled (see Register 26).
Note:
The accelerometer output rate is 1kHz. That means this for a sample rate greater than 1 kHz, the same accelerometer sample may be output to the FIFO, DMP, and sensor registers more than once.

For more in hmc5883:
Output Rate (ODR)
Continuous Measurement Mode 75 Hz
Single Measurement Mode 160 Hz


My question is: I have to set the same sampling rate for all sensors?
Logged

0
Offline Offline
Shannon Member
****
Karma: 215
Posts: 12467
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
OUTPUT DATA RATE GYRO Programmable from 4 to 8,000 Hz
ACC OUTPUT DATA RATE Programmable from 4 to 1,000 Hz

Quote
My question is: I have to set the same sampling rate for all sensors?

Clearly you don't have to - the 8kHz gyro rate would be unobtainable otherwise.

You have to realise that this module has 3 separate chips on it, they are independent other than sharing an I2C bus.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: