kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.03k stars 471 forks source link

Using with Arduino Atmega 2560 #103

Open evinramadeen opened 7 years ago

evinramadeen commented 7 years ago

Good day Kris, I was able to obtain an MPU9250 but unfortunately, the barometer it comes packaged with is a BMP280. I understand that for use with your 10DOF code, I will have to alter the necessary files and address to change from the LPS25H that you used to accomodate my BMP280( I have the GROVE - IMU 10DOF V2.0). My main question to you is; do I have to make alot of changes to the code to get it to work with the Atmega 2560 as I don't have a teensy 3.1?

kriswiner commented 7 years ago

Shouldn't have to, a few changes in the I2C calls.

Here is an MPU9250+BMP280 sketch for the Teensy, I think the wire calls are commented out. Should be an easy change:

https://github.com/kriswiner/MPU-9250/blob/master/MPU9250_BMP280_BasicAHRS_t3.ino

On Sat, Dec 31, 2016 at 9:32 AM, evinramadeen notifications@github.com wrote:

Good day Kris, I was able to obtain an MPU9250 but unfortunately, the barometer it comes packaged with is a BMP280. I understand that for use with your 10DOF code, I will have to alter the necessary files and address to change from the LPS25H that you used to accomodate my BMP280( I have the GROVE - IMU 10DOF V2.0). My main question to you is; do I have to make alot of changes to the code to get it to work with the Atmega 2560 as I don't have a teensy 3.1?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU-9250/issues/103, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qjJteHb22B18GPw188s5cM65O2Z_ks5rNpGagaJpZM4LYl4L .

evinramadeen commented 7 years ago

Thanks alot Kris. This will help me greatly.