+ Reply to Thread
Results 1 to 9 of 9

Thread: stepper motor controller using 89c51

  1. #1
    piyush_it1 Newbie
    Join Date
    Jul 2003
    Posts
    20

    Default stepper motor controller using 89c51

    i am newcomer to uc world
    I want to build a robotic arm using stepper motor and ic 8951
    Somebody tell me a basic circuit for STEPPER MOTOR CONTROLLER
    along with the coding required

    i have visited net also but most of them are with some complicated logics


  2. #2
    Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent
    Join Date
    Jan 2005
    Location
    Michigan, USA
    Posts
    2,516

    Default

    Please check out Jones on Stepper Motors on the Internet... It's become a standard primer on Stepper Motor basics...

    Good luck with your project... Regards, Mike

  3. #3
    dipal_z Newbie
    Join Date
    Jul 2005
    Location
    Bangalore, India
    Posts
    65

    Default

    It's not at all complicated, just connect some high current drivers like ULN2003 or our own high power transistor (You might need to use darlington pair to get required gain) to any 4 port pins. The selection of the transistor depends on what type of stepper motor you are going to use and there current ratings.

  4. #4
    fsahmed Newbie
    Join Date
    Oct 2003
    Location
    khi/pk
    Posts
    140

    Default

    The code is:

    MOV A,#66H ;LOAD STEP SEQUENCE
    BACK: MOV P1,A ;ISSUE SEQUENCE TO MOTOR
    RR A ;ROTATE RIGHT CLOCKWISE
    ACALL DELAY ;WAIT
    SJMP BACK ;KEEP GOING

    DELAY
    MOV R2,#100
    H1: MOV R3,#255
    H2: DJNZ R3,H2
    DJNZ R2,H1
    RET
    .................................................. ................
    Connect p1.0,p1.1,p1.2,p1.3 to the bases of four NPN transistors with Ice rating greater than the per phase current rating of the stepper motor. If the motor is 6 wire, short the two center taps & connect them to the Vcc. MAke sure that the controller is connected to the bases with suitable curent limiting resistors, allowing just enough current to drive the transistor into saturation. Ground the emitters of all the transistors, & connect the remaining four wires to each collector. Since u dont want to go into complex logic, just keep switching the four wires from collector to collector until the motor runs
    F. S. Ahmed

  5. #5
    piyush_it1 Newbie
    Join Date
    Jul 2003
    Posts
    20

    Default

    thanks you all for your suggesstions...
    hope my project runs after implementing them.


    mike i could not understand " jones on stepper motor"
    is it some site or what... do tell me....

  6. #6
    samcheetah Newbie
    Join Date
    Dec 2003
    Location
    Pakistan
    Posts
    874

    Default

    Quote Originally Posted by piyush_it1
    thanks you all for your suggesstions...
    hope my project runs after implementing them.


    mike i could not understand " jones on stepper motor"
    is it some site or what... do tell me....
    he meant this tutorial

  7. #7
    Super Moderator kinjalgp Newbie
    Join Date
    Oct 2002
    Location
    INDIA/USA
    Posts
    1,855

    Default

    Have a look at this application note from Atmel.
    http://www.atmel.com/dyn/resources/p...ts/doc4214.pdf
    "There is no way to peace, peace is the way!"

  8. #8
    Rizvi Newbie
    Join Date
    Jun 2009
    Posts
    2

    Default

    Hello i m newbies in mc can anyone tell me about any small software to write assembley language program for 89c51.

    and i want to creat a delay one one 1hour how can i create it ...plz give me any coding for it.
    thanks

  9. #9
    srikanthsamaga Newbie
    Join Date
    May 2008
    Posts
    40

    Default

    Quote Originally Posted by Rizvi View Post
    Hello i m newbies in mc can anyone tell me about any small software to write assembley language program for 89c51.

    and i want to creat a delay one one 1hour how can i create it ...plz give me any coding for it.
    thanks
    Keil is best for writing assembly as well as c language programs for 8051 microcontrollers..

    Surely you can create 1 hr delay with nested loops and/or timers...
    shree-electronics.com - Abrreviations and microcontroller related stuff.

+ Reply to Thread

Tags for this Thread