forked from vector76/gridfinity_openscad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgridfinity_flsun_q5.scad
More file actions
22 lines (19 loc) · 864 Bytes
/
gridfinity_flsun_q5.scad
File metadata and controls
22 lines (19 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// include instead of use, so we get the pitch
include <modules/gridfinity_modules.scad>
use <gridfinity_baseplate.scad> // for frame_plain
translate([gridfinity_pitch/2, gridfinity_pitch/2, 0]) frame_plain(4, 1);
ear_hole_x = 182.5; // distance between existing screw holes on FLSUN q5.
ear_hole_y = 7; // distance of screw hole from the front panel.
from_ends = (ear_hole_x - gridfinity_pitch*4) / 2;
cube_z = 4.4; // ht from above.
M4_d = 4.2; // diameter needed for an M4 bolt.
for (i = [0,1]) {
x = i * ear_hole_x - from_ends;
difference() {
hull() {
translate([x, ear_hole_y, 0]) cylinder(h=cube_z, d=M4_d*2, $fn=20);
translate([x - from_ends * i, ear_hole_y - M4_d, 0]) cube([from_ends, M4_d*2, cube_z]);
}
translate([x, ear_hole_y, -0.01]) cylinder(h=cube_z + 0.02, d=M4_d, $fn=20);
}
}