add weight
This commit is contained in:
parent
463df615e5
commit
c67faa5b31
6 changed files with 53 additions and 51651 deletions
|
|
@ -40,14 +40,15 @@ color("SaddleBrown") difference() {
|
|||
}
|
||||
cube([pololu_width, pololu_depth, pcb_thickness+0.1], center=true);
|
||||
// screw holes
|
||||
translate([-pololu_width/2+pololu_hole_spacing, pololu_depth/2-pololu_hole_spacing, -pcb_thickness/2-2]) cylinder(h=2, r=pololu_holes_radius);
|
||||
translate([pololu_width/2-pololu_hole_spacing, pololu_depth/2-pololu_hole_spacing, -pcb_thickness/2-2]) cylinder(h=2, r=pololu_holes_radius);
|
||||
translate([-pololu_width/2+pololu_hole_spacing, pololu_depth/2-pololu_hole_spacing, -pcb_thickness/2-threaded_insert_height]) cylinder(h=threaded_insert_height, d=3);
|
||||
translate([pololu_width/2-pololu_hole_spacing, pololu_depth/2-pololu_hole_spacing, -pcb_thickness/2-threaded_insert_height]) cylinder(h=threaded_insert_height, d=3);
|
||||
}
|
||||
|
||||
// TODO: make dependent on case size
|
||||
translate([65, 26.75, case_bottom_thickness/2]) {
|
||||
cube([10, 40, case_bottom_thickness/2+1]);
|
||||
cube([72, 10, case_bottom_thickness/2+1]);
|
||||
translate([65, 26, case_bottom_thickness/2]) {
|
||||
translate([-7.5,30,0]) linear_extrude(case_bottom_thickness/2+1) polygon([[7.5,0], [7.5,10.75], [0,10.75]]);
|
||||
cube([10, 40.75, case_bottom_thickness/2+1]);
|
||||
cube([72, 11, case_bottom_thickness/2+1]);
|
||||
}
|
||||
|
||||
// screw holes for upper case
|
||||
|
|
@ -61,25 +62,21 @@ color("SaddleBrown") difference() {
|
|||
translate([-case_thickness, pcb_depth-2*pcb_radius+case_thickness, 0]) cylinder(h=case_thickness+standoff_height+pcb_thickness+5, d=2);
|
||||
translate([pcb_width-2*pcb_radius+case_thickness, pcb_depth-2*pcb_radius+case_thickness, 0]) cylinder(h=case_thickness+standoff_height+pcb_thickness+5, d=2);
|
||||
|
||||
// hole for weight
|
||||
difference() {
|
||||
hull() {
|
||||
translate([5,5,0]) cylinder(h=2, d=10);
|
||||
translate([pcb_width-2*pcb_radius-5,5,0]) cylinder(h=2, d=10);
|
||||
translate([5,pcb_depth-2*pcb_radius-5,0]) cylinder(h=2, d=10);
|
||||
translate([pcb_width-2*pcb_radius-5,pcb_depth-2*pcb_radius-5,0]) cylinder(h=2, d=10);
|
||||
// mounting standoffs
|
||||
for(i = [0 : len(mounting_holes)-1]) {
|
||||
translate([mounting_holes[i][0] - pcb_radius, mounting_holes[i][1] - pcb_radius, case_bottom_thickness - 3]) union() {
|
||||
translate([0,0,1]) cylinder(h=2, d=3);
|
||||
cylinder(h=3, d=2);
|
||||
}
|
||||
translate([pcb_width/2,pcb_depth/2+1,1.8]) mirror([1,0,0]) linear_extrude(0.2) text(text="noisy cricket", size=10, font="Liberation Sans:style=Bold", halign="center");
|
||||
translate([pcb_width/2,pcb_depth/2-11,1.8]) mirror([1,0,0]) linear_extrude(0.2) text(text="© XenGi 2023", size=6, font="Liberation Sans:style=Bold", halign="center");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// mounting standoffs
|
||||
color("SaddleBrown") for(i = [0 : len(mounting_holes)-1]) {
|
||||
translate([mounting_holes[i][0] - pcb_radius, mounting_holes[i][1] - pcb_radius, case_bottom_thickness]) difference() {
|
||||
cylinder(h=standoff_height, d=4);
|
||||
cylinder(h=standoff_height, d=2);
|
||||
// hole for weight
|
||||
hull() {
|
||||
translate([5,5,0]) cylinder(h=1.5, d=10);
|
||||
translate([pcb_width-2*pcb_radius-5,5,0]) cylinder(h=1.5, d=10);
|
||||
translate([5,pcb_depth-2*pcb_radius-5,0]) cylinder(h=1.5, d=10);
|
||||
translate([pcb_width-2*pcb_radius-5,pcb_depth-2*pcb_radius-5,0]) cylinder(h=1.5, d=10);
|
||||
}
|
||||
translate([pcb_width/2,pcb_depth/2+1,1.5]) mirror([1,0,0]) linear_extrude(0.2) text(text="noisy cricket", size=10, font="Liberation Sans:style=Bold", halign="center");
|
||||
translate([pcb_width/2,pcb_depth/2-11,1.5]) mirror([1,0,0]) linear_extrude(0.2) text(text="© XenGi 2023", size=6, font="Liberation Sans:style=Bold", halign="center");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue