Stepper Motor Control

 

Download Project 

 

This example project demonstrates how to control a stepper motor using CASP.

 

Target

Arduino Uno is used in this project. However, any supported micro-controller board can be used.

 

Description

A variable voltage is applied to pin A0 of the target board through a variable resistor. A stepper motor driver circuit control pins are connected to the pins-3, 5, 6, 9 of the target board as shown in the circuit diagram. A model is created to control the stepper motor speed and direction by varying the voltage at pin A0. If the voltage is more than half, the motor rotates in one direction else it rotates in opposite direction. Speed can be varied by varying amplitude of the voltage. Please go through the individual block parameters used in the model along with their documentation for better understanding.

 

Circuit Diagram

 

Model

 

References

Please go through our video tutorials, tutorial projects and CASP main documentation for getting started with CASP.