1
0

Octathingy_mount_pcb.scad 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224
  1. //
  2. // Spherical Harmonics Ear Project (*SpHEAR)
  3. //
  4. // 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-2017, 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. include <Octathingy_common.scad>;
  31. include <CCRMA_logo.scad>;
  32. // d-sub connector
  33. include <db25.scad>;
  34. ////
  35. //// overrides
  36. // inner radius of mount stalk
  37. mount_radius = 4.0;
  38. ////
  39. //// default model parameters
  40. ////
  41. // size of Zapnspark printed circuit board
  42. // kicad length = 79.375
  43. // measured length = 79.20 (2016.08.25)
  44. pcb_length = 79.20;
  45. // kicad width = 19.050
  46. // measured width = 18.82 (2016.08.25)
  47. pcb_width = 18.85;
  48. // ultimaker spec thickness = 1.61
  49. // measured thickness = 1.56 (w/ copper)
  50. pcb_thickness = 1.58;
  51. // tolerance to add to length and width of pcb
  52. //
  53. // measured 3d print width = 18.70 (with pcb_fit = 0.3)
  54. // actual printed = 18.70 - 0.3 = 16.97
  55. // total correction = 18.85 - 16.97 = 1.88
  56. //
  57. pcb_fit = 0.4;
  58. // tolerance add to thickness of pcb
  59. //
  60. // printed with pcb_tfit = 0.15 -> 1.58 + 0.15 = 1.73 (ideal printed)
  61. // measured print channel = 1.63 : 0.1 thinner (ultimaker 2 plus, 2016.08.24)
  62. // measured pcb thickness = 1.58 (othermill)
  63. //
  64. pcb_tfit = 0.15;
  65. // we leave part of the pcb exposed on the bottom of the body so that we
  66. // can solder the wires that connect the microphone with the
  67. // preamplifier, same at the top of the pcb to solder the wires
  68. // to the capsules
  69. pcb_low_exp = 12.0;
  70. pcb_hi_exp = 8.0;
  71. // lip fit for flares
  72. lip_fit = 0.15;
  73. // clearance from the bottom and top of pcb's to the start of the flare,
  74. // this adds space for the protuding molex pins on which we solder
  75. pcb_low_clear = 15.0;
  76. pcb_hi_clear = 15.0;
  77. // depth of slot into which the printed circuit board fits
  78. pcb_slot_depth = 1.0;
  79. // diameter of four conductor cable
  80. cable_diam = 9.5;
  81. // lip that mounts flares into main body box
  82. mount_lip = 10.0;
  83. // capsule array mount, height of flare and stalk
  84. flare_height = 50;
  85. stalk_height = 60;
  86. // wall thickness
  87. wall = 1.0;
  88. // back and front clearance of pcb (components and leads)
  89. pcb_front = 3.00;
  90. pcb_back = 1.80;
  91. // calculated minimum "radius" of microphone box
  92. box_radius = pcb_front + (pcb_thickness + pcb_tfit) + pcb_back + 2 * wall;
  93. // calculated main body corner radius
  94. mount_corner = box_radius - pcb_width / 2 + pcb_slot_depth + 4.0;
  95. // body parameters
  96. render_screw_holes = true;
  97. radial_pcb_offset = 17.0;
  98. octa_pcb_mount_height = pcb_length - pcb_low_exp - pcb_hi_exp;
  99. octa_pcb_radius = radial_pcb_offset + pcb_width/2 + 5 * wall;
  100. // body to flares snap joint arm slot width
  101. snap_joint_slot_w = 0.75;
  102. // width and radius of snap joint hook that locks upper and lower flanges to body
  103. snap_joint_hook_w = 5.0;
  104. snap_joint_hook_r = 1.4;
  105. // dimensions of 12 pin male bottom connector
  106. //
  107. // Amphenol T 3635 002
  108. // 12 pin DIN male to cable, gold plated contacts
  109. //
  110. // inner diameter of connector core
  111. conn_core_diam = 13.00 + 0.2;
  112. // outer diameter of connector core sleeve
  113. conn_core_o_diam = 17.00;
  114. // inner diameter of connector core sleeve
  115. conn_core_s_diam = 15.00;
  116. // from top of connector to sleeve
  117. conn_core_sleeve = 13.00;
  118. // from top of connector to holes
  119. conn_core_holes_h = 6.00;
  120. // between holes
  121. conn_core_holes_w = 9.20;
  122. // hole diameter
  123. conn_core_holes_d = 1.95 + 0.2;
  124. // screw head diameter
  125. conn_core_screw_d = 2.75 + 0.5;
  126. // sleeve overlap
  127. conn_core_overlap = 3.00;
  128. // shock mount parameters
  129. //
  130. internal_ring_height = 55.0;
  131. external_ring_height = 10.0;
  132. rubber_band_angle = 45;
  133. main_radius_inc = (internal_ring_height / 2) / tan(rubber_band_angle);
  134. // gap between internal ring and microphone body
  135. internal_ring_gap = 1.0;
  136. // connector that joins the two internal rings
  137. connector_w = 10.0;
  138. connector_d = 2.0;
  139. // wall thickness and height of shock mount rings
  140. ring_wall = 4 * wall;
  141. ring_ext_height = 6;
  142. // gap between external ring and support arm
  143. ring_arm_gap = 16;
  144. // the main body that holds the phantom power interfaces
  145. module one_pcb_slot (pcb_w, pcb_l, pcb_t, slot_d, front, back, test = false) {
  146. d = pcb_t + front + back;
  147. render() translate([-(pcb_w/2 + wall/2), -back, 0]) {
  148. // make cage with slots for pcb
  149. difference() {
  150. translate([-2 * wall, 0, 0]) {
  151. cube([pcb_w + 4 * wall, d, pcb_l]);
  152. }
  153. translate([slot_d, 0, 0]) {
  154. cube([pcb_w - 2 * slot_d, pcb_t + front + back, pcb_l]);
  155. }
  156. translate([0, back, 0]) {
  157. cube([pcb_w, pcb_t, pcb_l]);
  158. }
  159. // make top and bottom entry channels
  160. translate([slot_d, back + pcb_t/2, 0]) {
  161. rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
  162. }
  163. translate([pcb_w - slot_d, back + pcb_t/2, 0]) {
  164. rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
  165. }
  166. translate([slot_d, back + pcb_t/2, pcb_l - 8.0]) {
  167. rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
  168. }
  169. translate([pcb_w - slot_d, back + pcb_t/2, pcb_l - 8.0]) {
  170. rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
  171. }
  172. }
  173. // add spar in the back
  174. translate([-2 * wall, -back + wall, 0]) {
  175. cube([pcb_w + 4 * wall, wall, pcb_l]);
  176. }
  177. }
  178. // add capacitor if in test mode
  179. if (test) {
  180. cap_diam = 10.2;
  181. translate([0, cap_diam/2 + pcb_t, 0]) {
  182. cylinder(r = cap_diam/2, h = 20, $fn = facets);
  183. }
  184. }
  185. }
  186. module rounded_octagon(height, radius) {
  187. intersection() {
  188. cylinder(r = radius, h = height, $fn = 8);
  189. cylinder(r = radius - wall, h = height + thin_mint, $fn = facets);
  190. }
  191. }
  192. module rounded_octagon_wall(height, radius, wall) {
  193. difference() {
  194. rounded_octagon(height, radius);
  195. rounded_octagon(height + thin_mint, radius - wall);
  196. }
  197. }
  198. module octa_mount_body(height, radius, lower_lip, upper_lip, clear) {
  199. // rotate pcb assembly so it does not interfere with the screws
  200. offset_angle = -16;
  201. // rotate individual pcb's to better use the internal space of the body
  202. twist_angle = 16;
  203. difference() {
  204. union() {
  205. difference() {
  206. union() {
  207. // main body
  208. rounded_octagon_wall(height, radius, 2 * wall);
  209. // slots for printed circuit boards
  210. intersection() {
  211. for (r = [0:360/8:360]) rotate([0, 0, r + offset_angle]) {
  212. translate([radial_pcb_offset, 0, 0]) {
  213. rotate([0, 0, 180 + twist_angle]) {
  214. one_pcb_slot(pcb_width + pcb_fit, height * 2/3, pcb_thickness + pcb_tfit,
  215. pcb_slot_depth, pcb_front, pcb_back, false);
  216. }
  217. }
  218. }
  219. // clip outside
  220. rounded_octagon(height, radius);
  221. }
  222. }
  223. // upper lip for flare to microphone
  224. translate([0, 0, height - upper_lip]) {
  225. rounded_octagon_wall(upper_lip, radius, wall + lip_fit);
  226. }
  227. // lower lip for flare to cable or connector
  228. translate([0, 0, 0]) {
  229. rounded_octagon_wall(upper_lip, radius, wall + lip_fit);
  230. }
  231. }
  232. if (render_screw_holes) {
  233. // add backplates for upper lip screws
  234. for (r = [45, 135, 225, 315]) {
  235. rotate([0, 0, r]) translate([-(radius - 3 * wall), -2.5, 0]) {
  236. cube([2, 5, height]);
  237. }
  238. }
  239. }
  240. }
  241. if (render_screw_holes) {
  242. // make eight holes in the the body for screws that hold both flares
  243. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  244. difference() {
  245. for (z = [lower_lip/2, height - upper_lip/2]) {
  246. for (r = [45, 135, 225, 315]) {
  247. rotate([0, 0, r]) translate([-(radius + 2 * wall), 0, z]) {
  248. rotate([0, 90, 0]) {
  249. cylinder(r = 0.7, h = radius + wall, $fn = facets);
  250. }
  251. }
  252. }
  253. }
  254. cylinder(r = radius/2, h = height);
  255. }
  256. }
  257. }
  258. }
  259. // flare from the body to the microphone stalk
  260. module octa_mount_flare_no_ws(height, lip, transition, radius, top_radius, stalk_height, dot) {
  261. // bottom box
  262. difference() {
  263. union() {
  264. rounded_octagon_wall(height, radius, 2 * wall);
  265. if (render_screw_holes) {
  266. // small pedestals for the screws that attach the flare to the body
  267. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  268. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  269. translate([radius - wall - 1.75, 0, lip/2]) {
  270. rotate([0, 90, 0]) {
  271. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  272. }
  273. }
  274. }
  275. }
  276. }
  277. // flange to mount on body
  278. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  279. // and make a smooth transition to avoid overhangs
  280. translate([0, 0, lip + 1.00]) {
  281. hull() {
  282. rounded_octagon_wall(thin_mint, radius - wall, wall);
  283. translate([0, 0, 1.0]) {
  284. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  285. }
  286. }
  287. }
  288. if (render_screw_holes) {
  289. // holes for screws that attach the flare to the body
  290. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  291. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  292. translate([radius/2, 0, lip/2]) {
  293. rotate([0, 90, 0]) {
  294. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  295. }
  296. }
  297. }
  298. }
  299. }
  300. // flare to round section
  301. translate([0, 0, height]) {
  302. difference() {
  303. hull() {
  304. rounded_octagon(thin_mint, radius);
  305. translate([0, 0, transition]) {
  306. cylinder(r = top_radius, h = thin_mint, $fn = facets);
  307. }
  308. }
  309. hull() {
  310. rounded_octagon(thin_mint, radius - wall);
  311. translate([0, 0, transition]) {
  312. cylinder(r = top_radius - wall, h = thin_mint, $fn = facets);
  313. }
  314. }
  315. }
  316. }
  317. // cylindrical stalk
  318. translate([0, 0, height + transition]) {
  319. difference() {
  320. cylinder(r = top_radius, h = stalk_height, $fn = facets);
  321. cylinder(r = top_radius - wall, h = stalk_height, $fn = facets);
  322. }
  323. // add marker for "back of microphone" orientation
  324. if (dot == 1) {
  325. rotate([0, 0, 90]) {
  326. translate([0, top_radius - wall * 2 / 3, stalk_height - top_radius]) {
  327. difference() {
  328. sphere(r = top_radius / 3, $fn = 32);
  329. translate([0, -top_radius + top_radius / 2, 0]) {
  330. cube([top_radius, top_radius, top_radius], center = true);
  331. }
  332. }
  333. }
  334. }
  335. }
  336. // close stalk and add holes for cables
  337. translate([0, 0, stalk_height - top_radius - wall]) {
  338. difference() {
  339. cylinder(r = top_radius - wall, h = top_radius + wall, $fn = facets);
  340. translate([0, 0, 0]) {
  341. sphere(r = top_radius - wall, $fn = facets);
  342. }
  343. wire_diam = mic_wire_diam + mic_wire_fit;
  344. for (r = [0, 90, 180, 270]) rotate([0, 0, r]) {
  345. for (t = [0, 1]) {
  346. rotate([0, 0, 45 * t]) translate([top_radius - wire_diam - t * wire_diam * 2/3, 0, wall]) {
  347. cylinder(r = wire_diam / 2, h = top_radius * 2, $fn = facets);
  348. }
  349. }
  350. }
  351. translate([0, 0, wall]) cylinder(r = wire_diam, h = top_radius * 2, $fn = facets);
  352. }
  353. }
  354. }
  355. }
  356. module octa_mount_flare(height, lip, transition, radius, top_radius, stalk_height, dot) {
  357. // transition from bottom box to windscreen mounting thread
  358. transition_to_threads = 5;
  359. // bottom box
  360. difference() {
  361. union() {
  362. rounded_octagon_wall(height, radius, 2 * wall);
  363. if (render_screw_holes) {
  364. // small pedestals for the screws that attach the flare to the body
  365. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  366. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  367. translate([radius - wall - 1.75, 0, lip/2]) {
  368. rotate([0, 90, 0]) {
  369. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  370. }
  371. }
  372. }
  373. }
  374. // indicator of "front" of microphone
  375. rotate([0, 0, 180 + 22.5]) translate([radius - 2, 0, 0]) {
  376. cylinder(r = 1.0, h = lip/2, $fn = facets);
  377. }
  378. // stops for shock mount
  379. for (r = [0, 90, 180, 270]) rotate([0, 0, r - 22.5]) {
  380. translate([radius - 3.4, 0, 0]) scale([2.0, 1.0, 1.0]) {
  381. difference() {
  382. cylinder(r = 2.0, h = lip + transition_to_threads, $fn = facets);
  383. translate([-2, -2.0, 0]) cube([2.0, 4.0, lip + transition_to_threads]);
  384. }
  385. }
  386. }
  387. }
  388. // flange to mount on body
  389. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  390. // and make a smooth transition to avoid overhangs
  391. translate([0, 0, lip + 1.00]) {
  392. hull() {
  393. rounded_octagon_wall(thin_mint, radius - wall, wall);
  394. translate([0, 0, 1.0]) {
  395. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  396. }
  397. }
  398. }
  399. if (render_screw_holes) {
  400. // holes for screws that attach the flare to the body
  401. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  402. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  403. translate([radius/2, 0, lip/2]) {
  404. rotate([0, 90, 0]) {
  405. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  406. }
  407. }
  408. }
  409. }
  410. }
  411. // flare to windscreen threads
  412. translate([0, 0, height - windscreen_thread_height - transition_to_threads]) {
  413. difference() {
  414. hull() {
  415. rounded_octagon(thin_mint, radius);
  416. translate([0, 0, transition_to_threads]) {
  417. cylinder(r = windscreen_thread_radius + 0.5, h = thin_mint, $fn = facets);
  418. }
  419. }
  420. hull() {
  421. rounded_octagon(thin_mint, radius - wall);
  422. translate([0, 0, transition_to_threads]) {
  423. cylinder(r = windscreen_thread_radius - windscreen_thread_depth - wall, h = thin_mint, $fn = facets);
  424. }
  425. }
  426. }
  427. }
  428. // windscreen mounting threads
  429. translate([0, 0, height - windscreen_thread_height]) difference() {
  430. metric_thread(diameter = windscreen_thread_radius * 2, pitch = windscreen_thread_pitch,
  431. length = windscreen_thread_height, angle = windscreen_thread_angle, internal = false);
  432. cylinder(r = windscreen_thread_radius - wall - windscreen_thread_depth, h = windscreen_thread_height + thin_mint, $fn = facets);
  433. }
  434. // flare to stalk
  435. translate([0, 0, height - 1.5]) {
  436. difference() {
  437. hull() {
  438. cylinder(r = windscreen_thread_radius - windscreen_thread_depth, h = thin_mint, $fn = facets);
  439. translate([0, 0, transition + 1.5]) {
  440. cylinder(r = top_radius, h = thin_mint, $fn = facets);
  441. }
  442. }
  443. hull() {
  444. cylinder(r = windscreen_thread_radius - windscreen_thread_depth - wall, h = thin_mint, $fn = facets);
  445. translate([0, 0, transition + 1.5]) {
  446. cylinder(r = top_radius - wall, h = thin_mint, $fn = facets);
  447. }
  448. }
  449. }
  450. }
  451. // cylindrical stalk
  452. translate([0, 0, height + transition]) {
  453. difference() {
  454. cylinder(r = top_radius, h = stalk_height, $fn = facets);
  455. cylinder(r = top_radius - wall, h = stalk_height, $fn = facets);
  456. }
  457. // close stalk and add holes for cables
  458. translate([0, 0, stalk_height - top_radius - wall]) {
  459. difference() {
  460. cylinder(r = top_radius - wall, h = top_radius + wall, $fn = facets);
  461. translate([0, 0, 0]) {
  462. sphere(r = top_radius - wall, $fn = facets);
  463. }
  464. wire_diam = mic_wire_diam + mic_wire_fit;
  465. for (r = [0, 90, 180, 270]) rotate([0, 0, r]) {
  466. for (t = [0, 1]) {
  467. rotate([0, 0, 45 * t]) translate([top_radius - wire_diam - t * wire_diam * 2/3, 0, wall]) {
  468. cylinder(r = wire_diam / 2, h = top_radius * 2, $fn = facets);
  469. }
  470. }
  471. }
  472. translate([0, 0, wall]) cylinder(r = wire_diam, h = top_radius * 2, $fn = facets);
  473. }
  474. }
  475. }
  476. }
  477. // flares from the body to a dual cable housing
  478. module octa_mount_flare_dual(height, lip, transition, xradius, yradius, corner, top_radius, stalk_height) {
  479. // hack to get it to render, fix problem in rounded_block when radius is equal to corner...
  480. delta = 0.001;
  481. difference() {
  482. union() {
  483. // bottom rounded box
  484. difference() {
  485. rounded_block(height, xradius, yradius, corner);
  486. rounded_block_relative(height, xradius, yradius, corner, -(2 * wall));
  487. // flange to mount on body
  488. rounded_block_relative(lip + 1.00, xradius, yradius, corner, - (wall));
  489. // and make a smooth transition to avoid overhangs
  490. translate([0, 0, lip + 1.00]) {
  491. hull() {
  492. rounded_block_relative(thin_mint, xradius, yradius, corner, - wall);
  493. translate([0, 0, 1.0]) {
  494. rounded_block_relative(thin_mint, xradius, yradius, corner, - 2 * wall);
  495. }
  496. }
  497. }
  498. }
  499. // flare to rounded section
  500. translate([0, 0, height]) {
  501. difference() {
  502. hull() {
  503. rounded_block(thin_mint, xradius, yradius, corner);
  504. translate([0, 0, transition]) {
  505. rounded_block(thin_mint, top_radius + wall / 2, top_radius * 2 + wall / 2, top_radius - delta);
  506. }
  507. }
  508. hull() {
  509. rounded_block_relative(thin_mint, xradius, yradius, corner, - 2 * wall);
  510. translate([0, -top_radius, transition]) {
  511. cube([thin_mint, (top_radius) * 2, thin_mint]);
  512. }
  513. }
  514. }
  515. }
  516. // corner box cable stalk
  517. translate([0, 0, height + transition]) {
  518. rounded_block(stalk_height, top_radius + wall / 2, top_radius * 2 + wall / 2, top_radius - delta);
  519. }
  520. }
  521. // holes for the cables
  522. for (offset = [top_radius - wall/2, -(top_radius - wall/2)]) {
  523. translate([0, offset, 0]){
  524. cylinder(r = top_radius - wall, h = height + transition + stalk_height, $fn = facets);
  525. }
  526. }
  527. }
  528. }
  529. // flare from the body to a dual conector housing
  530. // bottom connector holder
  531. module tetra_mount_connector_holder(height, radius, inside_radius, sleeve_height, sleeve_radius) {
  532. difference() {
  533. union() {
  534. cylinder(r = radius, h = height, $fn = facets);
  535. // add seats for screw heads
  536. for (m = [-1, 1]) translate([m * conn_core_holes_w / 2, radius / 2, conn_core_holes_h]) {
  537. rotate([90, 0, 0]) {
  538. scale([1, 1, 1]) cylinder(r = conn_core_screw_d / 2, h = radius * 1.43, $fn = facets);
  539. }
  540. }
  541. }
  542. cylinder(r = inside_radius, h = height, $fn = facets);
  543. // transition from thin wall to thick wall at the bottom of connector
  544. *cylinder(r1 = radius - wall, r2 = inside_radius, h = 2.0, $fn = facets);
  545. // holes for connector core screws
  546. for (m = [-1, 1]) translate([m * conn_core_holes_w / 2, - radius / 3, conn_core_holes_h]) {
  547. rotate([90, 0, 0]) {
  548. cylinder(r = conn_core_holes_d / 2, h = radius, $fn = facets);
  549. }
  550. }
  551. // substract cutout for screw heads
  552. for (m = [-1, 1]) translate([m * conn_core_holes_w / 2, - radius + 1.5, conn_core_holes_h]) {
  553. rotate([90, 0, 0]) {
  554. cylinder(r = conn_core_screw_d / 2, h = 2.0, $fn = facets);
  555. }
  556. }
  557. }
  558. // thinner cylinder sits inside connector sleeve
  559. translate([0, 0, height]) {
  560. difference() {
  561. cylinder(r = sleeve_radius, h = sleeve_height, $fn = facets);
  562. cylinder(r = inside_radius, h = sleeve_height, $fn = facets);
  563. }
  564. }
  565. }
  566. // flare to dual cable connectors
  567. module octa_mount_flare_connector(height, lip, transition, radius, top_xradius, top_yradius) {
  568. // hack to get it to render, fix problem in rounded_block when radius is equal to corner...
  569. delta = 0.001;
  570. // bottom rounded box
  571. difference() {
  572. union() {
  573. rounded_octagon_wall(height, radius, 2 * wall);
  574. if (render_screw_holes) {
  575. // small pedestals for the screws that attach the flare to the body
  576. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  577. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  578. translate([radius - wall - 1.75, 0, lip/2]) {
  579. rotate([0, 90, 0]) {
  580. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  581. }
  582. }
  583. }
  584. }
  585. }
  586. // flange to mount on body
  587. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  588. // and make a smooth transition to avoid overhangs
  589. translate([0, 0, lip + 1.00]) {
  590. hull() {
  591. rounded_octagon_wall(thin_mint, radius - wall, wall);
  592. translate([0, 0, 1.0]) {
  593. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  594. }
  595. }
  596. }
  597. if (render_screw_holes) {
  598. // holes for screws that attach the flare to the body
  599. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  600. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  601. translate([radius/2, 0, lip/2]) {
  602. rotate([0, 90, 0]) {
  603. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  604. }
  605. }
  606. }
  607. }
  608. }
  609. // flare to rounded section
  610. translate([0, 0, height]) {
  611. difference() {
  612. hull() {
  613. rounded_octagon(thin_mint, radius);
  614. translate([0, 0, transition]) {
  615. rounded_block(thin_mint, top_xradius, top_yradius, top_xradius - delta);
  616. }
  617. }
  618. hull() {
  619. rounded_octagon(thin_mint, radius - 2 * wall);
  620. translate([0, -top_xradius, transition]) {
  621. cube([thin_mint, (top_xradius) * 2, thin_mint]);
  622. }
  623. }
  624. }
  625. }
  626. }
  627. // flare to d-sub 25 pin connector
  628. module octa_mount_flare_dsub(height, lip, transition, radius, top_xradius, top_yradius) {
  629. // bottom octagonal box
  630. difference() {
  631. union() {
  632. rounded_octagon_wall(height, radius, 2 * wall);
  633. if (render_screw_holes) {
  634. // small pedestals for the screws that attach the flare to the body
  635. // (number 0 size, 1/4" long = thread diameter: 1.6mm, head diameter: 2.75)
  636. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  637. translate([radius - wall - 1.75, 0, lip/2]) {
  638. rotate([0, 90, 0]) {
  639. cylinder(r = 1.5, h = 2 * wall, $fn = facets);
  640. }
  641. }
  642. }
  643. }
  644. }
  645. // flange to mount on body
  646. rounded_octagon_wall(lip + 1.00, radius - wall, wall);
  647. // and make a smooth transition to avoid overhangs
  648. translate([0, 0, lip + 1.00]) {
  649. hull() {
  650. rounded_octagon_wall(thin_mint, radius - wall, wall);
  651. translate([0, 0, 1.0]) {
  652. rounded_octagon_wall(thin_mint, radius - 2 * wall, wall);
  653. }
  654. }
  655. }
  656. if (render_screw_holes) {
  657. // holes for screws that attach the flare to the body
  658. // Number 0 Size, 1/4" Long = thread diameter: 1.6mm, head diameter: 2.75
  659. for (r = [45, 135, 225, 315]) rotate([0, 0, r]) {
  660. translate([radius/2, 0, lip/2]) {
  661. rotate([0, 90, 0]) {
  662. cylinder(r = (1.6 + 0.1)/2, h = radius, $fn = facets);
  663. }
  664. }
  665. }
  666. }
  667. }
  668. // flare to db25 connector mounting plate
  669. expand = 3;
  670. // height of connector
  671. guard_height = 9.525;
  672. // thickness of db25 plate
  673. db25_t = 3 * wall;
  674. translate([0, 0, height]) {
  675. minkr = 2.0;
  676. difference() {
  677. hull() {
  678. rounded_octagon(thin_mint, radius);
  679. rotate([0, 0, -22.5]) translate([0, 0, transition]) {
  680. minkowski() {
  681. db25_plate(th = thin_mint, border = expand);
  682. cylinder(r = minkr, h = thin_mint, $fn = facets);
  683. }
  684. }
  685. }
  686. hull() {
  687. rounded_octagon(thin_mint, radius - 2 * wall);
  688. rotate([0, 0, -22.5]) translate([0, 0, transition]) {
  689. minkowski() {
  690. db25_plate(th = thin_mint);
  691. cylinder(r = minkr, h = thin_mint, $fn = facets);
  692. }
  693. }
  694. }
  695. }
  696. // db25 mounting plate
  697. rotate([0, 0, -22.5]) translate([0, 0, transition]) {
  698. difference() {
  699. db25_plate(th = db25_t, border = expand);
  700. db25_cutout(th = db25_t);
  701. }
  702. // add guard wall around connector
  703. difference() {
  704. minkowski() {
  705. db25_plate(th = guard_height + db25_t, border = expand);
  706. cylinder(r = minkr, h = thin_mint, $fn = facets);
  707. }
  708. db25_plate(th = guard_height + db25_t + thin_mint, border = expand);
  709. }
  710. }
  711. // for testing
  712. *rotate([0, 0, -22.5]) translate([0, 0, 30]) db25_plate(th = 1.0);
  713. }
  714. }
  715. module octa_mount_stand(height, lip, transition, radius, top_xradius, top_yradius) {
  716. // flare to db25 connector mounting plate
  717. expand = 3;
  718. // height of connector
  719. guard_height = 9.525;
  720. // thickness of db25 plate
  721. db25_t = 3 * wall;
  722. translate([0, 0, height]) {
  723. minkr = 2.0;
  724. // db25 mounting plate
  725. rotate([0, 0, -22.5]) translate([0, 0, transition]) {
  726. // add guard wall around connector
  727. difference() {
  728. minkowski() {
  729. db25_plate(th = guard_height + db25_t, border = 1.8 * expand);
  730. cylinder(r = minkr, h = thin_mint, $fn = facets);
  731. }
  732. db25_plate(th = guard_height + db25_t + thin_mint, border = 1.8 * expand);
  733. }
  734. }
  735. // ring and connector
  736. translate([0, 0, height]) {
  737. o_rad = 8;
  738. i_rad = 3;
  739. rotate([0, 90, -22.5]) {
  740. // connector
  741. translate([-guard_height, 13, 0]) cube([guard_height, 10, o_rad/2]);
  742. translate([-guard_height, 9, o_rad/4]) rotate([0, 90, 0]) {
  743. difference() {
  744. cylinder(r = o_rad, h = guard_height, $fn = facets);
  745. translate([-10, -16, 0]) cube([20, 20, 10]);
  746. }
  747. }
  748. // ring
  749. translate([-o_rad, 30, 0]) {
  750. shock_mount_ring(o_rad, i_rad, ring_wall);
  751. }
  752. }
  753. }
  754. }
  755. }
  756. // top conical section that plugs into capsule array
  757. module octa_capsule_array_mount(angles) {
  758. difference() {
  759. union() {
  760. difference() {
  761. cylinder(h = mount_top_height, r1 = mount_radius + wall, r2 = mount_radius_capsule + 0.9, $fn = facets);
  762. cylinder(h = mount_top_height, r1 = mount_radius, r2 = mount_radius_capsule - 2 * wall * wall, $fn = facets);
  763. }
  764. // second set of optional "leaves" to get a better mount
  765. *difference() {
  766. cylinder(h = mount_top_height, r1 = mount_radius + wall, r2 = mount_radius_capsule * 0.8, $fn = facets);
  767. cylinder(h = mount_top_height, r1 = mount_radius, r2 = mount_radius_capsule * 0.8 - 1.2 * wall, $fn = facets);
  768. }
  769. }
  770. // indentations that match the four lower capsule holders
  771. // add ridge height adjustment
  772. translate([0, 0, mount_top_height + (mic_radius - capsule_height) + capsule_height * cos(90 - elev_angle) - 2]) {
  773. for (az = angles) {
  774. rotate([0, 180 - elev_angle, az + 45]) {
  775. translate([0, 0, mic_radius - capsule_height]) {
  776. capsule(leg_angles, 0, 1, ridge_wfit, ridge_hfit, 1);
  777. }
  778. }
  779. }
  780. }
  781. // indentations at the top to open up the array a bit
  782. translate([0, 0, mount_top_height + mount_radius_capsule / 8]) {
  783. for (rot = [45, 135, -135, -45]) {
  784. translate([0, 0, 0]) {
  785. rotate([0, 90, rot]) {
  786. scale([0.5, 0.5, 1.3]) linear_extrude(height = mount_radius_capsule, scale = 2.8) {
  787. minkowski() {
  788. polygon(points = [[0, mount_radius_capsule * 0.2], [0, - mount_radius_capsule * 0.2],
  789. [mount_radius_capsule, 0]]);
  790. circle(r = 2.4, $fn = facets);
  791. }
  792. }
  793. }
  794. }
  795. }
  796. }
  797. }
  798. }
  799. //
  800. // shock mount components
  801. //
  802. // shock mount band that attaches snugly to microphone body
  803. module octa_shock_mount_band(band_height, radius) {
  804. rotate([0, 0, 22.5]) {
  805. // inner octagon, hugs the body
  806. difference() {
  807. rounded_octagon_wall(band_height, radius + 3 * wall, 2 * wall);
  808. rotate([0, 0, -22.5 + 90]) translate([-40, -20, 0]) {
  809. cube([80, 40, band_height + thin_mint]);
  810. }
  811. }
  812. // the outer octagon
  813. rounded_octagon_wall(band_height, radius + 6, 2 * wall);
  814. }
  815. // joins inner and outer octagons
  816. for (m = [0, 1]) mirror([m, 0, 0]) {
  817. translate([radius, -10, 0]) {
  818. cube([2, 20, band_height]);
  819. }
  820. }
  821. }
  822. // shock mount internal ring
  823. module octa_shock_mount_internal_ring(height, radius, band_height, corner) {
  824. // octagonal band
  825. octa_shock_mount_band(band_height, radius);
  826. // 8 columns for mounting rubber bands
  827. for (r = [0, 90, 180, 270]) rotate([0, 0, r]) {
  828. for (m = [0, 1]) mirror([m, 0, 0]) {
  829. translate([radius + 2.25, radius/2 - 2, 0]) {
  830. rotate([0, 0, 0]) {
  831. difference() {
  832. // columns
  833. union() {
  834. translate([3, 0, 0]) rotate([0, 0, 45]) scale([1.4, 0.8, 1.0])
  835. cylinder(r = 3, h = height, $fn = facets);
  836. }
  837. // lower slots for rubber bands
  838. rotate([0, 0, 45]) translate([2.5, radius/2, 2.0]) scale([1.0, 1.0, 2.2]) rotate([90, 0, 0]) {
  839. cylinder(r = 1.1, h = radius * 2, $fn = facets);
  840. }
  841. // upper slots for rubber bands
  842. rotate([0, 0, 45]) translate([2.5, radius/2, height - 2.0]) scale([1.0, 1.0, 2.2]) rotate([90, 0, 0]) {
  843. cylinder(r = 1.1, h = radius * 2, $fn = facets);
  844. }
  845. }
  846. }
  847. }
  848. }
  849. // walls between columns so that they cannot bend
  850. rotate([0, 0, 45]) translate([radius + 2.25 * wall, -14, 0]) {
  851. cube([wall, 28, height]);
  852. }
  853. }
  854. }
  855. // shock mount external ring
  856. module octa_shock_mount_external_ring(height, radius, corner) {
  857. // main ring
  858. rotate([0, 0, 22.5]) rounded_octagon_wall(ring_ext_height, radius, ring_wall);
  859. for (rot = [0, 90, 180, 270]) {
  860. // anchors for rubber bands
  861. rotate([0, 0, rot + 45]) {
  862. translate([radius * cos(22.5) + ring_wall + 0.5, -6, 0]) {
  863. minkowski() {
  864. cube([4 - 2, 12, ring_ext_height]);
  865. cylinder(r = 1.5, h = thin_mint, $fn = facets);
  866. }
  867. }
  868. translate([radius * cos(22.5), -2, 0]) {
  869. cube([7, 4, ring_ext_height]);
  870. }
  871. }
  872. }
  873. // connection to hub
  874. translate([radius * cos(22.5), -2, 0]) {
  875. cube([10, 4, ring_ext_height * 2]);
  876. }
  877. // reinforce connection to ring
  878. intersection() {
  879. translate([radius * cos(22.5), 0, 0]) {
  880. difference() {
  881. cylinder(r = 6, h = ring_ext_height * 2, $fn = 4);
  882. translate([-10, -5, 0]) {
  883. cube([10, 10, ring_ext_height * 2]);
  884. }
  885. }
  886. }
  887. translate([radius + ring_wall - 7, 0, 0]) {
  888. rotate([0, 0, 45]) cylinder(r1 = radius * 1.5, r2 = ring_wall/2 + 1, h = ring_ext_height * 2, $fn = 4);
  889. }
  890. }
  891. // reinforcement
  892. intersection() {
  893. rotate([0, 0, 22.5]) rounded_octagon_wall(ring_ext_height * 2, radius, ring_wall);
  894. translate([radius - 6.5, 0, 0]) {
  895. rotate([0, 0, 45]) cylinder(r1 = radius * 1.5, r2 = ring_wall/2 + 1, h = ring_ext_height * 2, $fn = 4);
  896. }
  897. }
  898. // rotating mount
  899. o_rad = 8;
  900. i_rad = 3;
  901. rotate([0, 90, -90]) {
  902. translate([-o_rad, radius * cos(22.5) + o_rad + ring_wall * 2, -2]) {
  903. shock_mount_ring(o_rad, i_rad, ring_wall);
  904. }
  905. }
  906. }
  907. // stand mount with quick clip connector
  908. module octa_quik_release_stand_mount(band_height, radius) {
  909. vertical_offset = 18;
  910. mount_offset = 3.0;
  911. // octagonal band
  912. octa_shock_mount_band(band_height, radius);
  913. difference() {
  914. hull() {
  915. // attachment "plate"
  916. translate([radius, -10, 0]) {
  917. cube([2, 20, band_height]);
  918. }
  919. // quik release adapter tube
  920. translate([(radius + mic_mount_radius + mic_mount_wall + 6.0 + mount_offset) * cos(22.5), 0,
  921. vertical_offset]) {
  922. cylinder(r = mic_mount_radius + mic_mount_fit + mic_mount_wall, h = band_height - vertical_offset, $fn = facets);
  923. }
  924. }
  925. // cutout for the center hole and side hole of the adapter
  926. translate([(radius + mic_mount_radius + mic_mount_wall + 6.0 + mount_offset) * cos(22.5), 0,
  927. vertical_offset + thin_mint]) {
  928. cylinder(r = mic_mount_radius + mic_mount_fit, h = mic_mount_height, $fn = facets);
  929. }
  930. }
  931. translate([(radius + mic_mount_radius + mic_mount_wall + 6.0 + mount_offset) * cos(22.5), 0,
  932. mic_mount_height + vertical_offset + thin_mint]) {
  933. rotate([0, 180, 180]) quik_release_stand_adapter(mic_mount_height, mount_wall, mic_mount_wall);
  934. }
  935. }
  936. ////
  937. //// render all the different parts
  938. ////
  939. // microphone body: flare to capsule array (slips into PCB holder body)
  940. //
  941. module render_octa_capsule_flare(z_offset) {
  942. translate([0, 0, z_offset]) {
  943. octa_mount_flare(pcb_hi_clear + pcb_hi_exp, mount_lip, flare_height, octa_pcb_radius, mount_radius + wall, stalk_height, 1);
  944. translate([0, 0, pcb_hi_clear + pcb_hi_exp + flare_height + stalk_height]) {
  945. octa_capsule_array_mount([45, 135, -45, -135]);
  946. }
  947. }
  948. }
  949. // microphone body: main body, holds printed circuit boards
  950. //
  951. module render_octa_pcb_mount(z_offset, showint) {
  952. translate([0, 0, z_offset]) {
  953. octa_mount_body(octa_pcb_mount_height, octa_pcb_radius, mount_lip, mount_lip, 0);
  954. // add ccrma logo
  955. rotate([0, 0, -90 + 22.5]) {
  956. translate([0, -(octa_pcb_radius - 3.75), octa_pcb_mount_height / 2]) {
  957. rotate([90, 270, 0]) {
  958. logo_scale = 1 / 2.4;
  959. scale([logo_scale, logo_scale, 1.0]) {
  960. ccrma_logo(1.65);
  961. }
  962. }
  963. }
  964. }
  965. }
  966. }
  967. // microphone body: flare to microphone cable (slips into PCB holder body)
  968. //
  969. module render_octa_cable_flare(z_offset, flip) {
  970. translate([0, 0, z_offset]) {
  971. octa_mount_flare_dual(pcb_low_clear + pcb_low_exp, mount_lip, 20, box_radius + wall, box_radius * 2 - wall,
  972. mount_corner, cable_diam / 2 + wall, 10, 0);
  973. }
  974. }
  975. // microphone body: flare to dual cable connectors (slips into PCB holder body)
  976. //
  977. module render_octa_connector_flare(z_offset, flip) {
  978. conn_offset = 2.0;
  979. conn_wall = conn_core_o_diam / 2 - conn_core_diam / 2;
  980. translate([0, 0, z_offset]) {
  981. difference() {
  982. union() {
  983. octa_mount_flare_connector(pcb_low_clear + pcb_low_exp, mount_lip, 20,
  984. octa_pcb_radius,
  985. conn_core_o_diam / 2, conn_core_o_diam + conn_offset);
  986. for (m = [0, 1]) mirror([0, m, 0]) translate([0, conn_core_o_diam / 2 + conn_offset, pcb_low_clear + pcb_low_exp + 20]) {
  987. // add two connectors
  988. rotate([0, 0, -90]) {
  989. tetra_mount_connector_holder(conn_core_sleeve, conn_core_o_diam / 2, conn_core_diam / 2,
  990. conn_core_overlap, conn_core_s_diam / 2);
  991. }
  992. // add wall in between the two connectors
  993. translate([- 2 * wall, - (conn_core_o_diam / 2 + conn_offset), 0]) {
  994. cube([4 * wall, conn_offset + wall, 10]);
  995. }
  996. }
  997. }
  998. // redo the hole in the connector holder so that it drills into the top of the flare
  999. for (m = [0, 1]) mirror([0, m, 0]) translate([0, conn_core_o_diam / 2 + conn_offset, 0]) {
  1000. cylinder(r = conn_core_diam / 2, h = 100, $fn = facets);
  1001. }
  1002. }
  1003. }
  1004. }
  1005. // microphone body: flare to db25 connector (slips into PCB holder body)
  1006. //
  1007. module render_octa_mount_dsub_flare(z_offset, flip) {
  1008. updown = 0;
  1009. if (flip) {
  1010. updown = 180;
  1011. }
  1012. rotate([0, updown, 90]) {
  1013. conn_offset = 2.0;
  1014. translate([0, 0, -mount_lip]) {
  1015. octa_mount_flare_dsub(pcb_low_clear + pcb_low_exp, mount_lip, 20,
  1016. octa_pcb_radius,
  1017. conn_core_o_diam / 2, conn_core_o_diam + conn_offset);
  1018. }
  1019. }
  1020. }
  1021. // microphone body: render all parts with a vertical separation
  1022. //
  1023. module render_octa_body(z_offset, spread, showint) {
  1024. rotate([0, 180, 0]) {
  1025. render_octa_mount_dsub_flare(0);
  1026. }
  1027. lippy = spread - mount_lip;
  1028. render_octa_pcb_mount(lippy, showint);
  1029. render_octa_capsule_flare(octa_pcb_mount_height + 2 * lippy);
  1030. }
  1031. // microphone: render the full assembly with vertical separation between components
  1032. //
  1033. module render_octa_microphone(z_offset, spread) {
  1034. render_octa_body(z_offset, spread);
  1035. lippy = spread - mount_lip;
  1036. render_octa_capsule_array(z_offset + octa_pcb_mount_height + mount_top_height +
  1037. flare_height + stalk_height + pcb_hi_clear + pcb_hi_exp + 2 * lippy + spread + mic_radius);
  1038. }
  1039. // microphone: render the full assembly with vertical separation between components
  1040. // cut out half of the assembly so that we can see the inside
  1041. //
  1042. module render_octa_microphone_cutout(z_offset, spread) {
  1043. difference() {
  1044. render_octa_microphone(z_offset, spread);
  1045. // a cube that blots out 1/4 of the microphone
  1046. rotate([0, 0, 90]) {
  1047. translate([0, 0, -50]) {
  1048. cube([50, 100, 650]);
  1049. }
  1050. }
  1051. }
  1052. }
  1053. // shock mount: microphone clip on stand mount
  1054. //
  1055. module render_octa_shock_mount_stand(z_offset) {
  1056. translate([z_offset]) {
  1057. shock_mount_stand(mic_mount_height, mount_wall, mic_mount_wall);
  1058. }
  1059. }
  1060. // shock mount: external ring
  1061. //
  1062. module render_octa_shock_mount_external_ring_old(z_offset) {
  1063. translate([0, 0, z_offset]) {
  1064. shock_mount_external_ring(external_ring_height, box_radius + wall, box_radius * 2 - wall, mount_corner, main_radius_inc, 0);
  1065. }
  1066. }
  1067. module render_octa_shock_mount_external_ring(z_offset) {
  1068. translate([0, 0, z_offset]) {
  1069. octa_shock_mount_external_ring(external_ring_height, octa_pcb_radius + internal_ring_gap + main_radius_inc + 5.25, 20);
  1070. }
  1071. }
  1072. // shock mount: bottom internal ring
  1073. //
  1074. module render_octa_shock_mount_internal_ring_bot(z_offset) {
  1075. translate([0, 0, z_offset]) {
  1076. shock_mount_internal_ring(external_ring_height, box_radius + wall, box_radius * 2 - wall, mount_corner, internal_ring_gap, 1);
  1077. }
  1078. }
  1079. module render_octa_shock_mount_internal_ring_bot(z_offset) {
  1080. translate([0, 0, z_offset]) {
  1081. shock_mount_internal_ring(external_ring_height, A/2 + wall, A/2 + 3, octa_pcb_radius * 2/3, internal_ring_gap, 1);
  1082. }
  1083. }
  1084. // shock mount: top internal ring
  1085. //
  1086. module render_octa_shock_mount_internal_ring_top_old(z_offset) {
  1087. translate([0, 0, z_offset]) {
  1088. shock_mount_internal_ring(external_ring_height, box_radius + wall, box_radius * 2 - wall, mount_corner, internal_ring_gap, 0);
  1089. }
  1090. }
  1091. module render_octa_shock_mount_internal_ring_top(z_offset) {
  1092. translate([0, 0, z_offset]) {
  1093. shock_mount_internal_ring(external_ring_height, A/2 + wall, A/2 + 3, octa_pcb_radius * 2/3, internal_ring_gap, 0);
  1094. }
  1095. }
  1096. // shock mount: all four internal ring connectors
  1097. //
  1098. module render_octa_shock_mount_ring_connectors(offset) {
  1099. for (o = [0, 1, 2, 3]) {
  1100. translate([-18, (10 + offset) * o, 0]) {
  1101. shock_mount_connector(internal_ring_height, 4, connector_w, connector_d, 0.1);
  1102. }
  1103. }
  1104. }
  1105. // shock mount: render all parts
  1106. //
  1107. module render_octa_shock_mount(z_offset) {
  1108. // internal rings
  1109. translate([0, 0, z_offset + internal_ring_height / 2]) {
  1110. render_octa_shock_mount_internal_ring_top(0);
  1111. rotate([0, 180, 0]) {
  1112. render_octa_shock_mount_internal_ring_bot(internal_ring_height + 2);
  1113. }
  1114. // insert the connecting rods
  1115. for (r = [0, 90, 180, 270]) {
  1116. rotate([0, 0, r]) {
  1117. translate([((r % 180) ? box_radius * 2 : box_radius) + 3 * wall + internal_ring_gap, 0, -1]) {
  1118. rotate([0, 90, 0]) {
  1119. translate([-4, -5, 1]) {
  1120. shock_mount_connector(internal_ring_height, 4, connector_w, connector_d, 0.1);
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. }
  1127. // external ring
  1128. translate([0, 0, z_offset - external_ring_height / 4]) {
  1129. render_octa_shock_mount_external_ring(0);
  1130. }
  1131. // mount to stand
  1132. 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)]) {
  1133. render_octa_shock_mount_stand(0);
  1134. }
  1135. }