Adafruit BNO055 Real time plot orientation

Hello together,
for a project I would like to plot the orientations of the BNO055 sensor via an Arduino Mega directly in real time in Matlab. I have followed the Matlab instructions (https://de.mathworks.com/help/supportpkg/arduinoio/ug/read-and-plot-real-time-data-from-bno055-sensor-in-ndof-mode.html) , but unfortunately there are error messages.
When executing the connection, it always says for this part:
arduinoObj = arduino('COM3', 'Mega2560', 'Libraries', 'I2C');
bno = bno055(arduinoObj, 'OperatingMode', 'ndof');
'OperatingMode' is not a recognised parameter. For a list of valid name-value pair arguments, see the documentation
for this function.
Once you remove the operating mode, it only works sporadically. During the calibration process Matlab sometimes simply stops and gives the error message:
BNO055 Sensor is uncalibrated. Calibrate BNO055 sensor to ensure sensor returns correct data. See BNO055
documentation for steps to calibrate the sensor.
What could be the reason for this?
Thank you!

3 Comments

Hi Martin,
The bno055 constructor with the 'OperatingMode' name-value pair is introduced in R2020b. Please confirm if you are using the correct MATLAB version.
Refer to the release notes page
https://www.mathworks.com/help/supportpkg/arduinoio/release-notes.html
Hi Rohan,
I have got the same issue with the 2020b version. BNO055 ist stated as fully calibrated but still the script is interrupted by the same error message. Do you have any recomendations how to resolve this problem?
Kind regards
Hi Christian,
When you say "BNO055 ist stated as fully calibrated", I am hoping you were able to get pass through the bno055 object construction stage as mentioned in:
https://www.mathworks.com/help/supportpkg/arduinoio/ug/read-and-plot-real-time-data-from-bno055-sensor-in-ndof-mode.html
Are you specifically seeing the error message pertaining to BNO055 being uncalibrated? Is it coming up while reading data from the sensor?
Can you do a readCalibrationStatus and check which unit of the sensor module is losing the calibration when you encounter the error?
Regards.

Sign in to comment.

Answers (0)

Products

Release

R2020a

Asked:

on 17 Jan 2021

Commented:

on 23 Mar 2021

Community Treasure Hunt

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

Start Hunting!