From 7a2b2ecdde4cc59abaa73883bb9151ef6ca91c4e Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Sat, 10 Nov 2018 16:27:40 -0500 Subject: [PATCH] Add a bolt guide --- ino/intval2_1_serial/intval2_1_serial.ino | 4 +++- scad/intval2.scad | 21 +++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ino/intval2_1_serial/intval2_1_serial.ino b/ino/intval2_1_serial/intval2_1_serial.ino index 04d7eab..0d49fc7 100644 --- a/ino/intval2_1_serial/intval2_1_serial.ino +++ b/ino/intval2_1_serial/intval2_1_serial.ino @@ -102,10 +102,12 @@ void loop() { cmd_char = 'z'; } timer = millis(); + Btn(0); Btn(1); Btn(2); Btn(3); + if (sequence && delaying) { Watch_delay(); } @@ -219,7 +221,7 @@ void Btn (int index) { void button_end (int index, long buttontime) { if (index == 0) { if (buttontime > 1000) { - if (!sequence) { + if (!sequence && !running) { sequence = true; Output(2, 75); Frame(); diff --git a/scad/intval2.scad b/scad/intval2.scad index d774dd5..197d9e9 100644 --- a/scad/intval2.scad +++ b/scad/intval2.scad @@ -1112,6 +1112,18 @@ module bearing_calibrate (val = 0) { } } +module bolt_guide () { + $fn = 80; + difference () { + union () { + cylinder(r = 10 /2, h = 38, center = true); + translate([0, 0, -(38 / 2) + 1.5]) cylinder(r = 16 /2, h = 3, center = true); + } + cylinder(r = 7.5 / 2, h = 40, center = true); + translate([0, -13, -(38 / 2) + 1.5]) cube([16, 16, 10], center = true); + } +} + module stl_plate () { //translate([0, 0, -0.5]) cube([150, 150, 1], center = true); translate([-38, 41, 7.5]) rotate([0, 180, 0]) intval_laser_standoffs_plate(); @@ -1140,6 +1152,8 @@ module exploded_view () { translate([0, 0, 60]) intval_laser_panel_cover(false, ALL_RED=true); } +bolt_guide(); + //translate([-11, -36, 11.5]) rotate([0, 0, -90]) trinket_mount(); //button_nuts_plate(true); //plunger_plate(); @@ -1206,7 +1220,7 @@ module exploded_view () { //bolex_pin_laser(0, 0); //intval_laser_standoffs_plate(); -intersection () { +/*intersection () { intval_electronics_mount("TRINKET"); union () { translate([1, -28, 0]) rotate([0, 0, -13]) translate([-22, 0, 10]) { @@ -1214,8 +1228,7 @@ intersection () { translate([-5, 4, 0]) cube([5, 28, 20], center = true); } } -} - +}*/ //motor_mount_bottom(); //projection() intval_panel_laser(); @@ -1231,4 +1244,4 @@ intersection () { //exploded_view(); //stl_plate(); -dxf_plate(); +//dxf_plate();