A gearbox begins with a ratio, but becomes useful through the details around it: how the motor locates, how the gears attach to their shafts, where the bearings sit, and whether a tool can reach every fastener.

This case study follows the development of a parametric, single-stage NEMA 17 gearbox in Rig Cad. The design evolved from two meshing gears into an assembly with a removable cover, press-fit bearing seats, accessible clamp hubs, integral housing contact rings, and selectable motor dimensions. It remains a prototype design: the CAD checks establish geometry, while load capacity, wear, fit, and axial retention still require engineering and physical testing.

The cover image shows the assembly exploded for inspection: the cover is lifted, the teeth sit low in the enclosure, and the clamp hubs face upward for access. Fit checks use the assembled position, not this one.

Open the gearbox project in Rig Cad

Make the reduction ratio drive the geometry

The starting point was a simple external spur-gear pair. The baseline uses a 20-tooth pinion, a 60-tooth output gear, module 1.25, and a 10 mm gear face width. That produces a 3:1 reduction and a 50 mm nominal center distance.

The model distinguishes the requested ratio from the ratio that integer tooth counts can actually provide:

  • Tooth count: z₂ = round(z₁ × requested ratio)
  • Actual reduction: i = z₂ / z₁
  • Nominal center distance: a = m × (z₁ + z₂) / 2

Changing the ratio updates the output tooth count, shaft spacing, and housing envelope. The supported control range was set to 2:1 through 5:1, with selected cases checked along the way. The output rotation is coupled to the input in the opposite direction.

Keeping an actual-ratio readout matters. A slider can accept a decimal value, but a gear still needs a whole number of teeth. Likewise, changing the ratio changes packaging: a larger driven gear needs a larger case.

Design the mounting interface with the motor

The motor interface started from provisional dimensions: a 31 mm mounting pitch, a 5 mm shaft, and a 22.4 mm pilot clearance. These are model inputs, not a substitute for a drawing of the chosen motor.

The selector now offers four dimensional templates: round or D-shaped 5 mm shafts, each with 24 mm or 34 mm protrusion. A Custom option exposes shaft and mounting dimensions. These are not manufacturer-qualified motor models.

For a D shaft, the flat offset is the distance from the shaft center to the flat. Reducing the offset cuts a deeper flat. The matching flat is formed in the pinion clamp bore with fitting allowance.

The useful check is how much shaft reaches the clamp hub. Once the gears were flipped to put their hubs on top, short shafts no longer engaged the full hub. The model therefore reports engagement and fit status instead of silently treating every preset as suitable. The 34 mm D-shaft template remains the selected starting point.

Top view of the input pinion and D-shaped motor shaft.
Figure 1 — The D shaft and matching pinion bore. The flat-offset parameter measures from the shaft center to the flat; a smaller offset creates a deeper flat. Shaft protrusion must also reach the upper clamp hub.

Put the gears low and make the clamps accessible

Early gear placement left the clamping hardware underneath the gear faces. Flipping both assemblies put the teeth lower in the housing and the clamp hubs above them, where the bolts can be reached during assembly.

Both gears use split clamp hubs with an M3 bolt and a captured nut. The split permits the hub to close around the shaft; the D-shaped input option also provides a matching flat. The output gear clamps to a nominal 8 mm shaft.

The material between the split and the bolt-head or nut seat is adjustable. The current clamp-ear control spans 1.5 to 4.5 mm and defaults to 2.5 mm. Moving the seats outward also changes the modeled bolt length.

That parameter illustrates why an editable CAD feature needs validation across its range. The latest sweep preserved solid gear geometry, but detected small overlaps between the output clamp and its bolt/nut references. Those placements need correction before the clamp is considered fabrication-ready. Greater ear thickness is a design option, not a demonstrated stiffness improvement.

Simplify the bearing arrangement without losing track of retention

The output shaft is supported by two nominal 8 × 22 × 7 mm bearing envelopes, one in the base and one in the cover. The first version used removable retainer plates, fasteners, spacers, and external collars.

The design was then simplified to press-fit bearing seats with shoulders. The plates, their mounting holes, external collars, and internal spacer bushings were removed. The bare shaft passes directly through the bearings, with its lower end recessed inside the base.

The seat diameter is calculated from bearing outside diameter plus a diametral fit allowance. The provisional value of −0.05 mm gives a 21.95 mm seat for the 22 mm bearing. A printed fit coupon should establish the allowance for the actual material and process.

Radial support and axial retention remain separate questions. Removing collars makes the assembly cleaner, but the present design does not establish a positive, rated restraint against axial shaft movement. The gear clamp alone should not be treated as proof of axial holding capacity.

Control the surfaces that touch

Lowering the gears close to the housing floor raised another question: where should sliding contact occur?

The solution was to add narrow raised rings to the housing beneath the gears, inside their tooth roots. At the baseline settings, the rings stand 0.5 mm above the floor and are 0.8 mm wide. Their positions and radii follow the gear geometry. The gears were lowered onto the ring tops so their broad underside faces do not contact the entire floor.

