How to communicate to a USB Port to read data? (MPU6050)

3 views (last 30 days)
Hello!
I'm currently trying to conect to a teensy 3.2 loaded with code that configures a MPU6050 to find the gforce, temperature and gyroscopic information from the sensor at any given moment. I can easily use the serial monitor in the arduino IDE to monitor this data and can even use the built in plotter to see gyroscopic data; HOWEVER, I would like to read this data through matlab and save it as a matrix with respect to time to later interpret into graphical data that can easily be manipulated.
I cannot even begin to understand how to interpret specifically gforce data from any of the other data let alone how to connect to the com's port and interface with the device.
I'm really looking for help with how to retrieve the serial data from a usb port and how to save it as a matrix?
NOTE : This device IS NOT an arduino or Atmel product and CANNOT utilize the abundent arduino based code/functions/add-ons.

Answers (0)

Categories

Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!