Community
cancel
Showing results for 
Search instead for 
Did you mean: 
LSous2
Beginner
1,140 Views

Intel Curie freezes when getting Acc and Gyro data

Jump to solution

Bought 2 recent Intel Curie to transmit Acc and Gyro data over BLE and it freezes every time after a few minutes.

Even using RawImuDataSerial arduino examples.

Did a little search and it seems it has a problem over I2C communication. What is going on?

0 Kudos
1 Solution
TIQ
Beginner
60 Views

There can be a sync problem, avoid using this function:

CurieIMU.readMotionSensor(aix, aiy, aiz, gix, giy, giz);

It will grab the data from the FIFO buffer for both Gyro and Accelerometer at the same time.

The problem with this is that the acquisition rates for gyro and accelerometer may be different

so this will cause problems.

Use these functions instead:

CurieIMUClass::readGyro(int &x, int &y, int &z)

and

CurieIMUClass::readAccelerometer(int &x, int &y, int &z)

Make sure you use the following functions before data acquisition:

CurieIMU.dataReady(GYRO) : this will return true if the gyro is enabled and has new data ready.

CurieIMU.dataReady(ACCEL) : this will return true if the accelerometer is enabled and has new data ready.

View solution in original post

1 Reply
TIQ
Beginner
61 Views

There can be a sync problem, avoid using this function:

CurieIMU.readMotionSensor(aix, aiy, aiz, gix, giy, giz);

It will grab the data from the FIFO buffer for both Gyro and Accelerometer at the same time.

The problem with this is that the acquisition rates for gyro and accelerometer may be different

so this will cause problems.

Use these functions instead:

CurieIMUClass::readGyro(int &x, int &y, int &z)

and

CurieIMUClass::readAccelerometer(int &x, int &y, int &z)

Make sure you use the following functions before data acquisition:

CurieIMU.dataReady(GYRO) : this will return true if the gyro is enabled and has new data ready.

CurieIMU.dataReady(ACCEL) : this will return true if the accelerometer is enabled and has new data ready.

View solution in original post

Reply