필터 지우기
필터 지우기

Simulink BNO055 with Arduino Mega 2560

조회 수: 2 (최근 30일)
SRance
SRance 2020년 9월 16일
댓글: Ege Gediksiz 2021년 3월 24일
Hi all,
I'm having trouble with the BNO055 block (from the Simulink from the Simulink Hardware Support Package for Arduino in R2020a) when used with an Arduino Mega 2560. In my case the BNO055 is mounted on the Arduino 9 Axis Motion Shield.
I've already tested this sensor in the Arduino IDE and found functional communication on 0x28 I2C with the key being to use the Wire.begin() to ensure I2C starts up, however when I used in Simulink it just doesn't work, I get -1 Status errors implying I2C communication is down.
My best guess is that the I2C begin hasn't even started when this block is used alone however with no examples of its use I am stumped.
Has anyone successfully applied this block and have any suggestions in getting it to work?
Thanks in advance!

답변 (1개)

Sebastian Pflaum
Sebastian Pflaum 2021년 3월 24일
Hi,
I am experiencing the same problem.
Who can help me?
  댓글 수: 1
Ege Gediksiz
Ege Gediksiz 2021년 3월 24일
Make sure you are runnning your model in external mode. Sensors such as this BNO055 use libraries that cannot work in normal mode.

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

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by