How to connect Arduino to Matlab in order to read IMU data
8 views (last 30 days)
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
Walter Roberson on 19 Jun 2022
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