Comments on: Arduino Guide for MPU-6050 Accelerometer and Gyroscope Sensor https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 21 Nov 2025 10:51:45 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1126166 Fri, 21 Nov 2025 10:51:45 +0000 https://randomnerdtutorials.com/?p=101585#comment-1126166 In reply to Bart.

That’s great.
I’m glad it is fixed now.
Regards,
Sara

]]>
By: Bart https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1125893 Thu, 20 Nov 2025 21:41:41 +0000 https://randomnerdtutorials.com/?p=101585#comment-1125893 Your suggestion fixed the problem! Thank you. This gives me a solid experiment for my 11 yr old grandson when he will be here for Thanksgiving. You are most appreciated!

]]>
By: Sara Santos https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1125842 Thu, 20 Nov 2025 18:43:48 +0000 https://randomnerdtutorials.com/?p=101585#comment-1125842 In reply to Bart.

I think that might be the issue.
That also happened to me using an APDS9960 sensor.
I resolved it by changing a few lines of code in the library.
I think you may need to do something similar.
You can check what I’ve done here: https://randomnerdtutorials.com/arduino-apds9960-gesture-sensor/
Go to the section “APDS9960 – Not Expected Chip ID”

I hope this helps.

Regards,
Sara

]]>
By: Bart https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1125838 Thu, 20 Nov 2025 17:49:29 +0000 https://randomnerdtutorials.com/?p=101585#comment-1125838 I suspect that since I don’t have Afafruit MPU6050s, the Afafruit library doesn’t find the MPU. I’ve ordered some Afafruit MPUs that will arrive tomorrow and will try it again with one of them.

]]>
By: Bart https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1125790 Thu, 20 Nov 2025 15:06:35 +0000 https://randomnerdtutorials.com/?p=101585#comment-1125790 In reply to Bart.

Thank you for your reply. I ran the scanner and confirmed the sensor is at 0x68. But when I compile and reload your Afafruit Basic demo for the MPU, I get Failed to find MPU…

]]>
By: Sara Santos https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1125727 Thu, 20 Nov 2025 10:58:00 +0000 https://randomnerdtutorials.com/?p=101585#comment-1125727 In reply to Bart.

Hi.

First, try running an I2C scanner sketch to see if the Arduino can find the sensor via I2C: https://raw.githubusercontent.com/RuiSantosdotme/Random-Nerd-Tutorials/master/Projects/LCD_I2C/I2C_Scanner.ino

Regards,
Sara

]]>
By: Bart https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1125586 Wed, 19 Nov 2025 23:03:54 +0000 https://randomnerdtutorials.com/?p=101585#comment-1125586 Cannot get past the “failed to find MPU6050”. Have tried Arduino UNO r4 Minimal, Arduino Nano. Neither work. Have tried changing address in MPU library module. Nothing works. Even swapped MPU boards. Same result. Web says change MPU library, but that comes with lots of compile errors. What do you suggest?

]]>
By: Sara Santos https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1032204 Tue, 29 Apr 2025 15:21:33 +0000 https://randomnerdtutorials.com/?p=101585#comment-1032204 In reply to James Rienhardt.

Hi.
Are you setting the correct baud rate for the serial monitor?
Regards,
Sara

]]>
By: James Rienhardt https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-1031988 Mon, 28 Apr 2025 22:55:40 +0000 https://randomnerdtutorials.com/?p=101585#comment-1031988 I get gibberish output. Is this a problem with the sensor or the code?
I am using an MPU6050 from HiLetgo.

HiLetgo GY-521 MPU-6050 MPU6050 3 Axis Accelerometer Gyroscope Module 6 DOF 6-axis Accelerometer Gyroscope Sensor Module 16 Bit AD Converter Data Output IIC I2C for Arduino”

]]>
By: John https://randomnerdtutorials.com/arduino-mpu-6050-accelerometer-gyroscope/#comment-869696 Fri, 03 Nov 2023 10:56:54 +0000 https://randomnerdtutorials.com/?p=101585#comment-869696 Hi
I am working on a project to get coordinates of a point when specific threshold values of raw ,pitch and yaw are reached. Can you help how best can i tackle it using arduino components,gyroscope and a gps module.

]]>