kriswiner / MPU9250

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

9DoF Razor IMU M0 with MPU9250 lib #233

Open ffbboy30 opened 6 years ago

ffbboy30 commented 6 years ago

Hi, I'm trying to use your lib with this board because the code given by the reseller is not working correctly. I'm just starting arduino for this application and it is not as easy as I thought. Do you know if someone allready convert your code for this board ? The Chip is a SAMD21. The current code have problem with the euler angle they are not independant. Thanks you

kriswiner commented 6 years ago

Are you calibrating the sensors properly?

Are you feeding the sensor data into the fusion filter properly?

On Wed, Feb 14, 2018 at 4:51 AM, ffbboy30 notifications@github.com wrote:

Hi, I'm trying to use your lib with this board because the code given by the reseller is not working correctly. I'm just starting arduino for this application and it is not as easy as I thought. Do you know if someone allready convert your code for this board ? The Chip is a SAMD21. The current code have problem with the euler angle they are not independant. Thanks you

— 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/233, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qkA0H-It4BdpIivb9Wh_5hD0E5vrks5tUtbngaJpZM4SFRDu .

ffbboy30 commented 6 years ago

I've finally make your code working but there is no magnetometer calibration in your files .I think I take the wrong code. The board don't have an extra magneto.Which code is the best for only use the MPU9250

kriswiner commented 6 years ago

There is a magnetimeter embedded in the MPU9250.

You can try this one:

https://github.com/kriswiner/ESP8285/tree/master/MPU9250

or this one:

https://github.com/kriswiner/MPU9250/tree/master/MPU9250_BME280_SPIFlash_Ladybug

On Wed, Feb 14, 2018 at 11:05 AM, ffbboy30 notifications@github.com wrote:

I've finally make your code working but there is no magnetometer calibration in your files .I think I take the wrong code. The board don't have an extra magneto.Which code is the best for only use the MPU9250

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/233#issuecomment-365711360, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qvTXdl3EobLZrmzn6GmKm2P-fWaRks5tUy54gaJpZM4SFRDu .

ffbboy30 commented 6 years ago

On both code the magneto is done by a AK8963. Sorry, I don't find the magneto for the MPU9250

kriswiner commented 6 years ago

Th AK8963C is the magnetometer embedded in the MPU9250 along with the MPU6500 accel/gyro.

Look at the data sheet.

On Wed, Feb 14, 2018 at 12:51 PM, ffbboy30 notifications@github.com wrote:

On both code the magneto is done by a AK8963. Sorry, I don't find the magneto for the MPU9250

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/233#issuecomment-365740986, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qrPMvvnImjxeXIcknabCiuh605tpks5tU0c3gaJpZM4SFRDu .

ffbboy30 commented 6 years ago

Sorry about the silly question. Thanks you