Make your robot drive straight (ok, well, straighter) using the MPU-6050 6-Degrees-of-Freedom accelerometer/gyro.
This is another presentation given to the Nashua Robot Builders.
Here’s the Arduino code: _2020Bot_MUP6050.ino.zip
Please note… the Arduino code isn’t up to my usual standards, but it will show you a few things. Pay attention to the required libraries (links are in the comments).
Here’s a zip file for the Apple Keynote version: Driving Straight and Turning