Skip to content

Commit

Permalink
Adding the "eyes" holding plate
Browse files Browse the repository at this point in the history
new support for the smaller “eye” rings.
  • Loading branch information
pierreca authored and pierreca committed May 21, 2014
1 parent af47711 commit 0e2382a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 8 deletions.
47 changes: 43 additions & 4 deletions Case/Casing.scad
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use <Hardware.scad>;
use <Arduino.scad>;
use <NeoPixels.scad>;
include <NeoPixels.scad>;

$fa=0.1;

Expand Down Expand Up @@ -83,9 +83,45 @@ module mounting_hardware(x, y, z) {
module ring_holder (x, y, z) {
translate([x, y, z]) {
difference() {
cube(size=[20, 3, 37]);
translate([5, 0, 33]) cube(size=[9, 4, 4]);
translate([10.5, 0, 0]) cube(size=[11, 4, 3]);
cube(size=[20, acrylic_plate_height, 37]);
translate([5, 0, 33]) cube(size=[9, acrylic_plate_height + 1, 4]);
translate([10.5, -0.5, -1]) cube(size=[11, acrylic_plate_height + 1, acrylic_plate_height + 1]);
}
}
}

module eyes_plate(x, y, z) {
translate([x, y, z]) {
difference() {
hull() {
translate([eye_separation / 2, left_eye_height, 0])
cylinder(r = ring24_outer_radius + 2, h = acrylic_plate_height);

translate([-eye_separation / 2, right_eye_height, 0])
cylinder(r = ring12_outer_radius + 2, h = acrylic_plate_height);
}

translate([0,-10,-0.5]) cube(size=[60, 5, acrylic_plate_height + 1]);
translate([eye_separation / 2, (left_eye_height - 13), -0.5])
cylinder(r = 2.5, h = acrylic_plate_height + 1);
translate([-eye_separation / 2, (right_eye_height - 8), -0.5])
cylinder(r = 2.5, h = acrylic_plate_height + 1);

translate([0, 10, -0.5]) cube(size=[acrylic_plate_height,10, acrylic_plate_height + 1]);
translate([0, 30, -0.5]) cube(size=[acrylic_plate_height,10, acrylic_plate_height + 1]);
}
eyes_plate_holder(0, 10, -36 + 2 * acrylic_plate_height);
}
}

module eyes_plate_holder(x, y, z) {
translate([x, y, z]) {
difference() {
cube(size=[acrylic_plate_height, 30, 36 - acrylic_plate_height]);
translate([-0.5, 10, -1])
cube(size=[acrylic_plate_height + 1, 10, acrylic_plate_height + 1]);
translate([-0.5, 10, 36 - acrylic_plate_height - acrylic_plate_height])
cube(size=[acrylic_plate_height + 1, 10, acrylic_plate_height + 1]);
}
}
}
Expand All @@ -103,10 +139,13 @@ module back_plate (x, y, z) {

module ring_holders(x, y, z) {
translate([x, y, z]) {
// 60-LEDs ring holders
ring_holder(-clock_radius, -1.5, -33);
rotate([0, 0, 90]) ring_holder(-clock_radius, -1.5, -33);
rotate([0, 0, 180]) ring_holder(-clock_radius, -1.5, -33);
rotate([0, 0, -90]) ring_holder(-clock_radius, -1.5, -33);

eyes_plate(0, 0, -3);
}
}

Expand Down
8 changes: 4 additions & 4 deletions Case/NeoPixels.scad
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ring12_outer_radius = 18.5;
module led_ring(inner_radius, outer_radius) {
difference() {
cylinder(h=ring_height, r=outer_radius);
cylinder(h=ring_height, r=inner_radius);
translate([0,0,-0.5]) cylinder(h=ring_height + 1, r=inner_radius);
}
}

Expand All @@ -40,6 +40,6 @@ module neopixels_ring_60(x, y, z) {
}
}

neopixels_ring_12(0, 0, 0);
neopixels_ring_24(0, 0, 0);
neopixels_ring_60(0, 0, 0);
//neopixels_ring_12(0, 0, 0);
//neopixels_ring_24(0, 0, 0);
//neopixels_ring_60(0, 0, 0);

0 comments on commit 0e2382a

Please sign in to comment.