Pārlūkot izejas kodu

epd_case: extend pocket 1.25mm deeper at Y+ edge

Adds DISP_Y_EXTRA=1.25 so the display can seat 1.25mm further into
the slot. FPC slot and preview mockup shift to match; _bend_my updated
so epd_case_d grows to accommodate the shifted FPC bend.
ZiB 4 mēneši atpakaļ
vecāks
revīzija
9debceedbc
2 mainītis faili ar 12 papildinājumiem un 11 dzēšanām
  1. 3 3
      epd_case.scad
  2. 9 8
      params.scad

+ 3 - 3
epd_case.scad

@@ -16,7 +16,7 @@ module epd_case() {
 
     // Display cavity: slides in from Y=0; BEZEL_Y extends depth so display seats at Y=BEZEL_Y
     translate([WALL, -0.01, WALL])
-      cube([epd_cav_w, BEZEL_Y + epd_cav_d + 0.01, DISP_T + TOL]);
+      cube([epd_cav_w, BEZEL_Y + epd_cav_d + DISP_Y_EXTRA + 0.01, DISP_T + TOL]);
 
     // Active area window: straight portion + chamfered top edges
     // Extends 0.01 mm into the display cavity to avoid a coplanar face with the mockup
@@ -32,7 +32,7 @@ module epd_case() {
     // FPC cable slot — quarter-cylinder swept volume of cable arc from horizontal to vertical.
     // Arc center at (Y=DISP_D, Z=WALL−FPC_BEND_R); first-quadrant slice (Y≥DISP_D, Z≥arc_center_z).
     // Creates opening through backplate floor and clears Y+ wall material for bend.
-    translate([_fpc_x1, BEZEL_Y + DISP_D, WALL - FPC_BEND_R])
+    translate([_fpc_x1, BEZEL_Y + DISP_D + DISP_Y_EXTRA, WALL - FPC_BEND_R])
       intersection() {
         rotate([0, 90, 0])
           cylinder(r=_fpc_ro, h=_fpc_xw, $fn=32);
@@ -50,5 +50,5 @@ color("#004B49")
 
 // Display mockup — seated at case origin; EPD_EXPLODE pulls it toward Y-
 if ($preview && SHOW_DISP)
-  translate([WALL + TOL, BEZEL_Y - EPD_EXPLODE, WALL])
+  translate([WALL + TOL, BEZEL_Y + DISP_Y_EXTRA - EPD_EXPLODE, WALL])
     GDEY0583T81(fpc_bend_start=0, fpc_bend_r=FPC_BEND_R, fpc_post_clip=2);

+ 9 - 8
params.scad

@@ -18,13 +18,14 @@ ACT_W  = 118.78;
 ACT_D  = 88.22;
 
 /* [EPD Case Parameters] */
-LIP        = 1.5;
-TOL        = 0.3;
-CHAM       = 1.0;
-CHAM_ANGLE = 60;
-BEZEL_Y    = 2.5;
-BEZEL_YP   = 2.5;   // extra Y+ (bottom) bezel padding; shifts display toward Y- within the lid
-FPC_BEND_R = 4.0;
+LIP          = 1.5;
+TOL          = 0.3;
+CHAM         = 1.0;
+CHAM_ANGLE   = 60;
+BEZEL_Y      = 2.5;
+BEZEL_YP     = 2.5;   // extra Y+ (bottom) bezel padding; shifts display toward Y- within the lid
+FPC_BEND_R   = 4.0;
+DISP_Y_EXTRA = 1.25;  // extra pocket depth at Y+ so display can seat 1.25mm further in
 
 /* [EPD Case Derived] */
 epd_cav_w  = DISP_W + TOL * 2;
@@ -34,7 +35,7 @@ epd_case_h = WALL + DISP_T + LIP;
 _fpc_x1    = WALL + TOL + DISP_W - 55.47 - 12.50 - 2.5;
 _fpc_xw    = 12.50 + 5.0;
 _fpc_ro    = FPC_BEND_R + 0.30 + TOL;
-_bend_my   = BEZEL_Y + DISP_D + sqrt(_fpc_ro*_fpc_ro - (FPC_BEND_R - WALL)*(FPC_BEND_R - WALL));
+_bend_my   = BEZEL_Y + DISP_D + DISP_Y_EXTRA + sqrt(_fpc_ro*_fpc_ro - (FPC_BEND_R - WALL)*(FPC_BEND_R - WALL));
 epd_case_d = max(epd_cav_d + WALL + BEZEL_Y, _bend_my + WALL) + BEZEL_YP;
 _cham_xy   = CHAM * tan(CHAM_ANGLE);
 WIN_W_EXTRA = 0.3;  // extra clearance added to each side of window vs. active area