Updated mounting plate

This commit is contained in:
Christoffer Martinsson 2018-02-07 16:54:18 +01:00
parent 97c1bfd7ff
commit 7c76f03ceb
2 changed files with 24775 additions and 3294 deletions

View File

@ -7,7 +7,7 @@ bottom = 5;
height = 200;
width = 70;
top_box_height = 60;
top_box_height = 60+6;
top_box_depth = 25;
top_box_position = 175;
@ -57,6 +57,8 @@ servo_hole = 2.5;
servo_hole_cc_x = 47.26;
servo_hole_cc_y = 10.17;
zwave_cutout = 15;
module cover (){
// Main mounting plate
difference(){
@ -91,15 +93,18 @@ module cover (){
translate([-25,cable_motor_pos_2,bottom/2])cylinder(r = cable_motor_cutout_diameter/2, h = bottom, center = true, $fn=100);
translate([-25,cable_motor_pos_1+(cable_motor_pos_2-cable_motor_pos_1)/2,cable_motor_heigh/2])cube([cable_motor_width,cable_motor_pos_2-cable_motor_pos_1,cable_motor_heigh], center = true);
// Motor cutout
translate([0,lock_position,(lock_box_depth+servo_depth+servo_wall)/2])cube([width-wall*2, lock_box_height-wall*4, lock_box_depth-servo_depth-servo_wall], center=true);
#translate([0,lock_position,lock_box_depth-wall/2])cube([width-wall*2, lock_box_height-wall*2, wall], center=true);
translate([0,lock_position,(lock_box_depth+servo_depth+servo_wall)/2])cube([width-wall*2-1, lock_box_height-wall*4, lock_box_depth-servo_depth-servo_wall], center=true);
translate([0,lock_position,lock_box_depth-wall/2])cube([width-wall*2, lock_box_height-wall*2, wall], center=true);
translate([20-9.66-0.5,lock_position,servo_depth/2+servo_wall])cube([servo_width, servo_height, servo_depth], center=true);
// Motor mount holes
translate([-13.47-1.5,lock_position+servo_hole_cc_y/2,servo_depth/2+servo_wall])cylinder(r = servo_hole/2, h = servo_depth, center=true);
translate([-13.47-1.5,lock_position-servo_hole_cc_y/2,servo_depth/2+servo_wall])cylinder(r = servo_hole/2, h = servo_depth, center=true);
// Top box cutout
translate([0,top_box_position,(top_box_depth-bottom)/2+bottom+pcb_distance_z/2])cube([width-wall*2, top_box_height-wall*2, top_box_depth-bottom-pcb_distance_z], center=true);
translate([0,top_box_position,(pcb_distance_z)/2+bottom])cube([width-wall*2-2, top_box_height-wall*2-2, pcb_distance_z], center=true);
translate([0,top_box_position,(top_box_depth-bottom)/2+bottom+pcb_distance_z/2])cube([width-wall*2-1, top_box_height-wall*4, top_box_depth-bottom-pcb_distance_z], center=true);
translate([0,top_box_position,top_box_depth-wall/2])cube([width-wall*2, top_box_height-wall*2, wall], center=true);
translate([0,top_box_position,(pcb_distance_z)/2+bottom])cube([width-wall*2-3, top_box_height-wall*4-2, pcb_distance_z], center=true);
// Z-Wave cutout
//translate([(width-0.5)/2-wall/2,top_box_position-10,top_box_depth/2+(bottom+pcb_distance_z+2)/2])cube([wall+0.5, zwave_cutout, top_box_depth - bottom - pcb_distance_z - 2], center=true);
}
// PCB mounting
translate([0,top_box_position,bottom])difference(){

File diff suppressed because it is too large Load Diff