Reply To: BerryIMU and Matlab

Home Forums Forums Technical Support for BerryIMU BerryIMU and Matlab Reply To: BerryIMU and Matlab

#6141
Mark Williams
Keymaster

When you pass 00110000, dis Matlab seeing this as a binary value or a decimal? E.g. one hundred and then thousand.

What about if you try a decimal value when enabling the sensor?

00001111 = 15
00110000 = 48

writeGYR(IMU, hex2dec(’20’), 15);
writeGYR(IMU, hex2dec(’21’), 48 );

One byte is read from High register
One byte is read from Low register
Then they are combined, into a 16 bit signed value, MSB for the sign and then 15 bits for the value.

Mark --OzzMaker.com --

Blip, blop, bloop…