MinImu v3 declared error with Uno

Hi all,
I get below errors when I try compile my uno.
I check all libraries and updated many times from below links.
github.com/pololu/lsm303-arduino
github.com/pololu/l3g-arduino
Also program is from polulu too (MinImuToMaxArduino project)

Arduino:1.6.5 (Windows 8.1), Board:“Arduino Uno”

I2C.ino: In function ‘void Gyro_Init()’:
I2C:45: error: ‘L3G_CTRL_REG1’ was not declared in this scope
I2C:46: error: ‘L3G_CTRL_REG4’ was not declared in this scope
I2C.ino: In function ‘void Accel_Init()’:
I2C:64: error: ‘LSM303DLHC_DEVICE’ was not declared in this scope
I2C:66: error: ‘LSM303_CTRL_REG1_A’ was not declared in this scope
I2C:67: error: ‘LSM303_CTRL_REG4_A’ was not declared in this scope
I2C:72: error: ‘LSM303_CTRL_REG1_A’ was not declared in this scope
I2C:73: error: ‘LSM303_CTRL_REG4_A’ was not declared in this scope
I2C.ino: In function ‘void Compass_Init()’:
I2C:92: error: ‘LSM303_MR_REG_M’ was not declared in this scope

‘L3G_CTRL_REG1’ was not declared in this scope

Hello.

I am sorry you are having trouble using the MinIMU-9. It looks like your libraries are not properly installed into the “libraries” folder of your Arduino setup. We describe how to properly install those libraries under the “Getting Started” section of the GitHub page for each of those libraries. I have copied those instructions from the LSM303 GitHub page below:

(The process is similar for the L3G library.)

-Jon

Dear Jonathan Thank you for your reply.
But I getting below error message still.
I shown my sketchbook on attachment.

Arduino: 1.6.5 (Windows 8.1), Board: “Arduino Uno”

I2C.ino: In function ‘void Gyro_Init()’:
I2C:45: error: ‘L3G_CTRL_REG1’ was not declared in this scope
I2C:46: error: ‘L3G_CTRL_REG4’ was not declared in this scope
I2C.ino: In function ‘void Accel_Init()’:
I2C:64: error: ‘LSM303DLHC_DEVICE’ was not declared in this scope
I2C:66: error: ‘LSM303_CTRL_REG1_A’ was not declared in this scope
I2C:67: error: ‘LSM303_CTRL_REG4_A’ was not declared in this scope
I2C:72: error: ‘LSM303_CTRL_REG1_A’ was not declared in this scope
I2C:73: error: ‘LSM303_CTRL_REG4_A’ was not declared in this scope
I2C.ino: In function ‘void Compass_Init()’:
I2C:92: error: ‘LSM303_MR_REG_M’ was not declared in this scope
‘L3G_CTRL_REG1’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.


Can you post a picture that shows the contents of your LSM303 and L3G “libraries” folders? Your directories should look something like “C:\Users\jon\Documents\Arduino\libraries\LSM303”.

-Jon

Hi,
Did you solve your problem? How?

I’m having the same problem, I think maybe the versions of my libraries don’t match.

This is what is inside my libraries folders:

[code]C:\Users\DWilches>cd C:\Users\DWilches\Documents\Arduino\libraries\L3G

C:\Users\DWilches\Documents\Arduino\libraries\L3G>dir
Volume in drive C has no label.
Volume Serial Number is D6E8-320B

Directory of C:\Users\DWilches\Documents\Arduino\libraries\L3G

09/10/2015 05:06 PM .
09/10/2015 05:06 PM …
02/05/2015 06:25 PM examples
02/05/2015 06:25 PM 1,207 keywords.txt
02/05/2015 06:25 PM 6,317 L3G.cpp
02/05/2015 06:25 PM 3,507 L3G.h
3 File(s) 11,031 bytes
3 Dir(s) 23,693,287,424 bytes free

C:\Users\DWilches\Documents\Arduino\libraries>cd …\LSM303

C:\Users\DWilches\Documents\Arduino\libraries\LSM303>dir
Volume in drive C has no label.
Volume Serial Number is D6E8-320B

Directory of C:\Users\DWilches\Documents\Arduino\libraries\LSM303

07/22/2013 02:00 PM .
07/22/2013 02:00 PM …
07/22/2013 02:00 PM examples
07/22/2013 02:00 PM 2,232 keywords.txt
07/22/2013 02:00 PM 9,478 LSM303.cpp
07/22/2013 02:00 PM 5,332 LSM303.h
3 File(s) 17,042 bytes
3 Dir(s) 23,693,287,424 bytes free

[/code]

Om, and my exact output is:

I2C.ino: In function 'void Gyro_Init()': I2C:45: error: 'L3G_CTRL_REG1' was not declared in this scope I2C:46: error: 'L3G_CTRL_REG4' was not declared in this scope 'L3G_CTRL_REG1' was not declared in this scope

Hello, dwilches.

Can you try deleting your LSM303, L3G, and MinIMU9AHRS libraries, downloading the most up-to-date versions of each of those libraries, installing them into your C:\Users\DWilches\Documents\Arduino\libraries folder, and verifying that the AHRS code compiles?

-Jon