2017-12-29 02:08:58 +00:00
|
|
|
include <./common.scad>;
|
|
|
|
|
2017-12-31 05:54:09 +00:00
|
|
|
/*
|
|
|
|
CynKen 1Pcs Optical Glass RGB Dispersion Prism X-CUBE for Physics Teach Decoration Art
|
|
|
|
Specifications:
|
|
|
|
Material: K9 Cristal
|
|
|
|
Size: 2cm x 2cm x 1.7cm/0.8'' x 0.8''
|
|
|
|
*/
|
|
|
|
|
|
|
|
module prism () {
|
|
|
|
cube([20, 20, 17], center = true);
|
|
|
|
}
|
|
|
|
|
2017-12-29 02:08:58 +00:00
|
|
|
module adafruit_pixie () {
|
|
|
|
$fn = 60;
|
|
|
|
W = 0.8 * 25.4;
|
|
|
|
L = 0.78 * 25.4;
|
|
|
|
//L = 15;
|
|
|
|
Z = 1.5;
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
rounded_cube([W, 15, Z], d = 3, center = true);
|
|
|
|
rounded_cube([9, L, Z], d = 3, center = true);
|
|
|
|
translate([W/2, 0, 0]) cylinder(r = 2, h = Z, center = true);
|
|
|
|
translate([-W/2, 0, 0]) cylinder(r = 2, h = Z, center = true);
|
|
|
|
}
|
|
|
|
translate([W/2, 0, 0]) cylinder(r = 1, h = 10, center = true);
|
|
|
|
translate([-W/2, 0, 0]) cylinder(r = 1, h = 10, center = true);
|
|
|
|
}
|
|
|
|
translate([0, 0, Z/2 + 1]) cylinder(r = 8/2, h=2, center = true);
|
|
|
|
translate([0, 0, Z/2 + 1 + 1]) sphere(r = 2.5, center = true);
|
|
|
|
}
|
|
|
|
|
|
|
|
module pixie_mount () {
|
|
|
|
$fn = 60;
|
|
|
|
W = 0.8 * 25.4;
|
|
|
|
L = 0.78 * 25.4;
|
2018-01-02 06:13:09 +00:00
|
|
|
Z = 12;
|
2017-12-29 02:08:58 +00:00
|
|
|
|
|
|
|
INNER_D = 1.9;
|
|
|
|
|
|
|
|
FAN_W = 50;
|
|
|
|
|
|
|
|
LENS_OFFSET = -5;
|
|
|
|
|
|
|
|
if (DEBUG) {
|
|
|
|
translate([0, LENS_OFFSET, 0]) rotate([90, 0, 0]) adafruit_pixie();
|
|
|
|
}
|
|
|
|
|
|
|
|
//pins for mounting pixie
|
2018-01-02 06:13:09 +00:00
|
|
|
translate ([0, -3, 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);
|
2017-12-29 02:08:58 +00:00
|
|
|
|
2018-01-02 06:13:09 +00:00
|
|
|
translate([W/2, 0, -(Z / 2) + 2]) cylinder(r = 2.2, h = Z, center = true);
|
|
|
|
translate([-W/2, 0, -(Z / 2) + 2]) cylinder(r = 2.2, h = Z, center = true);
|
2017-12-29 02:08:58 +00:00
|
|
|
|
|
|
|
translate([W/2, 0, -Z + (Z / 4)]) cylinder(r = 4, h = Z/2, center = true);
|
|
|
|
translate([-W/2, 0, -Z + (Z / 4)]) cylinder(r = 4, h = Z/2, center = true);
|
|
|
|
|
|
|
|
translate([W/2, 0, -1]) {
|
|
|
|
difference () {
|
2018-01-02 06:13:09 +00:00
|
|
|
translate([0, 0, -1]) cylinder(r = 4, h = Z, center = true);
|
|
|
|
cylinder(r = 2.2, h = 20, center = true);
|
|
|
|
translate([-5, 0, 11]) cube([10, 10, 20], center = true);
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([-W/2, 0, -1]) {
|
|
|
|
difference () {
|
2018-01-02 06:13:09 +00:00
|
|
|
translate([0, 0, -1]) cylinder(r = 4, h = Z, center = true);
|
|
|
|
cylinder(r = 2.2, h = 20, center = true);
|
|
|
|
translate([5, 0, 11]) cube([10, 10, 20], center = true);
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//outer shell surrounding pixie
|
|
|
|
translate ([0, -1 + LENS_OFFSET, -6]) {
|
|
|
|
difference () {
|
2018-01-02 06:13:09 +00:00
|
|
|
translate([0, 0, 6]) rounded_cube([W + 16, 36, 32], d = 6, center = true);
|
|
|
|
translate([0, 0, 6]) rounded_cube([(W + 16) - 4, 36 - 4, 32 + 1], d = 4, center = true);
|
2017-12-29 02:08:58 +00:00
|
|
|
translate([0, -8, 8]) rotate([90, 0, 0]) cylinder(r = 10, h = 5, center = true);//circular void
|
|
|
|
translate([0, -50, 0]) cube([100, 100, 100], center = true); //half
|
|
|
|
|
|
|
|
//wires
|
2018-01-02 06:13:09 +00:00
|
|
|
translate([0, 0, -3]) cube([10, 40, 5], center = true);
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
}
|
2018-01-02 06:13:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module diffuser_mount () {
|
|
|
|
$fn = 100;
|
|
|
|
W = 0.8 * 25.4;
|
|
|
|
translate ([0, 0, -6]) {
|
2017-12-29 02:08:58 +00:00
|
|
|
difference () {
|
2018-01-02 06:13:09 +00:00
|
|
|
translate([0, 0, 6]) rounded_cube([W + 16, 36, 32], d = 6, 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
|
|
|
|
translate([0, 50, 0]) cube([100, 100, 100], center = true); //half
|
2017-12-29 02:08:58 +00:00
|
|
|
|
2018-01-02 06:13:09 +00:00
|
|
|
translate ([0, -18, 6]) rotate([90, 90, 0]) cylinder(r = 30 / 2, h = 20, center = true);
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
}
|
2018-01-02 06:13:09 +00:00
|
|
|
translate ([0, -15.5, 0]) rotate([90, 90, 0]) {
|
2017-12-29 02:08:58 +00:00
|
|
|
difference () {
|
2018-01-02 06:13:09 +00:00
|
|
|
cylinder(r = 30 / 2, h = 5, center = true);
|
|
|
|
cylinder(r = 28 / 2, h = 5 + 1, center = true);
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
2018-01-02 06:13:09 +00:00
|
|
|
}
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
|
2018-01-02 06:13:09 +00:00
|
|
|
module diffuser_spacer () {
|
|
|
|
$fn = 100;
|
|
|
|
LEN = 10;
|
|
|
|
difference () {
|
|
|
|
cylinder(r = 27.9 / 2, h = LEN, center = true);
|
|
|
|
cylinder(r = 24 / 2, h = LEN + 1, center = true);
|
|
|
|
translate([0, 0, (LEN / 2) - (2/2) ]) cylinder(r = 26 / 2, h = 2, center = true);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2017-12-29 02:08:58 +00:00
|
|
|
|
2018-01-02 06:13:09 +00:00
|
|
|
module diffuser_insert () {
|
|
|
|
$fn = 100;
|
|
|
|
cylinder(r = 26 / 2, h = 2, center = true);
|
|
|
|
}
|
|
|
|
|
|
|
|
module light_body () {
|
|
|
|
FAN_W = 50;
|
|
|
|
FAN_Z = 10;
|
|
|
|
$fn = 60;
|
|
|
|
translate([-8, 8, 0]) difference() {
|
|
|
|
rounded_cube([FAN_W + 8, FAN_W + 8, FAN_Z], d = 6, center = true);
|
|
|
|
rounded_cube([FAN_W + 1, FAN_W + 1, FAN_Z + 1], d = 4, center = true);
|
|
|
|
}
|
|
|
|
//trapezoid connector to the fan
|
|
|
|
translate ([0, 0, (FAN_Z / 2) + (30 / 2) + 15]) {
|
|
|
|
difference () {
|
|
|
|
hull () {
|
|
|
|
rounded_cube([40, 40, 0.1], d = 6, center = true);
|
|
|
|
translate([-8, 8, -30]) rounded_cube([FAN_W + 8, FAN_W + 8, 0.1], d = 6, center = true);
|
|
|
|
}
|
|
|
|
translate([0, 0, 0.1]) hull () {
|
|
|
|
rounded_cube([32, 32, 0.1], d = 4, center = true);
|
|
|
|
translate([-8, 8, -30.2])
|
|
|
|
//cylinder(r = (FAN_W - 8) / 2, h = 30.2, center = true);
|
|
|
|
rounded_cube([FAN_W - 8, FAN_W - 8, 0.1], d = 20, center = true);
|
|
|
|
}
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
}
|
2018-01-02 06:13:09 +00:00
|
|
|
translate([0, 0, 34]) difference () {
|
|
|
|
rounded_cube([36+4, 36+4, 10], d = 6, center = true);
|
|
|
|
rounded_cube([36, 36, 10 + 1], d = 6, center = true);
|
|
|
|
translate([0, -15, 51 - 34]) rotate([90, 0, 0]) cylinder(r = 30 / 2, h = 20, h = 20, center = true);
|
|
|
|
}
|
|
|
|
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
|
2018-01-02 06:13:09 +00:00
|
|
|
module light_vent_top () {
|
|
|
|
$fn = 60;
|
|
|
|
difference () {
|
|
|
|
rounded_cube([36+4, 36+4, 10], d = 6, center = true);
|
|
|
|
rounded_cube([36, 36, 10 + 1], d = 6, center = true);
|
|
|
|
}
|
|
|
|
translate([0, 0, 1]) difference() {
|
|
|
|
rounded_cube([36+2, 36+2, 8], d = 6, center = true);
|
|
|
|
for (i = [0:5]) {
|
|
|
|
translate([i * 6, 0, 0]) rotate([0, -40, 0]) cube([4, 36 + 3, 12], center = true);
|
|
|
|
translate([(i + 1) * -6, 0, 0]) rotate([0, -40, 0]) cube([4, 36 + 3, 12], center = true);
|
|
|
|
}
|
|
|
|
}
|
2017-12-29 02:08:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module fan () {
|
|
|
|
$fn = 60;
|
|
|
|
FAN_W = 50;
|
|
|
|
FAN_Z = 10;
|
|
|
|
SCREW_D = 4;
|
|
|
|
SCREW_INNER = 6;
|
|
|
|
difference () {
|
|
|
|
rounded_cube([FAN_W, FAN_W, FAN_Z], d = 4, center = true);
|
|
|
|
translate([(FAN_W - SCREW_INNER)/2, (FAN_W - SCREW_INNER)/2, 0]) cylinder(r = SCREW_D/2, h = FAN_Z + 1, center = true);
|
|
|
|
translate([-(FAN_W - SCREW_INNER)/2, (FAN_W - SCREW_INNER)/2, 0]) cylinder(r = SCREW_D/2, h = FAN_Z + 1, center = true);
|
|
|
|
translate([-(FAN_W - SCREW_INNER)/2, -(FAN_W - SCREW_INNER)/2, 0]) cylinder(r = SCREW_D/2, h = FAN_Z + 1, center = true);
|
|
|
|
translate([(FAN_W - SCREW_INNER)/2, -(FAN_W - SCREW_INNER)/2, 0]) cylinder(r = SCREW_D/2, h = FAN_Z + 1, center = true);
|
|
|
|
cylinder(r = (FAN_W - SCREW_INNER) /2, h = FAN_Z + 1, center = true);
|
|
|
|
}
|
|
|
|
}
|