Exercise 3: Picture Courtesy
Exercise 3: Picture Courtesy
Introduction:
Procedure:
1. The MPU6050 breakout board is connected to the Arduino using the I2C interface. The I2C
interface is available on 2 pins besides the AREF pin on the RHS header
The MPU 6050 breakout board works on 5V, so the VCC pin on the breakout board is
connected to the 5V pin, and the GND pin can be connected to any of the GND pins on the
Arduino UNO.
2. Open up the Gyroscope.ino file. The default code comes from the sample example
http://playground.arduino.cc/Main/MPU-6050.
3. Inside the setup routine, you will notice code that reads raw values from the sensor and
swaps the bytes around, to get them in the correct order.
4. Inside the loop routine, you will notice that we read the values from the sensor every 1 sec
We also have place holders to display the read values and finally a place holder to add our
code to detect motion along the x and y axis.
Questions: