kitt matrix improvements

main
zeus 2024-08-17 21:25:15 +02:00
parent edefeee886
commit 7a7fbd1f4e
2 changed files with 36 additions and 9 deletions

View File

@ -33,6 +33,7 @@ conhole_taper_h=2; // is this needed?
conhole_i_d=2.75; // should fit M3
conhole_offset=3.5; //offset from outer perimeter
cutout_w=10;
mnthole_d=5;
//echo("offset left is ",offset_left);
//echo("offset top is ",offset_top);
@ -74,8 +75,8 @@ module panelholder(){
//translate([0,0,-panel_t_led*3])cube([panel_w,panel_h,(panel_t+(panel_t_led*3))],center=true);
// screwholes for M3
for (
pos_x=[-(panel_w+mt)/2+conhole_offset,
(panel_w+mt)/2-conhole_offset],
pos_x=[-(panel_w+mt)/2+conhole_offset+mt/2,
(panel_w+mt)/2-conhole_offset-mt/2],
pos_y=[-(panel_h+mt)/2+conhole_offset,
(panel_h+mt)/2-conhole_offset]
)
@ -87,20 +88,46 @@ module panelholder(){
module panelframe(){
translate([0,0,panel_t_pcb])difference(){
cube([panel_w+mt,panel_h+mt,(panel_t+(panel_t_led*8))],center=true);
translate([cutout_w/2,0,pt])cube([panel_w-(offset_left*2)+cutout_w,panel_h-(offset_top*2),(panel_t+(panel_t_led*8))+q],center=true);
translate([0,0,pt])cube([panel_w-(offset_left*2)-q,panel_h-(offset_top*2)-q,(panel_t+(panel_t_led*8))+q],center=true);
// mounting-holes for sandwich-ing
for (
pos_x=[-(panel_w+mt)/2+conhole_offset,
(panel_w+mt)/2-conhole_offset],
pos_x=[-(panel_w+mt)/2+conhole_offset+mt/2,
(panel_w+mt)/2-conhole_offset-mt/2],
pos_y=[-(panel_h+mt)/2+conhole_offset,
(panel_h+mt)/2-conhole_offset])
{
translate([pos_x,pos_y,0])cylinder(d=conhole_d,h=(panel_t+(panel_t_led*8))+q,center=true);
translate([pos_x,pos_y,-(panel_t+(panel_t_led*8))/2+conhole_taper_h/2])cylinder(d2=conhole_d,d1=conhole_d*1.5,h=conhole_taper_h+q,center=true);
translate([pos_x,pos_y,0])cylinder(d=conhole_d,h=(panel_t+(panel_t_led*8))+q,center=true);
translate([pos_x,pos_y,-(panel_t+(panel_t_led*8))/2+conhole_taper_h/2])cylinder(d2=conhole_d,d1=conhole_d*1.5,h=conhole_taper_h+q,center=true);
}
// keyholes for mounting-screws.
// mirror([90,0,0])
for (
pos_x= [-(panel_h/2-mnthole_d*2)],
pos_x2=[-(panel_h/2-mnthole_d*5)],
pos_y= [-(panel_h/2-mnthole_d*2),0,(panel_h/2-mnthole_d*2)])
{
hull(){
translate([pos_x,pos_y,-mt/2])cylinder(d=mnthole_d,h=mt+q,center=true);
translate([pos_x2,pos_y,-mt/2])cylinder(d=mnthole_d,h=mt+q,center=true);
}
translate([pos_x2,pos_y,-mt/2])cylinder(d=mnthole_d*2,h=mt+q,center=true);
}
}
}
// ##########################################
// DRAW MODEL:
panelholder();
translate([0,0,-(panel_t+(panel_t_led*3))-50])panelframe();
difference(){
union(){
panelholder();
translate([0,0,-(panel_t+(panel_t_led*3))-5])panelframe();
translate([panel_h+mt*2,0,0]){
panelholder();
translate([0,0,-(panel_t+(panel_t_led*3))-5])panelframe();
}
}
for (x=[-10:1:10])
translate([panel_h,x,-12.5])rotate([0,90,0])rotate([0,0,90])cylinder(h=(2.5*panel_h),d=6,center=true,$fn=6);
translate([panel_h/2+mt,0,-5])cube([mt*1.75,100,30],center=true);
}