Created
June 26, 2014 10:27
-
-
Save Morendil/407bc16ad64be71fddec to your computer and use it in GitHub Desktop.
Compact Hall Effect Probe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pcb dims | |
width = 18; | |
hwidth = 7.65; | |
swidth = 4; | |
module box() { | |
difference() { | |
boxshell(); | |
translate([(20-swidth*1.1)/2,3,1.5+1.6]) | |
scale([1.1,1,1.1]) | |
cube([4,15.3+3.3+1,1+6+1.5]); | |
translate([(20-hwidth*1.1)/2,-4,1.6]) | |
scale([1.1,1.1,1.1]) | |
cube([hwidth,5.5,5]); | |
translate([(20-width*1.1)/2,-5,1.5]) | |
scale([1.1,1.1,1.1]) | |
cube([width,18.3+5,2.6]); | |
translate([10,14.5,0]) | |
cylinder(r=1.5,h=2,$fn=20); | |
// slide space for holder | |
translate([(20-4*1.3)/2,18,0]) | |
scale([1.3,1.3,1.3]) | |
cube([4,14.5,2.7]); | |
// slide space for magnet | |
translate([(20-12)/2,18,1]) | |
cube([12,14.5,1.7]); | |
} | |
} | |
module boxshell() { | |
minkowski() | |
{ | |
cube([20,30,5]); | |
cylinder(r=2,h=1,$fn=15); | |
} | |
} | |
module pcb() { | |
cube([width,15.3,1.6]); | |
translate([(width-hwidth)/2,0,1.6]) | |
cube([hwidth,2.5,3]); | |
translate([(width-swidth)/2,15.3+3,1.6]) | |
cube([4,3.3,1.5]); | |
} | |
%box(); | |
translate([(20-width)/2,0,1.5]) | |
pcb(); | |
translate([(20-4)/2,18,0]) | |
cube([4,14.5,2.7]); | |
/* | |
rotate([90,0,0]) | |
box(); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment