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 CenterFile Exchange에서 MATLAB 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