1
0

Octathingy_mount_pcb.scad 42 KB

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