DavidEGrayson / minimu9-ahrs

Program for reading data from the Pololu MinIMU-9 over I²C. Works on the Raspberry Pi and other embedded ARM Linux boards.
Other
167 stars 68 forks source link

Trouble detecting sensors MinIMU-9 v5 #30

Closed amerkay closed 6 years ago

amerkay commented 6 years ago

Hi,

I'm trying to get MinIMU-9 v5 (purchase page mentions LSM6DS33 and LIS3MDL). I keep getting "no sensor detected" even though I see it when I run i2cdetect -y 1.

Am I missing something? Any help would be appreciated.

Thanks for putting up the code, this really helps!

DavidEGrayson commented 6 years ago

What is the exact command you ran and what is the full output from it?

SeanHoang2203 commented 6 years ago

Hi,

I have the same issues. this is the result from minimu9-ahrs --mode raw

Error: No magnetometer found. Error: No accelerometer found. Error: No gyro found. Error: Needed sensors are missing.

This is the results from sudo i2cdetect -y 1

    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- 3b 3c 3d -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                      

I am using Tinker Board S, TinkerOS (Debian derivatives) and AltIMU 10v5

Thanks

DavidEGrayson commented 6 years ago

You are not using the right I2C bus when you run minimu9-ahrs. Try adding the -b /dev/i2c-1 option.

SeanHoang2203 commented 6 years ago

Thanks for the reply. I tried running the command minimu9-ahrs -b /dev/i2c-1 as you say but the error still persists. What can I do now?

Thanks

DavidEGrayson commented 6 years ago

I don't see either address for the LSM6DS33 (0x6A or 0x6B) in your listing from i2cdetect. Since you are not getting the right addresses in i2cdetect, you need to troubleshoot that first. It's not a problem with minimu9-ahrs or any of the code in this repository, but the README file does have a sentence with advice on how to troubleshoot it.

amerkay commented 6 years ago

My problem turned out to be that ODROID XU4 needs a Shifter Shield to get the I2C voltages converted from 3.3V -> 1.8V.

Thanks for the offer to help anyway!