Open michaelcheng1991 opened 9 years ago
Someone's thinking and working process https://advancedcontrolsystems.wordpress.com/2014/11/18/programming-arduino-mega-2560-and-9dof-razor-imu/
that shit works gives me streams of reading of ypr, now i have to think of a way to get angular velocity, acceleration individually. that's the next step
with mega use this code http://robotics.stackexchange.com/questions/1864/razor-imu-arduino-interfacing
connection with mbed https://developer.mbed.org/users/aberk/notebook/sparkfun-9dof-razor-imu-wahrs/
this is gold!!!!!!!!!!!!!! https://advancedcontrolsystems.wordpress.com/category/arduino/arduino-mega-2560-r3-and-sparkfun-9dof-razor-imu/
define BUFF_SIZE 40
char buffer[BUFF_SIZE];
void setup(){ Serial.begin(57600); Serial1.begin(57600); Serial.println(“Starting Communication with Razor IMU”); }
void loop() {
int i = 0; while(Serial1.available()) { buffer[i++] = Serial1.read(); if(i == BUFF_SIZE) break; }
for(int j = 0; j < i; j++) { Serial.print(buffer[j]); }
}
Note that the current configuration is as follows: Arduino Mega 9DOF Razor IMU GND ——————- GND 3.3V —————– 3.3V RX1 ——————- TX TX1 ——————- RX