1
0

Octathingy_mount_pcb.scad 43 KB

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