Can I use an arduino motor shield with Adafruit motorshield library

5 visualizzazioni (ultimi 30 giorni)
I see examples for controlling stepper motors with an adafruit motor shield. My students have arduino motor shields. I am wondering if they are compatible, it not what codes need to be changed. I am not seeing stepper motor examples with arduino motor shields.
Most blogs I have seen call for using a stepper motor driver vs. the motor shields. I have one, but the motor operates very slowly using Matlab and I'd like to speed that up.

Risposte (1)

Gael Goron
Gael Goron il 17 Mag 2018
Hi Gregory,
Generally speaking, you will need driver blocks in Simulink to be able to interface with the motor shields. At the moment Mathworks does not provide such driver blocks for arduino motor shields.
People have created custom driver blocks in order to interface with such shields. A good example is the following file exchange: https://www.mathworks.com/matlabcentral/fileexchange/46133-motor-shields
This includes in particular Simulink blocks to interface with Arduino Motor Shield Rev3.
I also found this file exchange example which is using the above driver block to power window control with Arduino Motor Shield Rev 3:
This seems to be a good place to start for you.

Community

Più risposte nel  Power Electronics Control

Categorie

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

Prodotti


Release

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by