Skip to content
2 min read
In progress

Mini-Project 1: A Layout-Sketch-Driven Swerve Drivebase

Build a parametric square swerve chassis in Onshape using a top-down layout sketch, FRCDesignLib swerve modules, and the Origin Cube FeatureScript so the whole base resizes from two variables.

Lesson
18 / 31
Reward
+10XP

Sign in to track progress, earn XP, and save lessons.

Swerve is the dominant FRC drivetrain, so it is the perfect first mini-project. We will build a square drivebase whose entire footprint is driven by a single variable, then drop in real COTS modules.

Step 1 — Start the layout sketch. Create a Part Studio named Drivebase Layout. Insert the Origin Cube FeatureScript (from FRCDesign.org's curated list) as the very first feature so every downstream Part Studio and Assembly shares a consistent origin. Add a variable feature: #track = 24 in (center-to-center distance between modules). Robot-perimeter rules limit your frame, and a common competitive footprint lands near a 28-30 in square once tube and bumpers are added; a 24 in track keeps you in that neighborhood. Always confirm the limit in the current FRC Game Manual (in the 2026 REBUILT manual the old term 'FRAME PERIMETER' was renamed 'ROBOT PERIMETER').

Step 2 — Sketch the module centers. On the Top plane, draw a center rectangle dimensioned #track x #track. The four corners are your swerve module pivot axes. This single sketch is your master: change #track and the whole robot rescales.

Step 3 — Build the belly-pan and tubes. Sketch the outer frame as 2x1 tube (the FRC standard structural extrusion). REV's MAXTube 2x1 (e.g. SKU REV-21-2162 standard, REV-21-2161 light) has #10 clearance holes spaced 0.5 in apart on the 1 in faces; AndyMark's pre-drilled box tube uses the same #10-on-0.5-in pitch, so models stay cross-compatible. Extrude the four tubes between the corners, then use Tube Converter (Julia's FeatureScripts) to punch the lightening/hole pattern instead of sketching every hole by hand.

Step 4 — Import the modules. Open the Assembly, insert your Drivebase Layout, then use the FRCDesignLib library (inserted via the free FRCDesignApp Onshape plugin) to insert four SDS MK4i swerve modules. The MK4i ships in L1 (8.14:1), L2 (6.75:1), and L3 (6.12:1) drive ratios with a 150/7:1 (~21.43:1) steering ratio and weighs ~6.0 lb with a NEO or ~6.3 lb with a Falcon 500. Pick L1 or L2 for a standard full-weight robot.

Step 5 — Mate with connectors, not faces. This is the load-bearing step. On each tube corner, add an explicit mate connector at the module pivot hole. Use a Fastened mate between each module's mate connector and the corner connector. Because you mated to named connectors (not raw faces), swapping module versions or resizing #track will not orphan the mates.

Verify: open Assembly mass properties to read the bare base weight, leaving plenty of the robot's weight budget for mechanisms.

Spot an error or something out of date?Log in to suggest an edit

Key takeaways

  • Drive the entire chassis from one master layout sketch and a `#track` variable so resizing is a single edit
  • Insert real COTS via MKCad (SDS MK4i: L1 8.14:1 / L2 6.75:1 / L3 6.12:1, 150/7:1 steering, ~6.0 lb NEO / ~6.3 lb Falcon) instead of modeling modules from scratch
  • Mate to explicit mate connectors at hole centers, never to raw faces, to keep assemblies robust to changes

Lesson quiz

Required

Answer all 3 questions correctly to complete this lesson.

01.In the layout-sketch-driven (top-down) swerve build, why is the master layout sketch created first?

02.What square footprint does a #track = 24 in swerve base commonly land near once tube and bumpers are added?

03.How should each SDS MK4i module be mated to a tube corner so the assembly stays robust?

Answer every question to submit.

All 31 lessons in CAD & Design