Housing that can be customized to fit my various non-standard PCB sizes.
Edit the OpenSCAD file:
- Set generate_upper = 1 to generate upper box half
- Set generate_lower = 1 to generate lower box half
Or set both to generate both parts side by side
Define the size of your PCB including top component height : pcb = [45,68,15];
and the thickness of the bare pcb (for claming): pcb_height = 2;
Wall thickness can be adjusted with
- owt = 3; // outer wall thickness
- iwt = 2; // inner wall thickness
You can add as many drills in the side wall as you like by filling theses vectors:
- cable_drills = 3; // radius (!) of the drills
- y_drills_bot = [-22.25,30]; // positions list on the bottom
- y_drills_top = ; // positions list on the top
- x_drills_left = ; // positions list on the left side
- x_drills_right = ; // positions list on the right side
The position is around the center, so e.g. -10 is left, 10mm of the center
The lower box holds the pcb, to clamp it down 4 clamping blocks are defined.
Adjustable with this settings:
- with_clamping= 1; // set to 1 if you want four claming blocks
- clamp_size = 4; // size of the clamping block
- clamp_size_drill = 1; // radius(!) of the drill in the clamping block
Additionally you can define the space for components on the bottom and the amount of support below the board:
- space_below = 3; // free space under the PCB, e.g. for bottom side components
- extra_standups = 0; // number of extra standoffs under the pcb, increase for large pcb's
The top half only has one parameter, that is the radius of the drills.
Smaller drill radius results in more drills. Setting the radius to 0 will result in no drills at all.
- lid_drill=2; // radius (!) of the drills in the top, set to 0 for no drills