This project provides speed and direction control for Industrial Grade Stepper Drivers (such as R60, Dm5566, etc.) using Simulink.
These instructions will guide you on how to run the project.
- Arduino board
- Industrial Grade Stepper Drivers (R60, Dm5566, etc.)
- Connect the direction pin to pin 2 and the pulse pin to digital pin 3 of your Arduino board. (You can change these from the S function declaration to your desired pins)
- Open the project in Simulink.
- Select your Arduino board type.
- Open the "S-Function stepper" block. Make sure "Generate wrapper TLC" is selected under build. If it is, hit "Build".
- Close the S function and return to the Simulink page.
- Click on 'Build, Deploy & Start' in Simulink.
Enjoy controlling your stepper drivers!