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

5 visualizzazioni (ultimi 30 giorni)
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!

Risposte (1)

Nikhil Sreekumar
Nikhil Sreekumar il 10 Gen 2017
Modificato: Nikhil Sreekumar il 10 Gen 2017

Categorie

Scopri di più su Instrument Control Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by