Can I use an arduino motor shield with Adafruit motorshield library
5 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Gael Goron
on 17 May 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.
0 Comments
Communities
More Answers in the Power Electronics Control
See Also
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!