Hello all. I recently bought a MPU-6050 to use with my Uno R3.
Heres the specific board I'm using: https://www.sparkfun.com/products/11028
and i have it connected like so:
VDD - Arduino 3.3v
GND - Arduino GND
INT - Arduino digital pin 2
FSYNC - leave unconnected
SCL - Arduino SCL (dedicated pin or Analog 5)
SDA - Arduino SDA (dedicated pin or Analog 4)
VIO - Arduino 3.3v
CLK - leave unconnected
ASCL - leave unconnected
ASDA - leave unconnected
I followed this beginner guide: Arduino Playground - MPU-6050 got it working with little effort.
After that I tried using this guide which includes using the IDE "Processing" to get a visual representation in 3d space:
http://www.varesano.net/blog/fabio/initial-tests-freeimu-v04-and-mpu6050
This is where I'm running into issues. Im using an example in the FreeIMU library in the arduino IDE and I'm getting some errors.
#include <ADXL345.h>
#include <bma180.h>
#include <HMC58X3.h>
#include <ITG3200.h>
#include <MS561101BA.h>
#include <I2Cdev.h>
#include <MPU60X0.h>
#include <EEPROM.h>
//#define DEBUG
#include "DebugUtils.h"
#include "CommunicationUtils.h"
#include "FreeIMU.h"
#include <Wire.h>
#include <SPI.h>
float q[4];
// Set the FreeIMU object
FreeIMU my3IMU = FreeIMU();
void setup() {
Serial.begin(115200);
Wire.begin();
delay(5);
my3IMU.init();
delay(5);
}
void loop() {
my3IMU.getQ(q);
serialPrintFloatArr(q, 4);
Serial.println("");
delay(20);
}
Errors:
FreeIMU_quaternion.pde:11:24: error: DebugUtils.h: No such file or directory
In file included from FreeIMU_quaternion.pde:13:
/Users/RobertPerez/Documents/Arduino/libraries/FreeIMU/FreeIMU.h:201: error: 'HMC58X3' does not name a type
/Users/RobertPerez/Documents/Arduino/libraries/FreeIMU/FreeIMU.h:208: error: 'MPU60X0' does not name a type
/Users/RobertPerez/Documents/Arduino/libraries/FreeIMU/FreeIMU.h:215: error: 'MS561101BA' does not name a type
I need this code to compile to my arduino so I can interface it with the other part of the project using "Processing". Any input would be greatly appreciated, thanks!