Octathingy_mount_pcb.scad 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582
  1. ////
  2. // Spherical Harmonics Ear Project (*SpHEAR)
  3. //
  4. // OctaSpHEAR or Octathingy, Second Order Ambisonics Microphone
  5. //
  6. // based on:
  7. // "A second-order soundfield microphone with improved polar pattern shape"
  8. // by Eric Benjamin, Audio Engineering Society Convention Paper 8728,
  9. // October 2012, San Francisco
  10. //
  11. // Copyright 2015-2019, Fernando Lopez-Lezcano, All Rights Reserved
  12. // nando@ccrma.stanford.edu
  13. //
  14. // This program is free software: you can redistribute it and/or modify
  15. // it under the terms of the GNU General Public License as published by
  16. // the Free Software Foundation, either version 3 of the License, or
  17. // (at your option) any later version.
  18. //
  19. // This program is distributed in the hope that it will be useful,
  20. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. // GNU General Public License for more details.
  23. //
  24. // You should have received a copy of the GNU General Public License
  25. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  26. //
  27. // 3d Models released under the Creative Commons license as follows:
  28. // Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
  29. // http://creativecommons.org/licenses/by-nc-sa/4.0/
  30. // d-sub connector
  31. include <db25.scad>;
  32. ////
  33. //// default model parameters
  34. ////
  35. // capsule array mount, height of flare and stalk
  36. flare_height = 50;
  37. stalk_height = 60;
  38. // calculated minimum "radius" of microphone box
  39. box_radius = pcb_front + (pcb_thickness + pcb_tfit) + pcb_back + 2 * wall;
  40. // calculated main body corner radius
  41. mount_corner = box_radius - pcb_width / 2 + pcb_slot_depth + 4.0;
  42. // body parameters
  43. radial_pcb_offset = pcb_version == 2 ? 15.0 : 17.0;
  44. octa_pcb_mount_height = pcb_length - pcb_low_exp - pcb_hi_exp;
  45. octa_pcb_wall = (pcb_version == 2 ? 4.75 : 5) * wall;
  46. // windscreen thread offset
  47. octa_pcb_thread_offset = (pcb_version == 2 ? -1.82 : 0.0);
  48. octa_pcb_radius = radial_pcb_offset + pcb_width/2 + octa_pcb_wall;
  49. // shock mount parameters
  50. //
  51. internal_ring_height = 55.0;
  52. external_ring_height = 10.0;
  53. rubber_band_angle = 45;
  54. main_radius_inc = (internal_ring_height / 2) / tan(rubber_band_angle);
  55. // gap between internal ring and microphone body
  56. internal_ring_gap = 1.0;
  57. // connector that joins the two internal rings
  58. connector_w = 10.0;
  59. connector_d = 2.0;
  60. // wall thickness and height of shock mount rings
  61. ring_wall = 4 * wall;
  62. ring_ext_height = 6;
  63. // gap between external ring and support arm
  64. ring_arm_gap = 16;
  65. // the main body that holds the phantom power interfaces
  66. module one_pcb_slot_old (height, pcb_w, pcb_l, pcb_t, pcb_offset, slot_d, front, back, test = false) {
  67. d = pcb_t + front + back;
  68. render() translate([-(pcb_w/2 + wall/2), -back, 0]) {
  69. // make cage with slots for pcb
  70. difference() {
  71. translate([-2 * wall, 0, 0]) {
  72. cube([pcb_w + 4 * wall, d, height]);
  73. }
  74. translate([slot_d, 0, 0]) {
  75. cube([pcb_w - 2 * slot_d, pcb_t + front + back, height]);
  76. }
  77. translate([0, back, 0]) {
  78. cube([pcb_w, pcb_t, height]);
  79. }
  80. // make top and bottom entry channels
  81. translate([slot_d, back + pcb_t/2, 0]) {
  82. rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
  83. }
  84. translate([pcb_w - slot_d, back + pcb_t/2, 0]) {
  85. rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
  86. }
  87. translate([slot_d, back + pcb_t/2, height - 8.0]) {
  88. rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
  89. }
  90. translate([pcb_w - slot_d, back + pcb_t/2, height - 8.0]) {
  91. rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
  92. }
  93. }
  94. // add spar in the back
  95. translate([-2 * wall, -back + wall, 0]) {
  96. cube([pcb_w + 4 * wall, wall, height]);
  97. }
  98. // pcb for testing fit
  99. if (test) {
  100. translate([0, back, pcb_offset]) {
  101. cube([pcb_w, pcb_t, pcb_l]);
  102. }
  103. // small electrolytic capacitors (pcb_version == 2)
  104. // https://www.mouser.com/datasheet/2/293/e-umw-1219455.pdf
  105. cap_diam = 8.0;
  106. // should be 5, but transistors are a bit taller;
  107. cap_len = 6.0;
  108. translate([pcb_w/2, pcb_t + cap_diam + 0.15, 6]) {
  109. rotate([90, 0, 0]) cylinder(r = (cap_diam/2), h = cap_len, $fn = facets);
  110. }
  111. // film capacitors
  112. cap_h = 12;
  113. cap_w = 9;
  114. cap_t = 5.5;
  115. translate([pcb_w/2 - cap_w/2, pcb_t + 0.15, 10]) {
  116. cube([cap_w, cap_t, cap_h]);
  117. }
  118. }
  119. }
  120. // add capacitor if in test mode
  121. *if (test) {
  122. cap_diam = 10.2;
  123. translate([0, cap_diam/2 + pcb_t, 0]) {
  124. cylinder(r = cap_diam/2, h = 20, $fn = facets);
  125. }
  126. }
  127. }
  128. // one printed circuit board with space in the back and front
  129. module one_pcb_slot (height, pcb_w, pcb_l, pcb_t, pcb_offset, slot_d, front, back, test = false) {
  130. render() translate([-(pcb_w/2 + 0.5), 0, 0]) {
  131. // printed circuit board with space for solder and components
  132. cube([pcb_w, pcb_t, pcb_l]);
  133. // open space in back and front
  134. // tune front and back by hand
  135. translate([slot_d, -2.0, 0]) cube([pcb_w - (2.0 * slot_d), 15, pcb_l]);
  136. // make top and bottom entry channels
  137. translate([slot_d, pcb_t/2, 0]) {
  138. rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
  139. }
  140. translate([pcb_w - slot_d, pcb_t/2, 0]) {
  141. rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
  142. }
  143. translate([slot_d, pcb_t/2, height - 8.0]) {
  144. rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
  145. }
  146. translate([pcb_w - slot_d, pcb_t/2, height - 8.0]) {
  147. rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
  148. }
  149. }
  150. }
  151. // the partition that connects inner and outer sections of body
  152. module one_pcb_parts (height, pcb_w, pcb_l, pcb_t, pcb_offset, slot_d, front, back) {
  153. //render() translate([-(pcb_w/2 + wall), -(back + wall), 0]) {
  154. render() translate([-(pcb_w/2 + 0.5), 0, 0]) {
  155. // printed circuit board
  156. translate([0, 0, pcb_offset]) cube([pcb_w, pcb_t, pcb_l]);
  157. // small electrolytic capacitors (pcb_version == 2)
  158. // https://www.mouser.com/datasheet/2/293/e-umw-1219455.pdf
  159. cap_diam = 8.0;
  160. // should be 5, but transistors are a bit taller;
  161. cap_len = 6.0;
  162. translate([pcb_w/2, cap_len + pcb_t, 6]) {
  163. rotate([90, 0, 0]) cylinder(r = (cap_diam/2), h = cap_len, $fn = facets);
  164. }
  165. // film capacitors
  166. cap_h = 12;
  167. cap_w = 9;
  168. cap_t = 5.5;
  169. translate([pcb_w/2 - cap_w/2, pcb_t, 10]) {
  170. cube([cap_w, cap_t, cap_h]);
  171. }
  172. }
  173. }
  174. module rounded_octagon(height, radius) {
  175. intersection() {
  176. cylinder(r = radius, h = height, $fn = 8);
  177. cylinder(r = radius - wall, h = height + thin_mint, $fn = facets);
  178. }
  179. }
  180. module rounded_octagon_wall(height, radius, wall) {
  181. difference() {
  182. rounded_octagon(height, radius);
  183. rounded_octagon(height + thin_mint, radius - wall);
  184. }
  185. }
  186. // twist angle to optimize space usage inside body
  187. //octa_pcb_twist = pcb_version == 2 ? 12 : 16;
  188. octa_pcb_twist = pcb_version == 2 ? 13.5 : 16;
  189. // tilt angle to clear upper flare thread
  190. octa_pcb_tilt = pcb_version == 2 ? -0.7 : 0.0;
  191. module octa_mount_body_old(height, radius, lower_lip, upper_lip, clear) {
  192. // rotate pcb assembly so it does not interfere with the screws
  193. offset_angle = -octa_pcb_twist;
  194. // rotate individual pcb's to better use the internal space of the body
  195. twist_angle = octa_pcb_twist;
  196. difference() {
  197. union() {
  198. difference() {
  199. union() {
  200. // main body
  201. rounded_octagon_wall(height, radius, 2 * wall);
  202. // slots for printed circuit boards
  203. intersection() {
  204. for (r = [0:360/8:360]) rotate([0, octa_pcb_tilt, r + offset_angle]) {
  205. translate([radial_pcb_offset, 0, 0]) {
  206. rotate([0, 0, 180 + twist_angle]) {
  207. one_pcb_slot(height * 2/3, pcb_width + pcb_fit, pcb_length, pcb_thickness + pcb_tfit, -10,
  208. pcb_slot_depth, pcb_front, pcb_back, false);
  209. }
  210. }
  211. }
  212. // clip outside
  213. rounded_octagon(height, radius);
  214. }
  215. }
  216. // upper lip for flare to microphone
  217. translate([0, 0, height - upper_lip]) {
  218. rounded_octagon_wall(upper_lip, radius, wall + lip_fit);
  219. }
  220. // lower lip for flare to cable or connector
  221. translate([0, 0, 0]) {
  222. rounded_octagon_wall(upper_lip, radius, wall + lip_fit);
  223. }
  224. }
  225. // add backplates for upper lip screws
  226. for (r = [45, 135, 225, 315]) {
  227. rotate([0, 0, r]) translate([-(radius - 3 * wall), -2.5, 0]) {
  228. cube([2, 5, height]);
  229. }
  230. }
  231. }
  232. // make eight holes in the the body for screws that hold both flares
  233. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  234. difference() {
  235. for (z = [lower_lip/2, height - upper_lip/2]) {
  236. for (r = [45, 135, 225, 315]) {
  237. rotate([0, 0, r]) translate([-(radius + 2 * wall), 0, z]) {
  238. rotate([0, 90, 0]) {
  239. cylinder(r = 0.7, h = radius + wall, $fn = facets);
  240. }
  241. }
  242. }
  243. }
  244. cylinder(r = radius/2, h = height);
  245. }
  246. }
  247. }
  248. module octa_mount_body(height, radius, lower_lip, upper_lip, clear) {
  249. // rotate pcb assembly so it does not interfere with the screws
  250. offset_angle = -octa_pcb_twist;
  251. // rotate individual pcb's to better use the internal space of the body
  252. twist_angle = octa_pcb_twist;
  253. difference() {
  254. union() {
  255. difference() {
  256. union() {
  257. // main body
  258. rounded_octagon_wall(height, radius, 2 * wall);
  259. difference() {
  260. // fill the inside of the body
  261. translate([0, 0, -1]) rounded_octagon(height * 2/3, radius);
  262. // remove everything else
  263. union() {
  264. translate([0, 0, -1]) for (r = [0:360/8:360]) rotate([0, octa_pcb_tilt, r + offset_angle]) {
  265. translate([radial_pcb_offset, 0, 0]) {
  266. rotate([0, 0, 180 + twist_angle]) {
  267. one_pcb_slot(height * 2/3, pcb_width + pcb_fit, pcb_length, pcb_thickness + pcb_tfit, -10,
  268. pcb_slot_depth, pcb_front, pcb_back);
  269. }
  270. }
  271. }
  272. // make center hole
  273. cylinder(r = 6.0, h = height, $fn = facets);
  274. }
  275. }
  276. translate([0, 0, -1]) for (r = [0:360/8:360]) rotate([0, octa_pcb_tilt, r + offset_angle]) {
  277. translate([radial_pcb_offset, 0, 0]) {
  278. rotate([0, 0, 180 + twist_angle]) {
  279. // add wall that connects core with outer shell
  280. translate([-(pcb_width/2 + 2 * wall), -(wall + pcb_back), 0]) {
  281. cube([pcb_width + 2 * wall, wall, height * 2/3]);
  282. }
  283. // add components if we are testing for fit
  284. *one_pcb_parts(height * 2/3, pcb_width + pcb_fit, pcb_length, pcb_thickness + pcb_tfit, -10,
  285. pcb_slot_depth, pcb_front, pcb_back);
  286. }
  287. }
  288. }
  289. }
  290. // clip inside of body below body (we need this because of pcb tilt)
  291. translate([0, 0, -2.0]) rounded_octagon(2.0, radius);
  292. // upper lip for flare to microphone
  293. translate([0, 0, height - upper_lip]) {
  294. rounded_octagon_wall(upper_lip, radius, wall + lip_fit);
  295. }
  296. // lower lip for flare to cable or connector
  297. translate([0, 0, 0]) {
  298. rounded_octagon_wall(upper_lip, radius, wall + lip_fit);
  299. }
  300. }
  301. // add backplates for upper lip screws
  302. for (r = [45, 135, 225, 315]) {
  303. rotate([0, 0, r]) translate([-(radius - 3 * wall), -2.5, 0]) {
  304. cube([2, 5, height]);
  305. }
  306. }
  307. }
  308. // make eight holes in the the body for screws that hold both flares
  309. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  310. difference() {
  311. for (z = [lower_lip/2, height - upper_lip/2]) {
  312. for (r = [45, 135, 225, 315]) {
  313. rotate([0, 0, r]) translate([-(radius + 2 * wall), 0, z]) {
  314. rotate([0, 90, 0]) {
  315. cylinder(r = 0.7, h = radius + wall, $fn = facets);
  316. }
  317. }
  318. }
  319. }
  320. cylinder(r = radius/2, h = height);
  321. }
  322. }
  323. }
  324. // flare from the body to the microphone stalk
  325. module octa_mount_flare_no_ws(height, lip, transition, radius, top_radius, stalk_height, dot) {
  326. // bottom box
  327. difference() {
  328. union() {
  329. rounded_octagon_wall(height, radius, 2 * wall);
  330. // small pedestals for the screws that attach the flare to the body
  331. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  332. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  333. translate([radius - wall - 1.75, 0, lip/2]) {
  334. rotate([0, 90, 0]) {
  335. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  336. }
  337. }
  338. }
  339. }
  340. // flange to mount on body
  341. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  342. // and make a smooth transition to avoid overhangs
  343. translate([0, 0, lip + 1.00]) {
  344. hull() {
  345. rounded_octagon_wall(thin_mint, radius - wall, wall);
  346. translate([0, 0, 1.0]) {
  347. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  348. }
  349. }
  350. }
  351. // holes for screws that attach the flare to the body
  352. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  353. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  354. translate([radius/2, 0, lip/2]) {
  355. rotate([0, 90, 0]) {
  356. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  357. }
  358. }
  359. }
  360. }
  361. // flare to round section
  362. translate([0, 0, height]) {
  363. difference() {
  364. hull() {
  365. rounded_octagon(thin_mint, radius);
  366. translate([0, 0, transition]) {
  367. cylinder(r = top_radius, h = thin_mint, $fn = facets);
  368. }
  369. }
  370. hull() {
  371. rounded_octagon(thin_mint, radius - wall);
  372. translate([0, 0, transition]) {
  373. cylinder(r = top_radius - wall, h = thin_mint, $fn = facets);
  374. }
  375. }
  376. }
  377. }
  378. // cylindrical stalk
  379. translate([0, 0, height + transition]) {
  380. difference() {
  381. cylinder(r = top_radius, h = stalk_height, $fn = facets);
  382. cylinder(r = top_radius - wall, h = stalk_height, $fn = facets);
  383. }
  384. // add marker for "back of microphone" orientation
  385. if (dot == 1) {
  386. rotate([0, 0, 90]) {
  387. translate([0, top_radius - wall * 2 / 3, stalk_height - top_radius]) {
  388. difference() {
  389. sphere(r = top_radius / 3, $fn = 32);
  390. translate([0, -top_radius + top_radius / 2, 0]) {
  391. cube([top_radius, top_radius, top_radius], center = true);
  392. }
  393. }
  394. }
  395. }
  396. }
  397. // close stalk and add holes for cables
  398. translate([0, 0, stalk_height - top_radius - wall]) {
  399. difference() {
  400. cylinder(r = top_radius - wall, h = top_radius + wall, $fn = facets);
  401. translate([0, 0, 0]) {
  402. sphere(r = top_radius - wall, $fn = facets);
  403. }
  404. wire_diam = mic_wire_diam + mic_wire_fit;
  405. for (r = [0, 90, 180, 270]) rotate([0, 0, r]) {
  406. for (t = [0, 1]) {
  407. rotate([0, 0, 45 * t]) translate([top_radius - wire_diam - t * wire_diam * 2/3, 0, wall]) {
  408. cylinder(r = wire_diam / 2, h = top_radius * 2, $fn = facets);
  409. }
  410. }
  411. }
  412. translate([0, 0, wall]) cylinder(r = wire_diam, h = top_radius * 2, $fn = facets);
  413. }
  414. }
  415. }
  416. }
  417. module octa_mount_flare_old(height, lip, transition, radius, top_radius, stalk_height, dot) {
  418. // transition from bottom box to windscreen mounting thread
  419. transition_to_threads = 5;
  420. // bottom box
  421. difference() {
  422. union() {
  423. rounded_octagon_wall(height, radius, 2 * wall);
  424. // small pedestals for the screws that attach the flare to the body
  425. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  426. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  427. translate([radius - wall - 1.75, 0, lip/2]) {
  428. rotate([0, 90, 0]) {
  429. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  430. }
  431. }
  432. }
  433. // indicator of "front" of microphone
  434. rotate([0, 0, 180 + 22.5]) translate([radius - 2, 0, 0]) {
  435. cylinder(r = 1.0, h = lip/2, $fn = facets);
  436. }
  437. // stops for shock mount
  438. for (r = [0, 90, 180, 270]) rotate([0, 0, r - 22.5]) {
  439. translate([radius - 3.4, 0, 0]) scale([2.0, 1.0, 1.0]) {
  440. difference() {
  441. cylinder(r = 2.0, h = lip + transition_to_threads, $fn = facets);
  442. translate([-2, -2.0, 0]) cube([2.0, 4.0, lip + transition_to_threads]);
  443. }
  444. }
  445. }
  446. }
  447. // flange to mount on body
  448. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  449. // and make a smooth transition to avoid overhangs
  450. translate([0, 0, lip + 1.00]) {
  451. hull() {
  452. rounded_octagon_wall(thin_mint, radius - wall, wall);
  453. translate([0, 0, 1.0]) {
  454. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  455. }
  456. }
  457. }
  458. // holes for screws that attach the flare to the body
  459. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  460. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  461. translate([radius/2, 0, lip/2]) {
  462. rotate([0, 90, 0]) {
  463. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  464. }
  465. }
  466. }
  467. }
  468. // flare to windscreen threads
  469. translate([0, 0, height - windscreen_thread_height - transition_to_threads]) {
  470. difference() {
  471. hull() {
  472. rounded_octagon(thin_mint, radius);
  473. translate([0, 0, transition_to_threads]) {
  474. cylinder(r = windscreen_thread_radius + 0.5, h = thin_mint, $fn = facets);
  475. }
  476. }
  477. hull() {
  478. rounded_octagon(thin_mint, radius - wall);
  479. translate([0, 0, transition_to_threads]) {
  480. cylinder(r = windscreen_thread_radius - windscreen_thread_depth - wall, h = thin_mint, $fn = facets);
  481. }
  482. }
  483. }
  484. }
  485. // windscreen mounting threads
  486. translate([0, 0, height - windscreen_thread_height]) difference() {
  487. metric_thread(diameter = windscreen_thread_radius * 2, pitch = windscreen_thread_pitch,
  488. length = windscreen_thread_height, angle = windscreen_thread_angle, internal = false);
  489. cylinder(r = windscreen_thread_radius - wall - windscreen_thread_depth, h = windscreen_thread_height + thin_mint, $fn = facets);
  490. }
  491. // flare to stalk
  492. translate([0, 0, height - 1.5]) {
  493. difference() {
  494. hull() {
  495. cylinder(r = windscreen_thread_radius - windscreen_thread_depth, h = thin_mint, $fn = facets);
  496. translate([0, 0, transition + 1.5]) {
  497. cylinder(r = top_radius, h = thin_mint, $fn = facets);
  498. }
  499. }
  500. hull() {
  501. cylinder(r = windscreen_thread_radius - windscreen_thread_depth - wall, h = thin_mint, $fn = facets);
  502. translate([0, 0, transition + 1.5]) {
  503. cylinder(r = top_radius - wall, h = thin_mint, $fn = facets);
  504. }
  505. }
  506. }
  507. }
  508. // cylindrical stalk
  509. translate([0, 0, height + transition]) {
  510. difference() {
  511. cylinder(r = top_radius, h = stalk_height, $fn = facets);
  512. cylinder(r = top_radius - wall, h = stalk_height, $fn = facets);
  513. }
  514. // close stalk and add holes for cables
  515. translate([0, 0, stalk_height - top_radius - wall]) {
  516. difference() {
  517. cylinder(r = top_radius - wall, h = top_radius + wall, $fn = facets);
  518. translate([0, 0, 0]) {
  519. sphere(r = top_radius - wall, $fn = facets);
  520. }
  521. wire_diam = mic_wire_diam + mic_wire_fit;
  522. for (r = [0, 90, 180, 270]) rotate([0, 0, r]) {
  523. for (t = [0, 1]) {
  524. rotate([0, 0, 45 * t]) translate([top_radius - wire_diam - t * wire_diam * 2/3, 0, wall]) {
  525. cylinder(r = wire_diam / 2, h = top_radius * 2, $fn = facets);
  526. }
  527. }
  528. }
  529. translate([0, 0, wall]) cylinder(r = wire_diam, h = top_radius * 2, $fn = facets);
  530. }
  531. }
  532. }
  533. }
  534. // stalk from flare to capsule array mount
  535. module octa_mount_stalk(height, lip, transition, radius, top_radius, stalk_height, dot) {
  536. translate([0, 0, height + transition]) {
  537. translate ([0, 0, -10.0]) difference() {
  538. cylinder(r = top_radius, h = stalk_height + 10.0, $fn = facets);
  539. cylinder(r = top_radius - wall, h = stalk_height + 10.0, $fn = facets);
  540. }
  541. // close stalk and add holes for cables
  542. translate([0, 0, stalk_height - top_radius - wall]) {
  543. difference() {
  544. cylinder(r = top_radius - wall, h = top_radius + wall, $fn = facets);
  545. translate([0, 0, 0]) {
  546. sphere(r = top_radius - wall, $fn = facets);
  547. }
  548. wire_diam = mic_wire_diam + mic_wire_fit;
  549. for (r = [0, 90, 180, 270]) rotate([0, 0, r]) {
  550. for (t = [0, 1]) {
  551. rotate([0, 0, 45 * t]) translate([top_radius - wire_diam - t * wire_diam * 2/3, 0, wall]) {
  552. cylinder(r = wire_diam / 2, h = top_radius * 2, $fn = facets);
  553. }
  554. }
  555. }
  556. translate([0, 0, wall]) cylinder(r = wire_diam, h = top_radius * 2, $fn = facets);
  557. }
  558. }
  559. // add flange for coupling into flare
  560. difference() {
  561. cylinder(r2 = top_radius, r1 = top_radius + wall, h = 10.0, $fn = facets);
  562. cylinder(r2 = top_radius - wall, r1 = top_radius, h = 10.0, $fn = facets);
  563. }
  564. translate([top_radius, 0, -10.0]) {
  565. // add key to stalk so orientation is always correct
  566. difference() {
  567. cylinder(r = 0.4, h = 10.0, $fn = facets);
  568. }
  569. }
  570. }
  571. }
  572. // flare from body to capsule array stalk
  573. module octa_mount_flare(height, lip, transition, radius, top_radius, stalk_height, dot) {
  574. // transition from bottom box to windscreen mounting thread
  575. transition_to_threads = 5;
  576. // bottom box
  577. difference() {
  578. union() {
  579. rounded_octagon_wall(height - windscreen_thread_height, radius, 2 * wall);
  580. // small pedestals for the screws that attach the flare to the body
  581. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  582. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  583. translate([radius - wall - 1.75, 0, lip/2]) {
  584. rotate([0, 90, 0]) {
  585. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  586. }
  587. }
  588. }
  589. // indicator of "front" of microphone
  590. rotate([0, 0, 180 + 22.5]) translate([radius - 2, 0, 0]) {
  591. cylinder(r = 1.0, h = lip/3, $fn = facets);
  592. }
  593. // stops for shock mount
  594. for (r = [0, 90, 180, 270]) rotate([0, 0, r - 22.5]) {
  595. translate([radius - 3.4, 0, 0]) scale([2.0, 1.0, 1.0]) {
  596. difference() {
  597. // cylinder(r = 2.0, h = lip + transition_to_threads, $fn = facets);
  598. cylinder(r = 2.0, h = 5.0, $fn = facets);
  599. translate([-2, -2.0, 0]) cube([2.0, 4.0, lip + transition_to_threads]);
  600. }
  601. }
  602. }
  603. }
  604. // flange to mount on body
  605. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  606. // and make a smooth transition to avoid overhangs
  607. translate([0, 0, lip + 1.00]) {
  608. hull() {
  609. rounded_octagon_wall(thin_mint, radius - wall, wall);
  610. translate([0, 0, 1.0]) {
  611. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  612. }
  613. }
  614. }
  615. // holes for screws that attach the flare to the body
  616. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  617. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  618. translate([radius/2, 0, lip/2]) {
  619. rotate([0, 90, 0]) {
  620. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  621. }
  622. }
  623. }
  624. }
  625. // windscreen mounting threads
  626. translate([0, 0, height - windscreen_thread_height]) difference() {
  627. metric_thread(diameter = windscreen_thread_radius * 2, pitch = windscreen_thread_pitch,
  628. length = windscreen_thread_height, angle = windscreen_thread_angle, internal = false);
  629. cylinder(r = windscreen_thread_radius - wall - windscreen_thread_depth, h = windscreen_thread_height + thin_mint, $fn = facets);
  630. // clip thread tips
  631. difference() {
  632. cylinder(r = windscreen_thread_radius + wall, h = windscreen_thread_height + thin_mint, $fn = facets);
  633. cylinder(r = windscreen_thread_radius - windscreen_thread_depth * 0.3, h = windscreen_thread_height + thin_mint, $fn = facets);
  634. }
  635. }
  636. // flare to stalk
  637. translate([0, 0, height - 1.5]) {
  638. difference() {
  639. cylinder(r1 = windscreen_thread_radius - windscreen_thread_depth,
  640. r2 = top_radius + wall + fit, h = transition + 1.5, $fn = facets);
  641. cylinder(r1 = windscreen_thread_radius - windscreen_thread_depth - wall,
  642. r2 = top_radius + fit, h = transition + 1.5, $fn = facets);
  643. }
  644. }
  645. // socket for stalk
  646. s_length = 10.0;
  647. translate([0, 0, height + transition - s_length]) {
  648. difference() {
  649. cylinder(r = top_radius + wall + fit, h = s_length, $fn = facets);
  650. cylinder(r = top_radius + fit, h = s_length, $fn = facets);
  651. // add key slot for orientation
  652. translate([top_radius, 0, -1]) {
  653. cylinder(r = 0.4, h = s_length + 2, $fn = facets);
  654. }
  655. }
  656. }
  657. // internal flare for stalk
  658. translate([0, 0, height - 1.5]) {
  659. difference() {
  660. cylinder(r1 = windscreen_thread_radius - windscreen_thread_depth,
  661. r2 = top_radius + wall + fit, h = transition + 1.5 - s_length, $fn = facets);
  662. cylinder(r1 = windscreen_thread_radius - windscreen_thread_depth - wall,
  663. r2 = top_radius + fit, h = transition + 1.5 - s_length, $fn = facets);
  664. }
  665. }
  666. }
  667. // flare from the body to a dual cable housing
  668. module octa_mount_flare_dual(height, lip, transition, xradius, yradius, corner, top_radius, stalk_height) {
  669. // hack to get it to render, fix problem in rounded_block when radius is equal to corner...
  670. delta = 0.001;
  671. difference() {
  672. union() {
  673. // bottom rounded box
  674. difference() {
  675. rounded_block(height, xradius, yradius, corner);
  676. rounded_block_relative(height, xradius, yradius, corner, -(2 * wall));
  677. // flange to mount on body
  678. rounded_block_relative(lip + 1.00, xradius, yradius, corner, - (wall));
  679. // and make a smooth transition to avoid overhangs
  680. translate([0, 0, lip + 1.00]) {
  681. hull() {
  682. rounded_block_relative(thin_mint, xradius, yradius, corner, - wall);
  683. translate([0, 0, 1.0]) {
  684. rounded_block_relative(thin_mint, xradius, yradius, corner, - 2 * wall);
  685. }
  686. }
  687. }
  688. }
  689. // flare to rounded section
  690. translate([0, 0, height]) {
  691. difference() {
  692. hull() {
  693. rounded_block(thin_mint, xradius, yradius, corner);
  694. translate([0, 0, transition]) {
  695. rounded_block(thin_mint, top_radius + wall / 2, top_radius * 2 + wall / 2, top_radius - delta);
  696. }
  697. }
  698. hull() {
  699. rounded_block_relative(thin_mint, xradius, yradius, corner, - 2 * wall);
  700. translate([0, -top_radius, transition]) {
  701. cube([thin_mint, (top_radius) * 2, thin_mint]);
  702. }
  703. }
  704. }
  705. }
  706. // corner box cable stalk
  707. translate([0, 0, height + transition]) {
  708. rounded_block(stalk_height, top_radius + wall / 2, top_radius * 2 + wall / 2, top_radius - delta);
  709. }
  710. }
  711. // holes for the cables
  712. for (offset = [top_radius - wall/2, -(top_radius - wall/2)]) {
  713. translate([0, offset, 0]){
  714. cylinder(r = top_radius - wall, h = height + transition + stalk_height, $fn = facets);
  715. }
  716. }
  717. }
  718. }
  719. // flare from the body to a dual conector housing
  720. // bottom connector holder
  721. module tetra_mount_connector_holder(height, radius, inside_radius, sleeve_height, sleeve_radius) {
  722. difference() {
  723. union() {
  724. cylinder(r = radius, h = height, $fn = facets);
  725. // add seats for screw heads
  726. for (m = [-1, 1]) translate([m * conn_core_holes_w / 2, radius / 2, conn_core_holes_h]) {
  727. rotate([90, 0, 0]) {
  728. scale([1, 1, 1]) cylinder(r = conn_core_screw_d / 2, h = radius * 1.43, $fn = facets);
  729. }
  730. }
  731. }
  732. cylinder(r = inside_radius, h = height, $fn = facets);
  733. // transition from thin wall to thick wall at the bottom of connector
  734. *cylinder(r1 = radius - wall, r2 = inside_radius, h = 2.0, $fn = facets);
  735. // holes for connector core screws
  736. for (m = [-1, 1]) translate([m * conn_core_holes_w / 2, - radius / 3, conn_core_holes_h]) {
  737. rotate([90, 0, 0]) {
  738. cylinder(r = conn_core_holes_d / 2, h = radius, $fn = facets);
  739. }
  740. }
  741. // substract cutout for screw heads
  742. for (m = [-1, 1]) translate([m * conn_core_holes_w / 2, - radius + 1.5, conn_core_holes_h]) {
  743. rotate([90, 0, 0]) {
  744. cylinder(r = conn_core_screw_d / 2, h = 2.0, $fn = facets);
  745. }
  746. }
  747. }
  748. // thinner cylinder sits inside connector sleeve
  749. translate([0, 0, height]) {
  750. difference() {
  751. cylinder(r = sleeve_radius, h = sleeve_height, $fn = facets);
  752. cylinder(r = inside_radius, h = sleeve_height, $fn = facets);
  753. }
  754. }
  755. }
  756. // flare to dual cable connectors
  757. module octa_mount_flare_connector(height, lip, transition, radius, top_xradius, top_yradius) {
  758. // hack to get it to render, fix problem in rounded_block when radius is equal to corner...
  759. delta = 0.001;
  760. // bottom rounded box
  761. difference() {
  762. union() {
  763. rounded_octagon_wall(height, radius, 2 * wall);
  764. // small pedestals for the screws that attach the flare to the body
  765. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  766. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  767. translate([radius - wall - 1.75, 0, lip/2]) {
  768. rotate([0, 90, 0]) {
  769. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  770. }
  771. }
  772. }
  773. }
  774. // flange to mount on body
  775. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  776. // and make a smooth transition to avoid overhangs
  777. translate([0, 0, lip + 1.00]) {
  778. hull() {
  779. rounded_octagon_wall(thin_mint, radius - wall, wall);
  780. translate([0, 0, 1.0]) {
  781. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  782. }
  783. }
  784. }
  785. // holes for screws that attach the flare to the body
  786. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  787. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  788. translate([radius/2, 0, lip/2]) {
  789. rotate([0, 90, 0]) {
  790. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  791. }
  792. }
  793. }
  794. }
  795. // flare to rounded section
  796. translate([0, 0, height]) {
  797. difference() {
  798. hull() {
  799. rounded_octagon(thin_mint, radius);
  800. translate([0, 0, transition]) {
  801. rounded_block(thin_mint, top_xradius, top_yradius, top_xradius - delta);
  802. }
  803. }
  804. hull() {
  805. rounded_octagon(thin_mint, radius - 2 * wall);
  806. translate([0, -top_xradius, transition]) {
  807. cube([thin_mint, (top_xradius) * 2, thin_mint]);
  808. }
  809. }
  810. }
  811. }
  812. }
  813. // flare to d-sub 25 pin connector
  814. module octa_mount_flare_dsub(height, lip, transition, radius, top_xradius, top_yradius) {
  815. // bottom octagonal box
  816. difference() {
  817. union() {
  818. rounded_octagon_wall(height, radius, 2 * wall);
  819. // small pedestals for the screws that attach the flare to the body
  820. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  821. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  822. translate([radius - wall - 1.75, 0, lip/2]) {
  823. rotate([0, 90, 0]) {
  824. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  825. }
  826. }
  827. }
  828. }
  829. // flange to mount on body
  830. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  831. // and make a smooth transition to avoid overhangs
  832. translate([0, 0, lip + 1.00]) {
  833. hull() {
  834. rounded_octagon_wall(thin_mint, radius - wall, wall);
  835. translate([0, 0, 1.0]) {
  836. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  837. }
  838. }
  839. }
  840. // holes for screws that attach the flare to the body
  841. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  842. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  843. translate([radius/2, 0, lip/2]) {
  844. rotate([0, 90, 0]) {
  845. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  846. }
  847. }
  848. }
  849. }
  850. // flare to db25 connector mounting plate
  851. expand = pcb_version == 2 ? 1 : 3;
  852. // height of connector
  853. guard_height = 9.525;
  854. // thickness of db25 plate
  855. db25_t = 3 * wall;
  856. translate([0, 0, height]) {
  857. minkr = 2.0;
  858. difference() {
  859. hull() {
  860. rounded_octagon(thin_mint, radius);
  861. rotate([0, 0, -22.5]) translate([0, 0, transition - 5.0]) {
  862. minkowski() {
  863. db25_plate(th = thin_mint, border = expand);
  864. cylinder(r = minkr, h = thin_mint, $fn = facets);
  865. }
  866. }
  867. }
  868. hull() {
  869. rounded_octagon(thin_mint, radius - 2 * wall);
  870. rotate([0, 0, -22.5]) translate([0, 0, transition - 5.0]) {
  871. minkowski() {
  872. db25_plate(th = thin_mint, border = expand - 2 * wall);
  873. cylinder(r = minkr, h = thin_mint, $fn = facets);
  874. }
  875. }
  876. }
  877. }
  878. // db25 mounting plate
  879. rotate([0, 0, -22.5]) translate([0, 0, transition]) {
  880. difference() {
  881. db25_plate(th = db25_t, border = expand);
  882. db25_cutout(th = db25_t);
  883. }
  884. // connector border
  885. translate([0, 0, -5.0]) difference() {
  886. overhang = 3.0;
  887. minkowski() {
  888. db25_plate(th = 5.0 + db25_t + overhang, border = expand);
  889. cylinder(r = minkr, h = thin_mint, $fn = facets);
  890. }
  891. db25_plate(th = 5.0 + db25_t + overhang + thin_mint, border = expand);
  892. }
  893. }
  894. // for testing
  895. *rotate([0, 0, -22.5]) translate([0, 0, 40]) db25_plate(th = 1.0, border = 1.0);
  896. }
  897. }
  898. module octa_mount_stand(height, lip, transition, radius, top_xradius, top_yradius) {
  899. // flare to db25 connector mounting plate
  900. expand = 3;
  901. // height of connector
  902. guard_height = 9.525;
  903. // thickness of db25 plate
  904. db25_t = 3 * wall;
  905. translate([0, 0, height]) {
  906. minkr = 2.0;
  907. // db25 mounting plate
  908. rotate([0, 0, -22.5]) translate([0, 0, transition]) {
  909. // add guard wall around connector
  910. difference() {
  911. minkowski() {
  912. db25_plate(th = guard_height + db25_t, border = 1.8 * expand);
  913. cylinder(r = minkr, h = thin_mint, $fn = facets);
  914. }
  915. db25_plate(th = guard_height + db25_t + thin_mint, border = 1.8 * expand);
  916. }
  917. }
  918. // ring and connector
  919. translate([0, 0, height]) {
  920. o_rad = 8;
  921. i_rad = 3;
  922. rotate([0, 90, -22.5]) {
  923. // connector
  924. translate([-guard_height, 13, 0]) cube([guard_height, 10, o_rad/2]);
  925. translate([-guard_height, 9, o_rad/4]) rotate([0, 90, 0]) {
  926. difference() {
  927. cylinder(r = o_rad, h = guard_height, $fn = facets);
  928. translate([-10, -16, 0]) cube([20, 20, 10]);
  929. }
  930. }
  931. // ring
  932. translate([-o_rad, 30, 0]) {
  933. shock_mount_ring(o_rad, i_rad, ring_wall);
  934. }
  935. }
  936. }
  937. }
  938. }
  939. // top conical section that plugs into capsule array
  940. module octa_capsule_array_mount(angles) {
  941. difference() {
  942. union() {
  943. difference() {
  944. cylinder(h = mount_top_height, r1 = mount_radius + wall, r2 = mount_radius_capsule + 0.9, $fn = facets);
  945. cylinder(h = mount_top_height, r1 = mount_radius, r2 = mount_radius_capsule - 2 * wall * wall, $fn = facets);
  946. }
  947. // second set of optional "leaves" to get a better mount
  948. *difference() {
  949. cylinder(h = mount_top_height, r1 = mount_radius + wall, r2 = mount_radius_capsule * 0.8, $fn = facets);
  950. cylinder(h = mount_top_height, r1 = mount_radius, r2 = mount_radius_capsule * 0.8 - 1.2 * wall, $fn = facets);
  951. }
  952. }
  953. // indentations that match the four lower capsule holders
  954. // add ridge height adjustment
  955. translate([0, 0, mount_top_height + (mic_radius - capsule_height) + capsule_height * cos(90 - elev_angle) - 2]) {
  956. for (az = angles) {
  957. rotate([0, 180 - elev_angle, az + 45]) {
  958. translate([0, 0, mic_radius - capsule_height]) {
  959. capsule(leg_angles, 0, 1, ridge_wfit, ridge_hfit, 1);
  960. }
  961. }
  962. }
  963. }
  964. // indentations at the top to open up the array a bit
  965. translate([0, 0, mount_top_height + mount_radius_capsule / 8]) {
  966. for (rot = [45, 135, -135, -45]) {
  967. translate([0, 0, 0]) {
  968. rotate([0, 90, rot]) {
  969. scale([0.5, 0.5, 1.3]) linear_extrude(height = mount_radius_capsule, scale = 2.8) {
  970. minkowski() {
  971. polygon(points = [[0, mount_radius_capsule * 0.2], [0, - mount_radius_capsule * 0.2],
  972. [mount_radius_capsule, 0]]);
  973. circle(r = 2.4, $fn = facets);
  974. }
  975. }
  976. }
  977. }
  978. }
  979. }
  980. }
  981. }
  982. //
  983. // shock mount components
  984. //
  985. // shock mount band that attaches snugly to microphone body
  986. module octa_shock_mount_band(band_height, radius, delta_radius) {
  987. rotate([0, 0, 22.5]) {
  988. // inner octagon, hugs the body
  989. difference() {
  990. rounded_octagon_wall(band_height, radius + 3 * wall, 2 * wall);
  991. rotate([0, 0, -22.5 + 90]) translate([-40, -(1.273 * radius)/2, 0]) {
  992. cube([80, 1.273 * radius, band_height + thin_mint]);
  993. }
  994. // space for screw heads
  995. slot_w = 4.0;
  996. slot_d = 1.5;
  997. for (r = [0, 180]) rotate([0, 0, r - 45])
  998. translate([radius - slot_d/2, -slot_w/2, 0]) cube([slot_d, slot_w, band_height]);
  999. }
  1000. // the outer octagon
  1001. rounded_octagon_wall(band_height, radius + delta_radius, 2 * wall);
  1002. }
  1003. // joins inner and outer octagons
  1004. for (m = [0, 1]) mirror([m, 0, 0]) {
  1005. translate([radius, -10, 0]) {
  1006. cube([delta_radius - 4 * wall, 20, band_height]);
  1007. }
  1008. }
  1009. }
  1010. // shock mount internal ring
  1011. module octa_shock_mount_internal_ring(height, radius, band_height, corner) {
  1012. delta_radius = pcb_version == 2 ? 7.5 : 6;
  1013. // octagonal band
  1014. octa_shock_mount_band(band_height, radius, delta_radius);
  1015. // 8 columns for mounting rubber bands
  1016. for (r = [0, 90, 180, 270]) rotate([0, 0, r]) {
  1017. for (m = [0, 1]) mirror([m, 0, 0]) {
  1018. translate([radius + (pcb_version == 2 ? 3.5 : 2.25), radius/2 - 2, 0]) {
  1019. rotate([0, 0, 0]) {
  1020. difference() {
  1021. // columns
  1022. union() {
  1023. translate([3, 0, 0]) rotate([0, 0, 45]) scale([1.4, 0.8, 1.0])
  1024. cylinder(r = 3, h = height, $fn = facets);
  1025. }
  1026. // lower slots for rubber bands
  1027. rotate([0, 0, 45]) translate([2.5, radius/2, 2.0]) scale([1.0, 1.0, 2.2]) rotate([90, 0, 0]) {
  1028. cylinder(r = 1.1, h = radius * 2, $fn = facets);
  1029. }
  1030. // upper slots for rubber bands
  1031. rotate([0, 0, 45]) translate([2.5, radius/2, height - 2.0]) scale([1.0, 1.0, 2.2]) rotate([90, 0, 0]) {
  1032. cylinder(r = 1.1, h = radius * 2, $fn = facets);
  1033. }
  1034. }
  1035. }
  1036. }
  1037. }
  1038. // walls between columns so that they cannot bend
  1039. rotate([0, 0, 45]) translate([radius + (pcb_version == 2 ? 2.7 : 2.25) * wall, -14, 0]) {
  1040. cube([wall, 28, height]);
  1041. }
  1042. }
  1043. }
  1044. // shock mount sleeve, slips over microphone body and has hooks for the elastic bands
  1045. module elastic_band_hook (slot_r = 1.1) {
  1046. hook_l = 6.0;
  1047. translate([slot_r, hook_l/2, 0]) {
  1048. rotate([90, 0, 0]) scale([1, 2.2, 1]) cylinder(r = slot_r, h = hook_l, $fn = facets);
  1049. }
  1050. }
  1051. module octa_shock_mount_sleeve(radius, height, hooks = true, logo = true) {
  1052. // gap between body and sleeve
  1053. gap = internal_ring_gap + 0;
  1054. difference() {
  1055. // fit gap for slide tubes
  1056. sgap = 0.2;
  1057. stop_ro = 2.0 + 2 * wall + sgap;
  1058. union() {
  1059. // sleeve
  1060. rotate([0, 0, 22.5]) rounded_octagon_wall(height, radius + 2 * wall + gap, 2 * wall);
  1061. // tubes for stops
  1062. for (r = [0, 90, 180, 270]) {
  1063. rotate([0, 0, r + 45]) {
  1064. translate([radius - 2 * wall + gap, 0, 0]) {
  1065. difference() {
  1066. scale([1, 1.4, 1]) cylinder(r = stop_ro, h = height, $fn = facets);
  1067. translate([-2 * stop_ro, -2 * stop_ro, 0]) {
  1068. cube([2 * stop_ro, 4 * stop_ro, height]);
  1069. }
  1070. }
  1071. }
  1072. }
  1073. }
  1074. // pillars for elastic band hooks
  1075. if (hooks) {
  1076. for (r = [0, 90, 180, 270]) rotate([0, 0, r + 45]) {
  1077. pill_r = 2.5;
  1078. translate([radius + stop_ro + gap - 2 * wall, 0, 0]) {
  1079. difference() {
  1080. scale([2, 1, 1]) cylinder(r = pill_r, h = height, $fn = facets);
  1081. translate([-7 * wall, -pill_r, 0]) cube([6 * wall, pill_r * 2, height]);
  1082. }
  1083. }
  1084. }
  1085. }
  1086. // add ccrma logo
  1087. if (logo) {
  1088. rotate([0, 0, 90]) {
  1089. translate([0, -(radius - (pcb_version == 2 ? gap + 1.4 : 0) + 2 * wall),
  1090. height / 2]) {
  1091. rotate([90, 270, 0]) {
  1092. logo_scale = 1 / (pcb_version == 2 ? 3.0 : 2.4);
  1093. scale([logo_scale, logo_scale, 1.0]) {
  1094. ccrma_logo(1.65);
  1095. }
  1096. }
  1097. }
  1098. }
  1099. }
  1100. }
  1101. // slots for stops and screws
  1102. for (r = [0, 90, 180, 270]) {
  1103. // stops
  1104. stop_r = 2.0 + sgap;
  1105. rotate([0, 0, r + 45]) {
  1106. translate([radius - 2 * wall + gap, 0, 0]) {
  1107. // there is a little bit of play between the wd assembly and the top
  1108. ws_play = 0.4;
  1109. cylinder(r = stop_r, h = height - 10.0 - ws_play, $fn = facets);
  1110. }
  1111. }
  1112. // screws
  1113. screw_h = 1.3;
  1114. rotate([0, 0, r + 22.5]) {
  1115. translate([radius - 1.5 * wall + gap, -3.5/2, 0]) {
  1116. cube([screw_h + sgap, 3.5, height - 8]);
  1117. }
  1118. }
  1119. }
  1120. // slot for front mark
  1121. translate([radius - 2 * wall, 0, 0]) cylinder(r = 1.5, h = height, $fn = facets);
  1122. // shave channel for logo
  1123. translate([radius - 2 * wall, -10/2, 0]) cube([wall/3, 10, height]);
  1124. // upper elastic band hooks
  1125. for (r = [0, 90, 180, 270]) rotate([0, 0, r + 45]) {
  1126. translate([radius + stop_ro + gap - 2*wall, 0, height - 1.6]) {
  1127. elastic_band_hook();
  1128. }
  1129. }
  1130. // lower elastic band hooks
  1131. for (r = [0, 90, 180, 270]) rotate([0, 0, r + 45]) {
  1132. translate([radius + stop_ro + gap - 2*wall, 0, 1.6]) {
  1133. rotate([180, 0, 0]) elastic_band_hook();
  1134. }
  1135. }
  1136. }
  1137. }
  1138. // shock mount external ring
  1139. module octa_shock_mount_external_ring_old(height, radius, corner) {
  1140. // main ring
  1141. rotate([0, 0, 22.5]) rounded_octagon_wall(ring_ext_height, radius, ring_wall);
  1142. for (rot = [0, 90, 180, 270]) {
  1143. // anchors for rubber bands
  1144. rotate([0, 0, rot + 45]) {
  1145. translate([radius * cos(22.5) + ring_wall + 0.75, -6, 0]) {
  1146. minkowski() {
  1147. cube([4 - 2, 12, ring_ext_height]);
  1148. cylinder(r = 1.5, h = thin_mint, $fn = facets);
  1149. }
  1150. }
  1151. translate([radius * cos(22.5), -2, 0]) {
  1152. cube([7, 4, ring_ext_height]);
  1153. }
  1154. }
  1155. }
  1156. // connection to hub
  1157. translate([radius * cos(22.5), -2, 0]) {
  1158. cube([10, 4, ring_ext_height * 2]);
  1159. }
  1160. // reinforce connection to ring
  1161. intersection() {
  1162. translate([radius * cos(22.5), 0, 0]) {
  1163. difference() {
  1164. cylinder(r = 6, h = ring_ext_height * 2, $fn = 4);
  1165. translate([-10, -5, 0]) {
  1166. cube([10, 10, ring_ext_height * 2]);
  1167. }
  1168. }
  1169. }
  1170. translate([radius + ring_wall - 7, 0, 0]) {
  1171. rotate([0, 0, 45]) cylinder(r1 = radius * 1.5, r2 = ring_wall/2 + 1, h = ring_ext_height * 2, $fn = 4);
  1172. }
  1173. }
  1174. // reinforcement
  1175. intersection() {
  1176. rotate([0, 0, 22.5]) rounded_octagon_wall(ring_ext_height * 2, radius, ring_wall);
  1177. translate([radius - 6.5, 0, 0]) {
  1178. rotate([0, 0, 45]) cylinder(r1 = radius * 1.5, r2 = ring_wall/2 + 1, h = ring_ext_height * 2, $fn = 4);
  1179. }
  1180. }
  1181. // rotating mount
  1182. o_rad = 8;
  1183. i_rad = 3;
  1184. rotate([0, 90, -90]) {
  1185. translate([-o_rad, radius * cos(22.5) + o_rad + ring_wall * 2, -2]) {
  1186. shock_mount_ring(o_rad, i_rad, ring_wall);
  1187. }
  1188. }
  1189. }
  1190. module octa_shock_mount_external_ring(height, radius, corner) {
  1191. // main ring
  1192. rotate([0, 0, 22.5]) rounded_octagon_wall(ring_ext_height, radius, ring_wall);
  1193. for (m = [0, 1]) mirror([0, m, 0]) {
  1194. for (rot = [0, 90, 180, 270]) {
  1195. // anchors for rubber bands
  1196. rotate([0, 0, rot + 20]) {
  1197. translate([radius * cos(22.5) + ring_wall + 2.0, -5, 0]) {
  1198. minkowski() {
  1199. cube([4 - 3, 6, ring_ext_height]);
  1200. cylinder(r = 1.0, h = thin_mint, $fn = facets);
  1201. }
  1202. }
  1203. translate([radius * cos(22.5), -2, 0]) {
  1204. cube([7, 4, ring_ext_height]);
  1205. }
  1206. }
  1207. }
  1208. }
  1209. // connection to hub
  1210. translate([radius * cos(22.5), -2, 0]) {
  1211. cube([10, 4, ring_ext_height * 2]);
  1212. }
  1213. // reinforce connection to ring
  1214. intersection() {
  1215. translate([radius * cos(22.5), 0, 0]) {
  1216. difference() {
  1217. cylinder(r = 6, h = ring_ext_height * 2, $fn = 4);
  1218. translate([-10, -5, 0]) {
  1219. cube([10, 10, ring_ext_height * 2]);
  1220. }
  1221. }
  1222. }
  1223. translate([radius + ring_wall - 7, 0, 0]) {
  1224. rotate([0, 0, 45]) cylinder(r1 = radius * 1.5, r2 = ring_wall/2 + 1, h = ring_ext_height * 2, $fn = 4);
  1225. }
  1226. }
  1227. // reinforcement
  1228. intersection() {
  1229. rotate([0, 0, 22.5]) rounded_octagon_wall(ring_ext_height * 2, radius, ring_wall);
  1230. translate([radius - 6.5, 0, 0]) {
  1231. rotate([0, 0, 45]) cylinder(r1 = radius * 1.5, r2 = ring_wall/2 + 1, h = ring_ext_height * 2, $fn = 4);
  1232. }
  1233. }
  1234. // rotating mount
  1235. o_rad = 8;
  1236. i_rad = 3;
  1237. rotate([0, 90, -90]) {
  1238. translate([-o_rad, radius * cos(22.5) + o_rad + ring_wall * 2, -2]) {
  1239. shock_mount_ring(o_rad, i_rad, ring_wall);
  1240. }
  1241. }
  1242. }
  1243. // stand mount with quick clip connector
  1244. module octa_quik_release_stand_mount(band_height, radius) {
  1245. vertical_offset = 18;
  1246. mount_offset = 3.0;
  1247. // octagonal band
  1248. octa_shock_mount_band(band_height, radius, pcb_version == 2 ? 7.5 : 6);
  1249. difference() {
  1250. hull() {
  1251. // attachment "plate"
  1252. translate([radius, -10, 0]) {
  1253. cube([2, 20, band_height]);
  1254. }
  1255. // quik release adapter tube
  1256. translate([(radius + mic_mount_radius + mic_mount_wall + 6.0 + mount_offset) * cos(22.5), 0,
  1257. vertical_offset]) {
  1258. cylinder(r = mic_mount_radius + mic_mount_fit + mic_mount_wall, h = band_height - vertical_offset, $fn = facets);
  1259. }
  1260. }
  1261. // cutout for the center hole and side hole of the adapter
  1262. translate([(radius + mic_mount_radius + mic_mount_wall + 6.0 + mount_offset) * cos(22.5), 0,
  1263. vertical_offset + thin_mint]) {
  1264. cylinder(r = mic_mount_radius + mic_mount_fit, h = mic_mount_height, $fn = facets);
  1265. }
  1266. }
  1267. translate([(radius + mic_mount_radius + mic_mount_wall + 6.0 + mount_offset) * cos(22.5), 0,
  1268. mic_mount_height + vertical_offset + thin_mint]) {
  1269. rotate([0, 180, 180]) quik_release_stand_adapter(mic_mount_height, mount_wall, mic_mount_wall);
  1270. }
  1271. }
  1272. // octathingy arm mount for robotic arm
  1273. module octa_arm_mount(band_height, radius, height) {
  1274. vertical_offset = 18;
  1275. mount_offset = 3.0;
  1276. // octagonal band
  1277. octa_shock_mount_band(band_height, radius, pcb_version == 2 ? 7.5 : 6);
  1278. // pillars for arm grips
  1279. sphear_arm_mount_pillars(radius, height - 50.0, grip_sep, grip_width);
  1280. }
  1281. module octa_arm_mount_pillars(band_height, radius, height, grip_width, grip_depth) {
  1282. vertical_offset = 18;
  1283. mount_offset = 3.0;
  1284. // pillars for arm grips
  1285. sphear_arm_mount_pillars(radius, height - 60.0, grip_sep, grip_width, grip_depth);
  1286. }
  1287. ////
  1288. //// render all the different parts
  1289. ////
  1290. // microphone body: stalk from capsule flare to capsule array (for microphone version 1)
  1291. //
  1292. module render_octa_capsule_stalk(z_offset) {
  1293. translate([0, 0, z_offset]) {
  1294. octa_mount_stalk(pcb_hi_clear + pcb_hi_exp, mount_lip, flare_height, octa_pcb_radius, mount_radius + wall, stalk_height, 1);
  1295. translate([0, 0, pcb_hi_clear + pcb_hi_exp + flare_height + stalk_height]) {
  1296. octa_capsule_array_mount([45, 135, -45, -135]);
  1297. }
  1298. }
  1299. }
  1300. // microphone body: flare to capsule array (slips into PCB holder body)
  1301. //
  1302. module render_octa_capsule_flare(z_offset) {
  1303. translate([0, 0, z_offset]) {
  1304. octa_mount_flare(pcb_hi_clear + pcb_hi_exp, mount_lip, flare_height, octa_pcb_radius, mount_radius + wall, stalk_height, 1);
  1305. }
  1306. }
  1307. // microphone body: main body, holds printed circuit boards
  1308. //
  1309. module render_octa_pcb_mount(z_offset, showint) {
  1310. translate([0, 0, z_offset]) {
  1311. octa_mount_body(octa_pcb_mount_height, octa_pcb_radius, mount_lip, mount_lip, 0);
  1312. // add ccrma logo
  1313. rotate([0, 0, -90 + 22.5]) {
  1314. translate([0, -(octa_pcb_radius - (pcb_version == 2 ? 3.4 : 3.7)), octa_pcb_mount_height / 2]) {
  1315. rotate([90, 270, 0]) {
  1316. logo_scale = 1 / (pcb_version == 2 ? 3.0 : 2.4);
  1317. scale([logo_scale, logo_scale, 1.0]) {
  1318. ccrma_logo(1.65);
  1319. }
  1320. }
  1321. }
  1322. }
  1323. }
  1324. }
  1325. // microphone body: flare to microphone cable (slips into PCB holder body)
  1326. //
  1327. module render_octa_cable_flare(z_offset, flip) {
  1328. translate([0, 0, z_offset]) {
  1329. octa_mount_flare_dual(pcb_low_clear + pcb_low_exp, mount_lip, 20, box_radius + wall, box_radius * 2 - wall,
  1330. mount_corner, cable_diam / 2 + wall, 10, 0);
  1331. }
  1332. }
  1333. // microphone body: flare to dual cable connectors (slips into PCB holder body)
  1334. //
  1335. module render_octa_connector_flare(z_offset, flip) {
  1336. conn_offset = 2.0;
  1337. conn_wall = conn_core_o_diam / 2 - conn_core_diam / 2;
  1338. translate([0, 0, z_offset]) {
  1339. difference() {
  1340. union() {
  1341. octa_mount_flare_connector(pcb_low_clear + pcb_low_exp, mount_lip, 20,
  1342. octa_pcb_radius,
  1343. conn_core_o_diam / 2, conn_core_o_diam + conn_offset);
  1344. for (m = [0, 1]) mirror([0, m, 0]) translate([0, conn_core_o_diam / 2 + conn_offset, pcb_low_clear + pcb_low_exp + 20]) {
  1345. // add two connectors
  1346. rotate([0, 0, -90]) {
  1347. tetra_mount_connector_holder(conn_core_sleeve, conn_core_o_diam / 2, conn_core_diam / 2,
  1348. conn_core_overlap, conn_core_s_diam / 2);
  1349. }
  1350. // add wall in between the two connectors
  1351. translate([- 2 * wall, - (conn_core_o_diam / 2 + conn_offset), 0]) {
  1352. cube([4 * wall, conn_offset + wall, 10]);
  1353. }
  1354. }
  1355. }
  1356. // redo the hole in the connector holder so that it drills into the top of the flare
  1357. for (m = [0, 1]) mirror([0, m, 0]) translate([0, conn_core_o_diam / 2 + conn_offset, 0]) {
  1358. cylinder(r = conn_core_diam / 2, h = 100, $fn = facets);
  1359. }
  1360. }
  1361. }
  1362. }
  1363. // microphone body: flare to db25 connector (slips into PCB holder body)
  1364. //
  1365. module render_octa_mount_dsub_flare(z_offset, flip) {
  1366. updown = 0;
  1367. if (flip) {
  1368. updown = 180;
  1369. }
  1370. rotate([0, updown, 90]) {
  1371. conn_offset = 2.0;
  1372. translate([0, 0, z_offset - mount_lip]) {
  1373. octa_mount_flare_dsub(pcb_low_clear + pcb_low_exp - (pcb_version == 2 ? 13 : 0), mount_lip,
  1374. pcb_version == 2 ? 33 : 20, octa_pcb_radius,
  1375. conn_core_o_diam / 2, conn_core_o_diam + conn_offset);
  1376. }
  1377. }
  1378. }
  1379. // microphone body: render all parts with a vertical separation
  1380. //
  1381. module render_octa_body(z_offset, spread, showint) {
  1382. rotate([0, 180, 0]) {
  1383. render_octa_mount_dsub_flare(pcb_version == 2 ? 10 : 0, 0);
  1384. }
  1385. lippy = spread - mount_lip;
  1386. render_octa_pcb_mount(lippy, showint);
  1387. render_octa_capsule_flare(octa_pcb_mount_height + 2 * lippy);
  1388. }
  1389. // microphone: render the full assembly with vertical separation between components
  1390. //
  1391. module render_octa_microphone(z_offset, spread) {
  1392. render_octa_body(z_offset, spread);
  1393. lippy = spread - mount_lip;
  1394. render_octa_capsule_array(z_offset + octa_pcb_mount_height + mount_top_height +
  1395. flare_height + stalk_height + pcb_hi_clear + pcb_hi_exp + 2 * lippy + spread + mic_radius);
  1396. render_octa_capsule_stalk(z_offset + (pcb_version == 2 ? 43.2 : 49.2) - 10.0);
  1397. }
  1398. // microphone: render the full assembly with vertical separation between components
  1399. // cut out half of the assembly so that we can see the inside
  1400. //
  1401. module render_octa_microphone_cutout(z_offset, spread) {
  1402. difference() {
  1403. render_octa_microphone(z_offset, spread);
  1404. // a cube that blots out 1/4 of the microphone
  1405. rotate([0, 0, 90]) {
  1406. translate([0, 0, -50]) {
  1407. cube([50, 100, 650]);
  1408. }
  1409. }
  1410. }
  1411. }
  1412. // shock mount: microphone clip on stand mount
  1413. //
  1414. module render_octa_shock_mount_stand(z_offset) {
  1415. translate([z_offset]) {
  1416. shock_mount_stand(mic_mount_height, mount_wall, mic_mount_wall);
  1417. }
  1418. }
  1419. // shock mount: external ring
  1420. //
  1421. module render_octa_shock_mount_external_ring_old(z_offset) {
  1422. translate([0, 0, z_offset]) {
  1423. shock_mount_external_ring(external_ring_height, box_radius + wall, box_radius * 2 - wall, mount_corner, main_radius_inc, 0);
  1424. }
  1425. }
  1426. module render_octa_shock_mount_external_ring(z_offset) {
  1427. translate([0, 0, z_offset]) {
  1428. octa_shock_mount_external_ring(external_ring_height, octa_pcb_radius + internal_ring_gap + main_radius_inc + 5.25, 20);
  1429. }
  1430. }
  1431. // shock mount: bottom internal ring
  1432. //
  1433. module render_octa_shock_mount_internal_ring_bot(z_offset) {
  1434. translate([0, 0, z_offset]) {
  1435. shock_mount_internal_ring(external_ring_height, box_radius + wall, box_radius * 2 - wall, mount_corner, internal_ring_gap, 1);
  1436. }
  1437. }
  1438. module render_octa_shock_mount_internal_ring_bot(z_offset) {
  1439. translate([0, 0, z_offset]) {
  1440. shock_mount_internal_ring(external_ring_height, A/2 + wall, A/2 + 3, octa_pcb_radius * 2/3, internal_ring_gap, 1);
  1441. }
  1442. }
  1443. // shock mount: top internal ring
  1444. //
  1445. module render_octa_shock_mount_internal_ring_top_old(z_offset) {
  1446. translate([0, 0, z_offset]) {
  1447. shock_mount_internal_ring(external_ring_height, box_radius + wall, box_radius * 2 - wall, mount_corner, internal_ring_gap, 0);
  1448. }
  1449. }
  1450. module render_octa_shock_mount_internal_ring_top(z_offset) {
  1451. translate([0, 0, z_offset]) {
  1452. shock_mount_internal_ring(external_ring_height, A/2 + wall, A/2 + 3, octa_pcb_radius * 2/3, internal_ring_gap, 0);
  1453. }
  1454. }
  1455. // shock mount: all four internal ring connectors
  1456. //
  1457. module render_octa_shock_mount_ring_connectors(offset) {
  1458. for (o = [0, 1, 2, 3]) {
  1459. translate([-18, (10 + offset) * o, 0]) {
  1460. shock_mount_connector(internal_ring_height, 4, connector_w, connector_d, 0.1);
  1461. }
  1462. }
  1463. }
  1464. // shock mount: render all parts
  1465. //
  1466. module render_octa_shock_mount(z_offset) {
  1467. // internal rings
  1468. translate([0, 0, z_offset + internal_ring_height / 2]) {
  1469. render_octa_shock_mount_internal_ring_top(0);
  1470. rotate([0, 180, 0]) {
  1471. render_octa_shock_mount_internal_ring_bot(internal_ring_height + 2);
  1472. }
  1473. // insert the connecting rods
  1474. for (r = [0, 90, 180, 270]) {
  1475. rotate([0, 0, r]) {
  1476. translate([((r % 180) ? box_radius * 2 : box_radius) + 3 * wall + internal_ring_gap, 0, -1]) {
  1477. rotate([0, 90, 0]) {
  1478. translate([-4, -5, 1]) {
  1479. shock_mount_connector(internal_ring_height, 4, connector_w, connector_d, 0.1);
  1480. }
  1481. }
  1482. }
  1483. }
  1484. }
  1485. }
  1486. // external ring
  1487. translate([0, 0, z_offset - external_ring_height / 4]) {
  1488. render_octa_shock_mount_external_ring(0);
  1489. }
  1490. // mount to stand
  1491. translate([box_radius + mount_corner + ring_wall + ring_arm_gap + 8 + ring_wall / 2 + 4, 0, -(mic_mount_height + mic_mount_radius + external_ring_height / 4)]) {
  1492. render_octa_shock_mount_stand(0);
  1493. }
  1494. }