Motor Stepper Example


Closed Thread
Results 1 to 40 of 135

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Question

    Quote Originally Posted by Melanie View Post
    Whilst this was written some time ago, the subject crops up every now and again, so may be useful to some folks. Written for a 4-wire Stepper Motor...

    Melanie
    Hello Mel, Everyone,

    I`d like to know how to get the code into the chip, (might sound silly), but it doesn`t seem to want to compile in any of the software.

    I`ll more than likely be using a 6 wire stepper motor, but shouldn`t matter, as there`s still only 4 to drive the coils, the other two are power wires.

    Have tried a few things, like using PortC outputs on pin 5,6,7,8 instead, that`s just by changing the portB to portC, no go either.

    Other items would be,
    9&10 for LED output, 11 for step, 12 for Direction, 13 for Enable, pins 1&2 to pull hi / low, via jumpers or 2 switch DIL component. (1on/2on, 1off/2on, 2on/1off, 1off/2off)

    Any assistance at all would be appreciated immensley.

    Thank you.

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Nozapo View Post
    Hello Mel, Everyone,

    I`d like to know how to get the code into the chip, (might sound silly), but it doesn`t seem to want to compile in any of the software.
    What version of PicBasic Pro do you have? Melanie's example from post#1 seems to compile fine over here. I tried the 16F877.

    You might also be interested in this microstepping example http://www.picbasic.co.uk/forum/cont...per-controller

    and these: http://www.picbasic.co.uk/forum/content.php?r=39
    http://www.scalerobotics.com

  3. #3
    Join Date
    Jan 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    What version of PicBasic Pro do you have? Melanie's example from post#1 seems to compile fine over here. I tried the 16F877.

    You might also be interested in this microstepping example http://www.picbasic.co.uk/forum/cont...per-controller

    and these: http://www.picbasic.co.uk/forum/content.php?r=39
    Hi Scalerobotics,
    Thanks for the other couple of links, I`ll have a look.
    One of the latest versions, but see the attachment one screen capture of BasicPro & one from Picaxe compiler and their respective messages.

    Note, I don`t have any headers etc. just copy pasted the code as is, oh, and with different port#`s, which hasn`t made any difference to the error messages.
    In any case, the 16F877 isn`t any good to me, my requirements/specs are for a 14 pin Pic.
    I`d have to reconfigure the code to suit again, so there`s Picaxe14M/2, 16F684, 16C505, 16F505, 16F676,etc, or if I`m not fussy, I can get really universal and put one of those AVR chips in if they`re easier to configure, that way both camps can enjoy (a balance in the force, perhaps ha,ha).

    Thanks again
    Attached Images Attached Images   

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


    Did you find this post helpful? Yes | No

    Default

    If you are not using Pic Basic Pro the examples from this forum will not work. Nor will they work for an AVR chip or picaxe.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Nozapo View Post
    Hello Mel, Everyone,

    Other items would be,
    9&10 for LED output, 11 for step, 12 for Direction, 13 for Enable, pins 1&2 to pull hi / low, via jumpers or 2 switch DIL component. (1on/2on, 1off/2on, 2on/1off, 1off/2off) MS1, MS2 ???

    Thank you.
    May I understand you use a dedicated driver circuit, Allegro 3967 i.e. ??? perhaps some existing satellite Module ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Jan 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    May I understand you use a dedicated driver circuit, Allegro 3967 i.e. ??? perhaps some existing satellite Module ???

    Alain
    Hello Alain,
    Not quite sure of your response, so as I understand it, I`ll respond...
    The Allegro won`t fit either,( but having a look at it, you`ve given me another idea, on which I must think on).
    Just for the following unit I have constructed, 3 separate ICs, not "networked".
    looking at a few alternatives.
    Name:  Nx3ax.jpg
Views: 12288
Size:  86.0 KB

    Thank you

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