screws for micro switch assembly

pull/9/head
Glen Chung 2013-10-16 00:05:26 +08:00
parent 03774e6530
commit bd1ff22a7f
2 changed files with 18 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -1,6 +1,7 @@
include <MCAD/materials.scad>
include <MCAD/metric_fastners.scad>
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();