YAPPgenerator_en
  • Yet Another Parametric Projectbox generator
  • What you need
  • Getting Started
  • Design Philosophy
  • Coordinate Systems
  • YAPPgenerator API
  • YAPP Box Settings
    • Multiple PCBs
  • Standoffs
    • pcbStands (advanced)
  • Connecting Base and Lid
    • Connecting Base and Lid (advanced)
  • Cutouts
    • n(h) - yappFromInside
    • p(6) - Cutout Depth
    • Placement of the project box
      • Cutouts in the Base Plane
      • Cutouts in the Lid Plane
      • Cutouts in the Front Plane
      • Cutouts in the Back Plane
      • Cutouts in the Left Plane
      • Cutouts in the Right Plane
    • Shapes
    • Optional Parameters
      • p(7) - Angle
      • n(a) = Polygon Definition
      • n(b)/n(c) - Mask Definition
      • n(d) - Coordinate System
      • n(e) - Position reference
      • n(f) - Alternate Origin
      • n(g) - PCB Selection
  • Box Mounts
    • boxMounts (advanced)
  • Snap Joins
  • Light Tubes
  • Push Buttons
    • Optional Parameters
  • Ridge Extension
  • Labels
  • Images
  • Hooks
  • Debugging
  • Advanced Options
    • Specify a PCB
    • Position reference
    • Polygon Definitions
    • Mask Definitions
  • Generating STL file from KiCad
  • License
Powered by GitBook
On this page

YAPP Box Settings

PreviousYAPPgenerator APINextMultiple PCBs

Last updated 1 year ago

There are a view settings that the YAPPgenerator needs, to create your perfect project box. From Top to Bottom of the YAPP_template.scad file:

//-- which part(s) do you want to print?
printBaseShell        = true;
printLidShell         = true;
printSwitchExtenders  = true;

printBaseShell: if true will print (generate) the base of the projectbox and if printLidShell is true the lid will be printed. printSwitchExtenders controls whether or not switch extenders are printed.

//-- pcb dimensions -- very important!!!
pcbLength           = 150; // Front to back
pcbWidth            = 100; // Side to side
pcbThickness        = 1.6;

These pcb-variables are the reference for most of the other measurements!

//-- padding between pcb and inside wall
paddingFront        = 15;
paddingBack         =  8;
paddingRight        = 12;
paddingLeft         =  5;

With the paddingFields you define the space between the PCB and the (inside!) walls of your projectbox.

//-- Edit these parameters for your own box
wallThickness       = 2.4;
basePlaneThickness  = 4.0;
lidPlaneThickness   = 1.2;

wallThickness determines the thickness of the standing walls. basePlaneThickness and lidPlaneThickness respectively determines the thickness of the base plane and the lid plane.

//-- total height inside  = baseWallHeight + lidWallHeight 
//--                 35.0 = 15 + 20
//-- total height outside = total-height-inside
//--                      + basePlaneThickness + lidPlaneThickness
//--                 41.2 = 35 + 2.0 + 4.2
baseWallHeight      = 15; 
lidWallHeight       = 20;
//-- ridge where base and lid off box can overlap
//-- Make sure this isn't less than lidWallHeight
ridgeHeight         = 4;
ridgeSlack          = 0.2;

//-- the radius of all outside edges and corners
roundRadius         = 3.0;

ridgeHeight is the height of the overlapping edges that centers the lid nicely on the base. ridgeSlack makes some room between the lid-ridge and the base-ridge so they snap nicely in each other. roundRadius is the diameter with which all edges are rounded.

//-- How much the PCB needs to be raised from the base
//-- to leave room for solderings and whatnot
standoffHeight      = 15.0;  //-- used for PCB Supports, Push Button and showPCB
standoffDiameter    = 7;
standoffPinDiameter = 2.4;
standoffHoleSlack   = 0.4;