Octathingy_EM200.scad 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. // Microphone optimized for EM182 capsules and Zapnspark interface
  12. //
  13. // Copyright 2015-2017, Fernando Lopez-Lezcano, All Rights Reserved
  14. // nando@ccrma.stanford.edu
  15. //
  16. // This program is free software: you can redistribute it and/or modify
  17. // it under the terms of the GNU General Public License as published by
  18. // the Free Software Foundation, either version 3 of the License, or
  19. // (at your option) any later version.
  20. //
  21. // This program is distributed in the hope that it will be useful,
  22. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. // GNU General Public License for more details.
  25. //
  26. // You should have received a copy of the GNU General Public License
  27. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  28. //
  29. // 3d Models released under the Creative Commons license as follows:
  30. // Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
  31. // http://creativecommons.org/licenses/by-nc-sa/4.0/
  32. include <Octathingy_common.scad>;
  33. include <SpHEAR_windscreen.scad>;
  34. include <TinySpHEAR_mount_pcb.scad>;
  35. include <Octathingy_mount_pcb.scad>;
  36. // dimensions of the EM200 electret microphone capsule
  37. capsule_radius = 14.55 / 2;
  38. capsule_height = 4.75;
  39. mic_radius = 16.6;
  40. // make triangular legs have the right height
  41. connect = 1;
  42. leg_thick = capsule_height * 0.45;
  43. facets = 128;
  44. ////
  45. //// render the different assemblies
  46. ////
  47. //// microphone body and array parameters
  48. //
  49. // FIXME: for some reason octa_pcb_radius is not being found, changing
  50. // the order of includes above messes up other mode parameters
  51. // for now hardwire this parameter
  52. windscreen_thread_radius = 31.425;
  53. // windscreen_thread_radius = octa_pcb_radius;
  54. windscreen_radius = windscreen_thread_radius + 5.0;
  55. windscreen_thread_height = 8;
  56. windscreen_height = 71;
  57. render_octa_capsule_array(207.3);
  58. difference() {
  59. render_octa_capsule_flare(49.2);
  60. translate([-60, -60, 0]) {
  61. cube([60, 60, 150]);
  62. }
  63. }
  64. difference() {
  65. union() {
  66. render_sphear_lower_windscreen(tetra_pcb_mount_height - 10 + 15);
  67. render_sphear_upper_windscreen(tetra_pcb_mount_height - 10 + 15 + windscreen_height);
  68. }
  69. *translate([-60, -60, 0]) {
  70. cube([60, 60, 120]);
  71. }
  72. }
  73. render_octa_pcb_mount(0, 0);
  74. *render_octa_cable_flare(0);
  75. rotate([0, 180, 0]) {
  76. render_octa_connector_flare(0);
  77. }
  78. // the whole body
  79. *render_octa_body(0, 10, 0);
  80. // the whole microphone
  81. // or use render_octa_microphone_cutout(0, 0) for a "transparent" view
  82. //
  83. *render_octa_microphone_cutout(0, 0, 0);
  84. *render_sphear_windscreen_thread_cover(0)
  85. //// microphone shock mount
  86. *render_octa_shock_mount_stand(0);
  87. *render_octa_shock_mount_external_ring(0);
  88. *render_octa_shock_mount_internal_ring_bot(0);
  89. *render_octa_shock_mount_internal_ring_top(0);
  90. *render_octa_shock_mount_ring_connectors(5);
  91. // the full mount
  92. *render_octa_shock_mount(0);
  93. // individual capsule holders
  94. *render_octa_capsule_top(0);
  95. *render_octa_capsule_bot(0);