How to connect Arduino to Matlab in order to read IMU data

조회 수: 6 (최근 30일)
islam dib
islam dib 2020년 12월 3일
답변: Walter Roberson 2022년 6월 19일
Hello everyone,
I have an ARDUINO UNO which is connected with an IMU MPU6050. Data are showen in the serial monitor of the Arduino IDE (data are the roll, pitch and yaw angles). I want to read this data using matlab in order to plot them ans simulate a car 3D motion in real time. I don't want to use a SD card to store data then plot them after.
How can I do that?
PS: Im using matlab 2013b
  댓글 수: 1
M
M 2022년 6월 19일
Hi @islam dib, I working now in something similer but different sensor type, Did you find the solution of your question?

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

답변 (1개)

Walter Roberson
Walter Roberson 2022년 6월 19일
In that release you would use serial() to connect to the COM port, fopen(), and then start fscanf() to get numeric values.
In newer releases there are additional options to read from standard IMU

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by