Hi, I am trying to run stepper motor using arduino. Can i use the package with any motor shield available in the market?
4 ビュー (過去 30 日間)
古いコメントを表示
My stepper motors are connected to L298 driver. I have been able to run the stepper by sending serial data. But the top speed is very slow. But when i used stepper library only, the top speed is very decent. So my question is whether i can run the arduino i/o package for any stepper motor shield other than AF motor shield. Secondly can i access the stepper library of arduino through matlab. thank you.
1 件のコメント
moath awad
2018 年 4 月 21 日
編集済み: moath awad
2018 年 4 月 21 日
hi Abdul Can you help me know how you connected to L298 driver ?
回答 (1 件)
Rolfe Dlugy-Hegwer
2014 年 3 月 28 日
Hi Abdul. Thanks for asking.
The MATLAB Support Package for Arduino (aka ArduinoIO Package) supports both version 1 and version 2 of the Adafruit motor shields, and the standard Arduino motor shield.
The support package readme file contains the following information:
"INSTALLING THE ADAFRUIT MOTOR SHIELD LIBRARY (to be done only once):
If you want to use this package with the ADAFRUIT motor shield, (either version 1: http://learn.adafruit.com/adafruit-motor-shield or version 2: http://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino ), you need to download and install the respective adafruit motor shield library (follow instructions given in the above sites, which amount to download a zip file and unzip it into the arduino-1.X/libraries folder.
As better explained in the next step, this you will also need to upload eiter the motor_v1.pde or the motor_v2.pde sketch on the board.
NOTE that if you don't have the adafruit motor shield and you don't plan to use it, you might also SKIP THIS STEP.
Also note that the "official" Arduino (not Adafruit) motor shield: (<http://arduino.cc/it/Main/ArduinoMotorShieldR3>) does not require any additional library, works fine with the chipkit32 boards, and can be used with this package right away. Therefore if you plan to use the official motor shield then you can safely skip this step."
I hope that helps.
Rolfe
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!