Altimu-10 v3 gyro problem

Hello,

I want to use the sensor with an OpenCM9 and libMaple.
I downloaded the libraires l3g-arduino and lsm303-arduino from your github.
I updated the code to make it work with libMaple.
I can initialise the magnetometer and the accelerometer but not the gyro.
I put trace logs in bool L3G::autoDetectAddress(void) but readReg(L3G_WHO_AM_I)
contains 0x00 after each try.

Any hints ?

–
Fabien

Have you checked if the slave address is correct?

Hello.

I am sorry you are having trouble working with that gyro. Can you try manually initializing the gyro with a call that both specifies the device and SA0 state? For example, if you had the L3DG20, you could type init(L3GD20_DEVICE, L3G_SA0_HIGH).

-Jon

It’s fixed now. I found that the libMaple Wire.h was flawed.
Here are the different test with Arduino:

-----------------------------------------------------------------
LPS test
Welcome to minicom 2.6.1

OPTIONS: I18n 
Compiled on Feb 11 2012, 18:12:55.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

p: 760.00 mbar  a: 2360.59 m    t: 42.50 deg C
p: 1010.13 mbar a: 26.01 m      t: 22.92 deg C
p: 1010.06 mbar a: 26.57 m      t: 22.94 deg C
p: 1010.09 mbar a: 26.35 m      t: 23.00 deg C
p: 1010.01 mbar a: 27.04 m      t: 23.00 deg C
p: 1010.02 mbar a: 26.88 m      t: 23.01 deg C
p: 1009.95 mbar a: 27.54 m      t: 23.02 deg C
p: 1010.06 mbar a: 26.57 m      t: 23.05 deg C
p: 1009.97 mbar a: 27.37 m      t: 23.01 deg C
p: 1009.95 mbar a: 27.54 m      t: 23.03 deg C
p: 1010.00 mbar a: 27.12 m      t: 23.04 deg C
p: 1009.92 mbar a: 27.78 m      t: 23.05 deg C
p: 1009.92 mbar a: 27.76 m      t: 23.04 deg C
p: 1009.96 mbar a: 27.42 m      t: 23.04 deg C
p: 1010.00 mbar a: 27.12 m      t: 23.06 deg C
p: 1009.92 mbar a: 27.79 m      t: 23.05 deg C
p: 1009.94 mbar a: 27.59 m      t: 23.04 deg C
p: 1010.02 mbar a: 26.96 m      t: 23.08 deg C
p: 1010.03 mbar a: 26.83 m      t: 23.08 deg C
------------------------------------------------------------------
LSM test
heading
Welcome to minicom 2.6.1

OPTIONS: I18n 
Compiled on Feb 11 2012, 18:12:55.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

345.25
54.27
45.74
58.59
59.73
51.78
54.76
52.22
51.11
55.41
52.83
-------------------------------------------------------------
LSM test
Serial
Welcome to minicom 2.6.1

OPTIONS: I18n 
Compiled on Feb 11 2012, 18:12:55.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

A: -32760 32760 32760     M: 3236 235 1429
A: -13927 -6399 -4856     M: 3256 251 1434
A: -14010 -6902 -5067     M: 3259 219 1432
A: -14271 -6799 -4593     M: 3259 219 1432
A: -14098 -5901 -4713     M: 3268 220 1429
A: -14320 -6064 -4951     M: 3268 216 1418
A: -14127 -6731 -4982     M: 3268 216 1418
A: -13962 -6757 -4795     M: 3252 225 1414
A: -14589 -7145 -4437     M: 3266 237 1428
A: -14454 -6249 -4655     M: 3262 232 1425
A: -14138 -6376 -4862     M: 3262 232 1425
A: -14030 -6598 -5076     M: 3264 228 1421
A: -14247 -6413 -4683     M: 3263 232 1421
A: -14049 -6591 -4740     M: 3263 232 1421
A: -14036 -6546 -5037     M: 3265 227 1417
A: -13888 -6404 -4984     M: 3261 221 1420
A: -14287 -6158 -5020     M: 3261 221 1420
A: -14104 -6270 -5177     M: 3260 223 1416
A: -14134 -6518 -4737     M: 3260 217 1412
A: -14099 -6392 -4706     M: 3260 217 1412
A: -14160 -6435 -4742     M: 3262 221 1417
A: -14122 -6720 -4885     M: 3258 220 1419
A: -14088 -6495 -4844     M: 3258 220 1419
A: -14148 -6367 -4864     M: 3256 216 1410
-------------------------------------------------------------
L3G test
Welcome to minicom 2.6.1

OPTIONS: I18n 
Compiled on Feb 11 2012, 18:12:55.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys                                                                          
                                                                                                                 
G X: 67 Y: -122 Z: 330                                                                                           
G X: 562 Y: 159 Z: -55                                                                                           
G X: 728 Y: 437 Z: -313
G X: 742 Y: -133 Z: 124
G X: 214 Y: 696 Z: -651
G X: 1403 Y: -488 Z: -123
G X: 1131 Y: -188 Z: 1006
G X: 413 Y: 814 Z: -457
G X: 824 Y: 126 Z: 189
G X: 813 Y: 235 Z: 322
G X: 592 Y: 503 Z: -11
G X: 621 Y: 328 Z: 1
G X: 679 Y: 304 Z: 88
G X: 779 Y: 155 Z: 220
G X: 852 Y: 29 Z: 296

–
Fabien

What are those values??? Did you move the IMU??

No. I have to calibrate it :slight_smile:

–
Fabien