-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmagnet_ram_rod.scad
More file actions
69 lines (54 loc) · 1.59 KB
/
Copy pathmagnet_ram_rod.scad
File metadata and controls
69 lines (54 loc) · 1.59 KB
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
include <libraries/BOSL2_submodule/std.scad>
$fn=35;
magnet_width = 7.1; // [ 0.1 : 0.1 : 10 ]
magnet_depth = 1.7; // [ 0.1 : 0.1 : 10 ]
taper_width = 0.1; // [ 0 : 0.1 : 1.5 ]
//cup_depth = 1.0;
holder_length = 6.9; // [ 1 : 1 : 12 ]
hex_length=12; // [ 1 : 1 : 20 ]
// size of the chuck in mm. 1/4"==6.35mm
hex_diam=6.35; // 1/4 inch from flat to flat
slot_width=6.7;
smidge=0.01;
// m3 screw == 2.6mm hole
screw_hole_diam = 2.6;
difference() {
union() {
// hex shank
rotate([180,0,0])
linear_extrude(height=hex_length) {
hexagon(
id=hex_diam
);
}
// magnet holder
cyl(
d=magnet_width*1.3,
h=holder_length,
anchor=BOTTOM
);
// taper down so we don't need supports
cyl(
d1=hex_diam/2,
d2=magnet_width*1.3,
h=holder_length,
anchor=TOP
);
}
// cup cutout to hold magnet
translate([0,0,holder_length+smidge])
cyl(
d1=magnet_width,
d2=magnet_width+taper_width,
h=magnet_depth,
anchor=TOP
);
// shave sides to fit in the joycon2 slot
translate([-slot_width/2,0,0])
cuboid([50,50,50], anchor=BOTTOM+RIGHT);
translate([slot_width/2,0,0])
cuboid([50,50,50], anchor=BOTTOM+LEFT);
// screw hole for magnetic screwdriver shaft
translate([0,0,-hex_length-smidge])
cyl(d=screw_hole_diam, h=hex_length, anchor=BOTTOM);
}