Browse Source

Merge branch 'feature_models'

Thomas Buck 9 months ago
parent
commit
0408b4bd08

+ 74
- 1
3dprint/enclosure.scad View File

@@ -1 +1,74 @@
1
-part="bottom";//[bottom,top]
1
+//currantly the box is unfinished, but you can still use faceplate.
2
+$fa=1/1;
3
+$fs=1/2;
4
+bissl=1/100;
5
+part="bottom";//[bottom,top,faceplate]
6
+pegs_h=5;
7
+pegs_id=3;
8
+pegs_od=7;
9
+wall=1;
10
+depth=30;
11
+air=0.5; //wiggle room
12
+//board (and box) size goes here
13
+//defined as corners of inner space relatove to x=y=0 point on the board
14
+//[x1,y1,x2,y2]
15
+board=[-2,-2,90.81+4,118.75+2];
16
+screen=[67.2+2,16.5-10,20,27];
17
+//holes in the front panel
18
+//defined as [x,y,diameter], where x from KiCAD becomes y and y becomes x, because
19
+//coordinate conventions in Kicad and OpenSCAD are mirrored
20
+holes_positions=[
21
+  [48.90,66.68,12], //encoder
22
+  [48.3,85.4,7], //power
23
+  [71.12,48.26,8], //leds
24
+  [71.12,67.31,8],
25
+  [71.12,86.36,8],
26
+  [71.12,105.41,8],
27
+  [85.73,48,12], //buttons
28
+  [85.73,67.3,12],
29
+  [85.73,86.36,12],
30
+  [85.73,105.41,12]];
31
+//standoffs to hold the board
32
+//defined as [x,y,id,od,height], where x from KiCAD becomes y and y becomes x, because
33
+//coordinate conventions in Kicad and OpenSCAD are mirrored
34
+mount_pegs=[
35
+  [1.90,1.90,pegs_id,pegs_od,pegs_h],
36
+  [1.90,116.84,pegs_id,pegs_od,pegs_h],
37
+  [88.90,1.90,pegs_id,pegs_od,pegs_h],
38
+  [88.90,116.84,pegs_id,pegs_od,pegs_h]
39
+];
40
+module bottom() {
41
+  difference() {
42
+    translate([board[0]-wall,board[1]-wall,-wall]) cube([board[2]-board[0]+2*wall,board[3]-board[1]+2*wall,depth+wall]);
43
+    translate([board[0],board[1],0]) cube([board[2]-board[0],board[3]-board[1],depth+bissl]);
44
+  }
45
+  for (peg=mount_pegs) {
46
+    translate([peg[0],peg[1],0]) difference() {
47
+      cylinder(d=peg[3],h=peg[4]);
48
+      translate([0,0,-bissl]) cylinder(d=peg[2],h=peg[4]+2*bissl);
49
+    }
50
+  }
51
+}
52
+module faceplate() {
53
+  difference() {
54
+    translate([board[0]-wall,board[1]-wall,0]) cube([board[2]-board[0]+2*wall,board[3]-board[1]+2*wall,wall]);
55
+    for (hole=holes_positions) {
56
+      translate([hole[0],hole[1],-bissl]) cylinder(d=hole[2],h=wall+2*bissl);
57
+    }
58
+    translate([screen[0],screen[1],-bissl])cube([screen[2],screen[3],wall+2*bissl]);
59
+  }
60
+};
61
+module top() {
62
+  mirror([0,0,1])faceplate();
63
+    difference() {
64
+    translate([board[0]-wall,board[1]-wall,0]) cube([board[2]-board[0]+2*wall,board[3]-board[1]+2*wall,depth]);
65
+    translate([board[0],board[1],-bissl]) cube([board[2]-board[0],board[3]-board[1],depth+2*bissl]);
66
+  }
67
+}
68
+if (part=="bottom") bottom();
69
+if (part=="faceplate") faceplate();
70
+if (part=="top") top();
71
+if (part=="all") {
72
+  bottom();
73
+  translate([0,0,depth+wall]) faceplate();
74
+}

+ 0
- 15
3dprint/tamb_mount.json View File

@@ -1,15 +0,0 @@
1
-{
2
-    "fileFormatVersion": "1",
3
-    "parameterSets": {
4
-        "New set 1": {
5
-            "air": "1",
6
-            "beam_width": "7",
7
-            "hole": "3",
8
-            "hole_tamb": "23",
9
-            "id_tamb": "239",
10
-            "lip": "3",
11
-            "od_tamb": "251",
12
-            "part": "outer"
13
-        }
14
-    }
15
-}

+ 0
- 3
pcb/Mini360_lib/mini360.dcm View File

@@ -1,3 +0,0 @@
1
-EESchema-DOCLIB  Version 2.0
2
-#
3
-#End Doc Library

+ 0
- 20
pcb/Mini360_lib/mini360.lib View File

@@ -1,20 +0,0 @@
1
-EESchema-LIBRARY Version 2.3
2
-#encoding utf-8
3
-#
4
-# Mini360
5
-#
6
-DEF Mini360 U 0 40 Y Y 1 F N
7
-F0 "U" 0 -200 60 H V C CNN
8
-F1 "Mini360" 0 200 60 H V C CNN
9
-F2 "" 0 0 60 H I C CNN
10
-F3 "" 0 0 60 H I C CNN
11
-DRAW
12
-S -400 300 400 -300 0 1 0 f
13
-X IN- 1 -600 -100 200 R 50 50 1 1 W
14
-X IN+ 2 -600 100 200 R 50 50 1 1 W
15
-X OUT- 3 600 -100 200 L 50 50 1 1 w
16
-X OUT+ 4 600 100 200 L 50 50 1 1 w
17
-ENDDRAW
18
-ENDDEF
19
-#
20
-#End Library

+ 0
- 16
pcb/Mini360_step-down.pretty/Mini360_step-down.kicad_mod View File

@@ -1,16 +0,0 @@
1
-(module "Mini360 step-down" (layer F.Cu) (tedit 5B7ACF15)
2
-  (fp_text reference REF** (at 0 0.5) (layer F.SilkS)
3
-    (effects (font (size 1 1) (thickness 0.15)))
4
-  )
5
-  (fp_text value Mini360 (at 0 -0.5) (layer F.Fab)
6
-    (effects (font (size 1 1) (thickness 0.15)))
7
-  )
8
-  (fp_line (start -8.75 -5.54) (end 8.75 -5.54) (layer F.SilkS) (width 0.15))
9
-  (fp_line (start 8.75 5.53) (end -8.75 5.53) (layer F.SilkS) (width 0.15))
10
-  (fp_line (start -8.75 -5.54) (end -8.75 5.53) (layer F.SilkS) (width 0.15))
11
-  (fp_line (start 8.75 5.53) (end 8.75 -5.54) (layer F.SilkS) (width 0.15))
12
-  (pad 1 thru_hole oval (at -7.62 -4.57) (size 2.5 2) (drill 0.762) (layers *.Cu *.Mask))
13
-  (pad 2 thru_hole oval (at -7.62 4.57) (size 2.5 2) (drill 0.762) (layers *.Cu *.Mask))
14
-  (pad 3 thru_hole oval (at 7.62 -4.57) (size 2.5 2) (drill 0.762) (layers *.Cu *.Mask))
15
-  (pad 4 thru_hole oval (at 7.62 4.57) (size 2.5 2) (drill 0.762) (layers *.Cu *.Mask))
16
-)

Loading…
Cancel
Save