Hey guys,
I'm trying to test my sensor here and display the data through serial connection, but I don't get any input data, just zeros. also Data isn't displayed accordingly to what the code says ..
#include <MPU9250.h>
MPU9250 IMU(Wire, 0x68);
float ax = 0;
float ay = 0;
float az = 0;
void setup() {
IMU.begin();
Serial.begin(9600);
}
void loop() {
IMU.readSensor();
ax = IMU.getAccelX_mss();
ay = IMU.getAccelY_mss();
az = IMU.getAccelZ_mss();
Serial.print(ax);
Serial.print('\t');
Serial.print(ay);
Serial.print('\t');
Serial.print(az);
delay(200);
}
What could possibly be the problem ?
