A Tinkerer's Guide to CNC Basics: Master the fundamentals of CNC machining, G-Code, 2D Laser machining and fabrication techniques
By Samer Najia
()
Samer Najia
Samer Najia holds a degree in Mechanical Engineering from Duke University and an MBA from American University, but he is a passionate serial Maker, particularly of things that move and especially of things that fly. Samer started building at age six and never stopped. His projects just seem to get bigger over time.
Related to A Tinkerer's Guide to CNC Basics
Related ebooks
CNC Machine Mastery: From Fundamentals to Technical and CNC Job Interview Q&A Rating: 0 out of 5 stars0 ratingsTaking Tinkercad to the Next Level: Enhance your ability to design, model, and 3D print with one of the most intuitive CAD programs Rating: 0 out of 5 stars0 ratingsCreality Ender 3 and Creality Slicer Tutorial for 3D printers and tips and tricks. Rating: 3 out of 5 stars3/5Arduino Projects with Tinkercad: Designing and programming Arduino-based electronics projects using Tinkercad Rating: 0 out of 5 stars0 ratingsAutodesk Fusion 360 PCB Black Book (V 2.0.18719) Rating: 0 out of 5 stars0 ratingsTinkercad Black Book Rating: 0 out of 5 stars0 ratingsFreeCAD | Design Projects - Part 2: Step-by-Step Instructions for Designing Complex CAD Models Rating: 0 out of 5 stars0 ratingsFearless Experiments With Microcomputers Rating: 0 out of 5 stars0 ratings3D Printing Designs: The Sun Puzzle Rating: 0 out of 5 stars0 ratingsBuild Your Own PC on a Budget: A DIY Guide for Hobbyists and Gamers Rating: 0 out of 5 stars0 ratingsStarting a Profitable CNC Woodworking Business From Scratch At Home Rating: 0 out of 5 stars0 ratingsCNC: How Hard Can it Be Rating: 4 out of 5 stars4/5The Milling Machine for Home Machinists Rating: 3 out of 5 stars3/5Microsoft .NET Gadgeteer: Electronics Projects for Hobbyists and Inventors Rating: 0 out of 5 stars0 ratingsHow to Use a 3D Printer Rating: 4 out of 5 stars4/5Practical, Made Easy Guide To Building, Office And Home Automation Systems - Part Two Rating: 0 out of 5 stars0 ratings3D Printing for Beginners Rating: 0 out of 5 stars0 ratingsCutting-Edge 3D Printing Rating: 1 out of 5 stars1/5Arduino Projects with Tinkercad | Part 2: Design & program advanced Arduino-based electronics projects with Tinkercad Rating: 0 out of 5 stars0 ratingsPICAXE Microcontroller Projects For Makers Rating: 0 out of 5 stars0 ratingsDesktop Manufacturing Use Machine Above This To Make Products Rating: 0 out of 5 stars0 ratingsCNC Router Essentials: The Basics for Mastering the Most Innovative Tool in Your Workshop Rating: 5 out of 5 stars5/53D Printing Designs: Design an SD Card Holder Rating: 0 out of 5 stars0 ratings3D Printers for Woodworkers: A Short Introduction Rating: 0 out of 5 stars0 ratingsMastercam 2024 Black Book Rating: 0 out of 5 stars0 ratingsThe Official Raspberry Pi Projects Book Volume 2: 200 Pages of Coding and Creating Rating: 0 out of 5 stars0 ratingsBuild Your Own Teams of Robots with LEGO® Mindstorms® NXT and Bluetooth® Rating: 0 out of 5 stars0 ratings“Exploring Computer Systems: From Fundamentals to Advanced Concepts”: GoodMan, #1 Rating: 0 out of 5 stars0 ratingsRapid Prototyping: Design and Innovation in Robotics Development Rating: 0 out of 5 stars0 ratings
CAD-CAM For You
AutoCAD 2019 For Beginners Rating: 0 out of 5 stars0 ratingsGraphic Design For Dummies Rating: 0 out of 5 stars0 ratingsThe Beginner's Guide to Procreate Dreams: How to Create and Animate Your Stories on the iPad Rating: 0 out of 5 stars0 ratingsTinkercad | Step by Step Rating: 0 out of 5 stars0 ratingsAutoCAD For Dummies Rating: 0 out of 5 stars0 ratingsAutoCAD Electrical 2023 Black Book Rating: 0 out of 5 stars0 ratingsCAD 101: The Ultimate Beginner's Guide Rating: 0 out of 5 stars0 ratings3D Printing For Dummies Rating: 4 out of 5 stars4/5SketchUp Success for Woodworkers: Four Simple Rules to Create 3D Drawings Quickly and Accurately Rating: 2 out of 5 stars2/5AutoCAD For Dummies Rating: 0 out of 5 stars0 ratingsSolidWorks For Dummies Rating: 3 out of 5 stars3/5Autodesk Fusion 360 Basics Tutorial Rating: 0 out of 5 stars0 ratingsRevit 2020 for Architecture: No Experience Required Rating: 0 out of 5 stars0 ratingsCAD 101: The Ultimate Beginners Guide Rating: 5 out of 5 stars5/5The LEGO Builder's Handbook: Become a Master Builder Rating: 0 out of 5 stars0 ratingsFreeCAD [How-to] Rating: 3 out of 5 stars3/5SolidWorks Electrical 2025 Black Book Rating: 0 out of 5 stars0 ratingsAutoCAD 2019 For Architectural Design Rating: 5 out of 5 stars5/5CAD Projects with Tinkercad | 3D Models Part 1: Learn how to create advanced 3D objects with Tinkercad in an easy way Rating: 0 out of 5 stars0 ratingsAutoCAD 2020 A Project-Based Tutorial Rating: 4 out of 5 stars4/5The SketchUp Handbook for Interior Design: A step-by-step visual approach to planning, designing, and presenting interior spaces Rating: 0 out of 5 stars0 ratingsAutoCAD 2016 For Architectural Design Rating: 4 out of 5 stars4/5SolidWorks 2023 Black Book Rating: 0 out of 5 stars0 ratingsSketchUp Pro 2014 New features Rating: 0 out of 5 stars0 ratingsAutodesk Inventor 2024 Black Book Rating: 0 out of 5 stars0 ratingsAutoCAD 2010 For Dummies Rating: 5 out of 5 stars5/5Certified Solidworks Professional Advanced Weldments Exam Preparation Rating: 5 out of 5 stars5/53D Printing Designs: Fun and Functional Projects Rating: 0 out of 5 stars0 ratingsFreeCAD Basics Tutorial Rating: 3 out of 5 stars3/5Solid Edge 2019 Basics and Beyond Rating: 5 out of 5 stars5/5
Reviews for A Tinkerer's Guide to CNC Basics
0 ratings0 reviews
Book preview
A Tinkerer's Guide to CNC Basics - Samer Najia
BIRMINGHAM—MUMBAI
A Tinkerer’s Guide to CNC Basics
Copyright © 2024 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Group Product Manager: Rohit Rajkumar
Publishing Product Manager: Vaideeshwari Muralikrishnan
Book Project Manager: Aishwarya Mohan
Senior Editor: Rakhi Patel
Technical Editor: Simran Udasi
Copy Editor: Safis Editing
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Production Designer: Alishon Mendonca
DevRel Marketing Coordinators: Namita Velgekar and Nivedita Pandey
First published: February 2024
Production reference: 1040124
Published by Packt Publishing Ltd.
Grosvenor House
11 St Paul’s Square
Birmingham
B3 1RB, UK
ISBN 978-1-80324-749-6
www.packtpub.com
To my wife, Sanja, for lovingly and patiently putting up with my projects and incessant desire to build things. To my children, Hanna and Jordan, for inspiring my creativity.
– Samer Najia
Contributors
About the author
Samer Najia has always enjoyed building things and often has multiple projects in the air. While by day he is in the IT field, at all other times he is often putting bits of things together in the garage or on his desk. When the sky beckons, Samer likes to fly and work on airplanes.
About the reviewer
Atif Tajul, born in Kuala Lumpur, Malaysia, is a mechanical engineer who graduated from the University of Southampton, United Kingdom. He indulges himself in anything hands-on and enjoys tinkering. He is a very practical person when solving problems and providing solutions. He has experience of working on cars as an apprentice mechanic, and the skills and knowledge he gains from that are used for the benefit of his family. Atif 3D prints personal designs with his own machine in the pursuit of becoming a master at prototyping and fabrication. He keeps himself in shape by playing football as he is a massive fan of the sport.
Table of Contents
Preface
1
The What and Why of CNC
Branches of CNC machining
Differing approaches to motion in CNC machines
How CNC works and when to use it
What is G-code?
Safety considerations for CNC and lasers
Summary
2
Setting Up and Configuring the 3018 CNC Machine
Technical requirements
Anatomy of a CNC machine
Making the build-versus-buy decision
Buying a pre-built unit
Building your own unit
Configuring, calibrating, and testing your CNC machine
Step calibration
Firmware flashing software
G-code sender software
Running your first test cut
Summary
3
Understanding Material Properties before Making the First Cut
Cutting hardwoods, plywood, and balsa
Cutting foam and composites
Cutting plastics and PVC
Cutting aluminum and other soft metals
Selecting the right end mill
Summary
4
Making the First Cut
Securing the workpiece
Selecting test patterns
Configuration settings
End-mill diameter
RPM or spindle control and feed rate
Cut depth and multiple passes
Different settings for different operations
Summary
5
Full CNC Workflow with Different Materials
Technical requirements
Getting to G-Code from a drawing
Cutting softwoods such as balsa and light plywood
Cutting hardwood
Cutting and engraving soft metals
Working with foam
Engraving your workpiece and setting depths
Summary
6
Upgrading Your CNC Machine
Installing end-stops
Emergency stop switch
Installing a Z-probe
Adding a rotary axis
Plotters and drag knives
Summary
7
Enclosures
Panels, cleaning, and access
Removable and non-integral enclosures
Integrated and permanent enclosures
Build versus buy, materials, and designs
Summary
8
Project: Building a CNC Laser Cutter and a Plotter
Laser cutter/engraver
Endstops and electronics
Plotter
Summary
9
Project: Building Your Own 4th Axis
Design is the starting point
Fabrication
The final assembly
Installation and settings
Summary
10
Project: Adding a Laser to the 3018
Selecting a suitable laser toolhead
Mounting adjacent to the spindle
Mounting in place of the spindle
Laser-cutting software
Laser head installation examples
Summary
11
Building a More Capable CNC Machine
Building a bigger 3018
Standardizing and simplifying your structure
Eliminating the moving table
Use multiple motors
An all-metal Z axis
A more robust controller board
Scaling up
Summary
12
Future Projects and Going Bigger and Better
The ShapeOKO
The OX
Hot wire foam cutters
CNC lathe
A fifth axis
Summary
Index
Other Books You May Enjoy
Preface
A Tinkerer’s Guide to CNC Basics will suit anyone who enjoys shop work and tinkering through the process of automating the fabrication of parts of various materials, including cutting and engraving with milling machines and lasers. If you have a desire to make things out of wood, metal, plastic, foam, fiberglass, or other materials, and maybe have to make several parts repeatedly, this book is for you. If you need to prototype your designs and want to be able to do so fast so you don’t have to hand fabricate everything and learn how to leverage Computer-Aided Design (CAD), you will benefit from this book.
The book starts with an overview of what CNC is and progresses toward acquiring, building, and customizing a commonly used CNC machine before delving into various projects. These projects include upgrades to this machine, building larger and more complex machines, and fabricating parts for specific applications. You will learn how to operate and service a desktop CNC machine, use CAD to design or modify parts that your machine can then fabricate, and finally learn how to scale up your efforts with bigger and more complex systems.
By the time you are finished with this book, you will know how to fabricate using a basic CNC machine, cut with a laser, use a fourth axis to cut parts as they rotate on your work table, and operate multiple software applications to achieve your desired outcomes. You will also become familiar with a number of techniques to transfer drawings from paper to electronic formats suitable for fabrication by your CNC mill.
Who this book is for
Anyone who enjoys working in their home shop or garage or likes to tinker and build things from scratch out of many materials will enjoy this book. Tinkerers will grow their skills and add automation to their repertoire of tools to fabricate just about anything.
What this book covers
Chapter 1, The What and Why of CNC: This chapter introduces CNC, discusses the mechanics of how it works, and provides some initial considerations for safety.
Chapter 2, Setting Up and Configuring the 3018 CNC Machine: This chapter’s focus is on the build-or-buy decision and getting your first CNC machine up and running.
Chapter 3, Understanding Material Properties before Making the First Cut: Here, we take a look at what is needed for various materials as far as the CNC machine is concerned, such as how to select an endmill for a particular application.
Chapter 4, Making the First Cut: With this chapter, we’ll put the 3018 to work and start cutting materials.
Chapter 5, Full CNC Workflow with Different Materials: Building on the previous chapter, we begin looking at how to go from design to finished product, including the transfer of paper drawings to an electronic format suitable for subsequent processing with our 3018 machines.
Chapter 6, Upgrading Your CNC Machine: We’ll add components to the machine we have to be more precise, start with a discussion on a fourth axis, and add the ability for our machine to become a plotter and a drag knife.
Chapter 7, Enclosures: CNC machines produce debris, and if using a laser, there could be fumes that might need ventilation. This chapter discusses some simple enclosures that can be built to keep your work area neat.
Chapter 8, Project: Building a CNC Laser Cutter and Plotter: Taking everything we have learned so far, we’ll build limited-purpose CNC machines: one to generate and scale drawings and another to cut using a laser.
Chapter 9, Project: Building Your Own 4th Axis: In this chapter, we build on Chapter 6 and build a fourth axis add-on using our 3018 and some off-the-shelf parts.
Chapter 10, Adding a Laser to the 3018: We’ll add a laser toolhead to our original desktop CNC mill to make it a 2-in-1 machine.
Chapter 11, Building a More Capable CNC Machine: Once we outgrow the 3018 machine, we will want something bigger and stronger with a larger workspace. This chapter steps through the process of scaling up.
Chapter 12, Future Projects and Going Bigger and Better: We’ll look at even bigger machines for our shop including stepping out of the hobbyist arena and seeing what industrial CNC machines can do. We also have a quick look at five-axis CNC machines.
To get the most out of this book
You will need some basic tools to assemble your machines, including drills, drill bits, screwdrivers, hex keys, rulers, and tape measures, some scrap material to use when test cutting with your CNC machine, and a suitable work area. Safety gear is also highly recommended, including eye protection, and when using the laser, special eye protection is mandatory.
Get in touch
Feedback from our readers is always welcome.
General feedback: If you have questions about any aspect of this book, mention the book title in the subject of your message and email us at [email protected].
Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/support/errata, select your book, click on the Errata Submission Form link, and enter the details.
Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.
If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.
Reviews
Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!
For more information about Packt, please visit packtpub.com.
Share Your Thoughts
Once you’ve read A Tinker’s Guide to CNC Basics, we’d love to hear your thoughts! Please click here to go straight to the Amazon review page for this book and share your feedback.
Your review is important to us and the tech community and will help us make sure we’re delivering excellent quality content.
Download a free PDF copy of this book
Thanks for purchasing this book!
Do you like to read on the go but are unable to carry your print books everywhere?
Is your eBook purchase not compatible with the device of your choice?
Don’t worry, now with every Packt book you get a DRM-free PDF version of that book at no cost.
Read anywhere, any place, on any device. Search, copy, and paste code from your favorite technical books directly into your application.
The perks don’t stop there, you can get exclusive access to discounts, newsletters, and great free content in your inbox daily
Follow these simple steps to get the benefits:
Scan the QR code or visit the link below
https://packt.link/free-ebook/9781803247496
Submit your proof of purchase
That’s it! We’ll send your free PDF and other benefits to your email directly
1
The What and Why of CNC
Computer numerical control (CNC) is a software-based method of moving tools and machinery. This method has traditionally been under the purview of factories and manufacturing facilities and well beyond the reach of a garage tinkerer. CNC machines have arms and carriages that can hold mills, grinders, lasers, and other cutting tools that move in multiple axes to shape an object via preprogrammed movement commands.
Our objective in this chapter is to provide a basic understanding of CNC from a hobbyist’s/tinkerer’s perspective as we prepare to take a deep dive into obtaining, operating, and customizing our own machine.
In this chapter, we will cover the following topics:
Branches of CNC machining
Differing approaches to motion in CNC machines
How CNC works and when to use it
A brief overview of G-code, the commands used to operate a CNC machine
Safety considerations for CNC and lasers
Branches of CNC machining
CNC manufacturing can be traced back to the 1940s, when the first numerical control (NC) machines started to appear (https://en.wikipedia.org/wiki/History_of_numerical_control), and methods to automate handcrafted fabrication can be traced to three centuries ago. I’m sure you’ve seen videos of these machines perhaps fabricating the engine block for a car or cutting and shaping sheet metal. For all intents and purposes, a CNC machine is a type of robot. It takes stock material (a sheet of wood, a block of aluminum) and turns it into a product ready to be assembled or finished very quickly, very accurately, and, most importantly, repeatedly. CNC machining made fabrication at scale possible.
With the advent of desktop computing, more commonly accessible materials, and smaller, more powerful components, it also became possible to bring CNC machining to the home workshop. Now, anyone with a good guide can put together a robust desk or bench-top CNC machine and get to cutting, engraving, and milling themselves. Such machining is not limited to metal, wood, foam, and other materials; there are multiple branches of CNC machining:
PCB milling: Where holes are drilled in the right places and the circuit board is cut and shaped for whatever they are going into.
Rotary engraving: Where the movement is around an axis instead of along it. Imagine engraving a bottle, glass, or vase.
Multi-axis machining: Where the machine does not just operate in X, Y, and Z, but also rotates the object being worked on to shape all of its sides (this is a typical use case for machining a car’s engine block). For an example of this, look at this video: https://www.youtube.com/watch?v=tO6AGOjBoGo.
Figure 1.1 – Example of the three main axes in a CNC machine (X, Y, and Z) and the rotary axis around YFigure 1.1 – Example of the three