Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/10/04 15:29
Read: times


 
#66430 - RE: stepper motor control
Responding to: ???'s previous message
David rob wrote:
-------------------------------

how do i use timer interrupts to set the speed of my stepper motor to 10 rpm?


How many steps does your motor need to perform a 360degree turn? If you know that it comes down to basic maths.

If e.g. it takes 100 steps for a revolution (3.6 degr/step) then you will need 10 rpm at 100 steps per revolution: 10*100=1000 steps per minute. If you use half-steps you will need to double the amount of steps as each step will then make your motor turn 1.8 degrees...

If you want to know how many steps that is per second:
1000 steps per minute is 1000/60 steps per second (approx 17 steps/second)

at 17 steps per second, your ISR must execute 17 times per second, so your timer should trigger every 1/17 seconds or every 60/1000 seconds or every 0.06 seconds

(hope I didn't make any errors here..;-))


is it possible for me to use microstepping without any additional hardware other than the stepper motor driver uln2003


I can't. Unless you can generate a sine-wave with your controller without any extra h/w you probably can't either (unless more knowledgeable members say the contrary).


regards


Patrick




List of 41 messages in thread
TopicAuthorDate
stepper motor control            01/01/70 00:00      
   RE: stepper motor control            01/01/70 00:00      
   RE: stepper motor control            01/01/70 00:00      
      RE: stepper motor control            01/01/70 00:00      
         RE: stepper motor control            01/01/70 00:00      
            erik: stepper motor control            01/01/70 00:00      
         RE: stepper motor control            01/01/70 00:00      
            RE: stepper motor control            01/01/70 00:00      
               RE: stepper motor control            01/01/70 00:00      
                  RE: stepper motor control            01/01/70 00:00      
                     RE: stepper motor control            01/01/70 00:00      
                     RE: stepper motor control            01/01/70 00:00      
                        RE: stepper motor control            01/01/70 00:00      
                           RE: stepper motor control            01/01/70 00:00      
                              RE: stepper motor control            01/01/70 00:00      
                                 RE: stepper motor control            01/01/70 00:00      
                                    RE: stepper motor control            01/01/70 00:00      
                                       RE: stepper motor control            01/01/70 00:00      
                                       RE: stepper motor control            01/01/70 00:00      
                                       RE: stepper motor control            01/01/70 00:00      
                                          RE: stepper motor control            01/01/70 00:00      
                                 RE: stepper motor control            01/01/70 00:00      
                                    RE: stepper motor control            01/01/70 00:00      
                                       RE: stepper motor control            01/01/70 00:00      
                                          RE: stepper motor control            01/01/70 00:00      
                                       RE: stepper motor control            01/01/70 00:00      
                                          RE: stepper motor control            01/01/70 00:00      
                                          RE: stepper motor control            01/01/70 00:00      
                                             RE: stepper motor control            01/01/70 00:00      
                                                RE: stepper motor control            01/01/70 00:00      
                                                   RE: stepper motor control            01/01/70 00:00      
                                                      RE: stepper motor control            01/01/70 00:00      
                                                         RE: stepper motor control            01/01/70 00:00      
                                                            RE: stepper motor control            01/01/70 00:00      
                  A Doubt            01/01/70 00:00      
                     RE: A Doubt            01/01/70 00:00      
               RE: stepper motor control            01/01/70 00:00      
   RE: stepper motor control            01/01/70 00:00      
      Crystal accuracy- Patrick            01/01/70 00:00      
         RE: Crystal accuracy- Patrick            01/01/70 00:00      
            RE: Crystal accuracy- Patrick            01/01/70 00:00      

Back to Subject List