Borrar filtros
Borrar filtros

Can I use an arduino motor shield with Adafruit motorshield library

2 visualizaciones (últimos 30 días)
Gregory Ogden
Gregory Ogden el 15 de Mayo de 2018
Respondida: Gael Goron el 17 de Mayo de 2018
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.

Respuestas (1)

Gael Goron
Gael Goron el 17 de Mayo de 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.

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by