Octathingy_mount_pcb.scad 43 KB

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