MPU9150 keeps going to sleep

Hi all

This is my first post here and I'm relatively new to electronics but I'm having immense fun with my little project. I have an Arduino Due and I'm using an MPU9150 (GY-80) 10DOF sensor. I have everything connected up correctly (I believe) and most of the time, I can read all 3 of the sensors' data (I have another question coming on the Magnetometer but that'll keep for another day).

By 'most of the time' I mean I send my sensor data values back to the Serial port (using Serial.print) and my C++ engine picks them up and uses the data - once this is working, I've left it running for hours and it's still transmitting sensor data to my host app - perfect. Sometimes though, if I recompile and upload my sketch, even if I use the Serial Monitor, it doesn't run correctly and I get a value coming through every second which is zero. The TX light on the Arduino also just blinks once per second rather than the burst flashing it does whilst it's actually working.

To fix this, I have to actually unplug the 3.3V jumper wire (or GND) from the Arduino to the MPU-9150 and replace it at which point it resets itself and starts transmitting again. Does anyone know of this issue? I've tried a few other identical MPU9150 chips and they all do the same so I was wondering if there's any type of reset I need to do in my 'Setup()' method on my Sketch.

I appreciate this may be more MPU-9150 based than Arduino but hopefully some of you folks have used them.

Thanks in advance

Rob

Dear,

Sorry but I don't have any answer to your question. But I am also beginner in arduino programmimg and I see that you are able to connect a 10DOF sensor to your arduino DUE.

I would appreciate that you could contact me privately and you could share with me the arduino programme and any other relevant information.

I have already bought an arduino DUE + a GY-86 10DOF sensor.

I connect both with 4 wire Voltage (I try both 5V and 3.3 V) + GND + SCL + SDA but anything happens.

I try many libraries and examples but no connection, even the address scanner to find the correct one.

According to the specification the supossed address is 0x68, but might something that I making wrong.

Thank very much in advance.

I hope you could find any solution to your question.

For starters, I believe you should only be using 3.3v, so stick to that.

I found that my GY-80 is, in fact, not an MPU-9150 but a breakout board with 3 seperate modules on it. For that reason alone, I don't believe 0x68 is the correct address (it may well be for the MPU-9150) and that each chip is addressed seperately.

Oddly, when I run the I2C scanner, I don't see any devices on my I2C network but I can still happily get values from the sensors. I don't have the details of my implementation here but I would recommend doing some search using GY-80 (or whatever GY you have) and Arduino to find the right solution - that's what I did.

If you can wait until later tonight or tomorrow, I'll post up some code.

Mine is still going to sleep occasionally... I have to stop my C++ program and run up the Serial Monitor in the Arduino IDE to get it back to awake again so there's obviously something I'm not doing right. Also, when I plug the Arduino into power (in this case, my USB cable), and I run my C++ program, it doesn't get anything back. I have to run the Serial Monitor in the Arduino IDE then close it for my C++ program to get any values....