torvalds-GuitarPedal/Models/WR-DC-2.1.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

61 lines
909 B
OpenSCAD

$fn=40;
black = [0.2,0.2,0.2];
silver = [0.75,0.75,0.75];
module pin(pos, size)
{
translate(pos) cube(concat(size,8), center=true);
}
module legs()
{
// The model is centered on the back pin
pin([ 0, 0], [2.8, 0.6]);
pin([4.8, -3], [0.6, 2.4]);
pin([ 0, -5.8], [2.4, 0.6]);
}
module body()
{
translate([-4.5, -13.6, 0])
cube([9, 14.5, 3.2]);
translate([-4.5, -13.6, 0])
cube([9, 3, 10.7]);
translate([-4.5, -13.6, 0])
cube([9, 12, 6.5]);
translate([0, -13.6, 6.5]) rotate([-90,0,0])
cylinder(13.6, d=8.4);
}
module hole()
{
translate([0, -14, 6.5]) rotate([-90,0,0])
cylinder(7, d=5.5);
}
module housing()
{
difference() {
body();
hole();
}
}
module center_pin()
{
translate([0, -13.6, 6.5]) rotate([-90,0,0])
cylinder(5.3, d=2.1);
}
module dc_jack()
{
color(black) housing();
color(silver) {
legs();
center_pin();
}
}
dc_jack();