Interfacing MPU6050 with Nucleo F103RB

Hey, can anyone tell me how to interface MPU6050 with Nucleo F103RB. I am connecting VCC to 3.3V, GND to GND, SDA to D14 and SCL to D15, but couldn’t find any code that is working. Can anyone please provide me the latest code that can work with nucleo F103RB.


I believe, this one - MPU6050_Hello - Example of using the MPU6050 library. | Mbed by @hudakz will work.

BR, Jan


I tried this library but my serial monitor is continuously printing this “0,0,0”. Any suggestions on what should I do?

Hi there again,

hard to say, it could be an address or a communication issue.

Br, Jan

I have the same problem, did you solve it?