SmartMotion® MEMS Motion Sensors

phpbb forum ID
13263
By jctlmm , 6 February 2016

I'm trying to implement a motion detection solution for my project. I have found that there are some registers that support this functionality as follows:

# Registers/etc.
...
__MPU6050_RA_MOT_THR= 0x1F
__MPU6050_RA_MOT_DUR= 0x20
__MPU6050_RA_ZRMOT_THR= 0x21
__MPU6050_RA_ZRMOT_DUR= 0x22
...
__MPU6050_RA_MOT_DETECT_STATUS= 0x61
...
__MPU6050_RA_MOT_DETECT_CTRL= 0x69
...

Can anyone please provide me the link to the right documents so I can learn how to use them properly?

Thanks!

By albertocelin , 2 February 2016

Hi everybody,
I am developing a system in which a microcontroller arm cortex m-4 communicates via spi with a mpu6500. My will is to write accelerometer and gyroscope measurements on the mpu6500 fifo and to send them through the spi to the microcontroller when the fifo is full.
Is there any available code or template for the spi communication with mpu6500? And what about the fifo, how could I configure and manage it? Is there any application note or similar?
Thank you,

Alberto

By abkirchhoff , 29 January 2016

I'm running the Embedded MotionDriver 6.12 software on a Cortex-M0 processor and communicating with a MPU-9250 via I2C. I'm using the DMP to perform 6-axis fusion and the MPL to add in the compass data for 9-axis fusion. I have several questions about the MPL library.

By joana , 28 January 2016

Hello,

I am trying to read the WAI register from the AK8663 magnetometer inside the MPU9250 but I get 0x00 instead of the expected 0x48. I know my I2C functions work because I can successfully read back a 0x71 from the WAI register in the MPU9250. This is my code:

uint8_t who;

i2cWrite(MPU9250_ADDRESS, USER_CTRL, 0x00);

i2cWrite(MPU9250_ADDRESS, INT_PIN_CFG, 0x02);

i2cWrite(MPU9250_ADDRESS, INT_ENABLE, 0x01);

i2cWrite(AK8963_ADDRESS, AK8963_CNTL1, 0x02);

SysCtlDelay(5000000);

By hove , 27 January 2016

Hi,

Occasionally I get a small value less than zero (e.g. -131) from the accelerometer Z axis i.e. negative gravity during ascent or hover.

If I have the accelerometer dlpf set to 0 it happens a lot (0.1% best guess based on code I have to detect it and abort a flight); by setting it to 2 it's a lot less if at all. It only happens when the props are rotating. The props all rotate the correct direction and are therefore only capable of producing positive values for the Z axis acceleration.

By facotl , 26 January 2016

Hello,
I use a MPU9250 with a nRF52 (cortex M4F), GCC ARM is in version 5.2

I added this in my Makefile (used, i tried with a false lib name => error), liblibmplmpu.a is the one for GCC/Cortex M4F
LDFLAGS += -L ./mpu
LDFLAGS += -llibmplmpu