Jump to content
I2Cdevlib Forums

Recommended Posts

Hi @ all,

 

im new here, but i've read much in this forum about the MPU6050 and I2C.

First i wanna say two things:

 

1. my english isnn't the best, i hope u understand me ;)

2. you guys do a really great job here *clap*

 

Im here, because i have a problem.

 

i use a Arduino due and a GY-521 with an MPU6050.

I've written my own code, but there are somethimes connectionproblems.

I dont know why, i cant understand.

 

 

What i've done:

 

- Checked the connections

 

3.3V is connected to VCC

GND is connected to GND

SCL  is connected to SCL (via pull up to 3,3v)

SDA is connected to SDA (via pull up to 3,3v)

AD0 is connected directly to GND

the rest is open.

 

- I've soldered additionaly 2x 4,7kOhm Resistors from SDA and SCL to 3.3V

(read this could help in playground)

 

The problem is strange, because its just somethimes.

If u disconnect my board and reconnect it, it works.

But somethimes i have to do this several times.

 

Im not sure if the problem is in the code.

Because if i start the Seiral monitor, there are some printouts, that shouldnt get printet before other printouts.

I've testet it with several boards, sensors and shields, its always the same problem.

 

Do you have any ideas.

in the attachement my file as .txt, cant upload .ino

 

Thanks and best regards.

Patrick

 

 

 

gyro.txt

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...