kapy academy

Motor mounts

16 min readUpdated Nov 2026

Most printed motor mounts fail on the screw, the heat or the plate, not on the hole pattern. The mount locates the shaft with the pilot, takes the reaction torque and the pull of the belt with its screws and plate, and sits against a housing that gets hot. The motors you meet in printers, small CNC machines, robots and toys are the NEMA 17 and NEMA 23 steppers, the 28BYJ-48 geared stepper, the N20 gearmotor and the SG90 and MG996R servos; how to pick one is in Choosing a motor.

The six mounting faces

Mounting faces of six motors (mm)
Motor Body or flange Hole pattern Screws Pilot Shaft Source
NEMA 17 42.3 square flange 31.0 ± 0.2 square M3 blind, tapped into the motor, ~4.5 deep Ø22, 1.6 to 2.0 high Ø5, D-flat at 4.5 Nippon Pulse PR42; RepRap wiki; Pololu 2267
NEMA 23 Flange ≈ 56.4 47.14 square Ø≈5 through the flange, with a nut Ø38.1 × 1.6 Ø6.35 (8 mm versions exist) RepRap wiki; NEMA frame size table
28BYJ-48 Body Ø28 × 19 Two ears with Ø4.2 holes at 35 centers (42 overall) Through Boss around the shaft (measure it) Ø5 with two flats at 3, 6 long; protrudes 10; offset 8 from the body axis Fulling datasheet
N20 Gearbox 12 × 10 Two M1.6 tapped holes in the face, about 7.7 apart M1.6 — Ø3, D-flat at 2.5 Distributor datasheets
SG90 Body 22.2 × 11.8; tabs 32.2 overall, 16 above the base Holes about 27.5–28 apart The servo's own self-tappers — 21-tooth spline on most units (count them) TowerPro SG90 datasheet
MG996R Body 40.3–40.7 × 19.7–20; tabs 53.6 overall Holes about 48–49.5 apart The ones supplied, or through bolts — 25-tooth spline TowerPro MG996R datasheet

NEMA is a trademark of the National Electrical Manufacturers Association; SG90 and MG996R are TowerPro models. KapyCAD is not affiliated with either. The 28BYJ-48 and the N20 are generic designations made by many companies, and both servos are cloned and sold under the same model name.

The NEMA number is the nominal flange size in tenths of an inch: 17 → 1.7″ (43.2 mm) and 23 → 2.3″ (58.4 mm). The real flange is a little smaller, 42.3 and about 56.4 mm, and that is what you design to. The standard fixes the flange, the hole pattern, the pilot and the shaft. It does not fix body length (a NEMA 17 runs from 20 to over 60 mm), torque, current or where the cable leaves. So you design the mount from the flange, and size the body pocket for the longest motor you might fit.

The NEMA 17 pilot is 1.6 high on the NEMA drawing and 2.0 on many manufacturers' sheets: size the recess for the taller one. NEMA 23 shafts come in 6.35 and 8. As of late 2026, almost every FDM printer still drives its axes with NEMA 17 motors, with or without an encoder, and replacements share the flange (Rails, belts and motors).

The 28BYJ-48 has two dimensions that mislead. Many retailers' drawings show 3.5 mm ear holes; the Fulling sheet says Ø4.2. And the shaft sits 8 mm off the body axis, so a pocket centered on the shaft will not match the housing.

Servos and the N20 follow no standard: datasheets and clones differ by tenths, and the distance between tab holes is not on the sheet. Measure the holes with callipers before you draw them (Measuring an undocumented standard). Most NEMA motor makers publish a STEP file: import it and check the fit (Importing a STEP File).

NEMA 17: 42.3 flange, M3 holes at 3131M3Ø22pilot4.5Ø5shaft flatNEMA 23: 56.4 flange, holes at 47.1447.14Ø38.1Ø5 through28BYJ-48: Ø4.2 ears at 358shaft 8 off the housing center353Ø5N20: 12 × 10 gearbox, Ø3 shaftmeasure it2.5Ø3SG90: body 22.2 × 11.8, tabs 32.2measure itMG996R: body 40.5 × 20, tabs 53.6measure it10 mm
The six mounting faces at the same scale. Servo and N20 holes vary from one maker to another.

The NEMA 17 flange: pilot, screws and slots

The Ø22 pilot locates the shaft; the four screws only clamp. Model its recess at Ø22 plus your machine's sliding fit: 0.20 per side on a modern bedslinger (Ø22.4), 0.15 per side on an enclosed CoreXY (Ø22.3). The simplest option is to make it a through hole, Ø22.4 all the way: it clears the shaft, and the pulley or coupling too if you fit them before the motor. If you make it blind, give it at least 2.2 of depth (the 2.0 of the taller pilot plus 0.2 margin) and open a through hole for the shaft inside it. The hole will print smaller than the model (Why holes print small, Real printed clearances). If the recess is tight or shallow, the flange rocks on the pilot and the screws twist it as you tighten them.

