585,761 active members*
4,080 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Arduino > Help with GBRL and Universal Gcode Sender with Arduino Hobby CNC Plotter
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2017
    Posts
    6

    Help with GBRL and Universal Gcode Sender with Arduino Hobby CNC Plotter

    Hi;

    I have built a DIY CNC plotter which I have been having problems with and started a thread here.
    I have now managed to get both the X and Y axis working using a some stepper test code which just runs the motors clockwise and anti clockwise.

    I am now working on the next step which is to send a Gcode image for printing and here in lies the next problem.

    I am a little confused with how this is supposed to work. I understand that the Arduino needs to have code running on it to receive movement commands based on the image to be printed and I need software on my Mac to interpret and send the image data over the USB port to the Arduino.

    Looking at various guides I think I need GBRL on the Arduino and Universal Gcode Sender on my Mac. After a lot of head scratching I have managed to get UGS working on my Mac but I now think my problems lay with the software on the Arduino.

    I have followed several guides but none seem to be up to date with the latest Sketch (1.8.2) and I am not sure I have the Arduino software configured correctly. It seems that the code for GBRL is all embedded and not visible but how does it know what pins I am using??

    Any help would be great

  2. #2
    Join Date
    Feb 2016
    Posts
    285

    Re: Help with GBRL and Universal Gcode Sender with Arduino Hobby CNC Plotter

    1.8.2 is the latest version of the Arduino IDE.

    You will need the last version of GRBL. Which is 1.1.

    Intructions are on the GRBL wiki:
    - Compiling: https://github.com/gnea/grbl/wiki/Compiling-Grbl
    - Flashing: https://github.com/gnea/grbl/wiki/Fl...-to-an-Arduino

    I'd try the flashing instructions first. It seems that now they have pre-compiled .hex files and you only need HexLoader to flash your Arduino.

    Once You flashed your Arduino you should see it in your UGS given that you have selected the right COM port.
    Attachment 359708

    The pinout can be found here: https://github.com/gnea/grbl/wiki/Connecting-Grbl

  3. #3
    Join Date
    Jun 2008
    Posts
    128

    Re: Help with GBRL and Universal Gcode Sender with Arduino Hobby CNC Plotter

    To drive a stepper you need a H-bridge circuit which is what your L293D are. The h-bridge requires 4 inputs that control how the power flows in the circuit.
    GRBL outputs only 2 controls, step and direction. To use this you need a stepper driver that takes step and direction and does the conversion to drive the H-bridge.
    I assume your test circuit outputs 4 lines to each motor so it does the timing that a stepper driver such as A4988 does. You could drive a system using the 4 outputs but I do not know of a software that reads gcode and outputs these steps.
    You say the original project went to a driver board,it was for these reasons. I don't know what he was using to drive the original.
    You could add a L297 to do the conversion from step to direction but it would be easier and cheaper to just buy 2 A4988 driver boards to replace the L293D. You would need to develop or find the proper circuit. See https://www.pololu.com/product/1182

    George

  4. #4
    Join Date
    Jun 2008
    Posts
    15

    Re: Help with GBRL and Universal Gcode Sender with Arduino Hobby CNC Plotter

    Johnny, I am using Arduino Uno, CNC shield v3, grbl 1.1, and grbl controller v 3.6.1.
    My plotter setup is 3 axis CD-rom steppers. I want to use a full stepper axis to lift and drop pen instead of a servo.
    grbl controller is used to connect to grbl on the Arduino.
    I have the mechanics finished to the point of 3 axis movement, but have not added the pen yet.

    Chuck

  5. #5
    Join Date
    Jan 2009
    Posts
    64

    Re: Help with GBRL and Universal Gcode Sender with Arduino Hobby CNC Plotter

    Here's a link to a YouTube vid using freeware to convert an image to a Gcode file.

    https://www.youtube.com/watch?v=8kfNAhM_NLg

Similar Threads

  1. Toolchain for gbrl?
    By dolfe in forum OpenSource Software
    Replies: 3
    Last Post: 08-18-2016, 08:56 PM
  2. Arduino Uno + CNC Shield + Nema 17 Stepper + Universal GCode Sender
    By Arduino_Uno_Dyl in forum Open Source Controller Boards
    Replies: 2
    Last Post: 03-02-2016, 04:11 PM
  3. Help with Universal Gcode Sender
    By rfresh737 in forum Laser Engraving / Cutting Machine General Topics
    Replies: 0
    Last Post: 01-27-2016, 12:17 AM
  4. Universal Gcode Sender Z Axis Help
    By rfresh737 in forum Arduino
    Replies: 0
    Last Post: 01-26-2016, 06:46 PM
  5. Universal Gcode Sender Z Axis
    By rfresh737 in forum Laser Engraving / Cutting Machine General Topics
    Replies: 0
    Last Post: 01-26-2016, 05:10 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
  •