-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmotor_gear.scad
72 lines (64 loc) · 2.06 KB
/
motor_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
70
71
72
/******************************************************/
/* PLYUMP */
/* file: motor_gear.scad */
/* author: Luis Rodriguez */
/* version: 0.41 */
/* w3b: http://lyulyulyulyu.tumblr.com */
/* info: */
/******************************************************/
include <parameters.scad>
use <involute_gears.scad>
// Testing
gear_motor();
/* MODULES */
module gear_motor(){
difference(){
union(){ // Add
half_gear_motor();
mirror([0,0,1])
half_gear_motor();
gear_motor_neck();
}
union(){ // Substract
gear_motor_shaft();
gear_motor_screw_holder();
}
}
}
// Half herringbone peristaltic gear
module half_gear_motor(){
gear (number_of_teeth=gear_motor_teeth,
circular_pitch=circular_pitch,
pressure_angle=pressure_angle,
gear_thickness = gear_motor_thickness/2,
rim_thickness = gear_motor_thickness/2,
rim_width = rim_width,
hub_thickness = 0,
twist=twist/gear_motor_teeth);
}
module gear_motor_neck(){
translate([0, 0, (gear_motor_thickness + gear_motor_neck_height ) /2 ])
cylinder( r = gear_motor_neck_diameter/2, h = gear_motor_neck_height,
$fn=birthday_day, center=true);
}
module gear_motor_shaft(){
translate([0, 0, gear_motor_neck_height])
#cylinder( r = gear_motor_shaft_diameter / 2,
h = ( gear_motor_thickness + gear_motor_neck_height ) ,
$fn = birthday_day,
center=true);
}
module gear_motor_screw_holder(){
// Screw hole
translate([0, gear_motor_thickness/2, gear_motor_thickness/2 + gear_motor_neck_height/2 ] ) {
rotate([90, 0, 0]) {
#cylinder( r = 3.2 / 2,
h = gear_motor_neck_diameter/2 + gear_motor_shaft_diameter , $fn = birthday_day,
center=true);
}
}
// // Bolt hole
// translate([0, gear_motor_neck_diameter/2 / (1.65) , gear_motor_thickness + gear_motor_neck_height ]) {
// cube(size=[gear_motor_bolt_length, gear_motor_bolt_width, gear_motor_thickness ], center=true);
// }
}