Shop OBEX P1 Docs P2 Docs Learn Events
Bipolar Stepper Drive — Parallax Forums

Bipolar Stepper Drive

epinehepineh Posts: 14
edited 2006-12-11 15:45 in Propeller 1
Hi I was just wondering if anybody had plans to make or has made a bipolar stepper driver using a prop chip.

Would like to have a crack at it myself, but have a long way to go.

I tried using AVR's in the past, but found the help for begginners a little lacking.

I have found the documentation and support for the prop pretty sweet, and haven't had the feeling of banging my head against a brick wall at all.

Any help would be appreciated.

Russell.
·

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-11-05 11:18
    There has been some talk about it in this recent thread: http://forums.parallax.com/showthread.php?p=613886

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Mike CookMike Cook Posts: 829
    edited 2006-11-05 12:07
    Take a look at this article, might get you going:

    http://www.parallax.com/dl/docs/cols/nv/vol7/col/NV136.pdf

    SPIN code is here:

    http://www.parallax.com/dl/docs/cols/nv/vol7/code/NV-136-Code-Aug06.ZIP



    <EDIT>

    This is also some good info when working with steppers, page 99 of the following document:

    http://www.parallax.com/dl/docs/cols/nv/vol6/col/nv121.pdf

    Attached is my modified version on the Aug 2006 N&V article, added TV_TEXT output. Used a NEMA 17, 200 step per revolution, stepper motor (17PM-K223)·powered with a +24 VDC 3 Amp power supply.

    Driver Chip: L293D - QUADRUPLE HALF-H DRIVER
    http://rocky.digikey.com/WebLib/Texas%20Instruments/Web%20data/L293D.pdf

    Have Fun!

    </EDIT>

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike

    Post Edited (Mike Cook) : 11/5/2006 2:42:52 PM GMT
  • NewzedNewzed Posts: 2,503
    edited 2006-11-05 12:54
    I am using Propeller to run my SuperMill.· Propeller controls three stepper controllers - two IB463s and one Gecko.· Performance of the mill is superb.

    I would be happy to share the code with you if it would be of value.· Remember that my mill is an MF70 running on 3 axes.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
    ·
  • epinehepineh Posts: 14
    edited 2006-11-06 09:14
    Thanks guys, Mike that stuff is just what I need, just gotta read up, cheers.

    Sid, I would love to see some pics of your setup, and yes the code would be awesome, I am not much of a programmer (yet) but plan to get into that side of things just as soon as I can clear out those damm cobwebs from the old grey matter...

    I need to upgrade the motor drivers on my cnc router and thought the prop would be a more elegant way to do this rather than building another generic driver, also including closed loop feedback via quadrature encoders is high on the "to do" list.

    Thanks again.

    Russell.
  • NewzedNewzed Posts: 2,503
    edited 2006-11-06 13:23
    Russell, here is a copy of the program that runs my mill.· A few comments - it is not a CNC machine.· When I want to make a new board, I draw the etch paths in Expresspcb.· Each move is written down with direction· - X or Y - and the ending coordinate.· Not the distance travelled, but the ending coordinate.· Example:

    X· 400
    Y· 200
    X· 550
    X· 150

    These figures are copied into an Excel program which converts the data to a format a Stamp can read.

    This data is then processed by a Stamp program I wrote which converts the patterns to L(eft), R(ight), I(n) or O(ut).· The resultant list is copied from the debug screen and pasted into my Propeller program as a DAT list.· The DAT list is read by the Propeller and generates the instructions for the steppers.· When the Propeller reads an instruction to go L(eft) it looks at the last L(eft) position - xpos - and calculates the distance to travel to get to the new coordinate.

    You will note that in the reset method the values of Xppm and Yppm are defined.· These are the number of pulses it takes for the mill to travel 100mils.· I can adjust these value by as little as one pulse, which provides incredible accuracy.· As near as I can tell, the travel error is about .0005 mils.

    The program uses Mike Green's OS.· I did not include any of the objects used by the program.· If you would like these please let me know.· Also, if you have any questions about why I did what, I will be happy to answer them.· Please study the program carefully - it was written over a long period of time and is probably not arranged in the most logical manner, but it works beautifully.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Don't have VGA?

    Newzed@aol.com
  • epinehepineh Posts: 14
    edited 2006-11-07 10:48
    Sid, that is pretty impressive stuff, I didn't realize that you were using the prop to take care of the actual step generation. Are you a member of CNC Zone ? I bet there would be a few people there interested in what you have done.

    All I was going to do for my setup was to use the prop to get the step and direction pulses from the computer running the G-code and drive via a bridge the steppers, but have to ability to use microstepping, as this makes most motors run a lot smoother.

    Including feedback via encoders would be the ultimate goal for this, possibly with automatic error correction on the fly, an excellent poor man's servo system.

    Getting a dev. board together so I will be able to "play" with my new prop chip.

    Cheers.

    Russell.
  • Bryan K.Bryan K. Posts: 47
    edited 2006-12-11 15:24
    That sounds amazing. I am interested in controlling stepper motors not only for making my own CNC mill, but for drive systems for robotics. Thanks for the code, that should get me started.
  • BTXBTX Posts: 674
    edited 2006-12-11 15:45
    Russell.
    Take a look at this:· http://forums.parallax.com/showthread.php?p=620604
    You only need a L297 plus L293.

    Regards
    Alberto.
    ·
Sign In or Register to comment.