These rings are integral housing features, not additions to the gears. Selected 2:1, 3:1, and 5:1 configurations passed the ring-contact and single-body housing checks. Their friction, wear, temperature behavior, and lubrication needs remain to be evaluated.

Separate printable washers were subsequently added above and below the output gear assembly. Their baseline dimensions are 12 mm outside diameter, 8.3 mm bore, and 0.5 mm thickness. The lower washer occupies the gap beneath the gear; the upper washer sits above the hub. They are grouped under Hardware and are distinct from the removed bearing bushings. The upper washer still needs a resolved axial stack or retention arrangement; adding it does not itself retain the shaft.

Housing floor showing two narrow contact rings, four motor counterbores, and the output bearing seat.
Figure 2 — With the gears hidden, the housing's contact rings are visible just inside the corresponding tooth-root circles. The four circular counterbores around the input shaft put the motor screw heads below the working floor. The larger central recess on the right locates the output bearing.

Recess fasteners and shape the motor pilot roof

Fasteners must fit within the mechanism’s working space. The four cover nuts now sit in underside hexagonal pockets, recessed 0.4 mm into the housing at the baseline pocket depth.

The motor mounting holes have circular counterbores, 6.2 mm in diameter and 3.5 mm deep. For an assumed 3 mm-tall head, the top of the screw sits 0.5 mm below the inside floor. Actual head dimensions and screw engagement still need to match the selected hardware.

The motor locator recess required a more substantial change. A full-depth pilot opening would leave the small gear’s contact ring unsupported, so it became an underside recess with a separate shaft passage. Its straight section is 2.5 mm deep, followed by a 45-degree roof taper toward the shaft opening.

With a pilot radius of 11.2 mm and a shaft-passage radius of 3 mm, the radial reduction is 8.2 mm. A 45-degree slope therefore needs 8.2 mm of rise. Adding the 2.5 mm straight recess and 1 mm of material above the roof gives an 11.7 mm base thickness.

The section was checked to confirm that the taper begins at the top of the straight recess. The slope was introduced for printability, but the complete part still needs slicing in its intended orientation. In this version the cover shares the base-thickness parameter, so it also becomes 11.7 mm thick; separating those controls would allow later refinement.

Underside of the housing with four cover nuts recessed into hexagonal pockets.
Figure 3 — Underside view: hexagonal pockets capture the cover nuts inside the body. The nut recess is part of the housing, so the mounting envelope stays clear of protruding hardware.
Cross-section through the housing showing the stepped bearing seat on the left and the 45-degree motor pilot roof on the right.
Figure 4 — Housing section. On the right, the motor pilot recess rises vertically for 2.5 mm, then narrows toward the shaft opening at 45°. On the left, the stepped output-bearing seat supports the bearing without a separate retainer plate. Gray is housing material; white is empty space.

Use a root blend where the hub meets the gear

Small edge rounds and structural transitions serve different purposes. A 0.4 mm radius was first added to the exposed hub edges. The more significant revision was a concave flare at the hub-to-gear junction.

The output hub now blends outward into the gear face with a nominal 1.5 mm root radius. The pinion blend is limited automatically to remain inside its tooth roots. The flare is added before the bore and clamp openings are cut, preserving those features.

This creates the intended curved transition rather than simply rounding the top rim. No stress-concentration factor or fatigue improvement has been quantified for this geometry. The clamp slit, pocket corners, material, print orientation, and loading all remain relevant to a strength assessment.

The housing and cover also received small 0.4 mm, 45-degree outer-edge chamfers as finishing features.

Output gear with upper split clamp hub, captured nut pocket, and concave root blend.
Figure 5 — The output hub flares into the gear face. The curved root distributes the transition over more material; the small edge round has a separate finishing role. The clamp slit and hardware pockets remain, and their clearances still require the corrections described above.

Keep the model easy to use and honest about its status

The root objects are organized into Enclosure, Gears, and Hardware. A single showHardware control hides or shows the bearings, shafts, fasteners, and printable washers. The cover lift provides an exploded inspection view; fit checks must use the assembled position.

Parameters are grouped by purpose: gear train, motor configuration, output and bearings, assembly view, and advanced fits and mounting. Derived values are separated from editable inputs. The most useful readouts explain consequences, such as actual ratio, bearing-seat diameter, and motor-hub engagement.

The project has passed a series of solid, topology, clearance, and configuration checks, but those checks apply to the tested geometry at each revision. They do not certify the final gearbox as a working mechanism.

Before fabrication, the next pass should resolve the output clamp fastener overlaps, positive axial retention, washer capture, and actual screw lengths. It should also confirm the chosen motor and bearing drawings, test printed fits, inspect sliced parts, and establish torque, speed, wear, and thermal limits.

The central lesson of this design is that parametric modeling should carry assembly intent as well as dimensions. A change to the motor shaft, gear ratio, or clamp thickness should reveal its consequences elsewhere in the mechanism—and expose an incompatible configuration instead of merely drawing it.