55 lines
1.3 KiB
OpenSCAD
55 lines
1.3 KiB
OpenSCAD
D1W=26;
|
|
D1L=34.5;
|
|
D1H=8;
|
|
Wall=2;
|
|
Clearance=0.2;
|
|
Lidnodge=1;
|
|
GPIOW=2.5;
|
|
GPIOL=21;
|
|
translate([0,0,0]){
|
|
|
|
difference(){
|
|
cube([D1W+(Wall*2),D1L+(Wall*2),D1H+Wall-0.1]);
|
|
|
|
translate([Wall,Wall,Wall]){
|
|
difference(){
|
|
cube([D1W,D1L,D1H]);
|
|
//PCB Spacer
|
|
translate([0,D1L-4.5,0]){
|
|
cube([D1W,4.5,2.4]);
|
|
}
|
|
}
|
|
}
|
|
//usb port
|
|
translate([((D1W/2)-(7.5/2))+Wall,-1,Wall]){
|
|
cube([7.5,Wall+1,3.0]);
|
|
}
|
|
//reset button
|
|
translate([-1,Wall+2,Wall]){
|
|
cube([Wall+1,2,1]);
|
|
}
|
|
}
|
|
//lid
|
|
difference(){
|
|
union(){
|
|
//lid
|
|
translate([0,0,D1H+Wall]){
|
|
cube([D1W+(Wall*2),D1L+(Wall*2),Wall-0.1]);
|
|
|
|
//fit
|
|
translate([0+Wall,0+Wall,-Lidnodge]){
|
|
cube([D1W-Clearance,D1L-Clearance,Lidnodge]);
|
|
}
|
|
}
|
|
}
|
|
//GPIO ports
|
|
//Left
|
|
translate([Wall,6.2+Wall,(D1H+Wall)-Lidnodge]){
|
|
cube([GPIOW,GPIOL,Wall+Lidnodge]);
|
|
}
|
|
//Right
|
|
translate([D1W+Wall-GPIOW,6.2+Wall,(D1H+Wall)-Lidnodge]){
|
|
cube([GPIOW,GPIOL,Wall+Lidnodge]);
|
|
}
|
|
}
|
|
} |