33//
44// This is a box for <template>
55//
6- // Version 2.0 (21-05 -2023)
6+ // Version 2.1 (12-11 -2023)
77//
88// This design is parameterized based on the size of a PCB.
99//
@@ -50,7 +50,7 @@ include <../YAPP_Box/library/YAPPgenerator_v21.scad>
5050*/
5151
5252// Override the default facet count of 20
53- facetCount = 36 ;
53+ facetCount = 15 ;
5454
5555// -- which part(s) do you want to print?
5656printBaseShell = true ;
@@ -94,18 +94,14 @@ standoffHoleSlack = 0.4;
9494standoffDiameter = 7 ;
9595
9696
97- // -- Use a fillet at the base of posts instead of 'flange'
98- // useFillet = true;
99- // filletRadius = wallThickness; //0 = auto (fillet Radius = pin radius
100-
101-
102-
10397// -- D E B U G -----------------//-> Default ---------
10498showSideBySide = true ; // -> true
10599onLidGap = 0 ;
106100shiftLid = 1 ;
107101hideLidWalls = false ; // -> false
108102hideBaseWalls = false ; // -> false
103+ colorLid = "silver" ;
104+ colorBase = "lightgray" ;
109105showOrientation = true ;
110106showPCB = false ;
111107showSwitches = false ;
@@ -129,7 +125,7 @@ inspectButtons = 0; //-> { -1 | 0 | 1 }
129125// (n) = { yappAllCorners | yappFrontLeft | yappFrontRight | yappBackLeft | yappBackRight }
130126// (n) = { yappAddFillet }
131127pcbStands = [
132- [4 , 4 , 4 , 2 .5 , yappBoth, yappFrontLeft, yappAddFillet]
128+ [4 , 4 , 4 , 3 .5 , yappBoth, yappFrontLeft, yappAddFillet]
133129 , [4 , 4 , 4 , 2.5 , yappBoth, yappBackRight, yappAddFillet]
134130 , [5 , 5 , 4 , 0 , yappBaseOnly, yappFrontRight, yappAddFillet]
135131 , [5 , 5 , 4 , 0 , yappBaseOnly, yappBackLeft, yappAddFillet]
@@ -190,7 +186,7 @@ cutoutsGrill =[
190186// (n) = { yappRectangle | yappCircle }
191187// (n) = { yappCenter }
192188cutoutsFront = [
193- [1 , - 3 , 37 , 17 , 0 , yappRectangle, yappMinCutout]
189+ [25 , - 3 , 37 , 17 , 0 , yappRectangle, yappMinCutout]
194190 // , [30, 7.5, 15, 9, 0, yappRectangle, yappCenter]
195191 // , [0, 2, 10, 0, 0, yappCircle]
196192 ];
@@ -252,8 +248,8 @@ cutoutsRight = [
252248// (n) = { yappAllCorners | yappFrontLeft | yappFrondRight | yappBackLeft | yappBackRight }
253249// (n) = { yappAddFillet }
254250connectors = [
255- [25 , 10 , 5 , 2.5 , 5 , 4.0 , 6 , 0 , yappConnWithPCB, yappFrontRight, yappBackLeft, yappBackRight, yappAddFillet]
256- ,[18 , 20 , 5 , 2.5 , 5 , 5.0 , 6 , 2 .5 , yappAllCorners, yappAddFillet]
251+ [25 , 10 , 5 , 2.5 , 5 , 4.0 , 6 , 2 , yappConnWithPCB, yappFrontRight, yappBackLeft, yappBackRight, yappAddFillet]
252+ ,[18 , 20 , 5 , 2.5 , 5 , 5.0 , 6 , 5 .5 , yappAllCorners, yappAddFillet]
257253 // , [18, 20, 5, 2.5, 5, 4.0, 15, 0, yappConnWithPCB, yappFrontRight, yappBackLeft, yappBackRight, yappAddFillet]
258254 // , [18, 20, 5, 2.5, 5, 4.0, 6, 0, yappConnWithPCB, yappFrontLeft, yappAddFillet]
259255 ];
@@ -268,7 +264,7 @@ connectors = [
268264// (n) = { yappAddFillet }
269265baseMounts = [
270266 [45 , 3.3 , 10 , 3 , yappFront, yappLeft, yappRight, yappAddFillet]// , yappCenter]
271- , [10 , 6 , 10 , 3 , yappBack, yappFront, yappAddFillet ]
267+ , [10 , 6 , 10 , 3 , yappBack, yappFront]
272268 // , [4, 3, 34, 3, yappFront]
273269 // , [25, 3, 3, 3, yappBack]
274270 ];
@@ -319,9 +315,9 @@ lightTubes = [
319315// (7) = poleDiameter
320316// (n) = buttonType {yappCircle|yappRectangle}
321317pushButtons = [
322- // -- 0, 1, 2, 3, 4, 5, 6, 7, 8
323- // [15, 30, 8, 8, 0, 1, 1, 3.5, yappCircle]
324- [15 , 60 , 8 , 6 , 2 , 3 .5 , 1 , 3 .5 , yappRectangle]
318+ // -- 0, 1, 2, 3, 4, 5, 6, 7, 8
319+ [15 , 30 , 8 , 8 , 0 , 1 , 1 , 3.5 , yappCircle]
320+ , [15 , 60 , 8 , 6 , 2 , 1 .5 , 1 , 6 .5 , yappRectangle]
325321 ];
326322
327323// -- origin of labels is box [0,0,0]
@@ -343,31 +339,37 @@ labelsPlane = [
343339// ===========================================================
344340module lidHookInside()
345341{
346- // echo("lidHookInside(original) ..");
342+ echo ("lidHookInside(original) .." );
343+ translate ([40 , 40 , - 10 ]) color ("purple" ) cube ([15 ,20 ,10 ]);
347344
348345} // lidHookInside(dummy)
349346
350347// ===========================================================
351348module lidHookOutside()
352349{
353- // echo("lidHookOutside(original) ..");
350+ echo ("lidHookOutside(original) .." );
351+ translate ([(shellLength/2 ),- 15 ,- 13 ])
352+ {
353+ color ("yellow" ) cube ([20 ,15 ,10 ]);
354+ }
354355
355356} // lidHookOutside(dummy)
356357
357358// ===========================================================
358359module baseHookInside()
359360{
360- // echo("baseHookInside(original) ..");
361+ echo ("baseHookInside(original) .." );
362+ translate ([10 , 30 , 0 ]) color ("lightgreen" ) cube ([15 ,25 ,8 ]);
361363
362364} // baseHookInside(dummy)
363365
364366// ===========================================================
365367module baseHookOutside()
366368{
367- // echo("baseHookOutside(original) ..");
368-
369- } // baseHookOutside(dummy)
369+ echo ("baseHookOutside(original) .." );
370+ translate ([shellLength- wallThickness, 65 , 0 ]) color ("green" ) cube ([15 ,25 ,6 ]);
370371
372+ } // baseHookOutside(dummy)
371373
372374
373375
0 commit comments