Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gyro Example Simple-Nothing happen #29

Open
papa-shrek opened this issue May 24, 2021 · 1 comment
Open

Gyro Example Simple-Nothing happen #29

papa-shrek opened this issue May 24, 2021 · 1 comment

Comments

@papa-shrek
Copy link

After including all the stuff and adding the files, for some reason when I upload it, nothing happens. It says "Initialize MPU6050" Then nothing.

Does anyone have a solution for this?

@stuartblair
Copy link

For embedded software, it's always worth starting with the physical connections.

  • If your MPU6050 board has an led, check that it's lit to indicate there's power to it.
  • Make sure you either have a voltage regulator on the board or are supplying it 3.3v rather than 5v
  • Ensure you've soldered all the header pins to the breakout board and that they're good connections
  • Ensure you've got solid dupont connectors from your header pins back to your microcontroller
  • Ensure you've got the i2c clock and data pins wired to the right pins on your microcontroller
  • If your sketch is registering an interrupt to tell the microcontroller when it needs to read a register, make sure you've wired up the interrupt header pin to the right pin on your microcontroller.

Lastly, (and I realize this may come as little comfort) I found that from my bag of 12 MPU6050 breakout boards, only a little over half of them worked once I'd soldered the header pins on them and run the same sketch on it. I suppose that's why they were only $12 for 10. Be prepared to play the numbers game with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants