Skip to content
Revar Desmera edited this page Mar 31, 2019 · 9 revisions

Library File nema_steppers.scad

Masks and models for NEMA stepper motors. To use, add these lines to the top of your file:

include <BOSL/constants.scad>
use <BOSL/nema_steppers.scad>

Table of Contents

  1. Functions

  2. Motor Models

  3. Masking Modules


1. Functions

nema_motor_width()

Description: Gets width of NEMA motor of given standard size.

Argument What it does
size The standard NEMA motor size.

nema_motor_plinth_height()

Description: Gets plinth height of NEMA motor of given standard size.

Argument What it does
size The standard NEMA motor size.

nema_motor_plinth_diam()

Description: Gets plinth diameter of NEMA motor of given standard size.

Argument What it does
size The standard NEMA motor size.

nema_motor_screw_spacing()

Description: Gets screw spacing of NEMA motor of given standard size.

Argument What it does
size The standard NEMA motor size.

nema_motor_screw_size()

Description: Gets mount screw size of NEMA motor of given standard size.

Argument What it does
size The standard NEMA motor size.

nema_motor_screw_depth()

Description: Gets mount screwhole depth of NEMA motor of given standard size.

Argument What it does
size The standard NEMA motor size.

2. Motor Models

nema11_stepper()

Description: Creates a model of a NEMA 11 stepper motor.

Argument What it does
h Length of motor body. Default: 24mm
shaft Shaft diameter. Default: 5mm
shaft_len Length of shaft protruding out the top of the stepper motor. Default: 20mm
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_DOWN.

Example:

nema11_stepper();

nema11_stepper() Example


nema14_stepper()

Description: Creates a model of a NEMA 14 stepper motor.

Argument What it does
h Length of motor body. Default: 24mm
shaft Shaft diameter. Default: 5mm
shaft_len Length of shaft protruding out the top of the stepper motor. Default: 24mm
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_DOWN.

Example:

nema14_stepper();

nema14_stepper() Example


nema17_stepper()

Description: Creates a model of a NEMA 17 stepper motor.

Argument What it does
h Length of motor body. Default: 34mm
shaft Shaft diameter. Default: 5mm
shaft_len Length of shaft protruding out the top of the stepper motor. Default: 20mm
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_DOWN.

Example:

nema17_stepper();

nema17_stepper() Example


nema23_stepper()

Description: Creates a model of a NEMA 23 stepper motor.

Argument What it does
h Length of motor body. Default: 50mm
shaft Shaft diameter. Default: 6.35mm
shaft_len Length of shaft protruding out the top of the stepper motor. Default: 25mm
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_DOWN.

Example:

nema23_stepper();

nema23_stepper() Example


nema34_stepper()

Description: Creates a model of a NEMA 34 stepper motor.

Argument What it does
h Length of motor body. Default: 75mm
shaft Shaft diameter. Default: 12.7mm
shaft_len Length of shaft protruding out the top of the stepper motor. Default: 32mm
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_DOWN.

Example:

nema34_stepper();

nema34_stepper() Example


3. Masking Modules

nema_mount_holes()

Description: Creates a mask to use when making standard NEMA stepper motor mounts.

Argument What it does
size The standard NEMA motor size to make a mount for.
depth The thickness of the mounting hole mask. Default: 5
l The length of the slots, for making an adjustable motor mount. Default: 5
slop The printer-specific slop value to make parts fit just right. Default: PRINTER_SLOP
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_CENTER.

Example 1:

nema_mount_holes(size=14, depth=5, l=5);

nema_mount_holes() Example 1

Example 2:

nema_mount_holes(size=17, depth=5, l=5);

nema_mount_holes() Example 2

Example 3:

nema_mount_holes(size=17, depth=5, l=0);

nema_mount_holes() Example 3


nema11_mount_holes()

Description: Creates a mask to use when making NEMA 11 stepper motor mounts.

Argument What it does
depth The thickness of the mounting hole mask. Default: 5
l The length of the slots, for making an adjustable motor mount. Default: 5
slop The printer-specific slop value to make parts fit just right. Default: PRINTER_SLOP
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_CENTER.

Example 1:

nema11_mount_holes(depth=5, l=5);

nema11_mount_holes() Example 1

Example 2:

nema11_mount_holes(depth=5, l=0);

nema11_mount_holes() Example 2


nema14_mount_holes()

Description: Creates a mask to use when making NEMA 14 stepper motor mounts.

Argument What it does
depth The thickness of the mounting hole mask. Default: 5
l The length of the slots, for making an adjustable motor mount. Default: 5
slop The printer-specific slop value to make parts fit just right. Default: PRINTER_SLOP
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_CENTER.

Example 1:

nema14_mount_holes(depth=5, l=5);

nema14_mount_holes() Example 1

Example 2:

nema14_mount_holes(depth=5, l=0);

nema14_mount_holes() Example 2


nema17_mount_holes()

Description: Creates a mask to use when making NEMA 17 stepper motor mounts.

Argument What it does
depth The thickness of the mounting hole mask. Default: 5
l The length of the slots, for making an adjustable motor mount. Default: 5
slop The printer-specific slop value to make parts fit just right. Default: PRINTER_SLOP
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_CENTER.

Example 1:

nema17_mount_holes(depth=5, l=5);

nema17_mount_holes() Example 1

Example 2:

nema17_mount_holes(depth=5, l=0);

nema17_mount_holes() Example 2


nema23_mount_holes()

Description: Creates a mask to use when making NEMA 23 stepper motor mounts.

Argument What it does
depth The thickness of the mounting hole mask. Default: 5
l The length of the slots, for making an adjustable motor mount. Default: 5
slop The printer-specific slop value to make parts fit just right. Default: PRINTER_SLOP
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_CENTER.

Example 1:

nema23_mount_holes(depth=5, l=5);

nema23_mount_holes() Example 1

Example 2:

nema23_mount_holes(depth=5, l=0);

nema23_mount_holes() Example 2


nema34_mount_holes()

Description: Creates a mask to use when making NEMA 34 stepper motor mounts.

Argument What it does
depth The thickness of the mounting hole mask. Default: 5
l The length of the slots, for making an adjustable motor mount. Default: 5
slop The printer-specific slop value to make parts fit just right. Default: PRINTER_SLOP
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_CENTER.

Example 1:

nema34_mount_holes(depth=5, l=5);

nema34_mount_holes() Example 1

Example 2:

nema34_mount_holes(depth=5, l=0);

nema34_mount_holes() Example 2


nema34_mount_holes()

Description: Creates a mask to use when making NEMA 34 stepper motor mounts.

Argument What it does
depth The thickness of the mounting hole mask. Default: 5
l The length of the slots, for making an adjustable motor mount. Default: 5
slop The printer-specific slop value to make parts fit just right. Default: PRINTER_SLOP
orient Orientation of the stepper. Use the ORIENT_ constants from constants.scad. Default: ORIENT_Z.
align Alignment of the stepper. Use the V_ constants from constants.scad. Default: V_CENTER.

Example 1:

nema34_mount_holes(depth=5, l=5);

nema34_mount_holes() Example 1

Example 2:

nema34_mount_holes(depth=5, l=0);

nema34_mount_holes() Example 2