zwave-2002-lock/scad/servo_cover.scad
2018-02-15 16:24:51 +01:00

30 lines
987 B
OpenSCAD

$fn=30;
wall = 3;
width = 70;
lock_box_height = 27+6;
servo_depth = 10;
servo_hole = 2.5+0.5;
screw_cutout_width = 8;
screw_cutout_cc = 45;
module cover (){
// Main mounting plate
difference(){
union(){
cube([width-wall*2,lock_box_height-wall*2,wall], center = true);
translate([screw_cutout_cc/2,0,0])cube([screw_cutout_width, lock_box_height, wall], center=true);
translate([-screw_cutout_cc/2,0,0])cube([screw_cutout_width, lock_box_height, wall], center=true);
}
// Motor box screw cutout
translate([-screw_cutout_cc/2,lock_box_height/2-wall,0])cylinder(r=servo_hole/2, h = servo_depth, center=true);
translate([screw_cutout_cc/2,lock_box_height/2-wall,0])cylinder(r=servo_hole/2, h = servo_depth, center=true);
translate([-screw_cutout_cc/2,-lock_box_height/2+wall,0])cylinder(r=servo_hole/2, h = servo_depth, center=true);
translate([screw_cutout_cc/2,-lock_box_height/2+wall,0l])cylinder(r=servo_hole/2, h = servo_depth, center=true);
}
}
cover();