Work on the lamp housing, adding voids for bolts for adjusting

This commit is contained in:
mmcw-dev 2018-07-15 16:47:11 -04:00
parent 3e223851d9
commit 89bc7df9b9
2 changed files with 68 additions and 61 deletions

View File

@ -306,32 +306,6 @@ module sprocketed_voids () {
bearing_laser(SPROCKETED_OFFSET, -SPROCKETED_SPACING / 2, 0, hole=false);
}
module gate () {
H = 20;
GATE_D = 65;
BOX_X = 39;
BOX_Y = 100;
difference () {
intersection () {
translate([-1, 0, 0]) cube([4, 16, H + 4], center = true);
translate([GATE_D / 2 - 3, 0, 0]) cylinder(r = GATE_D / 2, h = H + 4, center = true);
}
translate([0, 0, -2]) cube([50, SLIT, H], center = true);
}
//side walls
translate([8, 10, 0]) rotate([0, 0, 20]) cube([20, 4, H + 4], center = true);
translate([8, -10, 0]) rotate([0, 0, -20]) cube([20, 4, H + 4], center = true);
translate([BOX_X - 6, 0, 0]) {
difference () {
rounded_cube([BOX_X, BOX_Y, H + 4], d = 6, center = true);
cube([BOX_X - 8, BOX_Y - 8, H + 4 + 1], center = true);
translate([-BOX_X / 2, 0, 0]) cube([BOX_X, 24, H + 4 + 1], center = true);
translate([BOX_X / 2, 30, -9]) cube([20, 20, 8], center = true);
}
}
}
module bearing_hobbled_rod () {
RH_CONNECT_R = 4; //inside of bearing
difference () {
@ -757,8 +731,9 @@ module sprocketed_roller_gear_cap () {
//translate([57.5, 0, 0]) four_point_connector();
translate([40, 0, LAMP_Z]) rotate([0, 0, -90]) {
//lamp_plate();
light_housing();
//light_housing();
lamp_housing();
//translate([0, 15, 4]) lamp_front();
//gate();
}
//sprocketed_roller_gear_cap ();

View File

@ -3,12 +3,24 @@ $fn = 80;
include <./ready.scad>;
include <./16mm_sprocketed_roller_var.scad>;
BRACE_L = 24;
PLATE_L = 47;
Z = 36;
X = 45;
OUTER_W = 34;
INNER_W = 22.3;
BRACE_L = 24;
PLATE_L = 47;
Z = 36;
X = 45;
OUTER_W = 34;
INNER_W = 22.3;
//echo("hex(diag = 10, h = 1);");
module hex (diag = 10, h = 1) {
//echo("Diag");
//echo(diag);
cylinder(r = diag / 2, h = h, center = true, $fn = 6);
}
module m4_nut (H = 3.25, DIAG = 8.1) {
//tolerance
hex(diag = DIAG, h = H);
}
module roller_base (X = 40) {
BEARING_OUTER_D = 22;
@ -84,37 +96,55 @@ module lamp_plate() {
}
module light_housing () {
module m4_nut_void () {
//hex nut void
cylinder(r = 8.1 / 2, h = 3, center = true, $fn = 6);
//drop in space
translate([-10, 0, 0]) cube([20, 7.1, 3], center = true);
//bolt void
translate([0, 0, -5]) cylinder(r = 3.9 / 2, h = 30, center = true);
translate([-10, 0 , -5]) cube([20, 3.9, 10], center = true);
}
module lamp_housing () {
color("red") translate([0, 32, -8]) cube([34, 28, 2], center = true);
translate([0, 31, 3]) {
difference () {
cube([OUTER_W, 15 + 8, BRACE_L], center = true);
cube([INNER_W, 15 + 8 + 1, BRACE_L + 1], center = true);
//set screw holes
translate([0, -7, 7]) rotate([0, 90, 0]) cylinder(r = 1, h = 50, center = true, $fn = 40);
//gaps for slide wings
translate([(INNER_W / 2) + 1, (BRACE_L / 2) - 10, 3]) color("green") cube([2, BRACE_L, 20], center = true);
translate([-(INNER_W / 2) - 1, (BRACE_L / 2) - 10, 3]) color("green") cube([2, BRACE_L, 20], center = true);
}
}
//bolts
//light + acrylic holder
translate([0, 45, 5]) {
rotate([0, 0, 180]) light_holder();
translate([0, -7.5, -11.5]) cube([10, 17, 2], center = true);
translate([0, -1.5, -1]) {
difference () {
cube([OUTER_W, 2, 22], center = true);
cube([9, 2, 22], center = true);
union() {
difference () {
//main body
cube([OUTER_W, 15 + 8, BRACE_L], center = true);
//main void
cube([INNER_W, 15 + 8 + 1, BRACE_L + 1], center = true);
//set screw holes
translate([0, -7, 7]) rotate([0, 90, 0]) cylinder(r = 1, h = 50, center = true, $fn = 40);
//gaps for slide wings
translate([(INNER_W / 2) + 1, (BRACE_L / 2) - 10, 3]) color("green") cube([2, BRACE_L, 20], center = true);
translate([-(INNER_W / 2) - 1, (BRACE_L / 2) - 10, 3]) color("green") cube([2, BRACE_L, 20], center = true);
}
//blocks for bolts
translate([10, 7, -3]) cube([10, 12, 15], center = true);
translate([-10, 7, -3]) cube([10, 12, 15], center = true);
//light + acrylic holder
translate([0, 45 - 31, 5 - 3]) {
rotate([0, 0, 180]) light_holder();
translate([0, -7.5, -11.5]) cube([10, 17, 2], center = true);
translate([0, -1.5, -1]) {
difference () {
cube([OUTER_W, 2, 22], center = true);
cube([9, 2, 22], center = true);
}
}
}
}
}
//bolt voids
translate([11, 10, 2]) rotate ([0, 90, 90]) m4_nut_void();
translate([-11, 10, 2]) rotate ([0, 90, 90]) m4_nut_void();
}
}
//extended tabs from light housing
translate([20, 35.5, -4]) {
difference () {
@ -176,6 +206,7 @@ module corner () {
}
}
//adjustable piece, holds the gate
module lamp_front () {
R = 70;
@ -253,7 +284,7 @@ module ws2812b (H = 1.4) {
cube([W, W, Z], center = true);
}
//3 RGB leds
module light_holder () {
//
difference () {
@ -323,6 +354,7 @@ module lamp_cover () {
translate([0, -6, -3.5]) rotate([0, 90, 0]) cylinder(r = 3.5, h = 50, center = true);
}
}
//corner();
translate ([0, 0, 11]) {
rotate([0, 180, 0]) {