Browse Source

Modified the mechanics a bit to be able to print everything once more.

master
Maximilian Stiefel 7 years ago
parent
commit
5f8a9f39e0
  1. 12
      cad/mechanics_rev5/housing/box_female.scad
  2. 29864
      cad/mechanics_rev5/housing/box_female.stl
  3. 10
      cad/mechanics_rev5/housing/box_male.scad
  4. 27968
      cad/mechanics_rev5/housing/box_male.stl
  5. 10
      cad/mechanics_rev5/housing/dimensions.scad
  6. 233802
      cad/mechanics_rev5/housing/hole_box_assembled.stl
  7. 90414
      cad/mechanics_rev5/housing/lid_back.stl
  8. 10
      cad/mechanics_rev5/housing/lid_f_b.scad
  9. 88542
      cad/mechanics_rev5/housing/lid_front.stl
  10. 15990
      cad/mechanics_rev5/housing/lid_l_r.stl
  11. 15682
      cad/mechanics_rev5/housing/lid_left.stl
  12. 89938
      cad/mechanics_rev5/housing/lid_rear.stl
  13. 15682
      cad/mechanics_rev5/housing/lid_right.stl
  14. 21
      cad/mechanics_rev5/housing/main.scad
  15. 77
      cad/mechanics_rev5/housing/main2.scad
  16. 8
      cad/mechanics_rev5/pcb/dimensions.scad
  17. 2698
      cad/mechanics_rev5/pcb/glass_holder.stl
  18. 3230
      cad/mechanics_rev5/pcb/illuminator.stl
  19. 626
      cad/mechanics_rev5/pcb/leg.stl
  20. 4
      cad/mechanics_rev5/pcb/main.scad

12
cad/mechanics_rev5/housing/box_female.scad

@ -26,17 +26,17 @@ use <screw_holes.scad>
/////////////////////////////////////////////////////////////////////////////////
// Set minimum angle of a fragment
$fa = 0.5;
//$fa = 0.5;
// Set minimum size of a fragment
$fs = 0.5;
//$fs = 0.5;
////////////////////////////////////////////////////////////////////////////////
// Action
/////////////////////////////////////////////////////////////////////////////////
color(myColor1)
module box_female()
{
translate([0, 0, housing_outside_height/2])
//translate([0, 0, housing_outside_height/2])
//rotate([180, 0, 0])
{
difference()
@ -50,8 +50,8 @@ difference()
cube([housing_outside_width + 1, housing_outside_depth + 1, housing_outside_height/2 + 0.01], center = true);
// Draw cylinders for mortise joint
translate([0, 0, -(mortise_joint_height + allowance2)/2])
screw_holes(housing_inside_width + housing_thickness/2, housing_inside_depth + housing_thickness/2, mortise_joint_dia + allowance1, mortise_joint_height + allowance2);
translate([0, 0, -(mortise_joint_height + allowance5)/2])
screw_holes(housing_inside_width + housing_thickness/2, housing_inside_depth + housing_thickness/2, mortise_joint_dia + allowance1, mortise_joint_height + allowance5);
}
}
}

29864
cad/mechanics_rev5/housing/box_female.stl

File diff suppressed because it is too large

10
cad/mechanics_rev5/housing/box_male.scad

