How do I use the Total Phase Aardvark I2C/SPI Host Adapter with Matlab?

6 次查看(过去 30 天)
I'd like to use the Total Phase Aardvark I2C/SPI Host Adapter to communicate with a SPI device (optical mouse sensor ADNS5020, its SPI uses the same line for MOSI and MISO = SDIO). I've been able to communicate with the ADNS5020 with SPI through Arduino but would like to communicate with it through Matlab. I've been able to connect to it, load in the aardvark.dll and aardvark.h library, change SPI parameters, etc. Problem is, SPI is tricky for me to debug until it mostly works... so I don't know why I can't talk to my device.
  • Can the Aardvark be completely controlled using only a Matlab script? (No python, etc.)
  • Has anyone got example code of successfully implementing Aardvark SPI + Matlab?
Thanks!

回答(1 个)

Nikhil Sreekumar
Nikhil Sreekumar 2017-1-10
编辑:Nikhil Sreekumar 2017-1-10

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by