Drive stepper motor from DRV8825 using MATLab

Hello,

I need to drive a stepper motor from DRV8825 using MATLab-Arduino interface package.

The code that I have seen for driving stepper motors is:

% Example usage of stepper - stepper(shieldObject, portNum, StepsPerRevolution)

sm = stepper(shield,1,200)

move(sm,10)

But this one is for Adafruit shield, while I am using only drv8825.

How can I move my bipolar stepper motor with the driver I am using?

Stepper basics and simple stepper program will get you started.

I need the MATLab code to drive the stepper motor through Arduino. This one is Arduino code.

This is an Arduino forum. You could ask a moderator to move your post to the, more appropriate, Interfacing w/ Software on the Computer section.

Capri2794:
I need the MATLab code to drive the stepper motor through Arduino. This one is Arduino code.

Have you studied the links in Reply #1?

Also have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

Do they answer your question? If not please explain more clearly what you need help with.

...R