Thanks Thanks:  0
Likes Likes:  0
Needs Pictures Needs Pictures:  0
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default Arduino Grbl UGS

    I have a thread running in the Woodwork Forum about a router at my local Men's Shed that uses an Arduino with Grbl as the operating CNC driver, with Universal Gcode Sender on a laptop to command the machine.

    We are having a ball getting it running and we are '' nearly there''.

    This thread is simply to see if there are any others out there that would like to swap suggestions/advice/stories/warnings etc on this combination of hardware and software, or closely related.

    Please, don't jump on me about your favourite packages or other suggestions for alternatives.
    We have what we have, and the computer side of things is not our limiting factor, at least for the moment.
    But, there are few 'interesting' things that are worthy of discussion.

    John.

  2. #2
    Join Date
    Jun 2008
    Location
    Victoria, Australia
    Age
    74
    Posts
    5,080

    Default

    Hi John,

    Do you have any pictures of the machine?

    Ray

  3. #3
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    Ray,
    Here is a photo.
    The machine is a ShapeOko, not sure what model/vintage/sub-species.
    The hardware/software combination seems to work Ok, but there are a number of deficiencies, I believe.
    The Arduino appears to be widely used in bottom-end applications because it is cheap and easy to get going.
    I have even seen references to possible applications in higher-end machines - something I would not recommend.
    Router 20Apr16 Compr.JPG
    John.

  4. #4
    Join Date
    Nov 2014
    Location
    Brisbane
    Posts
    5

    Default

    G'day John, I'm currently in the process of building a cnc plasma cutter that will use an Ardunio Uno, CNC Shield v3 running GRBL. I'm currently working on the x axis and some motor mounts for the y. It is going to be interesting how it performs especially once I introduce EMI from the plasma. I also have plans to be able to replace the torch holder with a router but I reckon my gantry will lack rigidity.


    Sent from my iPhone using Tapatalk

  5. #5
    Join Date
    Jun 2008
    Location
    Victoria, Australia
    Age
    74
    Posts
    5,080

    Default

    Quote Originally Posted by electrosteam View Post
    Ray,
    Here is a photo.
    The machine is a ShapeOko, not sure what model/vintage/sub-species.
    The hardware/software combination seems to work Ok, but there are a number of deficiencies, I believe.
    The Arduino appears to be widely used in bottom-end applications because it is cheap and easy to get going.
    I have even seen references to possible applications in higher-end machines - something I would not recommend.
    Router 20Apr16 Compr.JPG
    John.

    Motion control systems are always fun to play with, looks like you are having a good time with it.

    What's the spindle motor?

  6. #6
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    Mark,
    Before you commit wiring, make sure you have got the latest documentation.
    They swapped the pin allocations D11/D12 when they went from Grbl0.8 to 0.9j.
    Note also the pin designations start at pin 0.
    Frankly, both of these issues smack of a juvenile design approach.

    The recommendations for capacitor input filtering place an interposing home-made PCB between the Arduino and Shield, making an unwieldy stack that is very difficult to fault find.
    On our router, the CNC Shield heatsinks are borderline at best.
    The Shed builders attempted to integrate the wiring, better (in my view) to bring all the field wiring to a terminal strip at the control cubicle.
    Include an emergency stop/reset of the Arduino itself, I have not researched this yet so I cannot advise details.

    Ray,
    The motor is about 48 Vdc, more details later.
    John

  7. #7
    Join Date
    Jun 2011
    Location
    Australia east coast
    Age
    71
    Posts
    2,713

    Default

    Quote Originally Posted by electrosteam View Post
    Mark,
    Before you commit wiring, make sure you have got the latest documentation.
    They swapped the pin allocations D11/D12 when they went from Grbl0.8 to 0.9j.
    Note also the pin designations start at pin 0.
    Frankly, both of these issues smack of a juvenile design approach.
    The first, maybe, I wouldn't comment except to say that things evolve.

    The second just shows a C heritage and it's exactly what I'd expect from serious and experienced programmers. Pretty much *all* the commonly used languages above machine code are derived from C. It works, it's easy to program and zero base is much nicer to deal with than 1 base for loops and other control systems.

    PDW

  8. #8
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    PDW,
    Its not the software I complain about, it is the pin numbering.

    There are good theoretical reasons why a system of numerical analysis should start with '0', and software design follows this to good effect.

    Ever since vacuum tubes were developed in the first days of the 20th century, pin numbering has started with '1'.
    Every microprocessor PCB I have seen starts the pin numbering from '1'.
    The pins on the various chips, buses and connectors on personal computers start at '1', and it goes on.

    Labeling a pin on a PCB as 'Pin 0' just maximizes the probability that a user will get the wrong pin when numbering off.
    It is contrary to 100 years of development of complex systems with numbered physical interconnections.

    The documentation should use terminology similar to 'Data 0' on 'Pin 1'.

    As for the D11/D12 swap, consider:
    Someone elected to engineer an interface between a microprocessor and a CNC machine that left out a PWM output, knowing that virtually all equivalent commercial systems include a variable speed output for spindle control.

    I think my labeling as 'juvenile' on both issues is deserved.

    John

  9. #9
    Join Date
    Nov 2014
    Location
    Brisbane
    Posts
    5

    Default

    Quote Originally Posted by electrosteam View Post
    Mark,
    Before you commit wiring, make sure you have got the latest documentation.
    They swapped the pin allocations D11/D12 when they went from Grbl0.8 to 0.9j.
    John
    Thanks for the info John, I actually ran into that problem when connecting up the limit switches. I've managed to add a probe and E-Stop using the existing pins on the shield. All seems to work well.

    I'm only very new when it comes to electronics but have some basic understanding of them and work as Front End Web Dev so the installing/programming side of things is easier.

    I'm uploading videos on YouTube of the build and would love to hear your feedback.

    link => https://www.youtube.com/playlist?lis...L07SMppKR2X-Fr

  10. #10
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    I reported in the Woodwork Forum that we (Shed members) could not quite understand how to zero out the work and machine coordinates.
    We have our own solution that involves powering down the Arduino.

    I have done some research about this issue on the UGS development site and there have been a couple of subjects declared as bugs by the developers that are currently being improved.

    It could be that UGS V2.0, expected 'soon', could provide better labelling, better actions and better descriptions.

    John

  11. #11
    Join Date
    Jun 2008
    Location
    Victoria, Australia
    Age
    74
    Posts
    5,080

    Default

    Quote Originally Posted by electrosteam View Post
    I reported in the Woodwork Forum that we (Shed members) could not quite understand how to zero out the work and machine coordinates.
    We have our own solution that involves powering down the Arduino.

    I have done some research about this issue on the UGS development site and there have been a couple of subjects declared as bugs by the developers that are currently being improved.

    It could be that UGS V2.0, expected 'soon', could provide better labelling, better actions and better descriptions.

    John
    Normally you have limit switches at the home position, you drive each axis to the limit switch and zero that axis. It may be that your limit switches aren't wired up correctly.

  12. #12
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    Ray,
    I agree that we should have a homing procedure.
    We have correctly operating limits on X and Y, the Z limits are temporary victims of the software revision.

    When we re-wire into a bigger box with proper field wiring terminals I will ensure that allowance for homing limit switches is included, and the Z limits are fixed.

    Not sure if dedicated switches for homing are required, or simply use the travel limits.
    The more hardware, the higher the failure rate.
    What way is going to be more reliable for multiple inexperienced guys in a Shed ?

    For UGS, the available controls are just a little ambiguous and I hope the next revision will go some way to resolving the issues.
    UGS does have a 'Return to Zero' control, this may be intended to be a homing procedure.
    But, none of the UGS documentation I have seen includes any description of such a homing procedure.

    John

  13. #13
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    Experimenting today demonstrated that the built-in homing procedure works fine for the X and Y axes, but there is a bug in the UGS Z axis movement.

    The homing seems to be a lift of the Z axis to some sort of clearance height, then a rapid move to the location shown on the UGS screen as Work Coordinate X=Y=0, finishing with a drop of the Z to Work Coordinate Z=0.

    But, the Z axis lift seems to be equal to the current Machine Position Z axis coordinate.
    If, for example, the current Z axis Machine Position is Z=15, the Homing Sequence lifts to Z=30.
    This potentially is very serious as we still don't have Z limits operational.

    We tested this effect on several occasions and are comfortable that it really is a bug.
    I will research again the current list of bugs to be corrected in the next release of UGS.

    John

  14. #14
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    Correction to the above.

    What we were actually doing was "Return to Zero" not Homing.
    I think Homing requires exercising of the limit switches, not yet tested.

    Sorry about any confusion,
    John

  15. #15
    Join Date
    Apr 2009
    Location
    Kingswood
    Posts
    930

    Default

    Research today found that "Return to Zero Runaway" has been declared a Bug by the UGS code writers.

    There is a description of some of our investigations on the Woodwork Forums, Men's Shed Router - Page 5.

    John.

Page 1 of 2 12 LastLast

Posting Permissions

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