1
0
mirror of https://github.com/whowechina/popn_pico.git synced 2024-11-12 01:30:47 +01:00

Case created with OpenSCAD

This commit is contained in:
whowechina 2022-09-05 23:33:54 +08:00
parent 14a28e1abf
commit 07427cff5b
3 changed files with 53 additions and 18 deletions

BIN
CASE/pico.stl Normal file

Binary file not shown.

View File

@ -6,30 +6,46 @@ bottom=2.4;
difference() {
body();
body_cut();
screws();
gateron([-54,33,0]);
gateron([-18,33,0]);
gateron([18,33,0]);
gateron([54,33,0]);
gateron([-72,0,0]);
gateron([-36,0,0]);
gateron([-0,0,0]);
gateron([36,0,0]);
gateron([72,0,0]);
pico([-24.5,43.5,0]);
}
test_marks("red");
test_board();
//test_marks();
//test_board();
module test_marks(c) {
color(c) translate([10,-40,0]) cube([3,3,2.4]);
color(c) translate([10,20,0]) cube([3,3,2.4]);
translate([-145,20,2.4]) import("pico_voltex.3mf", convexity=3);
}
module body() {
hull() {
color("white") main_shape(wall+clearance, thickness-1);
color("white") main_shape(wall-1+clearance, thickness);
}
}
module body_cut() {
color("white") translate([0,0,bottom]) main_shape(clearance, thickness + 10);
module test_marks() {
color("red") translate([-8.5,-40,0]) cube([17,10,3]);
color("blue") translate([10,-40,0]) cube([3,3,2.4]);
translate([-145.5,20,2.4]) import("pico_voltex.3mf", convexity=3);
}
module test_board() {
color("green", 0.5) translate([0,0,3]) main_shape(0, 1.6);
translate([2,55,1.8]) color("green") rotate([90,180,90]) import("pico.stl", convexity=3);
}
module body() {
color("silver") hull() {
main_shape(wall+clearance, thickness-1);
main_shape(wall-1+clearance, thickness);
}
}
module body_cut() {
color("silver") translate([0,0,bottom]) main_shape(clearance, thickness + 10);
}
module main_shape(extend, height) {
@ -45,4 +61,23 @@ module main_shape(extend, height) {
}
}
}
}
module gateron(pos) {
translate([-9,-2.5,0.6]) translate(pos) color("gold") cube([17,10.5,5]);
}
module pico(pos) {
translate([0,0,0.6]) translate(pos) color("gold") cube([53,23,5]);
translate([-0.75,7.25,-1]) translate(pos) color("gold") cube([6.25,8.5,6]);
translate([10,12.5,-1]) translate(pos) color("gold") cube([6,5,6]);
}
module screws() {
$fn=64;
translate([-60,60,-1]) color("gray") cylinder(d=3.5, h=10);
translate([60,60,-1]) color("gray") cylinder(d=3.5, h=10);
translate([-85,-10,-1]) color("gray") cylinder(d=3.5, h=10);
translate([85,-10,-1]) color("gray") cylinder(d=3.5, h=10);
}

BIN
CASE/pico_voltex.3mf Normal file

Binary file not shown.