Go Down

Topic: Noob here - need help with wiring the MPU-9150 (gyro/accel) to the Uno (Read 22472 times) previous topic - next topic

dmelamed

Hi, I need some help please with wiring the MPU-9150 breakout board to the Arduino Uno. I have the sketch that will be running on the Arduino from here: https://github.com/sparkfun/MPU-9150_Breakout/tree/master/firmware

From what I know so far, I only need to connect the following breakouts: GND, VCC, SDA, SCL.

I've searched the web but was not able to find a diagram for the MPU-9150.

Could anyone please either help with a diagram or walk me through the process? Thank you!

Erdin

The MPU-9150 is a new sensor, so you won't find many examples of it right now.

Do you have the Sparkfun breakout board ?
https://www.sparkfun.com/products/11486

That board is for 3.3V only.
Connect it like this:
Arduino Uno <-> Sparkfun MPU-9150 breakout board
GND <-> GND
3.3V <-> VCC
A4 <-> SDA
A5 <-> SCL
2 <-> INT
Don't connect the other pins of the Sparkfun breakout board.

Run the i2c scanner, http://playground.arduino.cc/Main/I2cScanner

After that, use the code to interface the MPU-9150.
The link by Sparkfun is a copy of the code by Jeff Rowberg.
You better use his (newest) code from his website, http://www.i2cdevlib.com/
His code uses the interrupt, that is why pin 2 (=interrupt.0) of the Arduino Uno is used.

dmelamed

Erdin, thank you for your speedy help. I do have the Sparkfun breakout board that you've referenced. I have all I need now!

dmelamed

Thanks again! Here is the working link of the demo running: http://www.youtube.com/watch?v=74xL-VcRyjQ
Is there a point for me to create a graphical wire diagram for other noobs like myself?

Erdin

Very nice. You have a result very fast!
Maybe you can thank Jeff Rowberg with a link to your video, http://www.i2cdevlib.com/contact


SheepRustler

Hello dmelamed,

Looks great, Im having difficulty getting the g values from my 9150 (they all return 0) any chance of a peek at your code.... or any hints as to how you got yours working, there's very little on the web to help....

Thanks

Erdin

Read the posts above, about how to connect it and using the i2c scanner.

dmelamed

Hey, I used the Arduino code from the examples that are provided by the chip manufacturer. Do you have that URL or would you like me to post it?

ilikegum

Hi there,

I'm trying to do exactly what you've done in the video, but having trouble with getting it to display as a visualization.  I've followed the instructions in the post above, so far this is what was done:

- Connected everything correctly.
- Run I2C successfully
- Calculated roll pitch and yaw from the raw data (did you manually calculate or use another program)?  All these values seem to be right.
- Downloaded processing and FREEIMU, and placed the processing folder from FREEIMU into the processing libraries.  Now what?

positivelydoped23

hi dmelamed!
Can you guide me to the link for the processing code?

Thanks.

positivelydoped23

Hi,
I also see that jrowberg has removed the mpu9150 example code from github.
Any chance of someone knowing where I can find it?

https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050/Examples

KUCKY

I search the examplecode for the MPU9150. The original example von Jeff Rowbwerg used "MPU6050_6Axis_MotionApps20.h". I did not found an example with "...9Axis...". Am i blind?

Erdin

MPU-9150 = MPU-6050 + compass.

You can use the MPU-6050 code, it is one of two chips inside.
Jeff Rowberg started with code for the MPU-9150, but he removed it. I don't know why.

KUCKY


Go Up