How to control PWM servo driver for arduino from matlab?

20 vues (au cours des 30 derniers jours)
Riccardo Dalla
Riccardo Dalla le 24 Sep 2019
I'm looking for libraries/support to control a PWM driver module (PCA9685) connected to arduino from Matlab. I'm not very skilled with the Arduino add on, so I don't really know how to send I2C commands to the module from matlab. To be clear what I'd like is something like this (see link), but for the PCA9685 instead of the Adafruit motor shield.https://it.mathworks.com/help/supportpkg/arduinoio/examples/control-motors-using-adafruit-motor-shield-v2.html?prodcode=ML
Thank you

Réponses (1)

Aakriti Suman
Aakriti Suman le 24 Mar 2020
I understand that you want to control the motor driver by sending the I2C commands to the module from MATLAB.
I am attaching a documentation link for your reference. It contains all the functions which are used for I2C communication.https://in.mathworks.com/help/supportpkg/arduinoio/referencelist.html?type=function&listtype=cat&category=i2c-sensors&blocktype=all&capability=&s_tid=CRUX_lftnav
I am also attaching a document which contains an example of communication of an arduino with I2C based Temperature sensor using MATLAB.

Catégories

En savoir plus sur Arduino Hardware dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by