
Sd wav pcm5100
gnilsson2/YAPP_Box_KiCad_Generator
Generate Openscad boxes from KiCad PCB files.

Generate Openscad boxes from KiCad PCB files.
Usb shield is an open-source printed circuit board by gnilsson2, from the gnilsson2/YAPP_Box_KiCad_Generator repository on GitHub, published under the MIT licence. It is a 2-layer board of 70.1 × 30 mm with 201 parts on 6 nets, routed with 39 tracks and 4 vias.
Its parts include 4 capacitors, 2 connectors and 1 IC.
generateBox is a command-line utility that parses KiCad .kicad_pcb files and automatically generates OpenSCAD enclosure code.
It removes the manual work of measuring connectors, switches, and LEDs by extracting metadata directly from your PCB design.
The result is a printable project box that accurately fits your board and its components.
Automatic Cutouts
Generates enclosure openings for connectors and cables based on footprint properties.
Lid Mounting Support
Adds mounting holes in the lid for designated components.
Interactive Components
Built-in support for pushbuttons and LEDs.
LED Light Guides
Automatically generates light tubes for LEDs, or simple holes if preferred.
3D Model Integration
Optionally imports your PCB’s exported 3D model for accurate fit verification in OpenSCAD.
The following versions were used during development. Later versions may also work.
KiCad 9.0.6+
https://kicad.org/
OpenSCAD 2021.01+
https://www.openscad.org/
Operating System
To allow the generator to identify components correctly, specific custom properties must be added to the relevant footprints in the KiCad PCB Editor.
| Component Type | Property Name | Description |
|---|---|---|
| Connectors | Height | Total height of the connector for enclosure cutouts |
| Connectors (Optional) | Connector | Override to force detection (Height is still needed) |
| Lid Components | MountDiameter | Diameter of the mounting hole in the lid |
| Switches | Height or MountDiameter | Height over PCB for PushButton, or diameter of lid hole |
| LEDs | Height | Height used to generate the light guide |
| LEDs (Optional) | MountDiameter | Override for default LED diameter detection |
| Cables | - | (Detected by reference prefix X only) |
Component roles are identified using a combination of footprint reference prefixes (e.g. J, D, SW, X) and the presence of these properties.


For best results, export your PCB as an STL file so it can be displayed inside the generated enclosure in OpenSCAD.
File → Export → STEP / GLB / BREP / XAO / PLY / STL....pcb.stl 
After adding the required footprint properties and optionally exporting the PCB 3D model, open a terminal in the directory containing your .kicad_pcb file and run:
path_to_generateBox inputfile.kicad_pcb [outputfile.scad] [--lightholes]generateBox my_project.kicad_pcb my_project_box.scad| Option | Description |
|---|---|
--lightholes | Generate simple LED holes instead of light tubes |
--noopen | Disable auto open OpenSCAD program |
--help | Display usage information |
--version | Display version information |
Add the required custom properties to your KiCad footprints.
(Optional) Export the PCB as an STL file.
Run the generator on your .kicad_pcb file.
The tool generates:
If OpenSCAD is installed in the default location, it will be launched automatically:
C:\Program Files\OpenSCAD\openscad.exe
Render and export the enclosure in OpenSCAD.
x = 0, Front at positive x (inherited from YAPP_BOX).y cordinate points downThis project builds upon the work of the following open-source tools and libraries:
YAPP_Box
https://github.com/mrWheel/YAPP_Box
Yet Another Parametric Projectbox by Willem Aandewiel, which forms the basis of the generated enclosure code.
KiCad PCB File Parser
https://www.nuget.org/packages/MSDMarkwort.Kicad.Parser.PcbNew
Used for parsing KiCad PCB files and extracting component metadata.
OpenSCAD
https://www.openscad.org
The 3D modeling engine used to render the final enclosure designs.
This project is licensed under the MIT License.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 189 | AUTO_VIA | VIA_MATRIX | V10_9, V10_10, V10_11, V10_13, V11_4, V11_5, V11_6, V11_7, V11_9, V11_10, V11_11, V11_13, V12_4, V12_10, V12_11, V12_13 +173 |
| 2 | 100n | Capacitors_SMD:C_0805_HandSoldering | C1, C2 |
| 2 | 10u | Capacitors_Tantalum_SMD:CP_Tantalum_Case-B_EIA-3528-21_Hand | C3, C4 |
| 2 | USB_A | myfootprints:USB_A_top | J1, J2 |
| 1 | NanoPi Duo | myfootprints:nano_pi_duo_usb_shield | U1 |
The 196 most common of 201 parts.

gnilsson2/YAPP_Box_KiCad_Generator
Generate Openscad boxes from KiCad PCB files.

gnilsson2/YAPP_Box_KiCad_Generator
Generate Openscad boxes from KiCad PCB files.

gnilsson2/YAPP_Box_KiCad_Generator
Generate Openscad boxes from KiCad PCB files.

gnilsson2/YAPP_Box_KiCad_Generator
Generate Openscad boxes from KiCad PCB files.







andykarpov/karabas-pro
FPGA based retrocomputer with FDD and HDD controllers

Millisman/EG8010
Collection of designs for the EG8010 (ASIC for single-phase SPWM control H-bridge)

It measures 70.1 × 30 mm and has 2 copper layers, 1.6 mm thick.
201 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the gnilsson2/YAPP_Box_KiCad_Generator repository on GitHub, at the commit this page was made from: the board is TestProject/TestPcbs/usb_shield/usb_shield.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).