Track My Order
Frequently Asked Questions
International Shipping Info
Mon-Fri, 9am to 12pm and
1pm to 5pm U.S. Mountain Time:
Chat With Us
January 25, 2012
about 5 years ago
Did anybody try to use SPI interface? I am using LSM9DS0_Simple.ino sketch. I commented out the following code,
LSM9DS0 dof(MODE_I2C, LSM9DS0_G, LSM9DS0_XM);
And uncommented the follwoing code,
LSM9DS0 dof(MODE_SPI, LSM9DS0_CSG, LSM9DS0_CSXM);
It always returns 0 values. Do I need to do configuration on Edison? Any input is welcome!
I only found the library for the Sparkfun 9 DOF IMU breakout so I tried that, but it always reads the same value from this block. It turned out that the Arduino expander board is hard-coded to I2C6, while the Sparkfun board in on I2C1. However, both I2C6 and I2C1 are present on the breakout board.
This issue is discussed here,
I modified the hardware\intel\i686\variants\edison_fab_c\variant.h file and changed
This solved the problem!
I got this block from SparkFun but didn't find any library for Arduino IDE.
So I downloaded the arduino library for the following breakout. I compiled and uploaded LSM9DS0_Simple.ino to Edison and it read data back. The problem is the data doesn't change, always the same values. Any code change is needed? Any input is welcome, thanks a lot!
No public wish lists :(