improve readme + update sma_rigid + add PDM hat for mchstreamer
This commit is contained in:
1 parent
04f51d2afb
commit
7f8b49fd21
14 files changed
+17918
-59
No files matched your search
+40
-22
@@ -31,24 +31,6 @@
|
||||
"screw_phi_offset": "0",
|
||||
"theta": "[0, 180, 63.4349, 116.565, 116.565, 63.4349, 116.565, 63.4349, 63.4349, 116.565]"
|
||||
},
|
||||
"lebedev14": {
|
||||
"angle_max": "82",
|
||||
"angle_min": "75",
|
||||
"d_hole": "10",
|
||||
"d_screw": "3",
|
||||
"dir_thread": "[13, 0]",
|
||||
"e": "6",
|
||||
"hole_phi_offset": "45",
|
||||
"mic_type": "1\/4",
|
||||
"mics_rotate": "[-90, 0, 0]",
|
||||
"n_screw": "4",
|
||||
"phi": "[0, 0, 90, 180, 270, 0, 45, 135, 225, 315, 45, 135, 225, 315]",
|
||||
"r": "60",
|
||||
"res": "32",
|
||||
"screw_phi_offset": "0",
|
||||
"theta": "[0, 90, 90, 90, 90, 180, 54.7356, 54.7356, 54.7356, 54.7356, 125.264, 125.264, 125.264, 125.264]",
|
||||
"usb_card": "false"
|
||||
},
|
||||
"mclaren30": {
|
||||
"angle_max": "72",
|
||||
"angle_min": "65",
|
||||
@@ -70,17 +52,53 @@
|
||||
"angle_min": "87",
|
||||
"d_hole": "10",
|
||||
"d_screw": "3",
|
||||
"dir_thread": "[15, 0]",
|
||||
"e": "5",
|
||||
"hole_phi_offset": "15",
|
||||
"mic_type": "TDM",
|
||||
"mics_rotate": "[0, 0, 0]",
|
||||
"n_screw": "4",
|
||||
"phi": "[0, 72, 108, 144, 180, 216, 252, 288, 324, 0, 36, 0, 252, 288, 324, 0, 36, 72, 108, 144, 180, 216]",
|
||||
"r": "60",
|
||||
"res": "32",
|
||||
"screw_phi_offset": "45",
|
||||
"theta": "[0, 46.7442, 79.9551, 46.7442, 79.9551, 46.7442, 79.9551, 46.7442, 79.9551, 46.7442, 79.9551, 180, 133.256, 100.045, 133.256, 100.045, 133.256, 100.045, 133.256, 100.045, 133.256, 100.045]",
|
||||
"usb_card": "true"
|
||||
},
|
||||
"lebedev14_2": {
|
||||
"angle_max": "82",
|
||||
"angle_min": "75",
|
||||
"d_hole": "10",
|
||||
"d_screw": "3",
|
||||
"dir_thread": "[13, 0]",
|
||||
"e": "6",
|
||||
"hole_phi_offset": "45",
|
||||
"mic_type": "1\/4",
|
||||
"mics_rotate": "[0, 0, 0]",
|
||||
"mics_rotate": "[-90, 0, 0]",
|
||||
"n_screw": "4",
|
||||
"phi": "[0, 72, 108, 144, 180, 216, 252, 288, 324, 0, 36, 0, 252, 288, 324, 0, 36, 72, 108, 144, 180, 216]",
|
||||
"r": "55",
|
||||
"phi": "[0, 0, 90, 180, 270, 0, 45, 135, 225, 315, 45, 135, 225, 315]",
|
||||
"r": "60",
|
||||
"res": "32",
|
||||
"screw_phi_offset": "0",
|
||||
"theta": "[0, 46.7442, 79.9551, 46.7442, 79.9551, 46.7442, 79.9551, 46.7442, 79.9551, 46.7442, 79.9551, 180, 133.256, 100.045, 133.256, 100.045, 133.256, 100.045, 133.256, 100.045, 133.256, 100.045]",
|
||||
"theta": "[0, 90, 90, 90, 90, 180, 54.7356, 54.7356, 54.7356, 54.7356, 125.264, 125.264, 125.264, 125.264]",
|
||||
"usb_card": "false"
|
||||
},
|
||||
"lebedev14": {
|
||||
"angle_max": "80",
|
||||
"angle_min": "70",
|
||||
"d_hole": "10",
|
||||
"d_screw": "3",
|
||||
"dir_thread": "[20, 0]",
|
||||
"e": "5",
|
||||
"hole_phi_offset": "135",
|
||||
"mic_type": "PDM",
|
||||
"mics_rotate": "[0, 0, 0]",
|
||||
"n_screw": "4",
|
||||
"phi": "[0, 0, 90, 180, 270, 0, 45, 135, 225, 315, 45, 135, 225, 315]",
|
||||
"r": "45",
|
||||
"res": "32",
|
||||
"screw_phi_offset": "45",
|
||||
"theta": "[0, 90, 90, 90, 90, 180, 54.7356, 54.7356, 54.7356, 54.7356, 125.264, 125.264, 125.264, 125.264]",
|
||||
"usb_card": "true"
|
||||
}
|
||||
},
|
||||
|
||||
+60
-36
@@ -1,14 +1,15 @@
|
||||
/*
|
||||
* Rigid SMA design
|
||||
* Copyright 2023 Pierre Lecomte - sekisushai@gmail.com
|
||||
* Copyright 2023-2024 Pierre Lecomte - sekisushai@gmail.com
|
||||
*/
|
||||
|
||||
/*
|
||||
The rigid SMA is composed of two hemispherical shells to render separately for 3D printing.
|
||||
*/
|
||||
//top_shell_all();
|
||||
bottom_shell_all();
|
||||
|
||||
|
||||
//bottom_shell_all();
|
||||
top_shell_all();
|
||||
// EDIT BELOW
|
||||
|
||||
/*[ Global parameters ]*/
|
||||
@@ -17,10 +18,10 @@ res = 32;
|
||||
|
||||
/*[ Array parameters ]*/
|
||||
// sphere radius (mm):
|
||||
r = 80;
|
||||
r = 90.0;
|
||||
|
||||
// shell thickness (mm):
|
||||
e = 6;
|
||||
e = 5;
|
||||
|
||||
// microphones zenith coordinates (°):
|
||||
theta = [0, 90, 90, 90, 90, 180, 54.7356, 54.7356, 54.7356, 54.7356, 125.264, 125.264, 125.264, 125.264];
|
||||
@@ -29,7 +30,7 @@ theta = [0, 90, 90, 90, 90, 180, 54.7356, 54.7356, 54.7356, 54.7356, 125.264, 12
|
||||
phi = [0, 0, 90, 180, 270, 0, 45, 135, 225, 315, 45, 135, 225, 315];
|
||||
|
||||
// microphone type
|
||||
mic_type = "1/4"; // [1/4:Quarter_Inch, PDM:PDM MEMS]
|
||||
mic_type = "1/4"; // [1/4:Quarter_Inch, PDM:PDM MEMS, TDM:TDM MEMS]
|
||||
|
||||
// include USB sound card (only for digital MEMS mics)
|
||||
usb_card = true;
|
||||
@@ -41,13 +42,13 @@ mics_rotate = [-90, 0, 0];
|
||||
|
||||
/*[ Cut parameters ]*/
|
||||
// minimal zenith angle for the cut (°):
|
||||
angle_min = 75;
|
||||
angle_min = 74.5;
|
||||
|
||||
// maximal zenith angle for the cut (°):
|
||||
angle_max = 82;
|
||||
angle_max = 82.5;
|
||||
|
||||
// screws diameter, metric (mm):
|
||||
d_screw = 3;
|
||||
d_screw = 3.38;
|
||||
|
||||
// screws number
|
||||
n_screw = 4;
|
||||
@@ -95,6 +96,7 @@ square([3.55, 1.1*e]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Adafruit PDM MEMS breakout.
|
||||
// https://www.adafruit.com/product/3492
|
||||
module pdm_breakout(l=14-5, w=13-5){
|
||||
@@ -129,28 +131,39 @@ linear_extrude(50){
|
||||
translate([l/2,w/2,0])
|
||||
circle(d=2);
|
||||
}
|
||||
translate([l/2,w/2,6+e/2+0.2])
|
||||
sphere(r=e/2);
|
||||
|
||||
|
||||
// wires
|
||||
translate([0,0,5])
|
||||
linear_extrude(2){
|
||||
translate([l/2,w,0])
|
||||
square([l+4,2.5],center=true);
|
||||
}
|
||||
|
||||
linear_extrude(5){
|
||||
difference(){
|
||||
linear_extrude(7){
|
||||
minkowski(){
|
||||
square([l,w]);
|
||||
circle(2.6);
|
||||
}
|
||||
}
|
||||
translate([0,0,5])
|
||||
linear_extrude(3){
|
||||
translate([l/2,-w/2+2.5])
|
||||
square([2*l,2*w],center=true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module tdm(){
|
||||
// custom breakout made by Emmanuel Flety
|
||||
module tdm_breakout(){
|
||||
mirror([0,0,-1])
|
||||
translate([-9,-8,-0.9])
|
||||
import("ICS-52000 v10.stl");
|
||||
translate([0,0,2]){
|
||||
cylinder(d=18,h=20);
|
||||
translate([0,-0.4,0])
|
||||
cube([7.5,12,20],center=true);
|
||||
cube([10,13,1.5],center=true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
module mics(type){
|
||||
rotate(mics_rotate)
|
||||
@@ -158,12 +171,14 @@ for (i = [0 : len(theta)-1]){
|
||||
rotate([theta[i], 0, phi[i]])
|
||||
translate([0, 0, r-e+1]){
|
||||
if (type=="1/4")
|
||||
b_k();
|
||||
else
|
||||
pdm_breakout();
|
||||
translate([3,3,e-1.8])
|
||||
{b_k();}
|
||||
else if (type=="PDM")
|
||||
{pdm_breakout();}
|
||||
else
|
||||
{tdm_breakout();}
|
||||
translate([3,3,e-2])
|
||||
linear_extrude(3)
|
||||
text(str(i+1), size=3);
|
||||
text(str(i+1), size=3, font = "Liberation Sans:style=Bold");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -182,7 +197,7 @@ module mchstreamer(){
|
||||
translate([r-l_usb-attach_l/2,-w_usb/2,-h_usb/2])
|
||||
union(){
|
||||
cube(size = [l_usb, w_usb, h_usb], center = false);
|
||||
plug_l = 20;
|
||||
plug_l = 40;
|
||||
plug_w = 12+adj;
|
||||
plug_h = 10.7+adj;
|
||||
translate([l_usb - plug_l/2, w_usb/2 - plug_w/2, 1.8+adj])
|
||||
@@ -195,16 +210,21 @@ module mchstreamer(){
|
||||
cube(size=[attach_l, w_usb, 2.7]);
|
||||
|
||||
}
|
||||
module attach(){
|
||||
|
||||
module attach(){
|
||||
|
||||
rotate([0, 90, 0]){
|
||||
translate([-attach_w/2, attach_h/2, attach_l/2]){
|
||||
union(){
|
||||
cube(size=[attach_w, attach_h, attach_l], center = true);
|
||||
cylinder(r=1.5, h=2*attach_l );
|
||||
translate([0,0,attach_l/2+e])
|
||||
cylinder(r=3,h=attach_l);
|
||||
}
|
||||
}}
|
||||
}
|
||||
rotate([20, -20, 0])
|
||||
cylinder(d=3, h=r-1, $fn=64);
|
||||
}
|
||||
|
||||
module bottom_shell(r1= r-e, r2=r-e/2, r3=r, delta=0.2) {
|
||||
@@ -244,6 +264,7 @@ cylinder(d=d+0.2,h=e);
|
||||
param = d == 2 ? [1.6, 4.6, 1.2] : // M2
|
||||
d == 2.5 ? [2, 5.8, 1.5] : // M2.5
|
||||
d == 3 ? [2.4, 6.4, 1.7] : // M3
|
||||
d == 3.38 ? [2.7, 8.8, 2.5] :// 6-32
|
||||
d == 4 ? [3.2, 8.1, 2.3] : // M4
|
||||
d == 5 ? [4, 9.2, 2.8] : // M5
|
||||
d == 6 ? [5, 11.5, 3.3] : false; // M6
|
||||
@@ -260,24 +281,25 @@ cylinder(d=param[1]+0.2, h=param[0]+1, $fn=6);
|
||||
module attach() {
|
||||
rotate([(angle_min+angle_max)/2,0,hole_phi_offset]){
|
||||
if (usb_card==false)
|
||||
cylinder(d=d_hole, h=100);
|
||||
else
|
||||
cylinder(d=d_hole, h=r+2*e);
|
||||
else{
|
||||
mchstreamer();
|
||||
}
|
||||
}
|
||||
rotate([(angle_min+angle_max)/2 + dir_thread[0],0, hole_phi_offset + dir_thread[1]])
|
||||
translate([0,0,(r-3*e)])
|
||||
render()
|
||||
//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);
|
||||
//english_thread(1/4,20,3.5*e/25.4,internal=true);
|
||||
//metric_thread (diameter=5, pitch=0.8, length=40);
|
||||
}
|
||||
|
||||
|
||||
module vis_all(){
|
||||
for (i = [0 : n_screw-1]){
|
||||
rotate([(angle_min+angle_max)/2, 0, i*90+screw_phi_offset])
|
||||
rotate([(angle_min+angle_max)/2, 0, i*360/n_screw+screw_phi_offset])
|
||||
translate([0,0,r-e])
|
||||
vis();
|
||||
}
|
||||
@@ -290,14 +312,15 @@ attach();
|
||||
vis_all();
|
||||
mics(mic_type);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module top_shell_all(){
|
||||
difference(){
|
||||
top_shell();
|
||||
attach();
|
||||
mics(mic_type);
|
||||
vis_all();
|
||||
attach();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,4 +342,5 @@ module test_mic(){
|
||||
torus();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user