first draft withh tinkercad
This commit is contained in:
28
3d/box.scad
28
3d/box.scad
@ -1,28 +0,0 @@
|
||||
// Maße
|
||||
width = 100;
|
||||
height = 70;
|
||||
depth = 30;
|
||||
wall = 2;
|
||||
|
||||
// Hauptgehäuse
|
||||
difference() {
|
||||
// Außengehäuse
|
||||
cube([width, height, depth]);
|
||||
|
||||
// Innenaushöhlung
|
||||
translate([wall, wall, wall])
|
||||
cube([width - 2*wall, height - 2*wall, depth - wall]);
|
||||
|
||||
// Display-Ausschnitt vorne
|
||||
translate([15, 20, depth - 1])
|
||||
cube([70, 30, 2]);
|
||||
|
||||
// USB-Ausschnitt unten hinten
|
||||
translate([width/2 - 5, -1, 5])
|
||||
cube([10, wall + 1, 5]);
|
||||
|
||||
// Kippschalter oben (rundes Loch)
|
||||
translate([width/2, height - wall, depth - 10])
|
||||
rotate([90, 0, 0])
|
||||
cylinder(h = wall + 2, r = 10, $fn=64);
|
||||
}
|
55
3d/deckel.scad
Normal file
55
3d/deckel.scad
Normal file
@ -0,0 +1,55 @@
|
||||
// Parameter
|
||||
deckel_laenge = 100;
|
||||
deckel_breite = 68;
|
||||
deckel_hoehe = 5;
|
||||
|
||||
eckradius = 5;
|
||||
wandstaerke = 2;
|
||||
|
||||
loch_rect_x = 50;
|
||||
loch_rect_y = 25;
|
||||
loch_rund_d = 20;
|
||||
abstand_rund_von_rect = 20; // Abstand mittig unter dem Rechteck
|
||||
|
||||
schraubloch_d = 3.5; // Durchmesser für Schrauben (z. B. M3)
|
||||
schraub_abstand_von_rand = 3; // Abstand vom Rand zur Lochmitte
|
||||
|
||||
$fn = 60; // Feinheit für Rundungen
|
||||
|
||||
// Hauptkörper mit abgerundeten Ecken
|
||||
difference() {
|
||||
// Abgerundeter Deckel
|
||||
rounded_box(deckel_laenge, deckel_breite, deckel_hoehe, eckradius);
|
||||
|
||||
// Rechteckiges Loch oben (zentriert)
|
||||
translate([
|
||||
(deckel_laenge - loch_rect_x)/2,
|
||||
(deckel_breite - loch_rect_y)/2 + 10,
|
||||
-1
|
||||
])
|
||||
cube([loch_rect_x, loch_rect_y, deckel_hoehe + 2]);
|
||||
|
||||
// Rundes Loch unter dem Rechteck (zentriert darunter)
|
||||
translate([
|
||||
deckel_laenge / 2,
|
||||
(deckel_breite / 2) - abstand_rund_von_rect,
|
||||
-1
|
||||
])
|
||||
cylinder(h = deckel_hoehe + 2, d = loch_rund_d);
|
||||
|
||||
// Schraublöcher korrekt an den vier Ecken platzieren
|
||||
offset = eckradius - 0.01; // Minkowski erweitert die Ecken nach außen
|
||||
|
||||
for (x = [schraub_abstand_von_rand, deckel_laenge - offset - schraub_abstand_von_rand])
|
||||
for (y = [ schraub_abstand_von_rand, deckel_breite - offset - schraub_abstand_von_rand])
|
||||
translate([x, y, -1])
|
||||
cylinder(h = deckel_hoehe + 2, d = schraubloch_d);
|
||||
}
|
||||
|
||||
// Funktion: Rechteck mit abgerundeten Ecken
|
||||
module rounded_box(l, b, h, r) {
|
||||
minkowski() {
|
||||
cube([l - 2*r, b - 2*r, h]);
|
||||
cylinder(r=r, h=0.01);
|
||||
}
|
||||
}
|
BIN
3d/deckel_tinkercad.stl
Normal file
BIN
3d/deckel_tinkercad.stl
Normal file
Binary file not shown.
BIN
3d/einkcase_v3.stl
Normal file
BIN
3d/einkcase_v3.stl
Normal file
Binary file not shown.
Reference in New Issue
Block a user