- This topic has 1 reply, 2 voices, and was last updated 13 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › stepper motor interfacing
Hai,
I connected stepper motor to P1.0 to P1.3 and switch to P1.4 of 89s52 .First check the SW when this switch value is low it should rotate in anticlock wise direction (ROTATE MOTOR IN ANTI CLOCKWISE DIRECTION TILL SW O/P IS 1(APPROXIMATELY 20 STEPS)),and if IF SW==1 ROTATE MOTOR IN CLOCK WISE TILL SW==0 OR 1100 steps. If SW==0 rotate motor 20 steps clock wise and, and again rotate motor in anticlock wise till SW==1.Plz send the code, i have written code but it is not reading switch value.
Tank u
Hey you need to understand the concepts behind the working of the stepper motor. Read the article on stepper motor given in the site and the code is also given.