This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

stepper motor

i m interfacing the stepper motor with 8051 i hav all circuitry ready but i want to know how to generate the required RPM for stepper motor
EG: i want to run my motor at 60 RPM then what all calculations are required i hav taken a timer for the clock pulses but confused in the calculations
do u hav any sample program for it
i m using ic which has clocks pulse pin, i will be giving the clocks to that pin

Parents
  • If you have an IC that only requires a direction and a clock signal, then everything is easy: Just experiment!

    The datasheet for the IC will tell you how many clock pulses it needs for one step of the stepper motor.

    The datasheet for the motor will tell how many steps in one revolution.

    Now, you should have a quite good idea about how many pulses you must generate each second...

    A different issue is to figure out how fast the motor can accelerate, and if it is important that it never looses a step during the acceleration phase.

Reply
  • If you have an IC that only requires a direction and a clock signal, then everything is easy: Just experiment!

    The datasheet for the IC will tell you how many clock pulses it needs for one step of the stepper motor.

    The datasheet for the motor will tell how many steps in one revolution.

    Now, you should have a quite good idea about how many pulses you must generate each second...

    A different issue is to figure out how fast the motor can accelerate, and if it is important that it never looses a step during the acceleration phase.

Children
  • i am wanting advise from a profesional poeple.

    q is ... what are all the reasonns why a program can be bugged: ie example like what can make program go wrong.

    i have started list but is very small and need more resons.

    i need complete list so plz help now.

    thank you kind profesional person on.

  • But you have already concluded that I am an ameter (is that a member of a religion or a clan or?) so I can obviously not help you. Do you think a discussion about stepper motors will solve your school problems?

  • "i am wanting advise from a profesional poeple."

    So you go and do a really amateurish thing like posting your homework in a totally unrelated thread!

    "i need complete list so plz help now."

    How do you know my reasons aren't already on your list?
    What have you got so far?

  • i m using L297 but nothing is mentioned about clock then should i go for stepper motor clocks or anything else?????

  • "i m using L297 but nothing is mentioned about clock"

    Really?!

    Have you actually looked at the Datasheet for the L297?
    www.st.com/.../l297.htm

    The 'Description' paragraph right at the top of he 1st page says, "A feature of this device is that it requires only clock, direction, and mode input signals"

    The diagram at the foot of page 1 clearly shows a 'Clock' connection to pin 18

    The 'Clock' pin description at the foor of page 3 tells you what the 'Clock' pin does.

    etc, etc,...

    Look at ST's Applicaiton Note AN470, "The L297 Stepper Motor Controller"
    www.st.com/.../1734.pdf
    The very first diagram (Figure 1) on the very first page has a signal clearly marked 'Step Clock'

    There is also a section titled "Stepper Motor Basics" - I think you should start with that...

    You should also visit www.cs.uiowa.edu/.../

  • I need to build a steppper motor forom first prinipacels.

    Where to start in full detail please.

  • Exactly what do you need to build?

    The links above are more than enough - they are excellent!

  • Well, to build a motor from first principles you'll need some magnets, some wire, some bearings, etc...

    It's not hard to make a crude DC motor - I made one not so long ago as an experiment with my son.
    I suggest you do that for starters - then consider whether it's actually worth moving on to a stepper motor...

  • can you post the code for it??????????

  • why a long wait????????

    where is the code??????????

    i need it!!!!!!!!!!!!!!!

  • Two things:

    1) You're making no sense whatsoever. First you say you want to build a motor, now you complain nobody gives you code. Those are two completely contradictory requests. One is hardware, the other is software.

    2) Have you ever heard of the concept of "weekend"? Or the somewhat related idea of "sleep"? Do you honestly believe people should have nothing better to do with their Saturday night than doing your homework?

  • I working on projekt during weekend and need to be done by new week

    i nned simulator of motor in code for important projekt so i need code,,,,, you undesratand me??????

    Am i the only perosn who works hard here?

    can anyone give details very quickly for me

  • Google never sleeps. Google would have produced all information you needed if YOU had bothered with spending some time. The already posted links would also have supplied you with a lot of information - but would have required READING.

    This is not a forum where people are payed to answer stupid questions, and to jump whenever someone wants something! People help others FOR FREE. You make people interested in helping you by convincing us that it is a good idea to help you. Or, you do what you do: convince us that you are too whiney to deserve any help.

    In short - you are one of the few who do NOT work hard! If you want to simulate a stepper motor, the ST documents already linked should have made you a champ about the inner workings of a stepper motor. They contained almost everything but magnetic field equations and equations for static and dynamic hold forces - but then again, if you had the knowledge to understand such formulas you wouldn't need help on this forum. Most people settles for precomputed diagrams in the datasheets. Four-five hours of programming and you might have had an OpenGL graphical front-end demonstrating the step-by-step (pun intended!) operation of a stepper motor.

    Never claim that you work hard, when your hardest work seems to be requesting other people to supply you with information/finished work. It smells!

  • i nned simulator of motor in code for important projekt so i need code,,,,, you undesratand me??????

    This is the first time you so much as mentioned anything about simulation. How were people supposed to understand what you didn't bother to say? Mind-reading doesn't work all that well across the internet.

    You're finally beginning to make a little bit of sense --- but you still haven't shown the slightest hint of initiative from your end. It still looks like you're not looking for help, but for somebody to do your entire work for you.

    Have you read any of the materials that have been pointed out to you?

  • send me the code you have got to halop_relkarv157@hotmail.com

    here is my email address