How to import accelerometer and gyro data from serial port to MATLAB work space?

조회 수: 6 (최근 30일)
I am working with MPU 6050 sensor which has 3 axis accelerometer and gyro sensor in it. But i don't know how to import those data directly from serial monitor to MATLAB work space. Can anyone hep me to figure out this?
Any help is appreciated.
thanks.
  댓글 수: 1
cuganna
cuganna 2014년 8월 13일
I have been working on this for quite a while too. Did you manage to make it run finally?

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

채택된 답변

Sreeram
Sreeram 2014년 8월 6일
Hi vrutang,
How are the acclerometer and gyro connected to the Arduino ?
If they are are not connected to serial you could stream the values over a serial port and then read it in MATLAB using the fopen and fread utilies with a serial object.
Hope this helps !!
Thanks,
Sreeram Mohan
  댓글 수: 1
cuganna
cuganna 2014년 8월 13일
Hi I am using the SDA and SCL ports that the arduino has, and printing the data to the serial monitor. Thanks for the tips and help.

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

추가 답변 (0개)

카테고리

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