torvalds-GuitarPedal/Models/PBS-24-102P.scad
Linus Torvalds b0c16b43be Make the 1590B 3d printer template have a copy of the board too
This uses the models to populate a rough copy of the actual board
layout, so that you get both a drill guide for drilling out the aluminum
enclosure, and a test print to add to it.

It also adds a model of the Daisy Seed to get some idea of placement.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-09-25 12:52:57 -07:00

46 lines
734 B
OpenSCAD

$fn=40;
red = [0.8,0.2,0.2];
black = [0.2,0.2,0.2];
silver = [0.75,0.75,0.75];
epsilon = 0.001;
// The model is centered
pins = [ [ -7.1, -4.65], [0, -4.65], [7.1, -4.65] ];
module base()
{
color(red) translate([0,0,9])
cube([17.5, 14.3, 18], center=true);
}
module body()
{
difference() {
translate([0,0,18])
cylinder(12, d=12);
translate([-6,-1,18])
cube([1,2,12+epsilon]);
}
}
module switch()
{
translate([0,0,30])
cylinder(6, d=8);
translate([0,0,35.5])
cylinder(5.8, d=10);
}
module pbs24()
{
color(red) base();
color(silver) union() { body(); switch(); }
// Pins
color(silver) for (pos = pins)
translate(pos) translate([0,0,-2]) cube([1,1,6], center=true);
}
pbs24();