basic scad structure

This commit is contained in:
2026-07-23 21:35:14 +02:00
parent 860c5ed336
commit acd55a374c
14 changed files with 81 additions and 3 deletions

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

+6
View File
@@ -0,0 +1,6 @@
include <common.scad>
use <left-half.scad>
use <right-half.scad>
left_half();
right_half();
+45
View File
@@ -0,0 +1,45 @@
BASE_MODEL_SCALE = [1,1,1];
module main_display(){
// Outer dimensions, height currently unknown
cube([55.04, 89.3, 10]);
}
module pad(){
// A button has 4.2 x 6 mm -> At least ~20x20 are required for the PCB
cube([20, 20, 10]);
}
module small_display_below_main()
{
// https://de.aliexpress.com/item/1005003753680706.html
cube([45.8, 20, 11.3]);
// old i2c variant:
//cube([43.5, 19.44, 4.5]);
// initial dimension ideas
// cube([38,16,4]);
// translate([150,0,0]) cube([22,5.5,4]);
}
module tertiary_display()
{
// https://de.aliexpress.com/item/1005006034531826.html
cube([80, 36, 10]);
}
module battery() {
// 18650 with holder
// cube([75, 20, 20]);
rotate([0,90,0]) cylinder(d=18, h=65);
}
module microcontroller() {
// width 32 including USB-C port
length = 91.5;
height = 20;
battery_length = 65;
delta = length - battery_length;
cube([length, 32, height]);
translate([delta / 2,16, 15]) battery();
}
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
include <common.scad>
module left_half() {
import(file = "left-half.3mf");
}
left_half();
+16 -3
View File
@@ -28,17 +28,30 @@ module tertiary_display()
module battery() {
// 18650 with holder
cube([75, 20, 20]);
// cube([75, 20, 20]);
rotate([0,90,0]) cylinder(d=18, h=65);
}
translate([0,0,7]) import("pokedex-full-assembly-v3-3mf.3mf");
module microcontroller() {
// width 32 including USB-C port
length = 91.5;
height = 20;
battery_length = 65;
delta = length - battery_length;
cube([length, 32, height]);
translate([delta / 2,16, 15]) battery();
}
translate([0,0,7]) import("base_model/pokedex-full-assembly-v3-3mf.3mf");
#translate([-100, -100, 0]) {
translate([40, -13, 0]) pad();
translate([0,20,0]) main_display();
translate([-7,-13,0]) small_display_below_main();
translate([0,130,-8]) rotate([0,0,90]) battery();
//translate([0,130,-8]) rotate([0,0,90]) battery();
}
#translate([42,-118,0]) small_display_below_main();
#translate([-5,-118,0]) small_display_below_main();
#translate([2,-40,0]) tertiary_display();
#translate([-122,12,-8]) microcontroller();
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
include <common.scad>
module right_half() {
import(file = "right-half.3mf");
}
right_half();