Motor Stepper Example


Closed Thread
Results 1 to 40 of 135

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Hi astanapane, pic16f88 is more then you need to make your motor turn CW and CCW. Just connect two digital outputs plus the ground to your big easy driver and you are done. Have the pin connected to step toggling with a pause in between shorter is the delay faster the motor will run. Pull high direction pin when you want invert the rotation.

    That is all.

    Cheers

    Al.
    All progress began with an idea

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    Thanks a lot for the reply. i will give it a little bit more time for searching what i need To do.
    Actually i would like to see how i can give a single Step at a time by using pwm.
    Appreciate your time.

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


    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

  4. #4
    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.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    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

  6. #6
    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.

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


    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.

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