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

Rohan Kale
Rohan Kale 2021년 1월 18일
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
Christian Geister
Christian Geister 2021년 3월 17일
편집: Christian Geister 2021년 3월 17일
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
Rohan Kale
Rohan Kale 2021년 3월 23일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

제품

릴리스

R2020a

질문:

2021년 1월 17일

댓글:

2021년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by