I have connected an MPU6050 Gyro sensor to my Mbot like this
Image 1
Image 2
I am using a Dupont to RJ25 Cable
However, when I try to read this Gyro angle, whether through Mblock or through Arduino IDE, The X,Y,andZ angles always show zero… Also when I use Mblock or Arduino IDE to move the motors, it works, it only doesn’t work with the Gyro.
Arduino Code:
Arduino Code
Mblock:
Mblock code
When I move the gyro sensor around after running this code still nothing changes, not sure why.