587,003 active members*
3,028 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2005
    Posts
    1436

    Roller cam coding

    I'm not sure if this is the best place to ask, but...
    I'm running diy 3 axis using ubuntu 8.04/EMC2, and I want to machine some nylon roller cams.
    Does anyone know of an open source ( ie free !) piece of software that will help in simplifying the process of going from a specification to g-code ?
    I'm aware of Inkscape's G-code tools, but I was thinking more along the lines of entering radius, and angle of start and finish, rather than drawing it out first, then having possible problems getting the path interpreted correctly.
    John
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.

  2. #2
    Join Date
    Sep 2004
    Posts
    149
    John,
    Could you post a pic of what you are needing? I'm just curious.
    I could have a go of it with HeeksCAD and the python scripting inside it and then show you how I would do it.

    Thanks,
    Dan

  3. #3
    Join Date
    Jun 2005
    Posts
    1436
    Hi Dan.
    I'm running this same query on linuxcnc forum, but I'm happy to see other ways it might be done.
    At the moment I'm looking at a complete re-build, adding rollers to the levers, and making the cams out of 3mm nylon, but I'll post my cam shapes for a start.
    I also added a photo of the current build laid out.
    The right hand assembly turns over and drops onto the left group.
    The solenoid pulls the pawl, which is mounted in line with the separator layer, the transparent section below.
    The left hand group have 25 teeth/lobes, and the right hand set has 24, so that with one pulse every 6 seconds, it would take an hour for the stepping pattern to repeat.
    John
    Attached Thumbnails Attached Thumbnails cam mechanism 1.jpg  
    Attached Files Attached Files
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.

  4. #4
    Join Date
    Sep 2004
    Posts
    149
    Ok, I opened the dxf. It appears to be a closed profile made up of small line segments.
    What approach are you taking to get this far?
    What kind of approach would you like to try to automate the generation of these? Could a formula or algorithm be used?
    Maybe define the rules needed for a functional part first- then come up with an algorithm/function for generating these lobes.
    I could see setting up a function in python to generate radius' that are tangent to each other- with some randomness.
    Dan

  5. #5
    Join Date
    Jun 2005
    Posts
    1436
    Hi Dan, and thanks for your interest.
    The project is to add a random eye movement to a large model chameleon that my daughter is building.
    The idea is to use a single solenoid to drive two cams, each at a slightly different rate, and two followers on each to provide x and y movement. By crossing over the output from the two cams, I can acheive a pattern of movement that takes an hour to repeat on a 6 second pulse.
    I was hoping that the script to do something like producing a cam profile from entering data into a table, rather than draw/convert to code, might already exist.
    What you have suggested as an approach would certainly get to the end result, but as my current project hardly justifies adding the development time to the practical problems of the build that I'm already encountering, I'll leave it as an open suggestion that such a piece of software might be very handy for others.
    Besides which, the present specification is "Daddy, make it work"
    Regards
    John
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.

  6. #6
    Join Date
    Sep 2004
    Posts
    149
    Quote Originally Posted by greybeard View Post
    "Daddy, make it work"
    Totally understandable. I have three kids myself and run into that one a lot.

    My idea was to use HeeksPython - a python plugin for HeeksCAD that can actually draw geometry automatically. I have been writing additional functionality for it recently and can see that we could come up with something interesting.
    I'll keep thinking about it. This type of project might be useful later on.

    Thanks,
    Dan

  7. #7
    Join Date
    Jun 2005
    Posts
    1436
    With my lack of programming skills, that's more eeeks...python !

    Please keep me posted.
    John
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.

Similar Threads

  1. Roller Circle using Mate Roller Ball -Finn Power SG5
    By Morgadoleo in forum Uncategorised MetalWorking Machines
    Replies: 0
    Last Post: 07-12-2010, 05:11 PM
  2. Algorithm for G02 / G03 coding
    By jemmyell in forum Coding
    Replies: 19
    Last Post: 08-06-2009, 11:58 PM
  3. PCB board g-coding
    By TigerPilot in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 3
    Last Post: 10-24-2008, 05:23 PM
  4. New to G-Coding
    By Larry Myers in forum G-Code Programing
    Replies: 4
    Last Post: 09-20-2007, 03:06 PM
  5. G2/G3 Coding
    By jrobson in forum G-Code Programing
    Replies: 24
    Last Post: 09-02-2006, 06:54 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
  •