diff --git a/cad/housing b/cad/housing new file mode 100644 index 0000000..7856455 Binary files /dev/null and b/cad/housing differ diff --git a/cad/open_box.scad b/cad/open_box.scad new file mode 100644 index 0000000..32d3fe7 --- /dev/null +++ b/cad/open_box.scad @@ -0,0 +1,38 @@ +///////////////////////////////////////////////////////////////////////////////// +// Module for a open box with rounded edges. +// +// Author: Maximilian Stiefel +// Last modification: 26.04.3017 +///////////////////////////////////////////////////////////////////////////////// + +module open_box(width, length, height, thickness, allowance) +{ + + ///////////////////////////////////////////////////////////////////////// + // Vars + ///////////////////////////////////////////////////////////////////////// + edge_rounding = 8; + compensation = abs(thickness-edge_rounding); + + ///////////////////////////////////////////////////////////////////////// + // Action + ///////////////////////////////////////////////////////////////////////// + difference(){ + + // Hull 4 cylinders which are compensated against the thickness + // so the actual desired thickness and edge rounding is always achieved. + hull(){ + translate([+compensation, +compensation, 0]) + cylinder(r = edge_rounding, h = height + thickness); + translate([width + 2*allowance + 2*thickness - compensation, compensation, 0]) + cylinder(r = edge_rounding, h = height + thickness); + translate([compensation, length + 2*allowance + 2*thickness - compensation,0]) + cylinder(r = edge_rounding, h = height + thickness); + translate([width + 2*allowance + 2*thickness - compensation, length + 2*allowance + 2*thickness - compensation,0]) + cylinder(r = edge_rounding, h = height + thickness); + } + + translate([thickness, thickness, thickness]) + cube([width + 2*allowance, length + 2*allowance, height + 1]); + } +} diff --git a/cad/playing.scad b/cad/playing.scad index 67b865a..bfd9e15 100644 --- a/cad/playing.scad +++ b/cad/playing.scad @@ -1,6 +1,26 @@ -translate{[0,0,10]}{ +///////////////////////////////////////////////////////////////////////////////// +// Housing box for UppSense first tries. +// +// Author: Maximilian Stiefel +// Last modification: 26.04.3017 +///////////////////////////////////////////////////////////////////////////////// + +use + +///////////////////////////////////////////////////////////////////////////////// +// Vars +///////////////////////////////////////////////////////////////////////////////// +length = 50; +width = 80; +height = 45; +thickness = 5; +allowance = 1; +lid_depth = 5; + difference(){ - cube([20,20,20], center=true); - color([0.2,0.8,1]) sphere(13); -} + // Using my open box module for creating a simple box + open_box(length, width, height, thickness, allowance); + // Creating a depening for the lid + translate([0, 0, height]) + cube([length + 2*allowance + 2*thickness, width + 2*allowance + 2*thickness, lid_depth]); } diff --git a/pcb/transimpedance_amp/transimpedance_amp.kicad_pcb b/pcb/transimpedance_amp/transimpedance_amp.kicad_pcb index 960938a..06f9f0e 100644 --- a/pcb/transimpedance_amp/transimpedance_amp.kicad_pcb +++ b/pcb/transimpedance_amp/transimpedance_amp.kicad_pcb @@ -3,9 +3,9 @@ (general (links 87) (no_connects 0) - (area 106.899999 80.899999 187.100001 131.100001) + (area 100.657143 68.3 210.85 133.238333) (thickness 1.6) - (drawings 6) + (drawings 10) (tracks 144) (zones 0) (modules 48) @@ -21,7 +21,7 @@ (34 B.Paste user) (35 F.Paste user) (36 B.SilkS user) - (37 F.SilkS user) + (37 F.SilkS user hide) (38 B.Mask user) (39 F.Mask user) (40 Dwgs.User user) @@ -65,7 +65,7 @@ (pad_to_mask_clearance 0.2) (aux_axis_origin 0 0) (grid_origin 134.874 122.682) - (visible_elements FFFEFF7F) + (visible_elements FFFEFF5F) (pcbplotparams (layerselection 0x00030_80000001) (usegerberextensions false) @@ -1444,6 +1444,54 @@ (net 17 "Net-(P5-Pad1)")) ) + (dimension 50.038 (width 0.3) (layer Dwgs.User) + (gr_text "50,0 mm" (at 219.536 106.045 270) (layer Dwgs.User) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 186.944 131.064) (xy 220.886 131.064))) + (feature2 (pts (xy 186.944 81.026) (xy 220.886 81.026))) + (crossbar (pts (xy 218.186 81.026) (xy 218.186 131.064))) + (arrow1a (pts (xy 218.186 131.064) (xy 217.599579 129.937496))) + (arrow1b (pts (xy 218.186 131.064) (xy 218.772421 129.937496))) + (arrow2a (pts (xy 218.186 81.026) (xy 217.599579 82.152504))) + (arrow2b (pts (xy 218.186 81.026) (xy 218.772421 82.152504))) + ) + (dimension 80.01 (width 0.3) (layer Dwgs.User) + (gr_text "80,0 mm" (at 146.939 135.716) (layer Dwgs.User) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 186.944 131.064) (xy 186.944 137.066))) + (feature2 (pts (xy 106.934 131.064) (xy 106.934 137.066))) + (crossbar (pts (xy 106.934 134.366) (xy 186.944 134.366))) + (arrow1a (pts (xy 186.944 134.366) (xy 185.817496 134.952421))) + (arrow1b (pts (xy 186.944 134.366) (xy 185.817496 133.779579))) + (arrow2a (pts (xy 106.934 134.366) (xy 108.060504 134.952421))) + (arrow2b (pts (xy 106.934 134.366) (xy 108.060504 133.779579))) + ) + (dimension 5.08 (width 0.3) (layer Dwgs.User) + (gr_text "5,0 mm" (at 113.538 96.52) (layer Dwgs.User) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 106.934 86.106) (xy 106.934 94.14))) + (feature2 (pts (xy 112.014 86.106) (xy 112.014 94.14))) + (crossbar (pts (xy 112.014 91.44) (xy 106.934 91.44))) + (arrow1a (pts (xy 106.934 91.44) (xy 108.060504 90.853579))) + (arrow1b (pts (xy 106.934 91.44) (xy 108.060504 92.026421))) + (arrow2a (pts (xy 112.014 91.44) (xy 110.887496 90.853579))) + (arrow2b (pts (xy 112.014 91.44) (xy 110.887496 92.026421))) + ) + (dimension 5.08 (width 0.3) (layer Dwgs.User) + (gr_text "5,0 mm" (at 95.504 83.566 270) (layer Dwgs.User) + (effects (font (size 1.5 1.5) (thickness 0.3))) + ) + (feature1 (pts (xy 112.014 86.106) (xy 97.122 86.106))) + (feature2 (pts (xy 112.014 81.026) (xy 97.122 81.026))) + (crossbar (pts (xy 99.822 81.026) (xy 99.822 86.106))) + (arrow1a (pts (xy 99.822 86.106) (xy 99.235579 84.979496))) + (arrow1b (pts (xy 99.822 86.106) (xy 100.408421 84.979496))) + (arrow2a (pts (xy 99.822 81.026) (xy 99.235579 82.152504))) + (arrow2b (pts (xy 99.822 81.026) (xy 100.408421 82.152504))) + ) (dimension 20 (width 0.3) (layer Dwgs.User) (gr_text "20,000 mm" (at 117 69.65) (layer Dwgs.User) (effects (font (size 1.5 1.5) (thickness 0.3)))