kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.02k stars 469 forks source link

Integrating with Feather M0 #401

Open TeslaHoax opened 4 years ago

TeslaHoax commented 4 years ago

Hey Kriswiner,

I've had some communications issues trying to adapt your sketch, specifically the one SparkFun provided, to work with the Feather M0. I've been testing it out on the UNO and been happy with the calibration and readings.

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

kriswiner commented 4 years ago

Sorry, I have never used the Feather. Maybe Adafruit can help?

On Sun, Nov 17, 2019 at 8:29 PM TeslaHoax notifications@github.com wrote:

Hey Kriswiner,

I've had some communications issues trying to adapt your sketch, specifically the one SparkFun provided, to work with the Feather M0. I've been testing it out on the UNO and been happy with the calibration and readings.

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/401?email_source=notifications&email_token=ABTDLKSOG5MIBVLGULBOY3DQUIK2XA5CNFSM4JON5LX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZ5RWVQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKSZVKKYGOWKRCI5DATQUIK2XANCNFSM4JON5LXQ .

TeslaHoax commented 4 years ago

It seems as though they can't help since the feather is operating fine with other code and hardware.

kriswiner commented 4 years ago

So the feather works fine by itself and with other sensors. The MPU9250 works fne with other MCUs? Sounds like a connection problem or some other kind of interference specific to how you have chosen to connect the MPU9250 and Feather. I am afraid I can't offer any help here since there is nothing wrong with the MPU9250 sketch per se.

On Mon, Nov 18, 2019 at 8:18 AM TeslaHoax notifications@github.com wrote:

It seems as though they can't help since the feather is operating fine with other code and hardware.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/401?email_source=notifications&email_token=ABTDLKRBDZKM7WG3KAFU5DLQUK54TA5CNFSM4JON5LX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEK77KQ#issuecomment-555089834, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKVDVECNILHDKU2KPETQUK54TANCNFSM4JON5LXQ .

TeslaHoax commented 4 years ago

Yes that is the case, As soon as I take the main function out of the script it uploads fine. MPU9250 myIMU(MPU9250_ADDRESS, I2Cport, I2Cclock);

Must be the I2C coms.

Thanks anyways.

TeslaHoax commented 4 years ago

Hey,

So I finally just scrapped the SparkFun Library and integrated your sketch into what I had. Works perfect. Weird.

Thanks!