When I run the code, I always get -1 as output for all the 6 outputs of gyroscope and accelerometer.I am uploading the output as seen in serial monitor also.
Thankyou
mpu6050_rawdata.ino (1.59 KB)
When I run the code, I always get -1 as output for all the 6 outputs of gyroscope and accelerometer.I am uploading the output as seen in serial monitor also.
Thankyou
mpu6050_rawdata.ino (1.59 KB)
Which Arduino are you using? You may need an I2C level shifter for connecting the 3.3V MPU to an 5V Arduino. Show your circuit diagram?