What fails most often is screw length. The motor's M3 holes are blind, about 4.5 mm deep. Thread engagement is e = L − (plate + washer), and you want 3 ≤ e ≤ 4.0: 4.0 is what fits in a 4.5 hole with half a millimeter to spare before the bottom, and below 3 the aluminum thread strips. In the motor's aluminum end cap that is not much thread, so do not torque it as you would into steel: stop when the washer stops turning. A screw that is too long bottoms out before the head clamps: it feels tight on the bench and works loose under vibration, and forced, it can crack the end cap. One that is too short strips the motor's thread.

5 mm plate50.5 washer4.5 blind holehead does not clampØ22 × 2 pilot6 mm plate60.5 washer3.51.0thread in the motor, eclampssliding fit
The same M3 × 10: with a 5 mm plate it bottoms in the blind hole and does not clamp; with a 6 mm plate it engages 3.5 and leaves 1 mm free.

Example: a NEMA 17 on a printed plate with slots for belt tensioning, with a washer under each head. 5 mm plate + 0.5 washer = 5.5. An M3 × 8 gives e = 2.5, too little; an M3 × 10 gives e = 4.5 and bottoms out. With a 6 mm plate the stack is 6.5 and the M3 × 10 gives e = 3.5. Screws come in 6, 8, 10 and 12: choose the plate thickness from the screw, not the other way round. A 6 mm plate in PETG or ASA is also stiff enough not to flex under a printer belt's pull.

If the motor slides to tension the belt, the pilot cannot locate it. Turn the four holes into slots (width = M3 clearance, length = clearance + travel) and the pilot recess too, or replace it with a plain Ø(22.4 + travel) clearance hole centered at mid-travel. With 6 mm of travel: 3.4 × 9.4 slots and a 22.4 × 28.4 recess, or a Ø28.4 hole. Belt paths and tensioning covers belt tension and idlers.

The reaction torque is small. With an example holding torque of 0.45 N·m (yours is on the datasheet) and four screws at r = 31 · √2 / 2 = 21.9 mm: F = T / (4r) = 0.45 / (4 · 0.0219) ≈ 5 N per screw. What loosens a printed mount is the plastic yielding under the heads, and then the slot slipping under the belt. Hence the washers, a material that copes with the motor's heat, and a second tightening after 48 h (Creep and fatigue).

The NEMA 23 follows the same logic. Its Ø≈5 through holes take an M5 with a nut if your motor has them at 5.3 or more (ISO 273 fine series); between 5.0 and 5.3 an M5 goes in tight or not at all: use M4 with a washer (Captive nuts and clearance holes). The pilot recess is Ø38.1 × 1.6 plus the fit, and the shaft 6.35 or 8. Its torque is several times a NEMA 17's: a printed mount will do for a light router or a camera slider, with an 8 mm or thicker plate and ribs (Ribs, gussets and fillets). If the motor drives cutting loads, buy the aluminum bracket.

An L-bracket is loaded at the corner: print it with the L profile on the bed, so the beads wrap round the corner (Orientation and overhangs). The flange holes then end up horizontal. The M3s come out clean, but the Ø22.4 through pilot is over 10 mm across and needs a teardrop roof, pointed or cut flat. A 2.2-deep blind recess does not: its roof overhangs only 2.2 mm.

The motor heats the mount

Some stepper datasheets allow the housing to reach 80 °C; others give an 80 K rise over ambient with class B insulation (130 °C). A stepper at full current runs hot by design, and the driver keeps current flowing even at standstill, unless you set it to cut idle current. And the mount is pressed against that housing.

Under load, an unfilled part works up to about 15–20 °C below its HDT at 0.45 MPa: PLA about 40 °C, PETG 50, ASA 80–85 (Heat, cold, sunlight and chemicals). A PLA mount on a hot motor softens under the screw heads, loses its clamp, and the motor moves; inside an enclosed printer, the warm chamber air adds to the heat. PETG for a motor that stays warm. ASA if the housing stays below about 70 °C: at 80 °C there is no margin left. For a housing that reaches 80, or an enclosed motor at full current all day, PC (about 95 °C under load) or a fiber-filled composite such as PET-CF or PA-CF (about 140–165 °C under load), or stand the motor off the plastic.

To check, run the motor for 30 minutes at its working current and measure the housing with a contact or infrared thermometer. If it is over the limit, lower the driver current if the torque allows it, change material, or separate the motor from the plastic with standoffs or a metal plate. Plastic insulates: it does not cool the motor the way an aluminum bracket does.

The N20, the 28BYJ-48 and the servos barely warm up in hobby use, and PLA is fine for them. A servo stalled against an end stop does get hot, but that is a problem with the arm, not the mount.

The 28BYJ-48 and the N20: ears, cradles and flatted shafts

The 28BYJ-48 is held by its two ears: Ø4.2 holes at 35, for a snug M4 or an M3 with a washer, on a flat plate or a cradle that hugs the Ø28 housing. Draw the housing pocket 8 mm from the shaft center. The face has a boss around the shaft: leave a clearance hole for it, because a flat plate laid against the face will hit it. Leave room too for the plastic cover the wires come out of, which sticks out from the housing on one side.

