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

4 次查看(过去 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.

采纳的回答

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 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by