Browse Source

Simple case for AVR ESR meter

Thomas Buck 8 years ago
parent
commit
e1cd0751c6
2 changed files with 4883 additions and 0 deletions
  1. 65
    0
      ESR Meter/esr-case.scad
  2. 4818
    0
      ESR Meter/esr-case.stl

+ 65
- 0
ESR Meter/esr-case.scad View File

@@ -0,0 +1,65 @@
1
+width = 67;
2
+height = 67.5;
3
+hole_nub = 5;
4
+hole = 2;
5
+hole_width = 60;
6
+hole_height = 40;
7
+hole_offset_top = 3;
8
+wall_size = 1.4;
9
+
10
+depth_top = 3.6;
11
+depth_pcb = 1.6;
12
+depth_bottom = 4.1;
13
+depth_gap = 0.4;
14
+depth = depth_top + depth_pcb + depth_bottom + depth_gap;
15
+screw_nub_depth = depth_bottom + depth_gap;
16
+
17
+$fn = 20;
18
+
19
+module nub() {
20
+    difference() {
21
+        cylinder(d = hole_nub, h = screw_nub_depth);
22
+        translate([0, 0, -1])
23
+            cylinder(d = hole, h = screw_nub_depth + 2);
24
+    }
25
+}
26
+
27
+module nubs() {
28
+    nub();
29
+    
30
+    translate([hole_width, 0, 0])
31
+        nub();
32
+    
33
+    translate([0, hole_height, 0])
34
+        nub();
35
+    
36
+    translate([hole_width, hole_height, 0])
37
+        nub();
38
+}
39
+
40
+// base
41
+cube([width + (2 * wall_size), height + (2 * wall_size), wall_size]);
42
+
43
+// left wall
44
+difference() {
45
+    translate([0, 0, wall_size])
46
+        cube([wall_size, height + (2 * wall_size), depth]);
47
+    
48
+    translate([-1, wall_size + height - hole_offset_top - hole_height + hole_nub, wall_size])
49
+        cube([wall_size + 2, hole_nub, hole]);
50
+}
51
+
52
+// bottom wall
53
+translate([0, 0, wall_size])
54
+    cube([width + (2 * wall_size), wall_size, depth]);
55
+
56
+// right wall
57
+translate([width + wall_size, 0, wall_size])
58
+    cube([wall_size, height + (2 * wall_size), depth]);
59
+
60
+// top wall
61
+translate([0, height + wall_size, wall_size])
62
+    cube([width + (2 * wall_size), wall_size, depth]);
63
+
64
+translate([wall_size + (width - hole_width) / 2, wall_size + height - hole_height - hole_offset_top, wall_size])
65
+    nubs();

+ 4818
- 0
ESR Meter/esr-case.stl
File diff suppressed because it is too large
View File


Loading…
Cancel
Save