-
Notifications
You must be signed in to change notification settings - Fork 28
/
small_extruder_gear.scad
69 lines (61 loc) · 2.11 KB
/
small_extruder_gear.scad
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// (c) 2011 Guy 'DeuxVis' P. <[email protected]>
// (c) 2013 Metamáquina <http://www.metamaquina.com.br/>
//
// Authors:
// * Guy 'DeuxVis' P. <[email protected]>
// * Felipe C. da S. Sanches <[email protected]>
// * Rafael H. de L. Moretti <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
use <gears.scad>;
include <BillOfMaterials.h>;
include <render.h>;
module motor_gear(teeth=11, shaft_diameter=5){
BillOfMaterials(category="3D Printed", partname="Small Extruder Gear", ref="MM2_SEG");
{//TODO: Add this part to the CAD model
BillOfMaterials("M3x8 grubscrew - TODO", ref="GS_M3x8");
}
material("ABS")
render()
translate([0,0,5])
difference() {
union() {
//gear
herringbone_gear( teeth=teeth, $fn=50 );
translate( [0, 0, 13] )
mirror( [0, 0, 1] )
difference() {
//base
rotate_extrude($fn=120) {
square( [9, 8] );
square( [10, 7] );
translate( [9, 7] ) circle( 1, $fn=50 );
}
//captive nut and grub holes
translate( [0, 20, 4] ) rotate( [90, 0, 0] ) union() {
//enterance
translate( [0, -3, 14.5] ) cube( [5.4, 6, 2.4], center=true );
//nut
translate( [0, 0, 13.3] ) rotate( [0, 0, 30] ) cylinder( r=3.12, h=2.4, $fn=6 );
//grub hole
translate( [0, 0, 9] ) cylinder( r=1.5, h=10, $fn=20 );
}
}
}
//shaft hole
translate( [0, 0, -6] )
cylinder( r=shaft_diameter/2, h=20, $fn=20 );
}
}
motor_gear();