Can I use an arduino motor shield with Adafruit motorshield library
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Gael Goron
2018-5-17
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 个评论
社区
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!