I've read the example on matlab that shows how to use the I2C blocks to communicate. (matlab link given below)
The problem is that i cant get it to work with the BNO055 IMU sensor. I've changed the relevant register address and slave address.
The sequence as stated by the BNO055 datasheet is:
- Send a Start Bit
- Send the Slave Address
- Get an Ack back from the Slave
- Send the Register Address
- Get an Ack Back from the Slave
- Send the Data byte
- Get an Ack back from the Slave
- Send a Stop Bit.
