chiark / gitweb /
digispark-with-cable: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 Oct 2023 22:56:28 +0000 (23:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 26 Oct 2023 17:10:37 +0000 (18:10 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
digispark-with-cable.scad [new file with mode: 0644]

diff --git a/digispark-with-cable.scad b/digispark-with-cable.scad
new file mode 100644 (file)
index 0000000..279df34
--- /dev/null
@@ -0,0 +1,52 @@
+// -*- C -*-
+
+include <utils.scad>
+
+//tongue_w = 11.92 + 0.4;
+
+usb_w = 12.01 - 0.3;
+usb_wall_w = 0.75 - 0.1;
+usb_tongue_d = 8.97 - 0.2;
+usb_wall_h = 4.54 - 2.04;
+usb_ceil_th = 0.125;
+
+side_wall_th = 1.5;
+
+board_l = 13.56 + 0.2;
+board_w = 19.14 + 0.2;
+
+module TopSmallWallsPlan() {
+  for (m=[0,1]) {
+    mirror([m,0]) {
+      rectfromto([ -usb_w/2,              -0.01        ],
+                [ -usb_w/2 + usb_wall_w, usb_tongue_d ]);
+    }
+  }
+}
+module BothSides(){
+  for (m=[0,1]) {
+    mirror([m,0]) {
+      children();
+    }
+  }
+}
+module TopCeilPlan() {
+  BothSides(){
+    rectfromto([ -usb_w/2,              -0.01        ],
+              [ 0.1,                   usb_tongue_d ]);
+    rectfromto([ -board_w/2 - side_wall_th, 0            ],
+              [ 0.1,                       -board_l     ]);
+  }
+}
+module TopMainWallsPlan() {
+  
+}
+
+module Top(){
+  linextr(0, usb_wall_h)
+    TopSmallWallsPlan();
+  linextr(usb_wall_h - usb_ceil_th, usb_wall_h)
+    TopCeilPlan();
+}
+
+Top();