We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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...