Program takes accelerometer and gyroscope data from the MPU6050 registers and calibrates them for better results. Then uses this data is to obtain pitch and roll angles and writes these angles to the terminal which mbed is connected to.

Dependencies:   MPU6050 ledControl2 mbed

Revision:
6:12ff524abb6a
Parent:
5:a6a235d5442d
Child:
7:3e1e78b34e1a
diff -r a6a235d5442d -r 12ff524abb6a main.cpp
--- a/main.cpp	Tue Jul 21 08:19:59 2015 +0000
+++ b/main.cpp	Wed Aug 05 12:23:06 2015 +0000
@@ -41,6 +41,15 @@
 *    GND -----------> GND of MPU6050
 *    VOUT (3.3 V) --> VCC of MPU6050
 *---------------------------------------------------------------
+*-------------------------------------------------------------- 
+*    |NUCLEO F411RE|  |Peripherals|
+*    D14 -----------> SDA of MPU6050
+*    D15 -----------> SCL of MPU6050
+*    GND -----------> GND of MPU6050
+*    VOUT (3.3 V) --> VCC of MPU6050
+*---------------------------------------------------------------
+
+
 *   Note: For any mistakes or comments, please contact me.
 */