Browse Source

Model mount for power regulator

master
Starbeamrainbowlabs 3 years ago
parent
commit
23a3165958
  1. 49
      iot/Housing.scad

49
iot/Housing.scad

@ -11,6 +11,8 @@ box_inside = [ 130, 140, 110 ]; @@ -11,6 +11,8 @@ box_inside = [ 130, 140, 110 ];
screw_diameter = 3;
screw_length = 6.3;
bb_size = [ 46, 35 ];
// -------------------------------------------
corner_piece_size = screw_diameter +
@ -27,7 +29,7 @@ box_outside = [ @@ -27,7 +29,7 @@ box_outside = [
offset_arduino = [53.4+8, 40, wall_thickness];
breadboard = [ 46, 35+24+13, 49 ];
breadboard = [ bb_size[0], bb_size[1]+24+13, 49 ];
offset_breadboard = [70, 20, wall_thickness - 0.1];
bb_mount_height = 5;
@ -43,7 +45,7 @@ power_reg_underneath = 9; @@ -43,7 +45,7 @@ power_reg_underneath = 9;
offset_power_reg = [
offset_arduino[0] + 10,
85,
wall_thickness + power_reg_underneath
wall_thickness
];
// -------------------------------------------
@ -120,20 +122,20 @@ translate(offset_arduino) rotate([0, 0, 90]) { @@ -120,20 +122,20 @@ translate(offset_arduino) rotate([0, 0, 90]) {
translate(offset_breadboard) difference() {
union() {
translate([wall_thickness*2, 0, 0]) cube([
46 - (wall_thickness*2),
35 + wall_thickness*2,
bb_size[0] - (wall_thickness*2),
bb_size[1] + wall_thickness*2,
bb_mount_height
]);
translate([0, wall_thickness*2, 0]) cube([
46 + wall_thickness*2,
35 - (wall_thickness*2),
bb_size[0] + wall_thickness*2,
bb_size[1] - (wall_thickness*2),
bb_mount_height
]);
}
translate([wall_thickness, wall_thickness, -1]) cube([
46,
35,
bb_size[0],
bb_size[1],
bb_mount_height + 2
]);
}
@ -145,7 +147,36 @@ translate(offset_breadboard) difference() { @@ -145,7 +147,36 @@ translate(offset_breadboard) difference() {
// Power Regulator
// ----------------------
% translate(offset_power_reg) cube(power_reg);
% translate(offset_power_reg + [0, 0, power_reg_underneath]) cube(power_reg);
translate(offset_power_reg) {
% cube([ 46, 35, bb_mount_height ]);
translate([ 0, bb_size[1], 0 ]) cube([
46,
wall_thickness,
bb_mount_height
]);
translate([ 0, -wall_thickness, 0 ]) cube([
46,
wall_thickness,
bb_mount_height
]);
translate([-wall_thickness, -wall_thickness + 16, 0]) cube([
wall_thickness,
bb_size[1] + wall_thickness*2 - 16,
bb_mount_height
]);
translate([bb_size[0], -wall_thickness, 0]) cube([
wall_thickness,
bb_size[1] + wall_thickness*2,
bb_mount_height
]);
}
// Corners
// -------------------------------------------

Loading…
Cancel
Save