The N20's two M1.6 face holes are tiny and their spacing varies between makers, so most designs hold it by the body: a cradle round the 12 × 10 gearbox with a clamp or a snap fit (Print-friendly snap fits), with the face against a stop so the motor cannot back out. Leave clearance for the bushing that stands proud around the shaft. Gearbox length changes with the ratio, and encoder versions are longer: measure yours.

On these small shafts the flat does all the driving. The N20's is 0.5 mm deep (Ø3 → 2.5), and a bore with 0.1 of clearance lets the shaft turn about 5° before the corner of the flat bears. That sharp corner bites into the plastic, rounds it off, and the wheel ends up slipping. Start at zero clearance, print a test hub, and only then move to negative clearances. Set screws and clamp hubs are in Fixing a part to a shaft.

Servos: the body pocket and the spline

The body pocket is the body plus the sliding fit per side: the 22.2 × 11.8 SG90 wants 22.6 × 12.2 at 0.2 per side. The tabs rest on a ledge at tab height, 16 mm above the base on the SG90. Leave the cable exit clear; on almost all of them it comes out of the short side, near the base.

The distance between tab holes varies from servo to servo: measure it. The SG90 comes with small ST2.2-class self-tappers: a 1.8–1.9 pilot in a Ø4.5 boss, with at least three beads of wall around it (Self-tapping screws in plastic). The MG996R usually comes with rubber grommets and brass eyelets in the tabs, and the screw passes through the eyelet: measure the one your servo came with; if it is M3-class, the pilot is 2.5. On both, a through bolt with a nut also works.

The spline is the part you cannot print. The SG90's has 21 teeth on most units, on a diameter of about 4.8 mm; the MG996R's, 25. The tooth pitch is π · D / z = π · 4.8 / 21 ≈ 0.72 mm, and each tooth is about 0.36 mm wide: narrower than a single bead from a 0.4 nozzle, which extrudes 0.40–0.45. The 25-tooth spline is a little larger, but its pitch is about the same. A printed female spline comes out as a round hole with ripples: it grips by friction and slips under load.

pitch 0.720.42 bead21-tooth spline, Ø4.8what actually printstorque Tforce F on each screwr = 10servo hornscrew
The teeth of a 21-tooth Ø4.8 spline are narrower than one bead. What holds is the servo's plastic horn, screwed into a pocket shaped to fit it.

Instead of printing the spline, in order of preference:

  1. Keep the plastic horn that came with the servo and screw your part to it: a pocket shaped to the horn and its own screws, or M2 self-tappers, through its holes.
  2. For the MG996R, buy a 25-tooth metal horn (clamping versions exist) and screw your part to it.
  3. A resin-printed spline, for light loads only (Designing for resin).

Example: an MG996R drives a printed arm. Its stall torque is 11 kgf·cm (≈ 1.08 N·m) at 6 V and 9.4 kgf·cm (≈ 0.92 N·m) at 4.8 V, according to the TowerPro datasheet (the SG90 gives 1.8 kgf·cm, ≈ 0.18 N·m); clones claim more. Two horn screws at r = 10 mm carry F = T / (2r) = 1.08 / (2 · 0.010) ≈ 54 N each, a load a printed hole with three or more walls carries comfortably. A printed spline, which only grips by friction, gives you no figure to calculate with.

The servo's output shaft is short and supported right against the case: a long arm loaded at its tip bends it. If the arm is long or heavy, support the other side on a pin or a bearing coaxial with the output (Robot grippers).

When it fails

Symptom, cause and fix
Symptom Cause Fix
The flange rocks or the shaft is not square Pilot recess tight or shallow: the pilot bottoms out Ø22 + sliding fit, through or ≥ 2.2 deep
The screws feel tight but the motor moves under load The screw bottoms in the blind hole Shorter screw or thicker plate (e ≤ 4.0)
The belt goes slack again the next day The plastic yields under the heads and the slot slips Washers; a material with more temperature margin; retighten after 48 h
Soft mount and a tilted motor in an enclosed printer Material above its service temperature PC or fiber-filled composite; less driver current
The 28BYJ-48 will not fit its pocket Pocket centered on the shaft, ears drawn at 3.5, or a plate with no clearance for the boss Housing 8 off the shaft; Ø4.2 at 35; clearance hole for the boss
The arm slips on the servo Printed spline The servo's plastic horn or a metal horn, screwed on
The wheel or pulley turns on the N20 or NEMA 17 shaft Loose bore: the corner of the flat rounds the plastic off Zero clearance, a test hub, then a press fit (Fixing a part to a shaft)

How to test it

Before the mount, one test coupon per motor. For a NEMA 17, a 6 mm plate with the pilot recess at three diameters (22.3 / 22.4 / 22.5) and the four holes: bolt the motor on and keep the diameter at which it sits flat without rocking. For a servo, a wall with the pocket at three sizes. For a D-shaft, three hubs at 0, 0.05 and 0.1 clearance (Test coupons).

With the mount assembled and the motor in place, repeat the 30-minute test and retighten the screws before you call it done.

See also

Design it in KapyCAD

Draw the part to the standard's dimensions and keep them as values you can edit.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?