585,702 active members*
4,389 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2017
    Posts
    5

    Smile New DIY CNC Arduino Nano+GRBL+UGS

    hi all
    im new to the cnc world... something like 6 months till now
    i have build this machine (pic 1) from scrap wood and an old industrial printer parts, orderd some step motors (pic 2) , made the shild for the step motor controllers (pic 3) , made the power sorce for 3 motors and fan from an ATX power box (pic 4)

    i made a temporery mount for a pen (pic 5) and attached a pen to the Z axis as a spindel for testing and calibrating steps to the GRBL $100 $101 $102 and since all 3 motors are same and my rods are same i have inputed the same calculation for all 3 of them.

    after i have created a G-CODE in form of a CN file on MAKERCAM and i sended to the machine via UGS
    the resolt was ok but the problem is that after it finish the job it stay on the last point it finished and not going back to the 0 , 0 , 0 point

    anyone can solve this ishu ? any tips ?
    thank you all in advance.
    V.

  2. #2
    Join Date
    Apr 2004
    Posts
    5734

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    Does your G-code contain an instruction to return to 0,0,0? If not, you can't expect it know you want it to do that.
    Andrew Werby
    Website

  3. #3
    Join Date
    Oct 2017
    Posts
    5

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    .

  4. #4
    Join Date
    Oct 2017
    Posts
    5

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    Quote Originally Posted by awerby View Post
    Does your G-code contain an instruction to return to 0,0,0? If not, you can't expect it know you want it to do that.
    well i made the g-code on makercam...
    how can i set it up over there ? it is not suposed to automatcly set to go to start point after job/cut is finished ?

  5. #5
    Join Date
    Apr 2004
    Posts
    5734

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    I'm not familiar with that program, but if it has an editable post-processor, you can add an instruction like that which will be placed at the end of any G-code it writes. I'd add a retract move to a certain height before that, though, or it will drag the pen or cutter along the surface as it returns to XY zero.
    Andrew Werby
    Website

  6. #6
    Join Date
    Oct 2017
    Posts
    5

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    Quote Originally Posted by awerby View Post
    I'm not familiar with that program, but if it has an editable post-processor, you can add an instruction like that which will be placed at the end of any G-code it writes. I'd add a retract move to a certain height before that, though, or it will drag the pen or cutter along the surface as it returns to XY zero.
    i cannot post edit the code...
    can you sujest another way to make the code ? another software ?

  7. #7
    Join Date
    Jan 2005
    Posts
    1943

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    Quote Originally Posted by gerbilovsky View Post
    i cannot post edit the code...
    can you sujest another way to make the code ? another software ?
    Grbl takes standard G-code and it most certainly can be edited. It is just a text file that can be opened with any text editor.

  8. #8
    Join Date
    Dec 2014
    Posts
    640

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    Yes...Makercam gcode will stop at the last point and raise the Z to the safety height you set. You must be careful returning to zero because X, Y and Z will all go to zero together and if there is anything in the way, like a hold down, you could break a bit. Leave the bit at the safety height and go only to X and Y zero. I believe you want to add g0 x0 y0 to the end of your gcode file. Open your gcode file in Wordpad or Notepad and you can edit it. It'll be a good learning experience.

    MakerCAM will place the commands M5 and M30 at the end of the GCode file. M5 turns the spindle off and isn't needed if you don't have spindle control. M30 resets the work coordinates and will effectively reset your zero. Remove M30 from the end of your GCode and your zero will remain in memory.

    You have a very cool little machine by the way...

  9. #9
    Join Date
    Jan 2013
    Posts
    228

    Re: New DIY CNC Arduino Nano+GRBL+UGS

    Open your g-code file and cut and paste the last 10 lines or so into your post, and we should be able to get you going.

    It would also be worthwhile to learn some G-code, there are plenty of tutorials online, and it's pretty simple to learn

Similar Threads

  1. Which pp to choose for arduino grbl?
    By CptanPanic in forum Post Processors
    Replies: 2
    Last Post: 03-08-2021, 11:05 PM
  2. Arduino/Uno/Grbl
    By Mckyjns in forum Arduino
    Replies: 2
    Last Post: 08-22-2017, 03:14 AM
  3. arduino nano with grbl
    By mrsnowie in forum Hobby Discussion
    Replies: 2
    Last Post: 01-06-2016, 06:25 AM
  4. Anyone have GRBL running on Arduino Nano?
    By hondaman900 in forum Open Source CNC Machine Designs
    Replies: 11
    Last Post: 04-20-2015, 08:10 PM
  5. Should I use LinuxCNC or grbl/arduino?
    By CptanPanic in forum LinuxCNC (formerly EMC2)
    Replies: 3
    Last Post: 04-23-2012, 07:06 PM

Tags for this Thread

Posting Permissions

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