Arduino uno pinout for dm542t stepper controller
To rotate motor counter clockwise continuously one has to use this function in continuous loopĦ) rotate(int dir)- this function will rotate motor as per selected direction. To rotate motor clockwise continuously one has to use this function in continuous loopĥ) rotate_CCW() - this function will start rotating motor counter clockwise. One must enter step angle of motor for accurate controlģ) set_RPM(int rpm) – this function will set the speed of motor in RPM and motor will rotate at selected speed with up to 95%accuracyĤ) rotate_CW() - this function will start rotating motor clockwise. Means it will set the step angle (step resolution) of the motor. Means one has to specify arduino board pins that are used to drive stepper motorĢ) set_step_per_rev(intsteps)- this function will set number of steps required by stepper motor to complete 1 revolution.
ARDUINO UNO PINOUT FOR DM542T STEPPER CONTROLLER DRIVER
To use this library in your arduino sketch, just copy the bi_polar_Stepper folder into the root directory of arduino library folder like C:\arduino-1.6.7\librariesġ) bi_polar_Stepper(intpin1, int pin2, int pin3, int pin4) - this will create an instance of bi_polar_Stepper in the arduino sketch with stepper motor driver pins. At last, the circuit is suggested that uses L293D chip - widely used as H-bridge driver for DC motors as well as bi polar stepper motors. One video is also given that shows the demonstration of these examples. Some examples are given afterwards that explains how motor is controlled using this library. The brief descriptions of all library functions are given here. Accurately rotates motor to desire angle between 0 – 360o with 80-100% accuracy Accurately controls motor speed in RPM with 95% accuracyĥ. Accurately controls number of revolutions of motor like 1, 2, 3, 4.Ĥ. Controls direction of rotation of motorģ. Here are some of the features of this libraryĢ. The library is design as per the industrial motioncontrol requirements. The library has 9 different functions that can be used to rotate and control motor as per the requirements. So, here I present bipolar stepper motor library in Arduino for all bipolar type stepper motors. So I have decided to develop another arduino library to control bipolar type stepper motor But this library cannot control bipolar type stepper motor. As we know the stepper motor may be bipolar type also. But it was for only unipolar type stepper motors. It perfectly controls speed, direction, number of revolutions, motor angle etc all the parameters of unipolar type stepper motors. Previously, I have provided an Arduino library for unipolar type stepper motors.