-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmotor_clip.scad
63 lines (44 loc) · 1.39 KB
/
motor_clip.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
// motor clip for motor holder
// from motor_holder
// NOTE: some tolerance added
$mr = 10.7; // 10 mm radius + shrinkage
$mh = 15.8; // 15 mm height + shrinkage
$ml = 25.0; // 25.0 mm length excluding 'nubs'
$ml2 = 19.5; // 19.5 mm lengh excluding end cap and shaft guide hole 'nub'
$th = 6.0; // overall width of plastic around motor
$sw = 2; // 2mm approximate height of guide
// dimensions for butt-end
$br = 5.4 ; // radius of hole for bearing housing (exclude notch)
$oh = 1.0; // overhang of tabs
$thm = 1.0; // thickness of plastic on motor mount sides around motor
$bh = 9.0; // 'butt height' plus some clearance
$tt = 1.0; // tab thickness
$fn=32; // 32 facets
module tab(rr)
{
color("red")
rotate(a=[0,0,rr])
union()
{
linear_extrude(height=2) // horiz
translate([$br + $sw - 1,-$th/2,0])
square([$mr+$thm+$sw-$br-$sw + 1,$th]);
translate([$mr+$thm+$sw,-$th/2,0]) // vert
rotate(a=[0,-90,0])
linear_extrude(height=$tt)
square([$bh + $sw + $tt/2,$th]);
translate([$mr+$thm+$sw,-$th/2,$sw+$bh])
rotate(a=[-90,-90,0])
linear_extrude(height=$th)
polygon([[0,-$tt*2-$oh],[0,0],[$tt*2,0]]);
}
}
color("black")
linear_extrude(height=2)
difference()
{
circle($br + $sw);
circle($br);
}
tab(0);
tab(180);