mytutorialcafe.com Forum Index mytutorialcafe.com
Discussion All About Microcontroller and Computer Interfacing
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't drive stepper motor on P0 AT89S51

 
Post new topic   Reply to topic    mytutorialcafe.com Forum Index -> Interfacing with Microcontroller
View previous topic :: View next topic  
Author Message
cak kalim



Joined: 05 May 2006
Posts: 5

PostPosted: Fri May 05, 2006 12:47 am    Post subject: Can't drive stepper motor on P0 AT89S51 Reply with quote

Ive just try the tutorial on http://mytutorialcafe.com/Microcontroller%20Application%20Motor%20Stepper.htm
I try to drive the motor using P0, but never work.
When I attach led tester on P0 it works fine (the led rotate like the source code)

Then I try to change it to P1 and works fine.

Anyone know why?
Back to top
View user's profile Send private message
myturf
Site Admin


Joined: 01 Jan 1970
Posts: 10

PostPosted: Fri May 05, 2006 4:39 am    Post subject: re: motor stepper Reply with quote

In my opinion these port doesn't have pull up resistor, you may use this port if you put resistor up ( 10k) to Vcc, and don't forget to add diode betwen emitor and Vcc.

I hope this answer can help you.
Back to top
View user's profile Send private message
cak kalim



Joined: 05 May 2006
Posts: 5

PostPosted: Tue May 09, 2006 2:10 am    Post subject: Reply with quote

Thanks for the tips. Yesterday I tried it and works. Now I add pull up resistor for other ports.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mytutorialcafe.com Forum Index -> Interfacing with Microcontroller All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group