Cheap Dual Stepper Driver!
Hello everyone!, today i would like to tell you how to make cheap, dual stepper driver!
I hope you enjoy this project for nice robotics project!
Visit my project blog below:
Recognizing Your Stepper Motor!
A stepper motor contains average 4 to make a lot of different direction. It also has 5, 6, even 8 wires!
for this project, we need the 5 wires stepper motor. for another wires(ex: 8) wait for the update!
you also can connect the 6 wires stepper by connecting the common wires as 1 common
Recognize your stepper wires with knowing the common(1 wire usually -) and the coils(4 wires). look the stepper wires colors above!
Make the PCB!
The most important of this project is make the PCB artwork.
You need the Circuit Wizard software, download below:
http://do-ityourself-project.blogspot.com/2015/02/...
For the data, download below:
http://www.4shared.com/file/kknFqK_Xba/ULN2003_Ste...
You also need the components below:
- ULN2003 or ULN 2004
- Connector
that's all that we need!
Connecting Your Stepper Wires!
Connect your stepper wires to your cheap driver!
When you had finished the steps before connect the + and - to your battery, because if you connect your power to arduino it will not enough power!.
and connect your connector(the nail connector) to arduino 1 until 7 pins until it fits in arduino(look the picture).
Arduino Code and Test Your Stepper Motor!
Copy those code below to your arduino software:
/* Stepper Copal
* ------------- * * Program to drive a stepper motor coming from a 5'25 disk drive * according to the documentation I found, this stepper: "[...] motor * made by Copal Electronics, with 1.8 degrees per step and 96 ohms * per winding, with center taps brought out to separate leads [...]" * [http://www.cs.uiowa.edu/~jones/step/example.html] * * It is a unipolar stepper motor with 5 wires: * * - red: power connector, I have it at 5V and works fine * - orange and black: coil 1 * - brown and yellow: coil 2 * * (cleft) 2005 DojoDave for K3 * http://www.0j0.org | http://www.0j0.org * * @author: David Cuartielles * @date: 20 Oct. 2005 */
int motorPin1 = 0;
int motorPin2 = 1;
int motorPin3 = 2;
int motorPin4 = 3;
int delayTime = 500;
void setup() {
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(motorPin3, OUTPUT);
pinMode(motorPin4, OUTPUT); }
void loop() {
digitalWrite(motorPin1, HIGH);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, HIGH);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, HIGH);
digitalWrite(motorPin4, LOW);
delay(delayTime);
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, HIGH);
delay(delayTime); }
Finishing
If you want to control 2 steppers, add the pins in void setup and edit the code. Maybe you can search in google etc.
for more project:
http://do-ityourself-project.blogspot.com/2015/01/...
Thanks for:
Circuit Wizard