SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By jandersh
#179415
I am trying to read from an MPU6050 using the Intel Edison and I2C board. I've successfully used the sensor with a number Arduino boards using the i2cdevlib code, but haven't been able to get the Edison to work. The sensor shows up when I check using "i2cdetect -y -r 1", but I haven't been able to get it to work in the Arduino IDE. I wanted to check and see if anyone had successfully used i2cdevlib with the Arduino IDE and Intel Edison.
By jandersh
#179693
Just to follow up on my previous post, I did finally get the i2c connection to my MPU6050 working. The problem I found was that the wire library in the Arduino IDE for the Intel Edison uses i2c6 while the sparkfun i2c board seems to connect to i2c1. I went into "i2c.c" in the Arduino IDE directory and changed the code to work with i2c1. I found the reference to the fix at https://communities.intel.com/message/253536.
User avatar
By Ross Robotics
#179698
Thanks for posting the solution. I am sure it will help someone in the future!
By sreen999
#179743
jandersh wrote:Just to follow up on my previous post, I did finally get the i2c connection to my MPU6050 working. The problem I found was that the wire library in the Arduino IDE for the Intel Edison uses i2c6 while the sparkfun i2c board seems to connect to i2c1. I went into "i2c.c" in the Arduino IDE directory and changed the code to work with i2c1. I found the reference to the fix at https://communities.intel.com/message/253536.
Hi jandersh,

What were the changes/edits you made to "i2c.c"? Could you please give the details or post the code snippet?

Thanks!
sk