Welcome to mirror list, hosted at ThFree Co, Russian Federation.

motor.scad - github.com/haydnhuntley/kumu-3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5505a826683b3d436294cb758463475960c241b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// A NEMA17 sized motor.
//
// DO NOT SLICE THIS.
//
// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
// International License.
// Visit:  http://creativecommons.org/licenses/by-sa/4.0/
//
// Haydn Huntley
// haydn.huntley@gmail.com


include <configuration.scad>;


nema17Width            = 42.5;
nema17Length           = 48;
nema17Diameter		   = 50;
nema17ShaftDiameter    =  5;
nema17ShaftLength      = 25;
nema17ShoulderDiameter = 22;
nema17ShoulderHeight   =  2;
nema17ScrewSpacing     = 31.3;
dampenerOffset         =  6;


module nema17Motor(motorLength=nema17Length)
{
	// Drawn with the shaft pointing toward the positive X-axis.
	
	// The motor's shaft.
	translate([motorLength/2, 0, 0])
	rotate([0, 90, 0])
	cylinder(r=nema17ShaftDiameter/2, h=nema17ShaftLength, $fn=24);

	// The motor's shoulder.
	translate([motorLength/2, 0, 0])
	rotate([0, 90, 0])
	cylinder(r=nema17ShoulderDiameter/2, h=nema17ShoulderHeight, $fn=24);
	
	// The rectangular body of the motor with rounded corners.
	intersection()
	{
		cube([motorLength, nema17Width, nema17Width], true);

		rotate([0, 90, 0])
		cylinder(r=nema17Diameter/2, h=motorLength, center=true, $fn=24);
	}
}