Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] 8051 interfacing with stepper motor using uln2003

Status
Not open for further replies.
i am using uni polar stepper motor only ....

- - - Updated - - -

by using 89c51 i am interfacing with stepper motor using the driver ic ULN2003 in this i have connected like 2 inputs i have taken from uln 2003 and 4 outputs in that same IC ..................

- - - Updated - - -

any circuit was there like that.....

- - - Updated - - -

or send some suggestions give me soon.............
 
  • Like
Reactions: kewal

    kewal

    Points: 2
    Helpful Answer Positive Rating
first u decide whether u want to use 2 i/o lines or 4 i/o lines of the 8051,

if u are using the 4 i/o lines of 8051, then just connect the 4 i/o to uln and the output of uln to stepper motor, connect the common of stepper motor to 12v, use the circuit which is in my last post, the diode avoids the back emf from the stepper motor.........

if u want i have program stepper motor using 4 i/o lines
 

i didnt get

- - - Updated - - -

i am using uni polar stepper motor only ....


by using 89c51 i am interfacing with stepper motor using the driver ic ULN2003 in this i have connected like 2 inputs i have taken from uln 2003 and 4 outputs in that same IC ..................

any circuit was there like that.....



or send some suggestions give me soon.....
 

try this code
Code:
#include<reg51.h>
sfr stepper=0xA0;

void delay(unsigned int count)
{
	int i;
	for(i=0;i<count;i++);
}

void main()
{
	while(1)
	{
		stepper=0x01;
		delay(350);
		stepper=0x02;
		delay(350);
		stepper=0x04;
		delay(350);
		stepper=0x08;
		delay(350);
	}
}

with this circuit Interfacing Stepper Motor with 8051 Microcontroller using ULN2003.gif

try this one, u should get the output..........
 

i done the above circuit but i want to use 2 input lines to ULN 2003 and 4 output from also ULN 2003....untitled.JPG

- - - Updated - - -

plz see this circuit in that pin 1 and pin 2 we have to give to that 8051 like that i am taking .....or want to change anything...in that circuit

- - - Updated - - -

void main(){
while(1){
stepper = 0x03;
delay();
stepper = 0x01;
delay();
stepper = 0x00;
delay();
stepper = 0x02;
delay();
}
}


i am using this code only
.....
 

but my project is that i have to use only 2 inputs before that i completed that 4 inputs project.........can any one plz help for me...........give some suggestion to do that.........
 

I/P that can be given

B A

0 0
0 1
1 0
1 1

O/P needed

B'B A'A

0 0 0 1
0 0 1 0
0 1 0 0
1 0 0 0
 
how can i give program for dat can u plz tell me ?

- - - Updated - - -

for 8051 ........................

- - - Updated - - -

i am using 89v51RD2 microcontroller ic

- - - Updated - - -

plz tell me how can i program for that\...................
 

you can use 2x4 decoder before uln2003.
the o/p of decoder is directly given to uln2003.
then you can drive stepper motor.
 

please don't copy the same in net. you design it for your purpose.

I'don't have that circuit now.
 

so we can't do like that as i shown in my circuit ......or is it possible to do in any other way....
 
Last edited:

which Power supply you've given to both circuit (controller & stepper)
As you can do it with software and doing the same in hardware then the problem can be of Current which you're giving to motor &
do you've connected all the ground of the circuit.
you need to analyze your hardware.
or to check the code; check the o/p pulses of controller at osci.
 

9v power supply i had given.....and i had a doubt on my code .......i had no reference to ask anyone so please help me to do this project ...........
 

check this url
**broken link removed**
 

hi everyone i attached my circuit before in this so please see that and tell ........we can do that project or not...............
 

Dont use transistor. Give uln drive pin directly to microcontroller pin.
 

we can do that project or not

yes you can do this project.
internetuser2k12 has already solved the problem in 28th comment.
You just need to program it.
have 2 switches as i/p at 8051.
total 4 possibilities (combination) & 4 o/p. So you'll get response for every position of switches.

Now fix your way and do post your method so that other can help to go at next step.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top