@ -26,18 +26,18 @@ use <screw_holes.scad>
/////////////////////////////////////////////////////////////////////////////////
// Set minimum angle of a fragment
$fa = 0.5;
//$fa = 0.5;
// Set minimum size of a fragment
$fs = 0.5;
//$fs = 0.5;
////////////////////////////////////////////////////////////////////////////////
// Action
/////////////////////////////////////////////////////////////////////////////////
color(myColor1)
module box_male(myColor1)
{
translate([0, 0, housing_outside_height/2])
rotate([180, 0, 0])
//translate([0, 0, housing_outside_height/2])
//rotate([180, 0, 0])
union()
{
rotate([180, 0, 0])

27968
cad/mechanics_rev5/housing/box_male.stl

File diff suppressed because it is too large

10
cad/mechanics_rev5/housing/dimensions.scad

@ -55,7 +55,7 @@ myColor1 = "DodgerBlue";
myColor2 = "Maroon";
// Lids dimensions
lids_depth = housing_thickness/3;
lids_depth = housing_thickness/4;
echo(lids_depth=lids_depth);
@ -79,9 +79,9 @@ lid_t_b_y = lid_t_b_height + lid_t_b_overlap;
// Screw holes
drill_dia_m3 = 3.2;
drill_thread_dia_m3 = 2.5;
drill_depth_m3 = 7;
drill_sinking_dia1_m3 = 5.5;
drill_thread_dia_m3 = 4; // Diameter is adopted to metal thread which will be glued inside the hole
drill_depth_m3 = 5.5;
drill_sinking_dia1_m3 = 5.5 + allowance05;
drill_sinking_dia2_m3 = 3;
drill_sinking_height_m3 = 2;
@ -100,7 +100,7 @@ motherboard_mounting_x = motherboard_width - 2*5;
motherboard_mounting_y = motherboard_height - 2*5;
motherboard_mounting_d = 6;
motherboard_mounting_h = 6;
motherboard_mounting_drill_depth = 14;
motherboard_mounting_drill_depth = 5.5;
electronics_offset = 8;

233802
cad/mechanics_rev5/housing/hole_box_assembled.stl

File diff suppressed because it is too large

90414
cad/mechanics_rev5/housing/lid_back.stl

File diff suppressed because it is too large

10
cad/mechanics_rev5/housing/lid_f_b.scad

@ -60,19 +60,19 @@ difference()
translate([0, 0, -lids_depth/2 + drill_sinking_height_m3/2 + 0.5])
screw_sinkings(lid_f_b_holes_x, lid_f_b_holes_y, drill_sinking_dia1_m3, drill_sinking_dia2_m3, drill_sinking_height_m3);
// Cut out drill holes in mounting cylinders
translate([0, -electronics_offset, (housing_thickness - lids_depth/2 + motherboard_mounting_h/2 - 0.01)])
translate([0, -electronics_offset, housing_thickness + motherboard_mounting_h - motherboard_mounting_drill_depth/2 - lids_depth/2 + 0.01])
screw_holes(motherboard_mounting_x, motherboard_mounting_y, drill_thread_dia_m3, mounting*(motherboard_mounting_drill_depth) );
// Logo
// Can be turned off by setting logo to 0
translate([-30, 20, -lids_depth/2 - 0.01 + 3])
translate([-30, 20, -lids_depth/2 - 0.01 + 2])
rotate([180, 0, 0])
linear_extrude(height = logo*3)
linear_extrude(height = logo*2)
scale(1.5)
import("logo_taylored.dxf");
// Text
translate([-40, 35, -lids_depth/2 - 0.01 + 3])
translate([-40, 35, -lids_depth/2 - 0.01 + 2])
rotate([180, 0, 0])
linear_extrude(height = logo*3)
linear_extrude(height = logo*2)
text("UppSense", size = 12, font = "Liberation Sans:style=Bold");
}
}

88542
cad/mechanics_rev5/housing/lid_front.stl

File diff suppressed because it is too large

15990
cad/mechanics_rev5/housing/lid_l_r.stl

File diff suppressed because it is too large

15682
cad/mechanics_rev5/housing/lid_left.stl

File diff suppressed because it is too large

89938
cad/mechanics_rev5/housing/lid_rear.stl

File diff suppressed because it is too large

15682
cad/mechanics_rev5/housing/lid_right.stl

File diff suppressed because it is too large

21
cad/mechanics_rev5/housing/main.scad

@ -13,9 +13,13 @@
include <dimensions.scad>
use <dimensions.scad>
// Module for raw box without any lids
include <box.scad>
use <box.scad>
// Module for male part of raw box
include <box_male.scad>
use <box_male.scad>
// Module for female part of raw box
include <box_female.scad>
use <box_female.scad>
// Module for raw box without any lids
include <lid_l_r.scad>
@ -61,16 +65,23 @@ lid_l_r();
// Lid front
translate([0, -housing_outside_depth/2 - close*20, 0])
rotate([90, 0, 0])
//rotate([0, 180, 0])
lid_f_b(1,0);
// Lid back
translate([0, +housing_outside_depth/2 + close*20, 0])
rotate([-90, 180, 0])
!rotate([180, 0, 0])
rotate([0, 180, 0])
lid_f_b(1,1);
color(myColor1, 0.8)
box();
translate([0, 0, close*10 +0.0])
//translate([0, 0, housing_outside_height/2])
//rotate([0,180,0])
box_male();
translate([0, 0, -close*10 -0.0])
!translate([0, 0, housing_outside_height/2])
box_female();
}
}
//translate([-200, 0, 0])

