Shop OBEX P1 Docs P2 Docs Learn Events
new project requirement: circular interpolation — Parallax Forums

new project requirement: circular interpolation

lincolnlincoln Posts: 23
edited 2009-07-02 19:02 in General Discussion
hello,
With my side work slowing down i have time for a new project. I want to build a cnc cutting table. Basically it is a simple x y table that uses an oxy/act torch to cut pieces out of steel plate.

For the controller I have boards form a past product that was based on the senix chip . I can move the torch in state lines, rectangles and polygons but i having trouble figuring out how to cut arcs and circles. (in cnc prog it would be a G02, G03)

I'm looking to the math behind circular interpolation. Doing web searches i have found how to use built in function of other motion controller but not the underlying algorithms.

clear as mud?
thank you for your time.

Comments

  • PJMontyPJMonty Posts: 983
    edited 2009-06-26 23:41
    Lincoln,

    You want the Bresenham circle algorithm. Same guy who created the line algorithm, although according to Wikipedia, the circle algorithm is based on his work but he didn't do it. In any event, do a Google search with these terms:

    Bresenham circle

    You'll find a bunch of stuff. This is the same algorithm used by every graphics card and library on the planet, and it's designed to work in a pure integer environment.

    Thanks,
    PeterM
  • lincolnlincoln Posts: 23
    edited 2009-07-02 19:02
    Sweet thanks!
Sign In or Register to comment.