i2cdevlib icon indicating copy to clipboard operation
i2cdevlib copied to clipboard

What is the sample rate of MPU6050_DMP?

Open 54272115 opened this issue 12 years ago • 4 comments

I want to plot a graph from the values I get.

  1. The values that I get are in degrees, right?
  2. Where can I find the sample rate?

Thank you in advance

54272115 avatar Oct 10 '14 07:10 54272115

Using a simple VB6 programm I found a sample rate of about 100Hz.

MPU9150 Arduino Mega Win7 64bit

mpu9150-dmp

Holei avatar Oct 27 '14 15:10 Holei

Go to MPU6050_6Axis_MotionApps20.h and look for the lines:

0x02,   0x16,   0x02,   0x00, 0x01                // D_0_22 inv_set_fifo_rate

// This very last 0x01 WAS a 0x09, which drops the FIFO rate down to 20 Hz. 0x07 is 25 Hz,
// 0x01 is 100Hz. Going faster than 100Hz (0x00=200Hz) tends to result in very noisy data.
// DMP output frequency is calculated easily using this equation: (200Hz / (1 + value))

// It is important to make sure the host processor can keep up with reading and processing
// the FIFO output at the desired rate. Handling FIFO overflow cleanly is also a good idea.

It should explain your question.

ghost avatar Mar 15 '15 12:03 ghost

Thank you very much! Horst Leistner ----- Original Message ----- From: Michiel Bruijn To: jrowberg/i2cdevlib Cc: Holei Sent: Sunday, March 15, 2015 1:08 PM Subject: Re: [i2cdevlib] What is the sample rate of MPU6050_DMP? (#93)

Go to MPU6050_6Axis_MotionApps20.h and look for the lines: 0x02, 0x16, 0x02, 0x00, 0x01 // D_0_22 inv_set_fifo_rate

// This very last 0x01 WAS a 0x09, which drops the FIFO rate down to 20 Hz. 0x07 is 25 Hz, // 0x01 is 100Hz. Going faster than 100Hz (0x00=200Hz) tends to result in very noisy data. // DMP output frequency is calculated easily using this equation: (200Hz / (1 + value))

// It is important to make sure the host processor can keep up with reading and processing // the FIFO output at the desired rate. Handling FIFO overflow cleanly is also a good idea. It should explain your qeustion.

— Reply to this email directly or view it on GitHub.

Holei avatar Mar 18 '15 16:03 Holei

Closing ancient issue for cleanup.

jrowberg avatar Sep 23 '21 11:09 jrowberg