1
0

TinySpHEAR_mount_pcb.scad 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. //
  2. // *SpHEAR Project (Spherical Harmonics Ears),
  3. //
  4. // Mount for four interface printed circuit boards
  5. //
  6. // Copyright 2015-2016, Fernando Lopez-Lezcano, All Rights Reserved
  7. // nando@ccrma.stanford.edu
  8. //
  9. //
  10. // This program is free software: you can redistribute it and/or modify
  11. // it under the terms of the GNU General Public License as published by
  12. // the Free Software Foundation, either version 3 of the License, or
  13. // (at your option) any later version.
  14. //
  15. // This program is distributed in the hope that it will be useful,
  16. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. // GNU General Public License for more details.
  19. //
  20. // You should have received a copy of the GNU General Public License
  21. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. //
  23. //
  24. // 3d Models released under the Creative Commons license as follows:
  25. // Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
  26. // http://creativecommons.org/licenses/by-nc-sa/4.0/
  27. include <TinySpHEAR_common.scad>;
  28. // size of printed circuit board
  29. pcb_length = 85.090;
  30. // measured = 16.26 (fit = 0.25)
  31. pcb_width = 16.51;
  32. // measured = 1.33 (fit = 0.28)
  33. pcb_thickness = 1.61;
  34. // we leave 12mm of the pcb exposed on the bottom of the body so that we
  35. // can solder the wires that connect the microphone with the
  36. // preamplifier, same at the top of the pcb to solder the wires
  37. // to the capsules
  38. pcb_low_exp = 12.0;
  39. pcb_hi_exp = 8.0;
  40. // diameter of four conductor cable
  41. cable_diam = 9.5;
  42. // lip that mounts flares into main body box
  43. mount_lip = 6.0;
  44. // main body corner radius
  45. mount_corner = 10.0;
  46. // capsule array mount, height of flare and stalk
  47. flare_height = 50;
  48. stalk_height = 40;
  49. // add to length and width of pcb
  50. pcb_fit = 0.25 / 2;
  51. // add to thickness of pcb
  52. pcb_tfit = 0.3;
  53. // lip fit for flares
  54. // 0.20 seems to be fine (0.3 was too lose)
  55. lip_fit = 0.20 / 2;
  56. // wall thickness
  57. wall = 1.0;
  58. // back and front clearance of pcb (components and leads)
  59. // pcb_front = 10.2;
  60. pcb_front = 12.5;
  61. pcb_back = 2.0;
  62. // calculated minimum "radius" of microphone box
  63. box_radius = pcb_front + (pcb_thickness + pcb_tfit) + pcb_back + 2 * wall;
  64. // the printed circuit board
  65. module pcb(length, width, thick) {
  66. translate([-width/2, 0, 0]) {
  67. cube([width, thick, length]);
  68. }
  69. }
  70. // the printed circuit board plus space in the front and back for components
  71. module pcb_clear(length, width, thick, slot_depth, front, back) {
  72. translate([0, - (thick + front)]) {
  73. pcb(length, width, thick);
  74. // clear space in the front
  75. translate([- (width/2 - slot_depth), thick, 0]) {
  76. cube([width - 2 * slot_depth, front, length]);
  77. }
  78. // clear space in the back
  79. translate([- (width/2 - slot_depth), - back, 0]) {
  80. cube([width - 2 * slot_depth, back, length]);
  81. }
  82. }
  83. }
  84. // all four printed circuit boards
  85. module tetra_pcb_clear(length, width, thick, slot_depth, front, back) {
  86. for (rot = [0, 90, 180, 270]) {
  87. rotate([0, 0, rot]) {
  88. pcb_clear(pcb_length + 2*pcb_fit, pcb_width + 2*pcb_fit, pcb_thickness + pcb_tfit, slot_depth, front, back);
  89. }
  90. }
  91. }
  92. // create a box with rounded corners
  93. module tetra_mount_box(height, radius, corner) {
  94. rd = radius - corner;
  95. minkowski() {
  96. translate([-rd, -rd, 0]) {
  97. cube([rd * 2, rd * 2, height / 2]);
  98. }
  99. cylinder(r = corner, h = height / 2, $fn = facets);
  100. }
  101. }
  102. module tetra_mount_box_relative(height, ref_radius, ref_corner, radius_inc) {
  103. corner = (ref_radius + radius_inc) * (ref_radius - ref_corner) / ref_radius;
  104. tetra_mount_box(height, ref_radius + radius_inc, corner);
  105. }
  106. // the main body of the microphone mount
  107. module tetra_mount_body(height, radius, corner, lower_lip, upper_lip, clear) {
  108. difference() {
  109. tetra_mount_box(height, radius, corner);
  110. union() {
  111. // hollow out the inside with slots for pcbs
  112. tetra_pcb_clear(pcb_length, pcb_width, pcb_thickness, 1.0, pcb_front, pcb_back);
  113. // trim square angles
  114. cylinder(r = pcb_front, h = height, $fn = facets);
  115. // remove slots from inside body
  116. slot_len = 15;
  117. translate([0, 0, slot_len]) {
  118. hull() {
  119. tetra_mount_box_relative(height - (3 * slot_len), radius, corner, - (2 * wall));
  120. translate([0, 0, height - (2 * slot_len) + height / 3]) {
  121. cylinder(r = radius / 3, h = 1, $fn = facets);
  122. }
  123. }
  124. }
  125. // upper lip for flare to microphone
  126. translate([0, 0, height - upper_lip]) {
  127. difference() {
  128. tetra_mount_box(upper_lip, radius, corner);
  129. tetra_mount_box_relative(upper_lip, radius, corner, -(wall + lip_fit));
  130. }
  131. }
  132. // lower lip for flare to cable
  133. translate([0, 0, 0]) {
  134. difference() {
  135. tetra_mount_box(lower_lip, radius, corner);
  136. tetra_mount_box_relative(lower_lip, radius, corner, -(wall + lip_fit));
  137. }
  138. }
  139. }
  140. }
  141. // external slot for microphone holder
  142. if (0) {
  143. mount_slot_len = 30;
  144. mount_slot_stem = 4;
  145. mount_slot_width = 2;
  146. mount_slot_radius = 2;
  147. translate([-(radius + mount_slot_stem), -(mount_slot_width/2), 0]) {
  148. cube([mount_slot_stem, mount_slot_width, mount_slot_len]);
  149. }
  150. translate([-(radius + mount_slot_stem), 0, 0]) {
  151. cylinder(r = mount_slot_radius, h = mount_slot_len, $fn = facets);
  152. }
  153. }
  154. // add parts for clearance check
  155. if (clear == 1) {
  156. // electrolytic capacitors
  157. cap_diam = 10.2;
  158. for (rot = [0, 180, 270]) {
  159. rotate([0, 0, rot]) {
  160. translate([-pcb_front + cap_diam/2, 0, 0]) {
  161. cylinder(r = (cap_diam/2), h = 20, $fn = facets);
  162. }
  163. }
  164. }
  165. // 12.3 x 10.53 caps
  166. cap_h = 12.3;
  167. cap_w = 10.53/2;
  168. for (rot = [0, 180, 270]) {
  169. rotate([0, 0, rot]) {
  170. translate([-pcb_front + cap_h, -cap_w/2 - 2.5, 0]) {
  171. cube([cap_h, cap_w, 20]);
  172. }
  173. }
  174. }
  175. }
  176. }
  177. module tetra_mount_body_new(height, radius, corner, lower_lip, upper_lip, clear) {
  178. difference() {
  179. tetra_mount_box(height, radius, corner);
  180. union() {
  181. // hollow out the inside with slots for pcbs
  182. tetra_pcb_clear(pcb_length, pcb_width, pcb_thickness, 1.0, pcb_front, pcb_back);
  183. // trim square angles
  184. cylinder(r = pcb_front, h = height, $fn = facets);
  185. // remove slots from inside body
  186. slot_len = 30;
  187. translate([0, 0, slot_len]) {
  188. tetra_mount_box_relative(height, radius, corner, - (2 * wall));
  189. }
  190. // upper lip for flare to microphone
  191. translate([0, 0, height - upper_lip]) {
  192. difference() {
  193. tetra_mount_box(upper_lip, radius, corner);
  194. tetra_mount_box_relative(upper_lip, radius, corner, -(wall + lip_fit));
  195. }
  196. }
  197. // lower lip for flare to cable
  198. translate([0, 0, 0]) {
  199. difference() {
  200. tetra_mount_box(lower_lip, radius, corner);
  201. tetra_mount_box_relative(lower_lip, radius, corner, -(wall + lip_fit));
  202. }
  203. }
  204. }
  205. }
  206. // external slot for microphone holder
  207. if (0) {
  208. mount_slot_len = 30;
  209. mount_slot_stem = 4;
  210. mount_slot_width = 2;
  211. mount_slot_radius = 2;
  212. translate([-(radius + mount_slot_stem), -(mount_slot_width/2), 0]) {
  213. cube([mount_slot_stem, mount_slot_width, mount_slot_len]);
  214. }
  215. translate([-(radius + mount_slot_stem), 0, 0]) {
  216. cylinder(r = mount_slot_radius, h = mount_slot_len, $fn = facets);
  217. }
  218. }
  219. // add parts for clearance check
  220. if (clear == 1) {
  221. // electrolytic capacitors
  222. cap_diam = 10.2;
  223. for (rot = [0, 180, 270]) {
  224. rotate([0, 0, rot]) {
  225. translate([-pcb_front + cap_diam/2, 0, 0]) {
  226. cylinder(r = (cap_diam/2), h = 20, $fn = facets);
  227. }
  228. }
  229. }
  230. // 12.3 x 10.53 caps
  231. cap_h = 12.3;
  232. cap_w = 10.53/2;
  233. for (rot = [0, 180, 270]) {
  234. rotate([0, 0, rot]) {
  235. translate([-pcb_front + cap_h, -cap_w/2 - 2.5, 0]) {
  236. cube([cap_h, cap_w, 20]);
  237. }
  238. }
  239. }
  240. }
  241. }
  242. // flares from the body to the microphone stalk and cable
  243. module tetra_mount_flare(height, lip, transition, bot_radius, bot_corner, top_radius, stalk_height) {
  244. // bottom rounded box
  245. difference() {
  246. tetra_mount_box(height, bot_radius, bot_corner);
  247. tetra_mount_box_relative(height, bot_radius, bot_corner, -(2 * wall));
  248. // flange to mount on body
  249. // temporarily add 0.05 for best fit on already printed body (FIXME)
  250. tetra_mount_box_relative(lip + 1.0, bot_radius, bot_corner, - (wall + 0.05));
  251. }
  252. // flare to round section
  253. translate([0, 0, height]) {
  254. difference() {
  255. hull() {
  256. tetra_mount_box(1, bot_radius, bot_corner);
  257. translate([0, 0, transition]) {
  258. cylinder(r = top_radius, h = 1, $fn = facets);
  259. }
  260. }
  261. hull() {
  262. tetra_mount_box_relative(1, bot_radius, bot_corner, - 2 * wall);
  263. translate([0, 0, transition]) {
  264. cylinder(r = top_radius - wall, h = 1, $fn = facets);
  265. }
  266. }
  267. }
  268. }
  269. // cylindrical stalk
  270. translate([0, 0, height + transition]) {
  271. difference() {
  272. cylinder(r = top_radius, h = stalk_height, $fn = facets);
  273. cylinder(r = top_radius - wall, h = stalk_height, $fn = facets);
  274. }
  275. }
  276. }
  277. // top conical section that plugs into capsule array
  278. module tetra_capsule_array_mount(angles) {
  279. difference() {
  280. translate([0, 0, 0]) {
  281. rotate([0, 0, 45]) {
  282. difference() {
  283. ellipsoid(mount_top_height, mount_radius + wall, mount_radius_capsule, mount_top_eccentricity);
  284. ellipsoid(mount_top_height, mount_radius, mount_radius_capsule * 0.5, mount_top_eccentricity * 1.05);
  285. }
  286. }
  287. }
  288. // indentations that match the two lower capsule holders
  289. // add ridge height adjustment
  290. translate([0, 0, mount_top_height + (mic_radius - capsule_height) + capsule_height * sin(elev_angle)]) {
  291. capsule(angles[0], -elev_angle, [], 0, 1, 0.1, 3, 1);
  292. capsule(angles[1], -elev_angle, [], 0, 1, 0.1, 3, 1);
  293. }
  294. }
  295. }
  296. // internal ring of shock mount
  297. module tetra_shock_mount_body_ring(height, radius, corner, gap, lip) {
  298. slot_sep = radius * 2 / 2.5;
  299. slot_w = 5;
  300. slot_o = height / 3;
  301. // connecting bar dimensions
  302. bar_w = 10;
  303. bar_d = 2;
  304. difference() {
  305. union() {
  306. // base ring
  307. difference() {
  308. tetra_mount_box_relative(slot_o, radius + gap, corner, 3 * wall);
  309. tetra_mount_box(slot_o, radius + gap, corner);
  310. }
  311. // upper ring with slots for rubber bands
  312. difference() {
  313. tetra_mount_box_relative(height, radius + gap + 2 * wall, corner, 2 * wall);
  314. tetra_mount_box_relative(height, radius + gap + wall, corner, 1 * wall);
  315. for (rot = [0, 90, 180, 270]) rotate([0, 0, rot]) {
  316. // slots for rubber bands
  317. minkr = 1.25;
  318. for (m = [0, 1]) mirror([0, m, 0]) {
  319. translate([-slot_w / 2 + slot_sep, radius + gap, slot_o + minkr]) {
  320. minkowski() {
  321. cube([slot_w - minkr, 10, slot_o - minkr]);
  322. rotate([90, 0, 0]) cylinder(r = minkr, h = 1, $fn = facets);
  323. }
  324. translate([slot_w / 2, -2, 0]) {
  325. cube([slot_w / 2, 10, 10]);
  326. }
  327. }
  328. }
  329. }
  330. }
  331. // body for bars that connect both rings together
  332. for (rot = [0, 90, 180, 270]) rotate([0, 0, rot]) {
  333. translate([radius + gap + 3 * wall, -(bar_w/2 + wall), 0]) {
  334. cube([bar_d + wall, bar_w + 2 * wall, height]);
  335. }
  336. for (m = [0, 1]) mirror([0, m, 0]) {
  337. translate([radius + gap + 4 * wall, -(bar_w/2 + wall), 0]) {
  338. cylinder(r = wall * 2, h = height, $fn = 3);
  339. }
  340. }
  341. }
  342. }
  343. // carve holes for bars that connect both rings
  344. for (rot = [0, 90, 180, 270]) rotate([0, 0, rot]) {
  345. translate([radius + gap + 3 * wall, -bar_w/2, 0]) {
  346. cube([bar_d, bar_w, height - 2.75 * wall]);
  347. translate([bar_d / 2, 0, height - 3 * wall]) {
  348. rotate([-90, 0, 0]) {
  349. cylinder(r = bar_d / 2, h = bar_w, $fn = facets);
  350. }
  351. }
  352. }
  353. }
  354. }
  355. for (rot = [0, 90, 180, 270]) rotate([0, 0, rot]) {
  356. // lip to support microphone on lower ring only
  357. if (lip == 1) {
  358. lip_w = 10;
  359. translate([radius + gap + 2.5 * wall, -lip_w/2, height]) {
  360. rotate([90, 90, 180]) {
  361. linear_extrude(height = lip_w) {
  362. polygon([[0, 0], [0, 4], [1, 4], [height * 2/3, 0]]);
  363. }
  364. }
  365. }
  366. }
  367. }
  368. }
  369. module tetra_shock_mount_ring(outside_radius, inside_radius, thickness) {
  370. difference() {
  371. union() {
  372. cylinder(r = outside_radius, h = thickness, $fn = facets);
  373. translate([0, -outside_radius, 0]) {
  374. cube([outside_radius, outside_radius, thickness]);
  375. }
  376. }
  377. cylinder(r = inside_radius, h = thickness, $fn = facets);
  378. }
  379. }
  380. module tetra_shock_mount_main_ring(height, radius, corner, gap, lip) {
  381. difference() {
  382. tetra_mount_box_relative(6, radius, mount_corner, gap);
  383. tetra_mount_box_relative(6, radius, mount_corner, gap - 4 * wall);
  384. }
  385. for (rot = [0, 90, 180, 270]) {
  386. rotate([0, 0, rot]) {
  387. translate([radius + gap + 4 * wall, -7.5, 0]) {
  388. cube([4, 15, 6]);
  389. }
  390. translate([radius + gap, -2, 0]) {
  391. cube([7, 4, 6]);
  392. }
  393. }
  394. }
  395. // connection to stand mount
  396. translate([0, 18, 0]) {
  397. intersection() {
  398. difference() {
  399. tetra_mount_box_relative(6, radius, mount_corner - 5, gap);
  400. tetra_mount_box_relative(6, radius, mount_corner - 5, gap - 4 * wall);
  401. }
  402. translate([-(radius + 2 * mount_corner), 0, 0]) {
  403. cube([2 * (radius + 2 * mount_corner), radius + 2 * mount_corner, 6]);
  404. }
  405. }
  406. }
  407. // connection to hub
  408. translate([-2, radius + 2 * mount_corner + 12, 0]) {
  409. cube([4, 10, 6]);
  410. }
  411. // rotating mount
  412. o_rad = 8;
  413. i_rad = 3;
  414. thk = 4;
  415. rotate([0, 90, 0]) {
  416. translate([-o_rad, 66, -2]) {
  417. tetra_shock_mount_ring(o_rad, i_rad, thk);
  418. }
  419. }
  420. }
  421. module tetra_shock_mount_connector(length, lip, width, thickness, fit) {
  422. cube([length + 2 * lip , width - 2 * fit, thickness - 2 * fit]);
  423. translate([lip, -(thickness / 2), 0])
  424. cube([length , width + thickness, thickness * 3 / 2]);
  425. }
  426. module tetra_shock_mount_stand(height, wall, stand_wall) {
  427. // stand mount
  428. translate([0, 0, 0]) {
  429. difference() {
  430. union() {
  431. // main mount cylinder
  432. translate([0, 0, 0]) {
  433. difference() {
  434. cylinder(r = mic_mount_radius + mic_mount_fit + stand_wall,
  435. h = height, $fn = facets);
  436. // make the hole for the mount (* 1.5 to cut the ridge as well)
  437. cylinder(r = mic_mount_radius + mic_mount_fit, h = height, $fn = facets);
  438. }
  439. }
  440. }
  441. // slot for fitting into microphone stand
  442. translate([mic_mount_radius - stand_wall / 2, - mic_mount_slot_width / 2, 0]) {
  443. cube([2 * stand_wall, mic_mount_slot_width, mic_mount_slot_height]);
  444. }
  445. // eyelet for microphone stand
  446. translate([mic_mount_radius - stand_wall / 2, 0, mic_mount_slot_height]) {
  447. rotate([0, 90, 0]) {
  448. cylinder(r = mic_mount_slot_radius, h = 2 * stand_wall, $fn = facets);
  449. }
  450. }
  451. }
  452. // top of mount
  453. translate([0, 0, mic_mount_height]) {
  454. difference() {
  455. cylinder(h = mic_mount_radius,
  456. r1 = mic_mount_radius + mount_wall + wall, r2 = 5, $fn = facets);
  457. cylinder(h = mic_mount_radius,
  458. r1 = mic_mount_radius + mount_wall, r2 = 1, $fn = facets);
  459. }
  460. translate([0, 0, mic_mount_radius - 1]) {
  461. cylinder(h = 1, r = 5, $fn = facets);
  462. }
  463. }
  464. // eyelets
  465. o_rad = 8;
  466. i_rad = 3;
  467. thk = 4;
  468. for (m = [0, 1]) mirror([0, m, 0]) {
  469. rotate([90, 90, 0]) {
  470. translate([-(mic_mount_height + o_rad + 6), 0, thk/2 + fit]) {
  471. rotate([0, 0, 45])
  472. tetra_shock_mount_ring(o_rad, i_rad, thk);
  473. }
  474. }
  475. }
  476. }
  477. }
  478. *tetra_shock_mount_stand(mic_mount_height, mount_wall, mic_mount_wall);
  479. *translate([-18, 10, 0])
  480. tetra_shock_mount_connector(ring_sep, 4, 10, 2, 0.1);
  481. *translate([-18, -10, 0])
  482. tetra_shock_mount_connector(ring_sep, 4, 10, 2, 0.1);
  483. // main body of microphone mount
  484. //
  485. //translate([0, 0, -(pcb_length - pcb_low_exp - pcb_hi_exp + 10)]) {
  486. *tetra_mount_body_new(pcb_length - pcb_low_exp - pcb_hi_exp, box_radius + wall, mount_corner, mount_lip, mount_lip, 0);
  487. //}
  488. // flare to microphone stalk
  489. //
  490. //translate([0, 0, pcb_length - pcb_low_exp - pcb_hi_exp + 10]) {
  491. *translate([0, 0, 0]) {
  492. tetra_mount_flare(10 + pcb_hi_exp, mount_lip, flare_height, box_radius + wall, mount_corner,
  493. mount_radius + wall, stalk_height);
  494. translate([0, 0, 10 + pcb_hi_exp + flare_height + stalk_height]) {
  495. tetra_capsule_array_mount([-45, 135]);
  496. }
  497. }
  498. // flare to microphone cable
  499. //
  500. //translate([0, 0, -(10 + pcb_length - pcb_low_exp - pcb_hi_exp + 10)]) {
  501. *translate([0, 0, -17]) {
  502. rotate([0, 180, 0]) {
  503. tetra_mount_flare(10 + pcb_low_exp, mount_lip, 20, box_radius + wall, mount_corner, cable_diam / 2 + wall, 10);
  504. }
  505. }
  506. // shock mount
  507. //
  508. ring_sep = 30;
  509. ring_height = 6;
  510. band_angle = 40;
  511. main_radius_inc = (ring_sep / 2) / tan(band_angle);
  512. body_ring_gap = 1.0;
  513. translate([0, 0, 0]) {
  514. //rotate([0, 180, 0]) {
  515. *tetra_shock_mount_body_ring(10, box_radius + wall, mount_corner, body_ring_gap, 1);
  516. *rotate([0, 180, 0]) {
  517. translate([0, 0, ring_sep + 2]) {
  518. tetra_shock_mount_body_ring(10, box_radius + wall, mount_corner, body_ring_gap, 1);
  519. }
  520. }
  521. // mock up the connecting rods
  522. *for (r = [0, 90, 180, 270]) rotate([0, 0, r])
  523. translate([box_radius + 3 * wall + body_ring_gap, 0, -1])
  524. rotate([0, 90, 0])
  525. translate([-4, -5, 1]) {
  526. tetra_shock_mount_connector(ring_sep, 4, 10, 2, 0.1);
  527. }
  528. //}
  529. }
  530. //translate([0, 0, - ring_sep / 2 - 5]) {
  531. translate([0, 0, 0]) {
  532. tetra_shock_mount_main_ring(10, box_radius + wall, mount_corner, main_radius_inc, 0);
  533. }
  534. // first try at a ccrma logo
  535. //
  536. *rotate([90, 0, 0]) {
  537. translate([0, 10, box_radius + 1.5]) {
  538. scale([0.03, 0.03, 0.02]) {
  539. surface(file = "ccrma-black.png", center = true, invert = true);
  540. }
  541. }
  542. }
  543. // the microphone itself
  544. rendermic = 1;
  545. *translate([0, 0, 2.8 + pcb_hi_exp + flare_height + stalk_height + 30]) {
  546. // all four capsules
  547. capsule(45, elev_angle, leg_angles_top, 60, 0, 0.0, 0.0, 0);
  548. capsule(-135, elev_angle, leg_angles_top, 60, 0, 0.0, 0.0, 0);
  549. capsule(-45, -elev_angle, leg_angles_bot, 0, 1, 0.0, 0.0, 0);
  550. capsule(135, -elev_angle, leg_angles_bot, 0, 1, 0.0, 0.0, 0);
  551. // the mount
  552. *mount([-45, 135], mount_wall, mic_mount_wall, mic_mount_height + mount_top_height + mount_height + capsule_bottom);
  553. }