Go Down

Topic: Help With MPU6050-Based Project (Read 189 times) previous topic - next topic

Joseph_Forbes

May 19, 2017, 04:11 am Last Edit: May 19, 2017, 06:01 am by Joseph_Forbes
       Hello everyone,
 Sorry If I act like a noob, this is my first project. My apologies in advance. As far as my project is concerned, I am simply trying to get data displayed in my serial monitor from my MPU-6050 accelerometer. I have found some code that seems to be widely used online and I have decided to utilize it. I wired it up properly, and even tested for continuity with great results. Here is the video I got these resources from: https://www.youtube.com/watch?v=GjHxwDLBh00

I did install the additional libraries as per the instructions.

Serial Monitor:


Wiring:



The code was way too long to even be postable here, so here is a pastebin instead:
https://pastebin.com/Mbw8e8kV

Sorry for the inconvenience.



Thanks for helping me out!

MorganS

The pictures didn't come through.

"Simply display on serial monitor" should not be too long to post here. What else is in that sketch?

It would be easier to say which example you used from the library. Does that example work with no modification? What do you want to do differently to the example?
"The problem is in the code you didn't post."

Joseph_Forbes

Hmm :/ I'm working on the images...

I used MPU6050_DMP6 from the examples. It was demonstrated to work in the video, so I don't see why there would be too much difficulty getting it to run for my use under the same conditions. My wiring is good, and the serial monitor just says:

"Initializing I2C devices...
Testing device connections...
MPU6050 connection failed

Send any character to begin DMP programming and demo:
Initializing DMP...
DMP Initialization failed (code 1)"

MorganS

That indicates that it's wired incorrectly.

Which breakout board do you have? Does it have 3.3V converters on the board?
"The problem is in the code you didn't post."

zhomeslice

Does this scanner detect the mpu6050 in your circuit

Z
HC

Go Up