Hi, I am trying to run stepper motor using arduino. Can i use the package with any motor shield available in the market?

4 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer il 28 Mar 2014
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

Community

Più risposte nel  Power Electronics Control

Categorie

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

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by