3D Printing

A hands-on guide to desktop 3D printing (FDM and resin). Learn the workflow from CAD to slicer to print, key settings (layer height, infill, walls, temperature, speed), materials, tolerances, G-code basics, estimating time and cost, and troubleshooting.

Desktop 3D printers have put rapid prototyping on every engineer's desk. In a few hours you can hold a fixture, enclosure, jig or prototype part you designed that morning.

Getting good prints depends on understanding the slicer settings and designing parts that suit the process.

An analogy

An FDM printer is a very precise, computer-controlled hot-glue gun that draws a part one thin layer at a time.

Workflow

Design in CAD → export STL/3MF → slice (Cura, PrusaSlicer, Bambu Studio, OrcaSlicer) into layers and G-code → print → remove supports → finish. Resin (SLA/MSLA) printers need washing in IPA and UV post-curing.

Key slicer settings

These have the biggest effect on strength, time and quality.

Materials

PLA: easy, stiff, low heat resistance (≈ 55 °C). PETG: tougher, chemical-resistant. ABS/ASA: heat-resistant, needs enclosure (ASA is UV-stable). TPU: flexible. Nylon & CF-filled: strong engineering parts, need drying. Resins: fine detail; engineering resins mimic ABS, PP or high-temperature materials.

Design rules

Clearance for fits ≈ 0.2–0.3 mm; holes print slightly small (drill or ream to size). Avoid unsupported overhangs; use chamfers instead of fillets on down-facing edges. Parts are weakest between layers (Z) — orient so loads run along layers. Use heat-set inserts for threads.

Tuning and troubleshooting

Calibrate e-steps/flow, pressure advance and input shaping for speed and sharp corners. Common problems: warping (bed adhesion, enclosure, brim), stringing (retraction, temperature, wet filament), layer shifts (belt tension, speed), under-extrusion (clog, too-high flow demand — hotends max out around 10–25 mm³/s), elephant's foot (first-layer squish).

Formulas

Worked example: Estimate time and filament

Given: Printed volume 40 cm³ (walls + infill); 0.45 mm line, 0.2 mm layer, 60 mm/s; PLA 1.24 g/cm³, 25 per kg

Find: Time, mass, cost.

Answer: ≈ 2–2.5 h, ≈ 50 g, ≈ 1.24 in filament

Worked example: Filament length

Given: 49.6 g PLA, 1.75 mm filament

Find: Length used.

Answer: ≈ 16.6 m

Typical FDM start G-code (Marlin firmware)

M140 S60        ; set bed to 60 °C (PLA)
M104 S210       ; set nozzle to 210 °C
G28             ; home all axes
M190 S60        ; wait for bed
M109 S210       ; wait for nozzle
G29             ; auto bed levelling (if probe fitted)
G92 E0          ; reset extruder position
G1 Z0.3 F3000   ; move to first-layer height
G1 X10 Y20 F5000
G1 X10 Y150 E15 F1500   ; prime line: extrude 15 mm of filament
G92 E0
; ...slicer-generated layers follow...
M107            ; fan off at end
M104 S0         ; nozzle heater off
M140 S0         ; bed heater off
M84             ; disable motors

G1 moves with extrusion (E), M104/M109 set/wait nozzle temperature, M140/M190 set/wait bed, G28 homes, G29 levels, G92 resets the extruder position.

Common mistakes

Applications

Key takeaways

Going further