chiark / gitweb /
fairphone-case: introduce MicroUSB
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 21:05:15 +0000 (21:05 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 21:05:15 +0000 (21:05 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index b0ec769c3120a2f5e774a7ea25e8ffeb10a104c4..39ad7c067ce84954a886c1af9619f11bbc6d8c88 100644 (file)
@@ -31,6 +31,10 @@ fingerpushhole_dias = [ 14, 17 ];
 rearspeaker_pos_bl = [ 12.64, 18.72 ];
 rearspeaker_size   = [  3.76,  7.36 ];
 
+microusb_above = 4.48 + 0.50;
+microusb_below = 1.82 + 0.50;
+microusb_width = 10.60 + 1.00;
+
 case_th_bottom = 2.5;
 case_th_lid = 2.5;
 case_th_side = 2;
@@ -381,6 +385,17 @@ module OrdinaryRearAperture(rhs,bot, pos){
     children();
 }
 
+module MicroUSB(){
+  Flip_bot(1){
+    rotate([90,0,0])
+      mirror([0,0,1])
+      linextr(-epp2i[0], 60)
+      translate([0.5 * phone_width, 0, 0])
+      rectfromto([-microusb_width/2, epp2i[1] + microusb_below],
+                [+microusb_width/2, epp0[1] + -microusb_above]);
+  }
+}
+
 module OrdinaryRearApertures(){
   // rear speaker
   OrdinaryRearAperture(1,1, rearspeaker_pos_bl)
@@ -522,6 +537,8 @@ module Case(){ ////toplevel
 
     OrdinaryRearApertures();
 
+    MicroUSB();
+
     // gaps for the lid's hinge arms
     HingePortion(hex20 - hinge_x_arms_gap,
                 hex21 + hinge_x_arms_gap)