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 control

Discussion in '8051/8951' started by atif123, Jan 30, 2013.

  1. atif123

    atif123 Member

    Joined:
    Aug 7, 2009
    Messages:
    59
    Likes:
    0
    hi all . i want to control stepper motor . control with micro controllar 89c51 . bidirtectnal from to switchs . i need c code . on keil software . plz send c code with hex as early as posible. thanks all
     
  2. panic mode

    panic mode Well-Known Member

    Joined:
    Nov 8, 2003
    Messages:
    1,637
    Likes:
    38
    Location:
    mississauga
  3. remon7

    remon7 Active Member

    Joined:
    Aug 3, 2013
    Messages:
    122
    Likes:
    55
    Location:
    Malaysia
    Hi,
    I have used this stepper motor control c code recently.

    #include<reg52.h>
    void main(2)
    {
    while(2)
    { void delay (int);
    P1=0xCC;
    delay(2);
    P1=0x66;
    delay(2);
    P1=0x33;
    delay(2);
    P1=0x99;
    delay(2);
    }
    }
    void delay(int b)
    {
    unsigned int x,y,z;
    for(x=0;x<10;x+++)
    for(y=0;y<a;a+++);
    }


    <<<<*>>>>
    THanks
     

Share This Page