MPU 9250 and Feather M0 I2C

Hey Guys,

I’ve had some communications issues trying to adapt your MPU9250 sketch to work with the Feather M0. I’ve been testing it out on the UNO and been happy with the calibration and readings. Works perfectly with the UNO, But want to integrate it to a faster controller.

When I try to adapt it with the Feather M0, some how the Communications (likely the I2C) is interfering with the USB Coms, and upon successful upload, the USB Coms port drops out. It’s important to note that it is not a problem with the controller, all of my other programs work fine and I2C_Scanner picks up the MPU9250 fine. I have been trying to find where the SDA and SCL ports are defined in the libraries but with no luck. Been stuck on this for awhile, any help would be greatly appreciated.

Josh

It has to do with the main function in the MPU9250BasicAHRS_I2C sketch:

MPU9250 myIMU(MPU9250_ADDRESS, I2Cport, I2Cclock);

When I remove it, controller uploads fine.

Hey Guys,

So Finally just used Kris Winer’s code directly from https://github.com/kriswiner/MPU9250 and works. Something about SparkFuns library doesn’t like the Feather M0. Was reading Sparkfuns Library is an older rendition of Kris Winers.