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

    Check out all the labels in your code! You have names that you never call. Example:

    goto close1 your goto will never goto label close1, since you have named it close1(reverse gripper stepper):.

    Either move the : to the correct place and rem the rest of the label or place the correct name under the goto instruction.

    Close1: ' (reverse gripper stepper)

    GOTO Close1


    or

    close1(reverse gripper stepper):

    GOTO close1(reverse gripper stepper)


    Timing is not that critical. If too long your motor will run slowly if time delay is too short your motor will not run at all.

    Cheers

    Al.
    Last edited by aratti; - 4th March 2011 at 17:53.
    All progress began with an idea

  2. #2
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    thank you for your help..i will try your suggestions...the label close1(reverse gripper stepper) , i only edit it before i post the program so that to clarify the operation of my project..actually is only close1:

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    If it still does not work after you clean up your code. You may just have one of your coils reversed on your stepper motor. This will cause the motor hum and not rotate. A schematic of your project would help.
    good luck

  4. #4
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    what's wrong when i on my circuit..the led i used as indicator for the sequence will only standby on the first step..and when i touch the positive side of the supply it start to run..i construct my circuit in the breadboard as of now for trial...

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


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    ..and when i touch the positive side of the supply it start to run
    Did you pulled up with a 10K the MCLR (reset pin) of your microcontroller?

    Why don't you post your circuit?

    Al.
    All progress began with an idea

  6. #6
    Join Date
    Mar 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    i didnt use the MCLR in my mcu...

    what is the right thing to do?
    Attached Images Attached Images  
    Last edited by thenew; - 7th March 2011 at 12:03.

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Motor Stepper Example

    You might be able to turn MCLR off but we do not know the chip you are using.
    Post your configs, complete code, and schematic so the folks here will be able to help you.
    Dave
    Always wear safety glasses while programming.

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