I have 10 DOF IMU with L3GD20 gyroscope. I can't read sensor output with Adafruit_L3GD20_U library ( https://github.com/adafruit/Adafruit_L3GD20_U).
Code stucks in the following part:
Code: Select all
if(!gyro.begin())
{
/* There was a problem detecting the L3GD20 ... check your connections */
Serial.print("Ooops, no L3GD20 detected ... Check your wiring or I2C ADDR!");
while(1);
}
When I remove this part, output becomes as below:
Gyroscope Test
------------------------------------
Sensor: L3GD20
Driver Ver: 1
Unique ID: 20
Max Value: 0.00 rad/s
Min Value: 0.00 rad/s
Resolution: 0.00 rad/s
------------------------------------
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
X: -0.02 Y: -0.02 Z: -0.02 rad/s
Please note that it is working with other codes that i found in the internet.
Waiting your support.