sparkfun / MPU-9250_Breakout

66 stars 50 forks source link

Arduino Due compatibility #11

Closed mattocastillo closed 5 years ago

mattocastillo commented 6 years ago

I have an Arduino Due, when im compiling there is a warning message saying that the program architecture is SAMD and arduino DUE is SAM. im trying to upload the example MPU9250_Basic it compiles and the program runs, i can see the data on the Serial Monitor but it doesnt read correct data, all the sensors are in 0, or 0.6 in some cases.

i tried the same on an arduino leonardo and it works great with correct data.

what can i do to run it on an arduino due?

santaimpersonator commented 5 years ago

Unfortunately, the SAMD and SAM3 are different. If you are using this library, it is noted in the README.md that:

"This library currently only supports and is tested on SAMD processors"

The MPU-9250 is EOL, so may not expand compatibility for other boards. You will probably need a logic level converter. Additionally, it seems like there are other resources online that have a compatibility with an Arduino Due (see here).