You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
The text was updated successfully, but these errors were encountered: