matlab to control arduino uno borard,with 3 stepper motors.

조회 수: 18 (최근 30일)
barath V
barath V 2019년 8월 21일
댓글: barath V 2019년 8월 29일
hi i want to control 3 nema-17 steppers using arduino,i want to use matlab for the coding. i used a normal cnc shield with a microstepping module a4988.
i followed the tutorial in the mathworks-arduino page,but it did not work.
error message i got was:the 'addOnShield' is not specified,something like that.
pls suggest me the what cnc shield should i use and the microstepping driver i need to use and pls provide their model number or bestbuy links.
thanks.

채택된 답변

Priyanshu Mishra
Priyanshu Mishra 2019년 8월 27일
I assume that you have already installed the hardware support package- ‘MATLAB Support Package for Arduino Hardware.”
I would suggest you use Adafruit Motor Shield V2. Adafruit Motor Shield V2 is an add-on shield that you can plug into Arduino Uno.
You can create a motorshieldv2 object using the add-on shield specified above and connect a stepper motor to the appropriate pins on the motor shield. For stepper motor connection use stepper object.
  댓글 수: 3
barath V
barath V 2019년 8월 28일
i read the documentation of shield and stepper.
is it possible to do microstepping by increasing the 'number of steps per revolution ' specified.
motor = stepper(shield,1,4000{steps per revolution},'step type','Microstep')
how to go about the hardware connections for microstepping?
barath V
barath V 2019년 8월 29일
since adafruit shield can control only 2 motors at a time,is there any other way to control 3 motors simultaneously.
for my project i need to control 3 motors.
thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by