element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Blog GRBL Breakout Board / Shield Arduino Uno CNC Control
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: pthat
  • Date Created: 8 Aug 2017 2:18 PM Date Created
  • Views 3650 views
  • Likes 2 likes
  • Comments 2 comments
Related
Recommended

GRBL Breakout Board / Shield Arduino Uno CNC Control

pthat
pthat
8 Aug 2017

image

 

Grbl is a free, open source, high performance software for controlling the motion of machines that move, that make things, or that make things move, and will run on a straight Arduino. If the maker movement was an industry, Grbl would be the industry standard.

 

Most open source 3D printers have Grbl in their hearts. It has been adapted for use in hundreds of projects including laser cutters, automatic hand writers, hole drillers, graffiti painters and oddball drawing machines. Due to its performance, simplicity and frugal hardware requirements Grbl has grown into a little open source phenomenon.

 

Full information and code can be found at https://github.com/gnea/grbl/wiki

 

 

As you can see the code will run on a low cost Arduino Uno R3 board and you can see the pin outs below.

 

image

 

This is great but can be a bit fiddly when trying to connect up Stepper motors, limit switches etc. So we decided to design a Breakout Board for it and make it available as a DIY solder up kit.

We have brought out the all the pins through buffer chips which are open collector outputs and also we have added a optocoupler  IC for each limit switch. This allows higher voltage inductive sensors to be used, as well as micro switches.

 

image

Below shows a typical setup with three stepper motors/drivers connected and 12V inductive limit switches. You have to also supply 12-24v in.

image

Below shows a typical setup with three stepper motors/drivers connected and Micro Switches on the Limit Switches. You have to link 5 Volts over into the 12-24V in.

image

 

Find below some example wiring for different stepper drivers.

 

image

image

image

Also you can bring out the pins from the GRBL breakout board and interface to an existing CNC Machine controller box that uses a DB25 style breakout board. You will probably already have the Limit Switches wired in to the breakout with level conversions already done. If this is the case then Link 5 volts into the 12-24 Volts in line to power the on-board optocouplers.

 

image

Here is a video showing the breakout board connected to an existing CNC Machine.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Grbl Breakout Kit for self assembly
Here is a picture of the kit and PCB.

image

image

 

image

 

Programming UNO R3 with GRBL Firmware

There are a few different ways to program the Uno R3 and if you want to get up and running quickly then simply download the latest .HEX code from https://github.com/gnea/grbl/releases and use Xloader to program it up. Xloader can be downloaded from here http://russemotto.com/xloader/

image

Grbl comes with an array of options that be configured over the serial port and also the source code is available with other options that can be configured, compiled and then programmed. Check out the official Wiki for more info, as no point repeating it on this page. https://github.com/gnea/grbl/wiki

 

Configuring Grbl to suit your machine.

There are a few settings you need to configure after programming grbl into your controller, these include bed max travel, feed rates, steps/mm etc etc. Again check out the grbl Wiki https://github.com/gnea/grbl/wiki for full details.

You can do these manually by communicating with grbl using a terminal emulator such as HyperTerminal or there are various applications around for different platforms.

For Windows 10 we have knocked up a quick application that can be downloaded from the Windows App Store. It allows you to connect to your controlling and read out the configuration. You can then alter the values to suit your machine and write them back in. Also it allows other commands to be sent and the reply to be displayed in the Read Data box. You can send test Gcode commands and request status to see the results.

image

 

Software for sending Gcode to Grbl.

You are spoit for choice when it comes to software to send Gcode to Grbl and your best place is to google it.

I personally like Candle that can be downloaded here https://github.com/Denvi/Candle

image

 

  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago +1
    Nice post. I am in the process of upgrading my CNC controller, so having this information is very useful. Thanks DAB
  • gam3t3ch
    gam3t3ch over 8 years ago

    I am interested in that board currently I am running cnc shield on a uno r3 with grbl on it.   Most I know went the mega+ramps with marlin.  to each their own I guess but I must say I enjoy my setup over the mega.  If I build a 3d printer to have another ill use the mega and ramps i have sitting in a drawer 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Nice post.

     

    I am in the process of upgrading my CNC controller, so having this information is very useful.

     

    Thanks

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube