MATLAB Answers

I am trying to communicate with BNO055 sensor connected to beaglebone through I2C protocol in Matlab. I am using the following code but it is showing output as 0 or an array of 8192 elements. How to interpret data or mistake in code?

3 views (last 30 days)
Gaurav Kumar Singh
Gaurav Kumar Singh on 13 Dec 2016
Edited: KSSV on 13 Dec 2016
bbb = beaglebone;
addr = scanI2CBus(bbb,'i2c-1');
i2csensor = i2cdev(bbb,'i2c-1',char(addr));
readRegister(i2csensor,'28')
clearvars

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!