projet crepp_git/crepp-projects/le-pot-qui-pense · branche main
Pqp_Couvercle2.scad Voir sur GitLab

tx = (86+80)/2; // distance entre trous de plaque
ty = (143+137)/2;

accx = 14; // expace lateral pour accus

// bx = tx + accx; // coins de position du profil
// by = ty;
// bz = H*2;

inf = false;

j = 0.4;

ep = 2;

//translate([j,j,0]) cube([accx+tx-j*2,ty-j*2,ep]);

$fn = 4*8;

difference(){
    hull(){
        translate([0,0,0]) cylinder(r1=6, r2=3.3,  h=ep);
        translate([accx,0,0]) cylinder(r1=6, r2=3.3,  h=ep);
        translate([accx+tx,0,0]) cylinder(r1=6, r2=3.3,  h=ep);
        //
        translate([0,ty,0]) cylinder(r1=6, r2=3.3,  h=ep);
        translate([accx,ty,0]) cylinder(r1=6, r2=3.3,  h=ep);
        translate([accx+tx,ty,0]) cylinder(r1=6, r2=3.3,  h=ep);
    }
    
    translate([accx,0,0]) cylinder(r=1.7,  h=ep+2);
    translate([accx+tx,0,0]) cylinder(r=1.7,  h=ep+2);
    //
    translate([accx,ty,0]) cylinder(r=1.7,  h=ep+2);
    translate([accx+tx,ty,0]) cylinder(r=1.7,  h=ep+2);
    //
    //
    translate([accx,0,1]) cylinder(r=3.3,  h=ep+2);
    translate([accx+tx,0,1]) cylinder(r=3.3,  h=ep+2);
    //
    translate([accx,ty,1]) cylinder(r=3.3,  h=ep+2);
    translate([accx+tx,ty,1]) cylinder(r=3.3,  h=ep+2);
    
    // ecran
    translate([accx+70,30,0]) cube([10,30,ep+2]);
    
    // bt
    translate([accx+17,17,0]) cylinder(r=5.5,  h=ep+2);
    
}