77
cad/mechanics_rev5/housing/main2.scad

@ -0,0 +1,77 @@
/////////////////////////////////////////////////////////////////////////////////
// Main file to assemble everything.
//
// Author: Maximilian Stiefel
// Last modification: 20.07.2017
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Includes
/////////////////////////////////////////////////////////////////////////////////
// Dimesnions
include <dimensions.scad>
use <dimensions.scad>
// Module for raw box without any lids
include <box.scad>
use <box.scad>
// Module for raw box without any lids
include <lid_l_r.scad>
use <lid_l_r.scad>
// Module for raw box without any lids
include <lid_f_b.scad>
use <lid_f_b.scad>
// Module for raw box without any lids
include <lid_t_b.scad>
use <lid_t_b.scad>
////////////////////////////////////////////////////////////////////////////////
// Vars
/////////////////////////////////////////////////////////////////////////////////
// 0 = put lids, 1 = remove lids
close = 0;
// Set minimum angle of a fragment
$fa = 0.5;
// Set minimum size of a fragment
$fs = 0.5;
////////////////////////////////////////////////////////////////////////////////
// Action
/////////////////////////////////////////////////////////////////////////////////
//difference()
//{
union()
{
color(myColor1)
{
// Lid right
translate([housing_outside_width/2 + close*20, 0, 0])
rotate([0, 0, 0])
lid_l_r();
// Lid left
translate([-housing_outside_width/2 - close*20, 0, 0])
rotate([0, 180, 0])
lid_l_r();
// Lid front
translate([0, -housing_outside_depth/2 - close*20, 0])
rotate([90, 0, 0])
lid_f_b(1,0);
// Lid back
translate([0, +housing_outside_depth/2 + close*20, 0])
rotate([-90, 180, 0])
lid_f_b(1,1);
color(myColor1, 0.8)
box();
}
}
//translate([-200, 0, 0])
//cube([400,400,400], center=true);
//}

8
cad/mechanics_rev5/pcb/dimensions.scad

@ -25,12 +25,12 @@ holder_bottom_side_thickness = 2;
// LED illuminator dimensions
led_illuminator_thickness = 2;
led_illuminator_dia = 12.5 - led_illuminator_thickness;
led_illuminator_height = 15;
led_illuminator_height = 12;
led_illuminator_leg1_pos_y = -6.25;
led_illuminator_leg2_pos_y = 4;
led_illuminator_leg2_pos_x = -4.75;
led_illuminator_leg_dia = 2.2 - allowance05;
led_illuminator_leg_height = 4;
led_illuminator_leg_height = 2;
led_pos_x = 18;
led_pos_y = 13;
led_illuminator_slot = 4;
@ -44,8 +44,8 @@ drill_sinking_dia2_m3 = 3;
drill_sinking_height_m3 = 2;
// Leg dimensions
leg_width = 4;
leg_depth = 11;
leg_width = 7;
leg_depth = 13;
leg_height = led_illuminator_height;
leg_inner_dia = 2.5;
leg_pos_y = 13;

2698
cad/mechanics_rev5/pcb/glass_holder.stl

File diff suppressed because it is too large

3230
cad/mechanics_rev5/pcb/illuminator.stl

File diff suppressed because it is too large

626
cad/mechanics_rev5/pcb/leg.stl

File diff suppressed because it is too large

4
cad/mechanics_rev5/pcb/main.scad

@ -38,12 +38,12 @@ color(myColor1)
{
// Glass holder
translate([0, 0, holder_height/2 + leg_height -0.01])
!translate([0, 0, holder_height/2])
translate([0, 0, holder_height/2])
glass_holder();
// Legs
translate([glass_slide_width/2 - leg_pos_x, 0, 0])
legs();
!legs();
translate([-glass_slide_width/2 + leg_pos_x, 0, 0])
rotate([0, 0, 180])

Loading…
Cancel
Save