I am trying to use BNO055 accelerometer and trying to integrate it with MATLAB. Since there is no library for this sensor in MATLAB, I am trying to build the code myself.
I established the I2C connection with the sensor and started to read the data for few readings and got a constant 7 numbers for every reading despite of moving the accelerometer up and down i.e. a column of [64416, 3890, 785, 21 ,0, 0, 0]. In the data sheet, there is a conversion saying that 1LSB = 0.01 m/s2. Now, I have 2 questions:
a. Why isn't the reading changing despite of the movement in accelerometer?
b. What does this column represent and how to convert it to the useful readings of acceleration? Ihave seen something written in the data sheet that it gives the data in 7 bit. Are these numbers 7-bit data..?
a = arduino('/dev/cu.usbmodem14101','Mega2560','Libraries','I2C');
addrs = scanI2CBus(a);
bno = i2cdev(a, '0x28');
write(bno, 0, 'uint16');
data(:,k) = read(bno,7, 'uint16');