Welcome to Our Community

Some features disabled for guests. Register Today.

Can I add a global delay setting after servo up?

Discussion in 'DrawBot' started by jdleung, Aug 5, 2022.

  1. jdleung

    jdleung New
    Builder

    Joined:
    Jun 17, 2022
    Messages:
    5
    Likes Received:
    0
    Drawing and Gcode are created by Inkscape, it's working good except the end of lines. My drawBot uses a SG90 servo to control the pen up and down, and when the pen begins to lift up, not high enough, the next command "move" is executed at once that draws an additional trail at the end of lines.

    By now, I have to add a command "G04 P0.2" after all commands that pen being lift up.
    Is there a global delay setting for this operation?

    Sample code:
    Code:
    G01 Z-1.000000 F100.0
    G01 X112.115308 Y109.951082 Z-1.000000 F400.000000
    G01 X150.685978 Y110.289190 Z-1.000000
    G01 X129.736520 Y198.057216 Z-1.000000
    G00 Z1.000000
    G00 X130.200140 Y198.395316
    itsatest.jpeg
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    Which CAM are you using?
     
  3. jdleung

    jdleung New
    Builder

    Joined:
    Jun 17, 2022
    Messages:
    5
    Likes Received:
    0
    My plotter is a coreXY machine, using Arduino and Universal G-code sender.
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070
    See docs:software:overview [OpenBuilds Documentation]

    Ie your Hardware, Controller and Host :) but no mention of your CAM
     
  5. jdleung

    jdleung New
    Builder

    Joined:
    Jun 17, 2022
    Messages:
    5
    Likes Received:
    0
    Sorry, Peter. I'm new in CNC or Pen plotter:)

    The definition of CAM from the link you referred : software converts CAD drawings/models to machine-readable GCODE that can be sent to your CNC Controller

    Is the first sentence (Drawing and Gcode are created by Inkscape) in the first post what I need to provide?
     
  6. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,751
    Likes Received:
    4,070

    There are probably about 20 unique ways to get GCODE out of Inkscape. Various plugins inside Inkscape (some included and tonnes of 3rd party, various versions etc) or exported as SVG and handled through a proper CAM like cam.openbuilds.com, fusion, vectric, and many more etc.

    Inkscape is actually your CAD. The question remains what CAM you are using (even if you are doing it from inside inkscape it helps to know Which CAM plugin then - is that plugin even meant for Plotters? Does it support customized output etc... )

    So you will have to be a lot more specific :)

    Sounds like you don't have a proper CAM though so try OpenBuilds CAM
     
  7. jdleung

    jdleung New
    Builder

    Joined:
    Jun 17, 2022
    Messages:
    5
    Likes Received:
    0
    OK, I'm using Inkscape extension "Gcodetools" to convert the drawing to GCODE.

    The whole process is: Inkscape --> Gcodetools --> UGS --> plotter. The process is working fine except the problem mentioned in the question.

    I'm trying several softwares for in the process to find out the fittest one for me, including OpenBuilds CAM GCODE Generator.:)
     
  8. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,238
    Likes Received:
    1,815
    The SketchUcam plugin for Sketchup adds a G4 P0.1 after every servo pen movement. This forces synchronization
    with the command queue, but may not be long enough.
    You could also use the 'slow pen movement mode' which was designed for eggbots. if you move the pen too fast it breaks the egg (-: If you enter a delay it will try to move the servo slowly by outputting short movements with G4 delays between them.
    This will ensure your pen is up before moving since the last couple of moves and delays will happen after the pen leaves the paper.

    Releases · swarfer/sketchucam
     
    Gleidson Rodrigues likes this.
  9. jdleung

    jdleung New
    Builder

    Joined:
    Jun 17, 2022
    Messages:
    5
    Likes Received:
    0
    Thanks for your suggestion, David.
    The plugin inserting G4 command is similar to my manual solution, I got a message from you reply, there may not be a global setting for this. Since I haven't used Sketchup, I'll probably keep my manual approach.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice