Skip to content

Add NEMA motor mount contract with folder-local registration - #51

Closed
seveibar wants to merge 1 commit into
mainfrom
codex/motion-nemamotormount
Closed

seveibar wants to merge 1 commit into
mainfrom
codex/motion-nemamotormount

Conversation

@seveibar

@seveibar seveibar commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Adds a configurable rigid L bracket for common NEMA 17 and NEMA 23 motor mounting patterns. It reuses the existing NEMA hole spans and pilot dimensions, with separate motor and base clearance holes and an explicit mounting-face/shaft-axis datum.

Example: nemamotormount_nema17_w50mm_h60mm_depth40mm_t3mm_axisheight30mm_shaft23mm_motorhole3.5mm_basehole5.5mm_basexspan30mm_baseoffset20mm.

The schema, strict parser, public exports and typed registration live in src/models/nemamotormount/. Adding this family changes no shared registry, export list or generated source. Documentation covers dimensions, unit conversion and invalid or conflicting inputs.

Schema, strict parser, public schema/type exports and typed registration remain in each src/models/<name>/ folder; generated discovery owns shared unions and barrels.

NEMA motor mounting bracket

Paired renderer: tscircuit/jscad-electronics#435. Direct full-string fixture; verified browser preview.

nemamotormount_nema17_w50mm_h60mm_depth40mm_t3mm_axisheight30mm_shaft23mm_motorhole3.5mm_basehole5.5mm_basexspan30mm_baseoffset20mm

The motor mounting face and shaft axis share the origin, +Y is up and +Z follows the shaft. The base extends toward -Z under the motor. Common fixing spans are 31/47.14 mm; 23/39.1 mm openings clear the representative 22/38.1 mm pilots. Bracket dimensions and base drillings are custom, not NEMA standards or a load rating. Circumscribed holes preserve minimum circular clearance; resolution guards account for their maximum radius.

Contract tests, typecheck, formatting, build and diff checks passed locally. Source-group result: 82 pass,0 fail,2043 assertions.

Four-view snapshots (isometric, top, front and side):

nemamotormount nema17: four views

nemamotormount nema23: four views

Contract test workflow passed in CI at this exact head. Other passing checks: preview.

The combined contract union passed tests (105 tests, 0 failures, 2,994 assertions), typecheck, formatting and build.

Manual review only; auto-merge is not enabled. Geometry remains in the paired renderer PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant