
Abdun Nafay
Pakistan
Asked
— Edited

I recently bought this IMU (inertial measurement unit):
http://www.amazon.com/Kootek%C2%AE-Arduino-MPU-6050-gyroscope-accelerometer/dp/B008BOPN40#productDetails
Now I want to read the values from the i2c port in C#.
Please advice.
Thanks!
http://playground.arduino.cc/Main/MPU-6050
As for the C# code, I cannot help you there as I don't know C, there may be an example in the SDK example files though, in which case just substitute the example I2C device info for that of the sensor you want to use.
Code:
and I did this sort of a thing, let me know if I did it correct:
byte[] ret = ezB_Connect1.EZB.I2C.Read(EZ_B.I2C.ReadArgsEnum.Auto, 0x68, 6);
Notice in my example that the first line requests data, and the second line reads the data.
www.botched.co.uk/pic-tutorials/mpu6050-setup-data-aquisition/
I translated the MPU6050_Test_I2C() method in the following way:
byte[] ret = ezB_Connect1.EZB.I2C.Read(EZ_B.I2C.ReadArgsEnum.Auto, 0x75, 1);
Since 0x75 is the read only register which returns 0x68. But I am getting 0xff! any help?