OpenMarine

Full Version: How to connect MPU9250
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi Yiannis,

did you try my tip setting AD0 to ground to set its Adress to 0x69 ?

For your Amazon Links, better look for an supported IMU from this List at https://github.com/seandepagnier/RTIMULib2/.
But you chip should work with this list and this list is used also in openplotter plugin.

Holger
(2023-03-27, 09:52 PM)holgerw Wrote: [ -> ]Hi Yiannis,

did you try my tip setting AD0 to ground to set its Adress to 0x69 ?

For your Amazon Links, better look for an supported IMU from this List at https://github.com/seandepagnier/RTIMULib2/.
But you chip should work with this list and this list is used also in openplotter plugin.

Holger

Hi Holger,

Yes, I tried it with 2 of them, but no luck!

Regards,
Yiannis
(2023-03-27, 09:52 PM)holgerw Wrote: [ -> ]Hi Yiannis,

did you try my tip setting AD0 to ground to set its Adress to 0x69 ?

For your Amazon Links, better look for an supported IMU from this List at https://github.com/seandepagnier/RTIMULib2/.
But you chip should work with this list and this list is used also in openplotter plugin.

Holger

Hi Holger,

I found a video [https://www.youtube.com/watch?v=mzwovYcozvI] for the specific MPU9250 board and it turns out that the AD0 needs to be connected to 5V rather than ground and then it will go to address 0x69.

So I did that, the address changed to 0x69 but PyPilot still cannot see it.

I will try to have a go with an Arduino (follow the instructions on the video) to see if it actually works and take it from there.

Regards,
Yiannis
Hello Yannis,

sorry about no changes with the other address,
so yes it will be better doing the functionalty test with an arduino or esp,
where you have the libraries under your control.

holger
(2023-03-29, 01:41 PM)holgerw Wrote: [ -> ]Hello Yannis,

sorry about no changes with the other address,
so yes it will be better doing the functionalty test with an arduino or esp,
where you have the libraries under your control.

holger

Don't you think it's strange, though, that I get the 'openplotter-gpio-read not running' and 'penplotter-i2c-read not running' messages?
UPDATE - UPDATE - UPDATE

So, I had ordered a ICM20948 module from Pimorini [https://shop.pimoroni.com/products/icm20948] and arrived today. Reputable source and slightly more expensive than others. It worked straight away, I can see it in Signal K and all that jazz!

The address 0x68 works just fine. Also, the Check System app still says 'openplotter-gpio-read not running' and 'openplotter-i2c-read not running'. So for anybody looking to resolve an IMU issue, don't worry about them. Oh, and buy from a reputable source; it will save you time and aggravation!

Now our boat will have a compass! We will know where the F we are going!  Cool
(2023-04-05, 12:09 AM)yiannis Wrote: [ -> ]UPDATE - UPDATE - UPDATE

So, I had ordered a ICM20948 module from Pimorini [https://shop.pimoroni.com/products/icm20948] and arrived today. Reputable source and slightly more expensive than others. It worked straight away, I can see it in Signal K and all that jazz!

The address 0x68 works just fine. Also, the Check System app still says 'openplotter-gpio-read not running' and 'openplotter-i2c-read not running'. So for anybody looking to resolve an IMU issue, don't worry about them. Oh, and buy from a reputable source; it will save you time and aggravation!

Now our boat will have a compass! We will know where the F we are going!  Cool

I want to add an IMU to my v1.0 Hat.  I received it a while ago, but have not had time to setup & test it until now.  Sorry.

What IMU was pictured in the manual (or was it just to show an example)? Is that one available?

I don't mind buying the Pimoroni ICM-209048, but I want to make sure that I can connect it properly.
Will the ICM-20948 work with my v1.0 Hat?

The picture in the manual shows an IMU attaching to the Hat on the 10 pin connector (labelled IMU), where the 1st 4 pins are marked 3V3, GND, SCL, SDA.
The Pimoroni IMU has connections marked as GND, INT, SCL, SDA, 2-5V.  So the pins do not match.
I see JST-SH Cables as extras, but no pictures. Sigh. More cables. I guess the ICM-20948 needs a cable to attach to the I2C connector on the Hat.  Which one? M-M or M-DuPont?

Manual mentions an IMU 9DOF which seems like the nicer solution, but on further reading, the location of the 9DOF seems important.
My plan was to mount the RPi & Hat in a small box attached to the VESA mount of my 10" touchscreen. The touchscreen would be on an arm that would pivot from inside the cabin to the companionway for reference when underway...
What does  pypilot show?
Openplotter i2c is not needed here to work only i2cdetect  should discover your  mpu device guess?
Pages: 1 2