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
  1. Standoffs

pcbStands (advanced)

The pcbStands object has a few optional parameters:

   Optional:
    p(2) = Height to bottom of PCB : Default = standoffHeight
    p(3) = PCB Gap : Default = -1 : Default for yappCoordPCB=pcbThickness, yappCoordBox=0
    p(4) = standoffDiameter    Default = standoffDiameter;
    p(5) = standoffPinDiameter Default = standoffPinDiameter;
    p(6) = standoffHoleSlack   Default = standoffHoleSlack;
    p(7) = filletRadius (0 = auto size)
    n(a) = { <yappBoth> | yappLidOnly | yappBaseOnly }
    n(b) = { <yappPin>, yappHole } // Baseplate support treatment
    n(c) = { yappAllCorners, yappFrontLeft | yappFrontRight | <yappBackLeft> | yappBackRight }
    n(d) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
    n(e) = { yappNoFillet }

p(2) - Height to bottom of PCB

Well, it defines the height of the pcbStand which is useful if a pcbStand needs to be of a different height than the default (f.i. if you have more than one PCB that needs to fit in your projectbox.

p(3) - PCB Gap

This defines the thickness of the (f.i.) second PCB Take this code:

pcbStands = 
[
    [pcbLength-7, 5, yappAllCorners]
//-- (0), (1), (2),(3),(4),    (5),     (6),(7)
   ,[70,   5,  10,  5,  6, default, default, 1]
   ,[70,  40,  10,  5,  6, default, default, 1]
   ,[100,  5,  10,  5,  6, default, default, 1]
   ,[100, 40,  10,  5,  6, default, default, 1]
];

The first entry will create four 'standard' pcbStands based on the size of the PCB. The next four entries will create one pcbStand each for a second PCB that is 5mm thick [p(3)] and that stands 10mm above the base [p(2)]. The fillet radius [p(7)] for each of these stands is set to 1mm.

PreviousStandoffsNextConnecting Base and Lid

Last updated 1 year ago