74 lines
No EOL
1.7 KiB
OpenSCAD
74 lines
No EOL
1.7 KiB
OpenSCAD
// Moduły PWM do LEDów
|
|
module pwm_board() {
|
|
// PCB board
|
|
translate([0,-31,0]) union() {
|
|
cube([33,37,1.5], center=true);
|
|
translate([0,33-2,7.5]) rotate([90,0,0]) cylinder(d=8, h=20, $fn=50);
|
|
}
|
|
}
|
|
|
|
// guzik
|
|
module switch() {
|
|
rotate([90,0,0]) union() {
|
|
cylinder(d=20, h=100);
|
|
rotate([0,0,0]) translate([-2.5,0,0]) cube([5,11,100]);
|
|
rotate([0,0,180]) translate([-2.5,0,0]) cube([5,11,100]);
|
|
rotate([0,0,90]) translate([-1,0,0]) cube([2,11,100]);
|
|
}
|
|
}
|
|
|
|
// wzkacniacz 2.1 z 3 potencjometrami
|
|
module amp1() {
|
|
translate([0,0,14.25]) rotate([90,0,0])
|
|
for (i = [0,22.25, 44.5]) {
|
|
translate([i,0,0]) cylinder(d=8, h=15, $fn=50);
|
|
}
|
|
translate([-25,-70-15,5.5]) cube([101,70,1.5]);
|
|
}
|
|
|
|
// wzmacniacz 1 potencjometr
|
|
module amp2() {
|
|
translate([0,0,15.75]) rotate([90,0,0]) cylinder(d=8, h=15, $fn=50);
|
|
translate([-18,-95-15,5]) cube([64,95,1.5]);
|
|
}
|
|
|
|
t = 1.5; // wall thickness
|
|
|
|
h1 = 40; // wysokość
|
|
w1 = 215; // szerokość
|
|
d1 = 120; // głębokość
|
|
|
|
difference() {
|
|
translate([0,-12,-t]) union() {
|
|
cube([w1,t,h1]);
|
|
rotate([90,0,0]) difference() {
|
|
translate([0,0,0]) cube([w1,h1,d1]);
|
|
translate([t,t,0]) cube([w1-2*t, h1-2*t, d1+5]);
|
|
}
|
|
}
|
|
union() {
|
|
translate([25,0,0]) amp2();
|
|
translate([107,0,0]) amp1();
|
|
translate([200,0,20]) switch();
|
|
}
|
|
}
|
|
|
|
h2 = 22; // wysokość
|
|
w2 = 90; // szerokość
|
|
d2 = 35; // głębokość
|
|
|
|
translate([(w1-w2)/2,0,h1 + 5]) difference() {
|
|
translate([0,-12,-1.5]) union() {
|
|
cube([w2,t,h2]);
|
|
rotate([90,0,0]) difference() {
|
|
translate([0,0,0]) cube([w2,h2,d2]);
|
|
translate([t,t,0]) cube([w2-2*t, h2-2*t, d2+5]);
|
|
}
|
|
|
|
}
|
|
translate([20,0,0]) union() {
|
|
translate([0,5,5]) pwm_board();
|
|
translate([50,5,5]) pwm_board();
|
|
|
|
}
|
|
} |