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
  • Connectors to connect Base and Lid together
  • Melt Inserts

Connecting Base and Lid

Connectors to connect Base and Lid together

With this type of connector you can connect the Base and the Lid together.

//===================================================================
//   *** Connectors ***
//   Standoffs with hole through base and socket in lid for screw type connections.
//-------------------------------------------------------------------
//  Default origin = yappCoordBox: box[0,0,0]
//  
//  Parameters:
//   Required:
//    p(0)  = posX
//    p(1)  = posY
//    p(2)  = pcbStandHeight
//    p(3)  = screwDiameter
//    p(4)  = screwHeadDiameter (don't forget to add extra for the fillet)
//    p(5)  = insertDiameter
//    p(6)  = outsideDiameter
//   Optional:
//    p(7)  = PCB Gap : Default = -1 : Default for yappCoordPCB=pcbThickness, yappCoordBox=0
//    p(8)  = filletRadius : Default = 0/Auto(0 = auto size)
//    n(a) = { <yappAllCorners> | yappFrontLeft | yappFrontRight | yappBackLeft | yappBackRight }
//    n(b) = { <yappCoordBox> | yappCoordPCB | yappCoordBoxInside }
//    n(c) = { yappNoFillet }
//    n(g) = {yappSelfThreading} : Make the insert self threading specify the Screw Diameter in the insertDiameter
//-------------------------------------------------------------------

Example:

connectors   =  
[
    [10, 10, standoffHeight
     , 2.7    //-- diameter of the screw (add some slack)
     , 5      //-- the diameter of the screw head
     , 4.1    //-- the diameter of the insert
     , 9]     //-- the outside diameter of the connector
];

The Optional parameter n(b) specifies whether there will be space for the PCB (yappCoordPCB) between the two parts of the connector or not (default yappCoordBox) as well as the origin of the posX and posY values.

Example:

connectors   =  
[
    [10, 10, standoffHeight
     , 2.7           //-- diameter of the screw (add some slack)
     , 5             //-- the diameter of the screw head
     , 4.1           //-- the diameter of the insert
     , 9             //-- the outside diameter of the connector
     , yappCoordPCB] //-- use [0,0,0] of the PCB os origen
];

Results in these connectors:

Thanks to Oliver Grafe

The depth of the screw is changed with the standoffHeight so you don't have to buy new screws every time you make a projectbox with a different height.

Melt Inserts

You have to press/melt an insert into the Lid-connector.

PreviouspcbStands (advanced)NextConnecting Base and Lid (advanced)

Last updated 3 months ago

For every entry in the connectors array at least the first seven (0..6) parameters are required. All the others can be omitted. Look at to see how to use Optional parameters.

YAPPgenerator API