Skip to content

Commit 423fc36

Browse files
authored
Merge pull request #23 from SiloCityLabs/joycon-2
Joycon 2
2 parents e323e07 + 789954d commit 423fc36

6 files changed

Lines changed: 1839 additions & 387 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Cuttlephone is phone case generator and gamepad system for 3D printing. This is
3131
- install Ruby, gem, and bundle (or figure out the [Docker image of Github Pages](https://github.com/Starefossen/docker-github-pages))
3232
- `bundle update`
3333
- `JEKYLL_GITHUB_TOKEN=tokenGoesHere123456789 bundle exec jekyll serve --incremental`
34+
- or set `JEKYLL_GITHUB_TOKEN` in the environment variables
3435
- watch the console for something like this: `Server address: http://127.0.0.1:4000/`
3536

3637
# Build logs

magnet_ram_rod.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"fileFormatVersion": "1",
3+
"parameterSets": {
4+
"design default values": {
5+
"$fn": "30",
6+
"hex_diam": "6.35",
7+
"hex_length": "12",
8+
"magnet_depth": "1.7000000000000002",
9+
"magnet_width": "7.1",
10+
"screw_hole_diam": "2.6",
11+
"smidge": "0.01",
12+
"taper_width": "0.1"
13+
},
14+
"pusher": {
15+
"$fn": "35",
16+
"hex_diam": "6.3499999999999996",
17+
"hex_length": "12",
18+
"magnet_depth": "0.30000000000000004",
19+
"magnet_width": "6.0999999999999996",
20+
"screw_hole_diam": "2.6000000000000001",
21+
"slot_width": "6.7000000000000002",
22+
"smidge": "0.01",
23+
"taper_width": "0.10000000000000001"
24+
}
25+
}
26+
}

magnet_ram_rod.scad

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
include <libraries/BOSL2_submodule/std.scad>
2+
3+
$fn=35;
4+
5+
magnet_width = 7.1; // [ 0.1 : 0.1 : 10 ]
6+
magnet_depth = 1.7; // [ 0.1 : 0.1 : 10 ]
7+
taper_width = 0.1; // [ 0 : 0.1 : 1.5 ]
8+
//cup_depth = 1.0;
9+
10+
holder_length = 6.9; // [ 1 : 1 : 12 ]
11+
hex_length=12; // [ 1 : 1 : 20 ]
12+
13+
// size of the chuck in mm. 1/4"==6.35mm
14+
hex_diam=6.35; // 1/4 inch from flat to flat
15+
slot_width=6.7;
16+
17+
smidge=0.01;
18+
19+
// m3 screw == 2.6mm hole
20+
screw_hole_diam = 2.6;
21+
22+
difference() {
23+
union() {
24+
// hex shank
25+
rotate([180,0,0])
26+
linear_extrude(height=hex_length) {
27+
hexagon(
28+
id=hex_diam
29+
);
30+
}
31+
32+
// magnet holder
33+
cyl(
34+
d=magnet_width*1.3,
35+
h=holder_length,
36+
anchor=BOTTOM
37+
);
38+
39+
// taper down so we don't need supports
40+
cyl(
41+
d1=hex_diam/2,
42+
d2=magnet_width*1.3,
43+
h=holder_length,
44+
anchor=TOP
45+
);
46+
}
47+
48+
// cup cutout to hold magnet
49+
translate([0,0,holder_length+smidge])
50+
cyl(
51+
d1=magnet_width,
52+
d2=magnet_width+taper_width,
53+
h=magnet_depth,
54+
anchor=TOP
55+
);
56+
57+
// shave sides to fit in the joycon2 slot
58+
translate([-slot_width/2,0,0])
59+
cuboid([50,50,50], anchor=BOTTOM+RIGHT);
60+
61+
translate([slot_width/2,0,0])
62+
cuboid([50,50,50], anchor=BOTTOM+LEFT);
63+
64+
65+
// screw hole for magnetic screwdriver shaft
66+
translate([0,0,-hex_length-smidge])
67+
cyl(d=screw_hole_diam, h=hex_length, anchor=BOTTOM);
68+
69+
}

0 commit comments

Comments
 (0)