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
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?
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.
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.
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?
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.
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.