Driving a stepper motor

Discussion in 'Embedded Systems and Microcontrollers' started by ABShah, May 21, 2011.

  1. ABShah

    Thread Starter New Member

    May 17, 2011
    9
    0
    Hi, I am working on a very simple and basic project that uses a micro controller 8051 to drive a 0.5 ampere 6 wire stepper motor with a resolution of 7.5 degrees. To drive the motor I have to use a driver UCN5804/. Can any one please help me with the schematics? I can not understand how to interface the driver IC with MC and the stepper motor. I have a very weak knowledge of electronics so please I would like someone to help with an easy schematic and a little bit understandable detail.
    I would really appreciate the help. Thanks
     
  2. R!f@@

    AAC Fanatic!

    Apr 2, 2009
    8,740
    759
    Read the data sheet of the driver, it might contain the connection diagram
     
  3. shortbus

    AAC Fanatic!

    Sep 30, 2009
    4,001
    1,512
    ABShah likes this.
  4. ABShah

    Thread Starter New Member

    May 17, 2011
    9
    0
    I have one more question. My stepper motor as mentioned earlier has 6 wires.
    What must be the power supply provided to it?

    Weather AC or DC?

    How can I make the requirement power supply on the board on which I already have a MC, crystal, power supply circuit etc.
     
  5. shortbus

    AAC Fanatic!

    Sep 30, 2009
    4,001
    1,512
    Your driver takes DC. Not knowing what the motor is being used for it's impossible to tell you what voltage to use. You will need a transformer of the correct voltage and amperage, a bridge rectifier, and a filter capacitor, to supply the driver chip.

    The supply voltage is usually 10 to 20 times the motor nameplate voltage. The chip will take up to 35VDC as a supply voltage, so it must stay below that.

    The rectifier and capacitor can be mounted on your PCB/bread board.
     
  6. ABShah

    Thread Starter New Member

    May 17, 2011
    9
    0
    I just want to run the motor thats it, I am not going to connect a load to the motor. Can any one provide me with a schematic?
     
  7. shortbus

    AAC Fanatic!

    Sep 30, 2009
    4,001
    1,512
    Page 5 of the link gives a schematic of what you need.

    You should really do some of your school homework your self! In the days you are waiting for answers, you could have had this project done if you had done some reading of your own. :(
     
  8. ABShah

    Thread Starter New Member

    May 17, 2011
    9
    0
    I am not able to get any help from the college that is why I am writing here. Please reply only if you can help. Otherwise there are thousand other threads that could also be done with "homework", All I am asking is
    HOW DO I CONNECT MY 8051 WITH UCN5804 AND WHAT SHOULD I SEND TO THE STEP INPUT. and yet no body is able to answer it. I have tried opening the same thread in other categories, but instead of getting answers it is getting closed.
    If I do not get answer after this thread I am going to assume no body I repeat NOBODY in this forum knows the answer.
     
  9. Kermit2

    AAC Fanatic!

    Feb 5, 2010
    3,766
    928
    You were already given the answer you are looking for.

    PAGE 5 of the data sheet has the information you are wanting. We will not transcribe it here for you. It is a DATASHEET for your IC, and it contains the schematic of the circuit you are asking us for. Please go to the DATASHEET and LOOK at it.
     
  10. ABShah

    Thread Starter New Member

    May 17, 2011
    9
    0
    I have read the complete data sheet and no where can i find that what should be given at the STEP INPUT pin#11, to continuously rotate the motor. That is why I am asking here.
    There is nothing written about what code to be programmed into the MICRO CONTROLLER for the rotation of stepper motor. So now you get it why am i asking on forum
     
  11. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    The link should give you a good idea about how to run a stepper motor - http://www.cs.uiowa.edu/~jones/step/

    From the progression of step commands, you should be able to write your code.
     
  12. shortbus

    AAC Fanatic!

    Sep 30, 2009
    4,001
    1,512
    In post #3 I told you that a pulse input on pin #11 is used to turn the motor. The faster the pulse frequency the faster the motor turns. Each falling pulse( 5V to 0V) of the MC will move motor one step.

    A low(0V) or High(5V) on pin #14 will change direction that motor turns. This is also in post #3.

    Page #4 explains how it moves the motor.
     
  13. shortbus

    AAC Fanatic!

    Sep 30, 2009
    4,001
    1,512
    @Beenthere- This doesn't happen very often:D But he doesn't even have to do the step routine in code. Just provide a 0V to 5V square wave to the driver chip. There are three different stepping modes built into the driver IC.
     
  14. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    A pushbutton and a couple of toggle switches would do.
     
Loading...