-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathz_motor_mount.scad
30 lines (28 loc) · 1.13 KB
/
z_motor_mount.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
include <ss_parms.scad>
use <Libs.scad>
use <MCAD/motors.scad>
z_motor_mount();
module z_motor_mount(){
difference(){
union(){
// main body
cube(size=[z_motor_mount_length, z_motor_mount_width, z_mount_thick]);
// bearing mount
translate([z_bearing_diameter/2 + z_pocket_wall, z_bearing_diameter/2 + z_pocket_wall, z_mount_thick -0.1])
tube(r=z_bearing_diameter/2 + z_pocket_wall, thickness = z_pocket_wall-bearing_tol, height=z_bearing_width+0.1, center=false, outline=false);
//mounting tabs
translate([0,-es_height,0])
cube(size = [10, es_height + 0.1, z_mount_thick]);
translate([es_length/2 - 5, -es_height,0])
cube(size = [10, es_height + 0.1, z_mount_thick]);
}
// rod bore
translate([z_bearing_diameter/2 + z_pocket_wall, z_bearing_diameter/2 + z_pocket_wall, -0.5])
cylinder(r = z_rod_bore_diameter/2, h = z_mount_thick + 1);
// motor mount
translate([z_motor_mount_length + 5 - z_motor_slide - 1.7*inch/2,z_motor_mount_width/2,-0.5])
rotate([0,0,90])
linear_extrude(height = z_mount_thick + 1)
stepper_motor_mount(17,slide_distance=z_motor_slide, mochup=false, tolerance=0.25);
}
}