From bd1ff22a7fae51d5f634d3d38a3c5b4c6949c093 Mon Sep 17 00:00:00 2001 From: Glen Chung Date: Wed, 16 Oct 2013 00:05:26 +0800 Subject: [PATCH] screws for micro switch assembly --- Hardware/Development/Y_axis/motor_stand.scad | 6 ++++-- Hardware/Development/libs/micro_switch.scad | 17 ++++++++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Hardware/Development/Y_axis/motor_stand.scad b/Hardware/Development/Y_axis/motor_stand.scad index f8e309b..d4c2f06 100644 --- a/Hardware/Development/Y_axis/motor_stand.scad +++ b/Hardware/Development/Y_axis/motor_stand.scad @@ -230,10 +230,12 @@ module idle_stand(with_extra_parts=false) { translate([0,wall_width+5-2*(wall_width+wall_extraWidth_right-52.4)]) holder(noScrews=true, with_extra_parts=with_extra_parts); translate([0,52.4+5/2]) scale([1,-1,1]) holder(h=15,base_width_inc=1, with_extra_parts=with_extra_parts); } + if(!with_motor && with_extra_parts) { - translate([0,motor_width-19.8/2,wall_thickness]) + // --- micro switch --- + translate([0,motor_width-idler_width/2,wall_thickness]) rotate([-90, 0, 90]) - color([0,0,0]) micro_switch(); + micro_switch(with_extra_parts); } } diff --git a/Hardware/Development/libs/micro_switch.scad b/Hardware/Development/libs/micro_switch.scad index a552741..b6473ad 100644 --- a/Hardware/Development/libs/micro_switch.scad +++ b/Hardware/Development/libs/micro_switch.scad @@ -1,6 +1,7 @@ +include +include - -module micro_switch() { +module micro_switch(with_extra_parts=false) { difference() { cube([19.8, 10.8, 6.4]); @@ -8,12 +9,22 @@ module micro_switch() { translate([0, 0, -0.5]) cylinder(h = 7.4, R=2.6, $fn=100); translate([9.5, 0, -0.5]) - cylinder(h = 7.4, R=2.0, $fn=100); + cylinder(h = 7.4, R=2.6, $fn=100); } } translate([2.8, 10.8, 1.2]) rotate([0,0,10]) cube([17,1,4]); + + if(with_extra_parts) { + // --- Self tapping screw 2.2 x 13mm --- + translate([5.15, 2, 0]) color(Steel) { + translate([0, 0, 0.5+6.4]) + rotate([180,0,0]) csk_bolt(2.2, 13); + translate([9.5, 0, 0.5+6.4]) + rotate([180,0,0]) csk_bolt(2.2, 13); + } + } } micro_switch();