. .
  1. #1

    This is my first post! :)

    I am planning to build a 'plotter' and wondering how the X and Y stepper motors should be controlled. If a line to be drawn, should the X and Y motors be stepped as illustrated in the drawing? If so, when a curve is drawn controlling will be same?

    Click image for larger version. 

Name:	control.JPG 
Views:	423 
Size:	7.7 KB 
ID:	9065

    Red line is the line to be drawn
    Pink line is the path of the pen

    My intuition tells me that only one stepper is operated at a time. Your help would be greatly appreciated.


  2. Essentially you are right. Suggest you read

    Bresenham's line algorithm - Wikipedia, the free encyclopedia

    for the basic line-drawing approach. While this will get you started however don't underestimate the complexity of handling the real-world mechanical issues of, for example, acceleration & deceleration, unless you can accept very low drawing speeds.

    Both steppers could, and probably should, be operated at the same time to maximise smoothness of the line.

  3. The Following User Says Thank You to irving2008 For This Useful Post:

  4. #3
    You're entering the field of "XY Interpolation". I wouldn't worry at this stage about whether the XY motors step individually or at the same time - that's way down the road and when you understand how and when to step you'll find that sometimes the X leads and sometimes the Y and sometimes they'll step together. e.g. You've given an example of a 45 degree line and in that "special" case they can/will/should/may (depending on your implementation) both step together (IF you have the same "steps per" on X and Y).

    With regards circles - for example if you start at 9 o'clock and draw clockwise, Y will lead until somewhere between 10 and 11 when both Y and Y will step together for (some) period and then X will lead until somewhere between 1 and 2 etc. etc. i.e. you'll discover you're interested in "octants" (as in half quadrants).
    Last edited by stirling; 16-06-2013 at 10:17 AM.

  5. The Following User Says Thank You to stirling For This Useful Post:

  6. #4
    Thanks and I think I got a lot of work to do. :)

    Anyway ready to take the challenge and proceed. Hope you will help me whenever I am in need of help.

    "Bresenham's line algorithm" being studied at the moment... :)

    Thank you again for the guidance!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Reducing 12v DC to 0.5V DC no more than 1A draw
    By AdCNC in forum General Electronics
    Replies: 16
    Last Post: 10-07-2013, 02:01 PM
  2. circle cutting mach 3 problems help please
    By millmateuk in forum Artsoft Mach (3 & 4)
    Replies: 1
    Last Post: 13-06-2013, 06:04 AM
  3. servo control vs stepper control
    By Peter. in forum Motor Drivers & Controllers
    Replies: 24
    Last Post: 17-09-2012, 07:36 AM
  4. Cutting out a circle
    By Martin Paul in forum Machine Discussion
    Replies: 2
    Last Post: 18-04-2011, 11:58 PM
  5. Help with spindle control
    By wizzy in forum Spindles & Drive Motors
    Replies: 4
    Last Post: 11-02-2011, 11:51 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts