Large diffs are not rendered by default.

Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,72 @@
// Bathroom Sensor 3D Model with methane sensor, 2 motion sensors and Arduino Yun

$fn = 8;

cube_side = 50;
cube_tip_clip = 40;

skin = 10;
inner_skin = 8;
thin_skin = 0.1;

yun_y = -wall_width;
yun_z = -20;

color("red") box();

//yun_moved();
//color("blue") yun_holder();

module motion_moved(y=0, theta=0) {
translate([95, y, -20])
rotate([36, 137, theta]) {
motion_angle(-60);
}
}

module motion_moved_skin(y=0, theta=0) {
minkowski() {
motion_moved(y, theta);
sphere(r=thin_skin);
}
}

module yun_moved() {
translate([-skin, yun_y, yun_z])
rotate([180, 0, 0]) {
yun();
}
}

module yun_moved_skin() {
minkowski() {
yun_moved();
sphere(r=thin_skin);
}
}

module yun_holder() {
}

module poly() {
difference() {
polyhedron(
points=[[cube_side,0,0],
[0,-cube_side,0],
[-cube_side,0,0],
[0,cube_side,0],
[0,0,cube_side]],
faces=[[0,1,4],[1,2,4],[2,3,4],[3,0,4],[1,0,3],[2,1,3]]);
translate([-2*cube_side, -2*cube_side, cube_tip_clip])
cube([cube_side*4, cube_side*4, cube_side]);
}
}

module box() {
poly();
}

module yun() {
include <../3d-iot-component-models/arduino-yun-mini.scad>
}

@@ -1,6 +1,6 @@
// Arduino Yun Mini 3D model for planning

$fn = 32;
$fn = 16;

length = 71.12;
width = 22.86;
@@ -24,18 +24,17 @@ module leds() {
}

module button(y = 0) {
translate([length - 2.75, y, height]) cylinder(r = 3/2, h = 1);
translate([length - 2.75, y, height]) cylinder($fn=8, r=3/2, h=1);
}

module bottom_button() {
translate([length - 2, 7.5, -1]) cylinder(r = 3/2, h = 1);
translate([length - 2, 7.5, -1]) cylinder($fn=8, r=3/2, h=1);
}

module hole(x = 0, y = 0) {
translate([x, y, -9]) cylinder(h = 10 + height, r = 2.5/2);
}


module arduino_yun_mini() {
difference() {
color("green") board();
@@ -10,13 +10,13 @@ module center() {

module top() {
translate([0, 0, 18 - 16/2])
sphere(r = 16/2);
sphere($fn=8, r=16/2);
}

module pin(theta = 0) {
color("black") rotate([180, 0, theta]) {
translate([6, 0, 0])
cylinder(r = .3, h = pin_length);
cylinder($fn=8, r=.3, h=pin_length);
}
}

@@ -20,7 +20,7 @@ module dome() {
translate([5.55, 2.84, height])
cube([base_length, base_width, base_height]);
difference() {
translate([length/2, width/2, height + 5.6]) sphere(r = dome_radius);
translate([length/2, width/2, height + 5.6]) sphere($fn=8, r=dome_radius);
translate([0, 0, -10]) cube([length, width, 10]);
}
}