| View previous topic :: View next topic |
| Author |
Message |
cak kalim
Joined: 05 May 2006 Posts: 5
|
Posted: Fri May 05, 2006 12:47 am Post subject: Can't drive stepper motor on P0 AT89S51 |
|
|
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 |
|
 |
myturf Site Admin
Joined: 01 Jan 1970 Posts: 10
|
Posted: Fri May 05, 2006 4:39 am Post subject: re: motor stepper |
|
|
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 |
|
 |
cak kalim
Joined: 05 May 2006 Posts: 5
|
Posted: Tue May 09, 2006 2:10 am Post subject: |
|
|
| Thanks for the tips. Yesterday I tried it and works. Now I add pull up resistor for other ports. |
|
| Back to top |
|
 |
|