1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

stepper motor controller using 89c51

Discussion in '8051/8951' started by piyush_it1, Jul 11, 2005.

  1. piyush_it1

    piyush_it1 New Member

    Joined:
    Jul 24, 2003
    Messages:
    20
    Likes:
    0
    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. Mike - K8LH

    Mike - K8LH Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    3,642
    Likes:
    109
    Location:
    Michigan, USA
    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. dipal_z

    dipal_z New Member

    Joined:
    Jul 8, 2005
    Messages:
    65
    Likes:
    0
    Location:
    Bangalore, India
    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. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. fsahmed

    fsahmed New Member

    Joined:
    Oct 17, 2003
    Messages:
    140
    Likes:
    0
    Location:
    khi/pk

    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
     
  6. piyush_it1

    piyush_it1 New Member

    Joined:
    Jul 24, 2003
    Messages:
    20
    Likes:
    0
    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....
     
  7. samcheetah

    samcheetah New Member

    Joined:
    Dec 30, 2003
    Messages:
    872
    Likes:
    0
    Location:
    Pakistan
    he meant this tutorial
     
  8. kinjalgp

    kinjalgp Active Member

    Joined:
    Oct 28, 2002
    Messages:
    1,851
    Likes:
    3
    Location:
    INDIA/USA
  9. Rizvi

    Rizvi New Member

    Joined:
    Jun 19, 2009
    Messages:
    2
    Likes:
    0
    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
     
  10. srikanthsamaga

    srikanthsamaga New Member

    Joined:
    May 25, 2008
    Messages:
    97
    Likes:
    3
    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...
     
  11. Usman Ahmed

    Usman Ahmed New Member

    Joined:
    Mar 28, 2011
    Messages:
    1
    Likes:
    0
    microcontroller project

    hi dear i am new-comer in this blog, i want to make small microcontroller based project using stepper motor have you any idea?
     
  12. vip3r

    vip3r New Member

    Joined:
    Jul 18, 2006
    Messages:
    4
    Likes:
    0

Share This Page