Light and lens work
This commit is contained in:
parent
407134af7e
commit
e0af07c52c
|
@ -0,0 +1,9 @@
|
||||||
|
$fn=200;
|
||||||
|
module lens_cap_back () {
|
||||||
|
difference() {
|
||||||
|
cylinder(r = 36 / 2, h = 9, center = true);
|
||||||
|
translate([0, 0, 2]) cylinder(r = 33 / 2, h = 9, center = true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
lens_cap_back();
|
|
@ -48,7 +48,7 @@ module pixie_mount () {
|
||||||
}
|
}
|
||||||
|
|
||||||
//pins for mounting pixie
|
//pins for mounting pixie
|
||||||
translate ([0, -3, 0]) rotate([90, 0, 0]) {
|
translate ([0, -0.5, 0]) rotate([90, 0, 0]) {
|
||||||
translate([W/2, 0, -2]) cylinder(r = INNER_D / 2, h = Z + 1, center = true);
|
translate([W/2, 0, -2]) cylinder(r = INNER_D / 2, h = Z + 1, center = true);
|
||||||
translate([-W/2, 0, -2]) cylinder(r = INNER_D / 2, h = Z + 1, center = true);
|
translate([-W/2, 0, -2]) cylinder(r = INNER_D / 2, h = Z + 1, center = true);
|
||||||
|
|
||||||
|
@ -76,14 +76,20 @@ module pixie_mount () {
|
||||||
|
|
||||||
//outer shell surrounding pixie
|
//outer shell surrounding pixie
|
||||||
translate ([0, -1 + LENS_OFFSET, -6]) {
|
translate ([0, -1 + LENS_OFFSET, -6]) {
|
||||||
|
|
||||||
difference () {
|
difference () {
|
||||||
translate([0, 0, 6]) rounded_cube([W + 16, 36, 32], d = 6, center = true);
|
translate([0, 0, 6]) rounded_cube([W + 20, 40, 32], d = 6, center = true);
|
||||||
translate([0, 0, 6]) rounded_cube([(W + 16) - 4, 36 - 4, 32 + 1], d = 4, center = true);
|
translate([0, 0, 6]) rounded_cube([(W + 16) - 4, 36 - 4, 32 + 1], d = 4, center = true);
|
||||||
translate([0, -8, 8]) rotate([90, 0, 0]) cylinder(r = 10, h = 5, center = true);//circular void
|
//inner tab for centering
|
||||||
translate([0, -50, 0]) cube([100, 100, 100], center = true); //half
|
translate([0, 0, 6]) cube([W + 16, 10, 32 - 10], center = true);
|
||||||
|
//cylinder void for bolt
|
||||||
|
translate([0, 3, 6]) rotate([0, 90, 0]) cylinder(r = 1, h = 40 + 1, center = true, $fn = 60);
|
||||||
|
//cut in half
|
||||||
|
translate([0, -50, 0]) cube([100, 100, 100], center = true);
|
||||||
|
|
||||||
//wires
|
//wires
|
||||||
translate([0, 0, -3]) cube([10, 40, 5], center = true);
|
translate([0, 0, -3]) cube([10, 40, 5], center = true);
|
||||||
|
translate([-5, 0, -5.5]) cube([2, 40, 10], center = true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,18 +99,27 @@ module diffuser_mount () {
|
||||||
W = 0.8 * 25.4;
|
W = 0.8 * 25.4;
|
||||||
translate ([0, 0, -6]) {
|
translate ([0, 0, -6]) {
|
||||||
difference () {
|
difference () {
|
||||||
translate([0, 0, 6]) rounded_cube([W + 16, 36, 32], d = 6, center = true);
|
translate([0, 0, 6]) rounded_cube([W + 20, 40, 32], d = 6, center = true);
|
||||||
translate([0, 0, 6]) rounded_cube([(W + 16) - 4, 36 - 4, 32 + 1], d = 4, center = true);
|
translate([0, 0, 6]) rounded_cube([(W + 16) - 4, 36 - 4, 32 + 1], d = 4, center = true);
|
||||||
translate([0, -8, 8]) rotate([90, 0, 0]) cylinder(r = 10, h = 5, center = true);//circular void
|
//circular void
|
||||||
translate([0, 50, 0]) cube([100, 100, 100], center = true); //half
|
translate([0, -8, 8]) rotate([90, 0, 0]) cylinder(r = 10, h = 5, center = true);
|
||||||
|
//cylinder void for bolt
|
||||||
|
translate([0, 3, 6]) rotate([0, 90, 0]) cylinder(r = 1, h = 40 + 1, center = true, $fn = 60);
|
||||||
|
//cut in half
|
||||||
|
translate([0, 50, 0]) {
|
||||||
|
difference () {
|
||||||
|
cube([100, 100, 100], center = true);
|
||||||
|
translate([0, -50, 6]) cube([W + 16, 10, 32 - 10], center = true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
translate ([0, -18, 6]) rotate([90, 90, 0]) cylinder(r = 30 / 2, h = 20, center = true);
|
translate ([0, -18, 6]) rotate([90, 90, 0]) cylinder(r = 30 / 2, h = 20, center = true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
translate ([0, -15.5, 0]) rotate([90, 90, 0]) {
|
translate ([0, -15.5, 0]) rotate([90, 90, 0]) {
|
||||||
difference () {
|
difference () {
|
||||||
cylinder(r = 30 / 2, h = 5, center = true);
|
cylinder(r = 30 / 2, h = 9, center = true);
|
||||||
cylinder(r = 28 / 2, h = 5 + 1, center = true);
|
cylinder(r = 28 / 2, h = 9 + 1, center = true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ include <./light.scad>;
|
||||||
include <./motor.scad>;
|
include <./motor.scad>;
|
||||||
|
|
||||||
//rotate([90, 0, 0]) color("red") adafruit_pixie();
|
//rotate([90, 0, 0]) color("red") adafruit_pixie();
|
||||||
//translate([0, 6, 0]) pixie_mount();
|
//translate([0, 6, 0]) color("blue") pixie_mount();
|
||||||
//translate([0, 0, -50]) color("red") fan();
|
//translate([0, 0, -50]) color("red") fan();
|
||||||
color("green") diffuser_mount();
|
color("green") diffuser_mount();
|
||||||
//translate([0, 0, -51.2]) light_body();
|
//translate([0, 0, -51.2]) light_body();
|
||||||
|
|
Loading…
Reference in New Issue