documentation continued
This commit is contained in:
1 parent
7600c13ae0
commit
2f66ac2eff
3 files changed
+42
-19
No files matched your search
+19
-8
@@ -1,6 +1,15 @@
|
||||
/*
|
||||
* Open SMA design for cylindrical microphone capsules
|
||||
* Copyright 2023 Pierre Lecomte - sekisushai@gmail.com
|
||||
*/
|
||||
|
||||
include <threads.scad>;
|
||||
//$fn=128;
|
||||
|
||||
open_sma();
|
||||
|
||||
// EDIT BELOW
|
||||
|
||||
/*[ Array parameters ]*/
|
||||
// Last parameter is for support attach.
|
||||
|
||||
@@ -24,6 +33,8 @@ neighbors =
|
||||
[1, 2, 3], // support
|
||||
];
|
||||
|
||||
// DO NOT EDIT BELOW HERE
|
||||
|
||||
module attach(id_mic, rmic=3.82, rstud=1.75, color="yellow"){
|
||||
rtp = [r[id_mic], theta[id_mic], phi[id_mic]];
|
||||
center = sph2cart(rtp);
|
||||
@@ -119,13 +130,6 @@ module support(stud=1.75){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
for (i = [0:len(theta)-2]){
|
||||
attach(i);
|
||||
studs(i);
|
||||
};
|
||||
|
||||
module studs(id_mic, rstud=1.75){
|
||||
rtp = [r[id_mic], theta[id_mic], phi[id_mic]];
|
||||
center = sph2cart(rtp);
|
||||
@@ -144,4 +148,11 @@ function cart2sph(vec)
|
||||
= [norm(vec), acos(vec[2]/norm(vec)), atan2(vec[1],vec[0])];
|
||||
|
||||
function sph2cart(vec)
|
||||
= [vec[0]*sin(vec[1])*cos(vec[2]), vec[0]*sin(vec[1])*sin(vec[2]), vec[0]*cos(vec[1])];
|
||||
= [vec[0]*sin(vec[1])*cos(vec[2]), vec[0]*sin(vec[1])*sin(vec[2]), vec[0]*cos(vec[1])];
|
||||
|
||||
module open_sma(){
|
||||
for (i = [0:len(theta)-2]){
|
||||
attach(i);
|
||||
studs(i);
|
||||
};
|
||||
};
|
||||
+21
-9
@@ -1,5 +1,19 @@
|
||||
include <threads.scad>;
|
||||
/*
|
||||
* Rigid SMA design for cylindrical microphone capsules
|
||||
* Copyright 2023 Pierre Lecomte - sekisushai@gmail.com
|
||||
*/
|
||||
|
||||
include <threads.scad>
|
||||
|
||||
/*
|
||||
The rigid SMA is composed of two hemispherical shells to render separately for 3D printing.
|
||||
*/
|
||||
//top_shell_all();
|
||||
bottom_shell_all();
|
||||
|
||||
// EDIT BELOW
|
||||
|
||||
/*[ Global parameters ]*/
|
||||
// Resolution of outter surface (360 for 3D printing)
|
||||
res = 32;
|
||||
|
||||
@@ -49,12 +63,12 @@ hole_phi_offset = 45;
|
||||
d_hole = 10;
|
||||
|
||||
/*
|
||||
The mic stand threaded hole should be close to the passing cable hole. It's direction is set as an offset from the cable hole direction.abs
|
||||
The mic stand threaded hole should be close to the passing cable hole. It's direction is set as an offset from the cable hole direction.
|
||||
*/
|
||||
|
||||
// threaded hole offset from cable hole [theta(°), phi(°)]:
|
||||
dir_thread = [13, 0];
|
||||
|
||||
// DO NOT EDIT BELOW HERE
|
||||
|
||||
// Hollow sphere
|
||||
module hollow(r1=r-e, r2=r, fn1=$fn, fn2=$fn){
|
||||
@@ -77,8 +91,6 @@ square([3.55, 1.1*e]);
|
||||
}
|
||||
}
|
||||
|
||||
echo(len(theta));
|
||||
|
||||
module mics(){
|
||||
rotate(mics_rotate)
|
||||
for (i = [0 : len(theta)-1]){
|
||||
@@ -148,6 +160,9 @@ cylinder(d=d_hole, h=100);
|
||||
rotate([(angle_min+angle_max)/2 + dir_thread[0],0, hole_phi_offset + dir_thread[1]])
|
||||
translate([0,0,(r-3*e)])
|
||||
render()
|
||||
/*
|
||||
Change here the type of threaded hole for mounting on a mic stand. See threads.scad file for help
|
||||
*/
|
||||
//english_thread(3/8,16,3.5*e/25.4,internal=true);
|
||||
metric_thread (diameter=6, pitch=1, length=20);
|
||||
}
|
||||
@@ -197,7 +212,4 @@ module test_mic(){
|
||||
torus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//top_shell_all();
|
||||
bottom_shell_all();
|
||||
}
|
||||
Reference in new issue
Block a user