Motor Stepper Example


Closed Thread
Results 1 to 40 of 135

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Hi astanapane.

    One pulse on STEP input moves motor one step only.

    Ioannis

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Quote Originally Posted by Ioannis View Post
    Hi astanapane.

    One pulse on STEP input moves motor one step only.

    Ioannis
    Hi Ioanni

    I will do some tests on the Code and once i have some Good news i will let you Know.

    At the moment I'm on the 3d design of the model. Actually i design a Base for the stepper Motor.

    May i ask you something that might sound stupid?

    On the Motor i have it is recognised as a 1.8 degree angle.

    They do say that is a 200 step per revolution.

    If i turn the axis by hand i feel the steps but as i measured is not more that 50 steps.

    Am i right or what i try to count doesnt have to do anything corresponding to its operation and the 200 steps.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    The actual steps have nothing to do with what your are feeling turning it by hand.

    If you follow the step pulses then you will confirm the 1.8 degrees/step. With microstepping even less, but this is complicated for now.

    Ioannis

  4. #4
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    thanks for the clarification.

    i will do my tests and will upload my code.

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    The 50 detents you feel when rotating the shaft by hand comes from the 50 magnetic poles of a standard 1.8° 2-phase motor. Had it been a 0.9° 2-phase motor you would have felt 100 detents.
    Moving the rotor between two "natural resting positions" (the detents) takes 4 electrical steps (the 90° phase shifted signal you use to drive the motor). 4*50=200 steps.

    /Henrik.

  6. #6
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    That is really interesting.

    I learn from you guys everyday. Thanks a lot.

    New i only need to understand how To give a step and a direction at the same time

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Basically you don't.
    You set the direction signal high or low depending on the desired direction, then you start sending out the step-pulses. You want to make sure the direction signal is in its correct state before the step-pulse goes out. If it's not the motor might move a step in the wrong direction.

Members who have read this thread : 5

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts