Matlab fails to detect sensor

8 ビュー (過去 30 日間)
Bhavinkumar Arya
Bhavinkumar Arya 2020 年 10 月 23 日
コメント済み: Bence Bábi 2023 年 2 月 25 日
I am trying to learn sensor fusion using arduino and mpu9250 sensor.
a = arduino('COM3','Uno','Libraries','I2C');
sensorObj = mpu9250(a)
matlab detects the arduino but when i give mpu9250(a) command the output is
Expected sensor not detected. Connect the right sensor to the hardware and try again.
is there a problem with mpu9250 or there is small tweak which can fix this issue.
  11 件のコメント
Gayatri Menon
Gayatri Menon 2022 年 1 月 10 日
hey,
the above link is not working for me.
Bence Bábi
Bence Bábi 2023 年 2 月 25 日
I got this error too.
https://www.mathworks.com/help/supportpkg/arduinoio/ug/troubleshoot-sensors.html
Based on this link, the problem was solved. By replacing twi.c and twi.h, I got the real values.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by