//---------------------------------------------------- //-- Battery holder for the REPY1 modules //---------------------------------------------------------- //-- 2011 (c) Juan Gonzalez-Gomez (Obijuan) //-- GPL license //------------------------------------------------------------- include //----------- Parameters //-- Wall thickness thickness = 3; //-- Battery pack width Battery_pack_width = 15; //--- Interior length y Bat_ly_int = 50; //-- Part exterior dimensions Bat_ly = Bat_ly_int + 2*thickness; Bat_lz = 16; Bat_lx = Battery_pack_width + 2*thickness; //-- Drill coordinates d_y = 15; d_z = -3; //-- Drills diameter drill = 3.2; difference() { //-- Exterior box roundedBox([Bat_lx, Bat_ly, Bat_lz], 4, true); //cube([Bat_lx, Bat_ly, Bat_lz],center=true); //-- Interior box cube([Bat_lx - 2*thickness,Bat_ly_int, Bat_lz+50],center=true); //-- Drills! translate([0,d_y,d_z]) rotate([0,90,0]) cylinder(r=drill/2, h=Bat_lx+50, center=true, $fn=20); translate([0,-d_y,d_z]) rotate([0,90,0]) cylinder(r=drill/2, h=Bat_lx+50, center=true, $fn=20); }