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
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.
i m using L297 but nothing is mentioned about clock then should i go for stepper motor clocks or anything else?????
If you can't give an adequate specification (or, in fact, any specification at all) of what you require, how can anyone help you?!
As already noted, Mind-reading doesn't work well across the internet!
i sayed what i need,,, i need simulator of motor in code
why you think it is dificullt?????
have yo ugot code or pretend to anoy me
What part do you not understand?
Simulation of what type of motor.
Motor simulator behaving how? Graphical front-end showing a rotor stepping? LCD display showing current step? Other alternative?
Simulator interfacing how with microprocessor? Or simulator interfacing with the uVision IDE using DLL interface? Other interface?
In short, you have not sayed [sic] anything about what you would like. However, you have implied that you want a magic fix for an unknown problem that you work very hard with, and that your boss expects you (since there is no budget for sub-contractors) to solve during the past weekend.
But then again, if you don't think it is difficult - why don't you just write the code? Especially since you must know exactly what it is you are looking for.
halop,
Instead of 'working so hard', you should occasionally take a break and check your email account.
I sent you a motor simulator that I wrote yesterday. Don't know if it is what you want (I don't think YOU know what you want), but it was a genuine attempt to help.
It got bounced back with 'mailbox unavailable'!
...the demand for free work, or the assmption that anything useful could be provided with such a total lack of any meaningful specification!
:-0
i ve got the stupid email working now!!!!!!!!!!
send code very soon for me
pleas
i check my email and nothing there
send v soon for me
I just tried sending an email to you again. No success!
A little bit of advice for you - Get sufficient understanding of email configuration before embarking on motor simulators or anything else.
Sorry, but I really don't have the time (or patience) to continue with this.
Am i the only perosn who works hard here? and give me the code
open letter To Webster and Oxford dictionary editors:
Please add to the definition of "working hard" "asking for the job done for free by someone else"
Erik
if you dontt give me help you dont ask me for help when you need it
Well, "halop relkarv" does actually seem to be working quite hard at avoiding doing this work!
I know I have to admit to using a pseudonym, but I do wonder if "halop relkarv" is a real name. How would it be pronounced?
I just ran it through an anagram service hoping to find a possible alternative or maybe a country of origin. The closest I got was "Hark Alp Lover" or (possibly) more suitable "Ark Valor Help".
The name is quite funny - I don't think I have ever heard a name that sounds so completely reversed without being reversed.
/rep kramretsew
Don't you mean "kramretsew rep"...?
thank u all for the reply i m going through notes but i hav one doubt that if i want to generate an RPM say 70 then what all calculations should i make i m using full step motor 1.8 degee/step so to move one complete rotation 360/1.8=200 steps 70 RPM means 70 rotations = 60 sec so for 1sec = (70/60) = RPS and for 1 rotation = (60/70)sec but then how to calculate clocks from it and load it into the timer??
You have concluded 70/60 Rrevolutions/second. You have concluded 200 steps in a revolution. Obviously, you need 200*7/6 steps / second. If you have read the datasheet, you know if there is one, two or more clock pulses for each step of the motor. The documentation for your processor will then inform how you configure it to generate such a frequency.
There are examples in the C51 downloads section:
http://www.keil.com/download/list/c51.htm
The operation of the standard 8051 timers is described so-called "bible" for the 8051:
Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf
See the Data Sheet for your particular processor for any special features.
Here's some Tutorials: General 8051: www.8052.com/tuttimer.phtml 8052 extras: www.8052.com/tut8052.phtml
And, of course, the book lists: http://www.keil.com/books/8051books.asp www.8052.com/books.phtml
hello; i hav read the timers and the datasheet but for the clocks, i m asking regarding the rampup i.e. even if i want to attend the 100 RPM but i will start with 10RPm i.e. lower one in that case calculations are reqd and i m searching that for the one step how much clocks are reqd in the datasheet
i want to know how to calculate the time period reqd for the clock pin to toggle from 10RPM to 100RPM
We can not help you there.
How fast the motor can accelerate without loosing steps depends completely on motor, amount of current supplied and amount of load.
You need to check the RDF calculations; often referred to as the magalar equation set.
Trying to go too fast can have a negative effect and you can find that the extra effort results in a slowdown!
A change of speed with time is called acceleration - so try searhcing for keywords "acceleration" and "stepper motor"
eg, I got this as one of my first hits: www.embedded.com/.../56800129
NB: Strictly, acceleration is a vector, as it's the rate of change of velocity with time...
View all questions in Keil forum