Does the AAR Engine support MPU-9250?

By traveller102 , 22 November 2014

I know that MPU-9255 is supported, but will it work with MPU-9250? If not, why not.

Note:
For those that don't know, "AAR" is the "Automatic Activity Recognition" Library for Fitness Tracking Application.

Thanks! :D

traveller102

11 years 4 months ago

Also, I see that the AAR API document "SW-AAR-API-1", provide a pdf with example code... are there any project files available for Atmel M4, or do I have to create them myself?

phpbb Post ID
26124

kernelport

10 years ago

I realized that AAR_twi_read_cb callback is only used to read the chip ID.
So you can fake it form mpu9250 to mpu9255

static int AAR_twi_read_cb(uint8_t slave_addr, uint8_t reg_addr, uint8_t length, uint8_t *data) {
if((slave_addr<<1) == 0xD0 && reg_addr==117 && length==1) {
*data = 0x73; // fake the WHOAMI to MPU9255
return 0;
} else if(I2C_MPU9250_GetReg(slave_addr<<1, reg_addr, length, data) != 0) {
return -1;
}
return 0;
}

phpbb Post ID
33697
phpbb Topic ID
16770