Continuously getting 5 duplicate values

Hi,
I am using mpu9250 i interfaced with arduino uno,run a sample program but i am getting 5 duplicate value each and every time how to fix this problem?. Even i attached program and the samples value. In this program i used only Gyro.

Arduino code:

#include “MPU9250.h”

// an MPU9250 object with the MPU-9250 sensor on I2C bus 0 with address 0x68
MPU9250 IMU(Wire,0x68);
int status;

void setup() {
// serial to display data
Serial.begin(115200);
while(!Serial) {}

// start communication with IMU
status = IMU.begin();
int cg = IMU.calibrateGyro();
Serial.print("Calib ");
Serial.println(cg);
if (status < 0) {
Serial.println(“IMU initialization unsuccessful”);
Serial.println(“Check IMU wiring or try cycling power”);
Serial.print("Status: ");
Serial.println(status);
while(1) {}
}
}

void loop() {

IMU.readSensor();
Serial.print(millis());
Serial.print("\t");
Serial.print(IMU.getGyroX_rads()*180/3.14, 6);
Serial.print("\t");
Serial.print(IMU.getGyroY_rads()*180/3.14,6);
Serial.print("\t");
Serial.print(IMU.getGyroZ_rads()*180/3.14,6);
Serial.print("\n");
}

Output :
here in Gyro X= X axis, Gyro Y= Y axis, Gyro Z= Z axis. and time stamp included.
|Time | Gyro X |Gyro Y |Gyro Z |
|583851|-4.747352|-8.343209|1.735908|
|583855|-4.747352|-8.343209|1.735908|
|583859|-4.747352|-8.343209|1.735908|
|583863|-4.747352|-8.343209|1.735908|
|583867|-4.747352|-8.343209|1.735908|
|583871|-4.716819|-8.389008|1.720641|
|583875|-4.716819|-8.389008|1.720641|
|583879|-4.716819|-8.389008|1.720641|
|583883|-4.716819|-8.389008|1.720641|
|583887|-4.716819|-8.389008|1.720641|
|583891|-4.663385|-8.427175|1.735908|
|583896|-4.663385|-8.427175|1.735908|
|583900|-4.663385|-8.427175|1.735908|
|583904|-4.663385|-8.427175|1.735908|
|583908|-4.663385|-8.427175|1.735908|
|583912|-4.663385|-8.488243|1.713008|
|583916|-4.663385|-8.488243|1.713008|
|583920|-4.663385|-8.488243|1.713008|
|583924|-4.663385|-8.488243|1.713008|
|583928|-4.709185|-8.503509|1.766441|
|583932|-4.709185|-8.503509|1.766441|
|583937|-4.709185|-8.503509|1.766441|
|583941|-4.709185|-8.503509|1.766441|
|583945|-4.709185|-8.503509|1.766441|
|583949|-4.793153|-8.503509|1.812242|
|583953|-4.793153|-8.503509|1.812242|
|583957|-4.793153|-8.503509|1.812242|
|583961|-4.793153|-8.503509|1.812242|
|583965|-4.793153|-8.503509|1.812242|
|583969|-4.846586|-8.366108|1.812242|
|583973|-4.846586|-8.366108|1.812242|
|583977|-4.846586|-8.366108|1.812242|
|583982|-4.846586|-8.366108|1.812242|
|583986|-4.846586|-8.366108|1.812242|
|583990|-4.861853|-8.320308|1.812242|
|583994|-4.861853|-8.320308|1.812242|
|583998|-4.861853|-8.320308|1.812242|
|584002|-4.861853|-8.320308|1.812242|
|584006|-4.861853|-8.320308|1.812242|
|584010|-4.800786|-8.274508|1.774075|
|584014|-4.800786|-8.274508|1.774075|
|584018|-4.800786|-8.274508|1.774075|
|584023|-4.800786|-8.274508|1.774075|
|584027|-4.800786|-8.274508|1.774075|
|584031|-4.777885|-8.305042|1.735908|
|584035|-4.777885|-8.305042|1.735908|
|584039|-4.777885|-8.305042|1.735908|
|584043|-4.777885|-8.305042|1.735908|
|584047|-4.777885|-8.305042|1.735908|
|584051|-4.770252|-8.343209|1.705374|
|584055|-4.770252|-8.343209|1.705374|
|584059|-4.770252|-8.343209|1.705374|
|584064|-4.770252|-8.343209|1.705374|
|584068|-4.770252|-8.343209|1.705374|
|584072|-4.686285|-8.427175|1.697741|
|584076|-4.686285|-8.427175|1.697741|
|584080|-4.686285|-8.427175|1.697741|
|584084|-4.686285|-8.427175|1.697741|
|584088|-4.686285|-8.427175|1.697741|
|584092|-4.671018|-8.503509|1.743541|
|584096|-4.671018|-8.503509|1.743541|
|584100|-4.671018|-8.503509|1.743541|
|584104|-4.671018|-8.503509|1.743541|
|584109|-4.663385|-8.549310|1.743541|
|584113|-4.663385|-8.549310|1.743541|
|584117|-4.663385|-8.549310|1.743541|
|584121|-4.663385|-8.549310|1.743541|
|584125|-4.663385|-8.549310|1.743541|
|584129|-4.793153|-8.526410|1.766441|
|584133|-4.793153|-8.526410|1.766441|
|584137|-4.793153|-8.526410|1.766441|
|584141|-4.793153|-8.526410|1.766441|
|584145|-4.793153|-8.526410|1.766441|
|584150|-4.785519|-8.480609|1.85040|

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.