Hi, i'm trying to use the accelerometer MPU6050 with Intel Galileo Gen 1, but I can't to make it works. I'm using this sketch's code for make the tests
Sketch that I 'm using:
If i use it in Arduino UNO, the MPU6050 works well. But it works bad when i used this code in Intel Galileo Gen 1 .
I read that the cause of this problem is the speed of the I2C, which must be set to 400kHz in Galileo. I have changed it, but I can not make it work.
For this razon I want to ask, How can I do that MPU6050 works in Intel Galileo Gen 1?
You say that the sketch runs bad on the Galileo, but I'm not sure if you're being able to run the sketch. Are you able to compile the sketch at least? If so, what is happening when running the code? What's different when running it on the Arduino UNO? Any detail would help us.
Regarding the code, how did you change the speed of the I2C on the Galileo?
Also, you could try a Python approach to use the MPU6050, check this link https://sarweshcr.blogspot.com/2015/03/mpu6050-with-intel-galileo-python.html https://sarweshcr.blogspot.com/2015/03/mpu6050-with-intel-galileo-python.html.
Sorry for the delay.Thanks Pablo. No, I still have the same problem. Yes, the sketch that I'm using can be compiled and run on Intel Galileo. But still he fails in its execution. I show you the screenshots of proccessing running this sketch using the MPU6050, first in Arduino UNO and then in Intel Galileo.
sketch running in Intel Galileo uno with moving MPU6050 :
Thank you for providing the images. I'm wondering if you already tried the Python approach, if so, did this solve the issue? I would like to know your results using Python.
Also, did you check the I2C Jumper? The Galileo Gen 1 has an I2C jumper introduced to avoid address conflicts between external devices and the internal I2C devices. In which position do you have it?
Thanks Pablo I served much that you had recommended me of Python. But finally I decided to use sketches's Arduino in Galileo Gen 1 for use the accelerometer. I 'm partly using library MPU6050 that Jeff Rowberg developed. But fundamentally, it was necessary to I did a correct calibration and leveling process of the accelerometer to not throw the raw values as erroneous.
Thank you very much for everything