Azzera filtri
Azzera filtri

How to control PWM servo driver for arduino from matlab?

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

Risposte (1)

Aakriti Suman
Aakriti Suman il 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.

Categorie

Scopri di più su Arduino Hardware in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by