From 50733f510c85e0c53863be2c7df5d177c8056924 Mon Sep 17 00:00:00 2001 From: Joel Ebel Date: Sat, 26 May 2018 22:59:08 -0400 Subject: [PATCH] Embiggen the PCB and add examples to back panel. Make the back margin 0 so the PCB is up against the back panel. Make use of the variables describing the panel with respect to the PCB to show how they can be used. --- files/U_Box_V104_Test_Cleaned.scad | 31 ++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/files/U_Box_V104_Test_Cleaned.scad b/files/U_Box_V104_Test_Cleaned.scad index 2551326..6465cf1 100644 --- a/files/U_Box_V104_Test_Cleaned.scad +++ b/files/U_Box_V104_Test_Cleaned.scad @@ -73,19 +73,19 @@ SnapTabs = 0; // [0:Screws, 1:Snaps] // - Longueur PCB - PCB Length PCBLength = 80; // - Largeur PCB - PCB Width -PCBWidth = 60; +PCBWidth = 144; // - Epaisseur PCB Thickness PCBThick = 1.6; // You likely need to maintain |Thick| margin on the left and right for tabs // and whatnot. // - Margin between front panel and PCB -FrontEdgeMargin = 60; +FrontEdgeMargin = 70; // - Margin between back panel and PCB -BackEdgeMargin = 10; +BackEdgeMargin = 0; // - Margin between left wall and PCB LeftEdgeMargin = 11; // - Margin between right wall and PCB -RightEdgeMargin = 95; +RightEdgeMargin = 11; // - Margin between top of PCB and box top. TopPCBMargin = 84; @@ -213,11 +213,34 @@ module FPanelText() { // Holes for back panel module BPanelHoles() { + CylinderHole(1, + LeftEdgeOfBoardWRTBPanel + 16.4, + TopOfBoardWRTPanel + 7, + 5); + SquareHole(1, + LeftEdgeOfBoardWRTBPanel + 37.3, + TopOfBoardWRTPanel, + 39.2, + 12.55, + 1); } // Text for back panel module BPanelText() { + LText(1, + LeftEdgeOfBoardWRTBPanel + 16.4, + TopOfBoardWRTPanel + 7 + 5, + "Arial Black", + 4, "PWR" + ); + LText(1, + LeftEdgeOfBoardWRTBPanel + 37.3 + 39.2/2, + TopOfBoardWRTPanel + 12.55 + 2, + "Arial Black", + 4, + "DATA" + ); }