Discussion in "Hardware" started by    Sahar    Jun 13, 2007.
Wed Jun 13 2007, 07:19 PM
1.I dont know how to find which wire in my stepper motor belongs to which coil? I dont have any data sheet unfortunately:(
2.How can I run a 1A motor with L293D?Or pleas let me know if you have any other way ?
Thu Jun 14 2007, 08:54 AM
ok sorry for late reply, was kind of busy

1) usually you have 5 wires in the stepper motor, one is for common and all other for coil, or if you have 6 wire motor then you have 2 wires common and rest four are coil wires.
In 5 wire, usually red color wire is common and rest other are coil. and in 6 wire, you will be having 2 wires of same color those are common wires.
Now procedure for finding the coil 1, coil 2, coil 3 and coil 4 is same for 6 wire and 5 wire stepper motor.
here is the procedure..
As your motor is 12V so, connect 12V supply to the common wire(s) and leave all the other 4 wires open. Now take a ground wire and connect it to any of the coil wire, you will see your motor moving one step, if you did not see anything, then move your motor with hand and again connect the wire.
after you see one step move in the motor (say yellow wire), connect the wire to any of the other 3 wire, if you see your motor moving backwards (say brown wire) then that is not the correct coil because your motor must move forward in a sequence. So connect the motor to the previous wire (yellow) again to move it forward again. now connect to some other wire (say green) now you see your motor moving forward again..
so you got two coils in sequence. as i am explaining by example.. which is first yellow, second green.
now you do the same thing with rest of the wires, you get four wires in sequence so that your motor moves in one direction. this is how you find out wire for coil 1,2,3 and 4.
once you find the sequence (say Yellow, Green, Brown, White) you can program them by sending zero on each of the coil. because common is connected to +12V. so sending zero will rotate the motor.

2) Regarding how to run stepper motor with L293D, as you can see the datasheet, you have kind of 4 3-state drivers in L293D with 2 Enable, one enable is common for driver 1 and 2 second is for 3 and 4.

So now comes the connection part..
see this schematic diagram.
 Sahar like this.
Tags stepper motor with controllerhow to connect stepper motorstepper motor connection with L293DL293D
Tue Jan 27 2009, 04:30 AM
You can try investigate your stepper motor following this guide
browse this link

Get Social


Powered by e107 Forum System


Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html
Thu Jul 11 2019, 07:44 PM
@praveen123. Can you give a link to the project ?



Wed Nov 13 2019, 06:25 AM
Mon Nov 11 2019, 01:31 PM
Sun Nov 10 2019, 04:42 AM
Sat Nov 09 2019, 03:41 PM
Fri Nov 08 2019, 10:06 AM
Fri Nov 08 2019, 07:28 AM
Tue Oct 15 2019, 04:32 PM
Tue Oct 15 2019, 02:27 AM


Guests: 32, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38103
Newest member: Casmir
Forum Activity
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
I’ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...