07-10-2014 12:32 PM
Hello all,
I am trying to read data from an Ivensense MPU-6050 accel/gyro sensor. Any write i2c function returns error -363011.
I don't see anything odd with the i2c communication sequence. Master start bit, 7 bit hardware address + 1 bit R/W, slave ack, 1 byte register address, slave ack, 1 byte data, slave ack,...., master stop bit.
Do the write and write/read vi's follow this protocol?
I am including my vi. I have disabled my configuration loop as writing to the sensor is not working. There is no way to read data without first writing to set the pointer to the right register.
Win 8 64-bit
myRIO 1900
Ivensense MPU-6050
07-11-2014 02:26 PM
Hello rdaxon
The error is telling us: A No Acknowledge (NAK) bit was received from the slave device after the last address transmission.
Have you checked the pull-up resistors you are implementing?
Have you seen the i2c stream in monitor (oscilloscope or PC)? Is it okay?
Is the voltage the expected?
References:
Regards
Frank R.
07-15-2014 07:28 AM
Hello Frank,
Thank you for the response. Sorry for the delay... long weekend and great weather.
I am using the myRIO built-in pull-up resistors. I think these are the correct ones since I am operating at Hi speed(400).
I will see if the SDA and SCL lines are changing voltages.
Thanks, Ray
08-05-2014 05:46 AM
hello rdaxon,
I am facing same problem. Are you able to solve that problem now????
08-05-2014 08:46 AM
I tried to use my own pull up resistors but that didn't solve the problem.
One of the unused connections in my circuit is called Vi/o(I think. I'm doing this by memory). This is there because the breakout board(by SparkFun) this chip is on separates the supply voltage into Vdd and Vi/o. Once I connected 5VDC to Vi/o as well as Vdd I was able to communicate with the device, including writing and reading to/from registers.
Hope this helps.
08-05-2014 08:47 AM
Ooops sorry,
That's 3.3 VDC not 5 VDC.
07-08-2015 06:04 PM
Hello.
I'm trying to usu myrio and the gyroscope mpu-6050 but I get the same error - 363011.
I'd like to know if you could hel pe to solve this problem. How did you wire the sensor and what's the vi you have used?
07-09-2015 01:34 PM
First, I would start a new post since this one is from last year.
Second, it looks like he didn't have Vio connected. I would verify that you do.
07-09-2015 03:14 PM
Sorry but. What you mean with Vio
07-09-2015 04:35 PM
Do you have the same breakout board for this chip? What package are you using? If you read through this post you can see that they solved this problem by supplying voltage to a pin called Vio.