Chapter 13

CNC Basics & 3D Printing

πŸ“– About 30 minutes 🎯 3 checkpoints
0 / 3 steps completed

Copy the Document

As before, start by copying the tutorial document to your own Onshape account.

Open Tutorial Document

Click to open the Onshape tutorial document in a new tab, then copy it to your account

A. The Magic of CNC

CNC overview
CNC lets computers control machines to automatically manufacture parts

What is CNC?

CNC = Computer Numerical Control. In simple terms, it uses a computer to control a machine that automatically manufactures parts. You design the part in Onshape, then let the machine produce it precisely according to your design.

Common CNC Tools

These tools allow robotics teams to manufacture precise custom parts β€” shapes you can't buy off the shelf, special mounting brackets, or structural components that perfectly match your design.

B. What is 3D Printing?

3D printing basics
3D printing builds parts by depositing material layer by layer

How 3D Printing Works

3D printing (also called additive manufacturing) creates parts by depositing material layer by layer (usually plastic filament like PLA or PETG). The printer's nozzle heats the filament to melt it, then lays it down one layer at a time following the designed path.

Why Do Robotics Teams Use 3D Printing?

Common Uses

Prototyping Examples

Many top robotics teams use 3D printing for rapid prototyping:

βœ…
Checkpoint 1: Do you understand 3D printing applications in robotics?

Think about which parts on your robot could be 3D printed. List at least 2 possible use cases.

C. Designing for 3D Printing

3D printing design considerations
Consider print orientation, supports, and wall thickness when designing

The Printing Workflow

The complete workflow from CAD model to physical part:

  1. CAD Model β€” Design the part in Onshape
  2. Export STL β€” Convert the model to 3D printing format
  3. Slicer Software β€” Use Cura/PrusaSlicer to "slice" the model into layers
  4. G-code β€” The slicer generates instructions that control printer movement
  5. Print β€” The printer follows the G-code to print layer by layer

Designing for Strength

3D-printed parts have an important characteristic: print orientation affects part strength. The bond between layers is the weakest link.

Design Principle: Orient the part so that load-bearing forces don't rely on inter-layer bonding. For example, a vertical post printed horizontally will fracture along the layers under tension; printing it vertically produces much better strength.

Key Features

Embedded Nuts and Heatset Inserts

3D-printed parts often need to connect to other parts. Tapping threads directly into plastic strips easily, so a better approach is using embedded nuts or heatset inserts.

Embedded nut demo
Pause the print mid-way, insert a nut, then resume printing β€” the nut gets embedded in the part
XZ plane embedded nut
XZ/YZ plane embedded nuts: design a hex slot for the nut to slide in, and the print wraps around it
Heatset insert installation
Heatset inserts: heat with a soldering iron and press into a pre-made hole for reliable threaded connections

Supports and Infill

D. Exporting STL from Onshape

Exporting STL
Right-click part β†’ Export β†’ Select STL format

Export Steps

Exporting STL from Onshape
Right-click a part in Onshape β†’ Export β†’ Select STL format
  1. Right-click the part you want to export in the parts list
  2. Select Export
  3. Choose STL as the format
  4. Settings: Select Binary STL (smaller file size) and Fine resolution (more detail)
  5. Click export and save the file

Exporting Multiple Parts

If you need to print multiple parts, you can export them one by one or select multiple parts to export together. We recommend exporting individually so you can adjust print parameters separately in the slicer.

Importing into Slicer Software

Importing STL into slicer
Import the STL file into slicer software, configure settings, and generate G-code print instructions

The exported STL file needs to be imported into slicer software (like Cura or PrusaSlicer) to generate print instructions. Common slicer settings:

E. 3D Printing Troubleshooting

3D printing troubleshooting
Common 3D printing problems and solutions

Elephant's Foot

The bottom of the print bulges outward, looking like an elephant's foot. This happens when the first layer temperature is too high or the print bed is too close to the nozzle.

Stringing

Fine strings appear between parts. This is caused by material oozing from the nozzle during travel moves.

Poor Bed Adhesion

Parts detach from the build plate during printing.

Warping / Melting

Parts warp or fine details melt.

βœ…
Checkpoint 2: Do you know how to solve common 3D printing problems?

What should you do when you encounter stringing? What about elephant's foot? Make sure you understand the solutions for these common issues.

βœ…
Checkpoint 3: Try exporting an STL file from Onshape

Open the tutorial document, select a part, and follow the steps to export an STL. If you have slicer software, try importing it to see the result.

What You Learned in This Chapter

  • CNC uses computers to control machines for automated manufacturing
  • 3D printing is great for complex shapes and rapid prototyping
  • Print orientation affects part strength
← Previous: Single vs. Multi-Document Next: Laser Cutting →