MATLAB Answers

0

Hi, I am trying to obtain accelerometer data from a GY-521 board through solely matlab, rather than using arduino code. I am a beginner to I2C and arduino, and would appreciate some help in obtaining this data. Many thanks.

Asked by Hugo Burston on 24 Aug 2019 at 20:51
Latest activity Answered by Walter Roberson
on 24 Aug 2019 at 22:16
Hi,
I am trying to obtain accelerometer data from a GY-521 board through solely matlab, rather than using arduino code. I am a beginner to I2C and arduino, and am strugging to find much information on matlab code used to read the data. Any help would be appreciated.
Many thanks.

  0 Comments

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 24 Aug 2019 at 22:16

This is not typically possible. Most systems do not have i2c connectors directly available.
MS Windows does support the possibility of display boards having i2c connections, and defines a method for accessing the devices through the miniport. I do not know if matlab has any direct support for this.
There are i2c to usb adapters available. I have not investigated to see how you would use them.
There are i2c PCI interface boards. It appears that matlab supports the Total Phase Aardvark and an NI interface board with the Instrument Control Toolbox https://www.mathworks.com/help/instrument/i2c-communication.html available

  0 Comments

Sign in to comment.