Browse Source

Added i3 Power button mount

Thomas Buck 6 years ago
parent
commit
d84514355d
2 changed files with 1646 additions and 0 deletions
  1. 48
    0
      i3_power_button/i3-button.scad
  2. 1598
    0
      i3_power_button/i3-button.stl

+ 48
- 0
i3_power_button/i3-button.scad View File

@@ -0,0 +1,48 @@
1
+front_width = 20;
2
+front_height = 31;
3
+button_hole = 16.5;
4
+button_off = 3;
5
+wall_size = 5;
6
+
7
+hole_dist = 25;
8
+hole_size = 3.2;
9
+mount_wall = 2.0;
10
+mount_height = 32;
11
+mount_width_in = 4;
12
+mount_width_out = 20;
13
+
14
+mount_button_off_x = 10;
15
+mount_button_off_y = 5;
16
+support_height = 7;
17
+
18
+$fn = 15;
19
+
20
+module button() {
21
+    difference() {
22
+        cube([front_width, wall_size, front_height]);
23
+        translate([front_width / 2, wall_size + 1, button_off + (button_hole / 2)])
24
+            rotate([90, 0, 0])
25
+            cylinder(d = button_hole, h = wall_size + 2);
26
+    }
27
+}
28
+
29
+module mount() {
30
+    difference() {
31
+        cube([mount_width_in + mount_width_out, mount_height, mount_wall]);
32
+        
33
+        translate([mount_width_in, (mount_height - hole_dist) / 2, -1])
34
+        union() {
35
+            cylinder(d = hole_size, h = mount_wall + 2);
36
+            translate([0, hole_dist, 0])
37
+                cylinder(d = hole_size, h = mount_wall + 2);
38
+        }
39
+    }
40
+}
41
+
42
+button();
43
+
44
+translate([-mount_width_in - mount_button_off_x, mount_button_off_y, front_height - mount_wall])
45
+    mount();
46
+
47
+translate([0, 0, front_height - support_height])
48
+    cube([mount_width_out - mount_button_off_x, mount_button_off_y + mount_height, support_height]);

+ 1598
- 0
i3_power_button/i3-button.stl
File diff suppressed because it is too large
View File


Loading…
Cancel
Save