Reading BNO055 on MATlab

1 回表示 (過去 30 日間)
John Andrew
John Andrew 2018 年 11 月 9 日
編集済み: praneet amitabh 2019 年 2 月 3 日
Hello,
I'm currently attempting to retrieve euler angles from my BNO055 sensor which is connected to my arduino. I've managed to get MATlab to recognize the arduino connection and what it's properties are, but I'm uncertain as to how I'd approach retrieving this data. I'm able to do this using the Arduino IDE/Serial plotter, but not sure how I'd attempt this on MATlab.
I'm fairly new to MATlab, so bear with me.
Thanks a lot.
  1 件のコメント
praneet amitabh
praneet amitabh 2019 年 2 月 3 日
編集済み: praneet amitabh 2019 年 2 月 3 日
In case if you managed to read data from simulink or matlab directly, can you help me with the process regarding how you were able to read the data. In simulink, i tried using the block to read data and recorded it to a MAT file , but all the readings recorded are in a 3x1 matrix with all the element as zero.
Thanks a lot

サインインしてコメントする。

採用された回答

Madhu Govindarajan
Madhu Govindarajan 2018 年 11 月 12 日
Here is an example of how to communicate with an I2C device - https://www.mathworks.com/help/supportpkg/arduinoio/ug/measure-temperature-from-i2c-device-on-arduino-hardware.html
You can use a similar approach to communicate with your sensor. Please note - the commands will most probably be completely different for your sensor, you will have to find the appropriate commands from Manual of the sensor.
  2 件のコメント
Madhu Govindarajan
Madhu Govindarajan 2018 年 11 月 12 日
If you have Simulink, then Simulink Support package for Arduino and this library (https://www.mathworks.com/matlabcentral/fileexchange/66568-arduino_engineering_kit_hardware_support) will give you some of the values from this sensor directly into Simulink.
John Andrew
John Andrew 2018 年 11 月 14 日
編集済み: John Andrew 2018 年 11 月 14 日
Thanks for the help, I appreciate it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by