Corner screw mount for a screw-mount lid with an M4 sized screw
Category: Case
Using this part
This TurboCase prefab can be directly pasted into your KiCad PCB editor by using the copy button below. The
code of the footprint is also shown here for reference. The footprint file can also be downloaded to be
added to your own local footprint libraries.
Download footprint
The OpenSCAD code
This is the OpenSCAD code that will end up in your final case .scad file:
module CaseCorner(size, hole_diameter, head_diameter, head_height) {
translate([0, 0, -floor_height])
difference() {
union() {
cylinder(inner_height, size/2, size/2);
translate([-size, 0, inner_height/2])
cube([size*2, size, inner_height], center=true);
}
cylinder(inner_height+1, hole_diameter/2, hole_diameter/2);
translate([0, 0, floor_height])
CaseCorner_substract(size, hole_diameter, head_diameter, head_height);
translate([0, 0, inner_height+0.01])
children();
}
}
module CaseCorner_substract(size, hole_diameter, head_diameter, head_height) {
translate([0, 0, 0.11]) {
cylinder(inner_height+floor_height, hole_diameter/2, hole_diameter/2);
translate([0, 0, inner_height+floor_height-head_height])
cylinder(head_height, hole_diameter/2, head_diameter/2);
}
}