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

Light Tubes

PreviousSnap JoinsNextPush Buttons

Last updated 1 year ago

A "Light Tube" is a way to let a LED (or NeoPixel) shine only through the Lid. It projects the light on the Lid of the project box.

Default origin = yappCoordPCB: PCB[0,0,0]

  Parameters:
   Required:
    p(0) = posx
    p(1) = posy
    p(2) = tubeLength
    p(3) = tubeWidth
    p(4) = tubeWall
    p(5) = gapAbovePcb
    p(6) = { yappCircle | yappRectangle }  : tubeType
   Optional:
    p(7) = lensThickness (how much to leave on the top of the lid for the 
           light to shine through) 0 for open hole : Default = 0/Open
    p(8) = Height to top of PCB : Default = standoffHeight+pcbThickness
    p(9) = filletRadius : Default = 0/Auto 
    n(a) = { <yappCoordPCB> | yappCoordBox | yappCoordBoxInside }
    n(b) = { yappNoFillet }

lightTubes = 
[
//--- 0,  1, 2,   3, 4, 5, 6,          7
    [15, 20, 1.5, 5, 1, 2, yappCircle, 0.5]
   ,[15, 30, 1.5, 5, 1, 2, yappRectangle]
];     

tubeLength

The length of the tube-window in the Y-ax direction

tubeWidth

The width of the tube-window in the X-ax direction

tubeWall

The wall thickness around the tube

abovePcb

The space between the PCB and the bottom of the light tube

lensThickness

Will make an opening in the Lid to let the light shine trough. If lensThickness is omitted there will be an open hole on top of the Lid, otherwise there will be a small layer of material on top of the Lid

tubeType

The shape of the window. Either a rectangle (yappRectangle) or a circle (yappCircle)

With this code:

lightTubes =
[
    [15, 20, 2, 6, 1, 5, yappCircle, 0.5]
   ,[15, 30, 2, 10, 1, 5, yappRectangle]
];

You get these light tubes: