Shop OBEX P1 Docs P2 Docs Learn Events
stepper motor control? - Page 2 — Parallax Forums

stepper motor control?

2»

Comments

  • neotericneoteric Posts: 144
    edited 2009-12-13 01:00
    Bergamot,
    I would find a simple Gcode program very helpful in some projects I have been working with.
  • grouchygrouchy Posts: 16
    edited 2009-12-13 04:55
    Bergamot,
    I'd like to see this too





    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Rudy's CNC Freeware·· http://www.enter.net/~schleinkofer
  • KenBashKenBash Posts: 68
    edited 2009-12-14 14:50
    I've attached my 5 Axis code. I took some time to clean off the unnecessary stuff. I haven't run this on a machine yet, but it should work.

    Yes Graham, it is interpolative , 5 axis motion.


    If this looks like a good object for the exchange, I'll post it there.

    Ken

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    " Anything worth doing... is worth overdoing. "

    ··············································· ( R.A.H. )
    ····································
  • T ChapT Chap Posts: 4,224
    edited 2009-12-14 15:16
    Here are some files Mike Green put together some years ago that were for 3 axis, 1, 1/2, 1/4, 1/16 CNC control. Some variations included encoder use where the output steps were compared with encoder count, and would stop the machine if the steps were not accurate within X steps. I used these for years until I finally replaced the controller all together. Honestly, I do not recall what was the final set of files that made up the working system, most of Mikes work is very documented though, and may help out with what you guys are doing.

    As far as ramping as Ken mentioned, that is a complex issue on CNC's. For other situations where ramping/decel is required on single or multi axis projects that wouldn't really require all moves to be precisely sync'd, I have some Spin code that works well for multi axis operation that I use on my pick and place, so that the moves are all ramped and decel'd with no regard for perfect sync. So, on cutting parts it would not work. If there is an interest I can post it separate.

    Also, I can't recall if these were for driving a stepper driver IC (step/Dir only), or if they drove prop pins for bipolar sequencing.


    I just grabbed a bunch of files and through in a zip, you would have to sort through these to make sense of it.

    Post Edited (Todd Chapman) : 12/14/2009 3:24:42 PM GMT
  • JonnyMacJonnyMac Posts: 9,226
    edited 2009-12-14 19:05
    I was working on a PASM driver for a stepper motor over the weekend and considered adding acceleration and deceleration modes -- is this a desirable feature?
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2009-12-14 19:20
    Jonny,

    It all depends what you want to do but for CNC or applications where you want high performance acceleration and deceleration are very desirable. The speeds you can achieve from stand still are much lower than those you can reach after smooth acceleration. Also stopping dead from high speed might mean lost steps and heavy loads (like a router gantry) will not appreciate it mechanically.

    Cheers,

    Graham
  • photomankcphotomankc Posts: 943
    edited 2009-12-14 19:52
    Doesn't the CNC software generally take care of ramping up and down? I can see that as an issue for a stand-alone system but a PC controlled system would have accel/decel in the output already I would think.
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2009-12-14 20:26
    This is the issue I was trying to highlight a "stepper motor object" can mean a lot of things. I always use commercial drives, I use the propeller for stand alone pulse generation, those talking about g-code interpretation do too.

    Graham
Sign In or Register to comment.