Accelerometer and gyro using MPU6050 Code to sample MPU-6050 sensor, which contains a MEMS accelerometer and a MEMS gyro, using the I2C-bus to interface with the sensor using an Arduino. Developed by Sheffield Eco Motorsports.