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

5 views (last 30 days)
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!

Answers (1)

Nikhil Sreekumar
Nikhil Sreekumar on 10 Jan 2017
Edited: Nikhil Sreekumar on 10 Jan 2017

Categories

Find more on Instrument Control Toolbox 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!