1
0

TestRig.scad 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. //
  2. // Test Rig for Primo EM182 capsules
  3. //
  4. // Copyright 2015, Fernando Lopez-Lezcano, All Rights Reserved
  5. // nando@ccrma.stanford.edu
  6. //
  7. //
  8. // This program is free software: you can redistribute it and/or modify
  9. // it under the terms of the GNU General Public License as published by
  10. // the Free Software Foundation, either version 3 of the License, or
  11. // (at your option) any later version.
  12. //
  13. // This program is distributed in the hope that it will be useful,
  14. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. // GNU General Public License for more details.
  17. //
  18. // You should have received a copy of the GNU General Public License
  19. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. //
  21. //
  22. // 3d Models released under the Creative Commons license as follows:
  23. // Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
  24. // http://creativecommons.org/licenses/by-nc-sa/4.0/
  25. // dimensions of the EM182 electret microphone
  26. capsule_radius = 5;
  27. capsule_radius_i = 2.2;
  28. capsule_height = 4.5;
  29. // wall thickness of capsule holder
  30. wall = 1;
  31. // contact pads
  32. pad_offset = 3.56;
  33. // slot for contact
  34. // contact_width = 0.85;
  35. contact_width = 1.00;
  36. // length of contact
  37. contact_length = 2.9;
  38. // depth of contact channel (includes contact)
  39. // contact_depth = 0.79;
  40. contact_depth = 0.5;
  41. // island around contact
  42. contact_border = 0.5;
  43. // contact offset from center line
  44. contact_offset = 0.3;
  45. // cutout offset from edge of capsule
  46. contact_cutout = 2.0;
  47. contact_cutout_gnd = 2.5;
  48. // support depth
  49. disk_depth = 0.9;
  50. disk_edge = 0.49;
  51. // thinkness of sleeve
  52. sleeve_edge = 0.66;
  53. // adjustment for the inner radius of the capsule holder
  54. // measured inside diameter of a trial print was around 7.5 to 8.2
  55. // instead of 10, capsule diameter was 9.99)
  56. // changed from 0.15 to 0.1 for tighter fit
  57. fudge = 0.10;
  58. // number of facets for rendering cylinders
  59. facets = 128;
  60. // one slot for a contact
  61. module contact (trans, angle, cutout, slot = false) {
  62. rotate([0, 0, angle]) {
  63. translate(trans) {
  64. translate([- (contact_width + 2 * contact_border) / 2, 0, 0]) {
  65. if (slot == false) {
  66. difference() {
  67. // base for the contact
  68. cube([contact_width + 2 * contact_border, capsule_radius + wall / 2, disk_depth]);
  69. translate([contact_width / 2, 0, contact_depth]) {
  70. // channel for clip
  71. cube([contact_width, capsule_radius + wall / 2, disk_depth]);
  72. }
  73. // cutout for clip from edge of disk
  74. translate([contact_width / 2, capsule_radius - cutout, 0]) {
  75. cube([contact_width, contact_width, disk_depth]);
  76. //cylinder(r = contact_width / 2 * 1.25, h = disk_depth, $fn = facets);
  77. }
  78. }
  79. } else {
  80. // just the cutouts
  81. translate([contact_width / 2, 0, contact_depth]) {
  82. // channel for clip
  83. cube([contact_width, capsule_radius + wall, disk_depth]);
  84. }
  85. translate([contact_width / 2, capsule_radius - cutout, 0]) {
  86. cube([contact_width, contact_width, disk_depth]);
  87. //cylinder(r = contact_width / 2 * 1.25, h = disk_depth, $fn = facets);
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }
  94. // main capsule holder
  95. module capsule_holder () {
  96. difference() {
  97. cylinder(r = capsule_radius + wall, h = capsule_height, $fn = facets);
  98. cylinder(r = capsule_radius + fudge, h = capsule_height, $fn = facets);
  99. }
  100. }
  101. // back plate with contact springs
  102. module backplate () {
  103. difference() {
  104. union() {
  105. difference() {
  106. union() {
  107. cylinder(r = capsule_radius + wall, h = disk_edge, $fn = facets);
  108. cylinder(r = capsule_radius, h = disk_depth, $fn = facets);
  109. }
  110. difference() {
  111. cylinder(r = capsule_radius, h = disk_depth, $fn = facets);
  112. cylinder(r = capsule_radius_i, h = disk_depth, $fn = facets);
  113. }
  114. }
  115. // contacts
  116. contact([contact_border + contact_offset, 0, 0], 0, contact_cutout);
  117. contact([-contact_border - contact_offset, 0, 0], 0, contact_cutout);
  118. // GND contact
  119. contact([- contact_border - contact_offset, 0, 0], 90, contact_cutout_gnd);
  120. // one more radial connection
  121. rotate([0, 0, -120]) {
  122. translate([-contact_width / 2, 0, 0]) {
  123. cube([contact_width, capsule_radius, disk_depth]);
  124. }
  125. }
  126. }
  127. // contact cutouts
  128. contact([contact_border + contact_offset, 0, 0], 0, contact_cutout, true);
  129. contact([-contact_border - contact_offset, 0, 0], 0, contact_cutout, true);
  130. // contact cutout for GND
  131. contact([- contact_border - contact_offset, 0, 0], 90, contact_cutout_gnd, true);
  132. // finally trim the seat for the holder
  133. translate([0, 0, disk_edge]) {
  134. difference() {
  135. cylinder(r = capsule_radius + wall, h = disk_depth, $fn = facets);
  136. cylinder(r = capsule_radius, h = disk_depth, $fn = facets);
  137. }
  138. }
  139. }
  140. }
  141. stalk_height = 12.0;
  142. sleeve_height = capsule_height * 2 / 3;
  143. // sleeve that holds everything together
  144. module sleeve () {
  145. difference() {
  146. cylinder(r = capsule_radius + 2 * wall, h = sleeve_height, $fn = facets);
  147. cylinder(r = capsule_radius + wall, h = sleeve_height, $fn = facets);
  148. }
  149. difference() {
  150. cylinder(r = capsule_radius + wall, h = sleeve_edge, $fn = facets);
  151. cylinder(r = capsule_radius, h = sleeve_edge, $fn = facets);
  152. }
  153. // back plate for contacts 1 / 2
  154. translate([-(contact_width + 1.5 * contact_border) + 0.1, capsule_radius / 2 - 0.1, 0]) {
  155. cube([(contact_width + 1.5 * contact_border) * 2 - 0.2, capsule_radius / 2 + 0.1, sleeve_edge]);
  156. }
  157. // back plate for GND contact
  158. rotate([0, 0, 90]) {
  159. translate([-(contact_width + 1.5 * contact_border), capsule_radius * 1 / 3, 0]) {
  160. cube([(contact_width + 1.5 * contact_border), capsule_radius * 2 / 3, sleeve_edge]);
  161. }
  162. }
  163. // mount stalk
  164. translate([-sleeve_height / 2, -(capsule_radius + wall), sleeve_height]) {
  165. rotate([90, 90, 0]) {
  166. cube([sleeve_height, sleeve_height, stalk_height + sleeve_height]);
  167. }
  168. }
  169. // lever to rotate capsule between 0 and 90 degrees
  170. translate([sleeve_height / 2, - (capsule_radius + wall + stalk_height), 0]) {
  171. rotate([0, 0, 0]) {
  172. cube([capsule_height * 2, sleeve_height, sleeve_height]);
  173. }
  174. }
  175. }
  176. // mount that clips on a standard microphone stand
  177. // dimensions of microphone holder
  178. mount_radius = 2.75;
  179. mount_wall = 0.75;
  180. // height of mount
  181. mount_height = 40;
  182. // microphone stand mount
  183. //
  184. // diameter of existing shielded wires (x 4)
  185. mic_wire_diam = 1.5;
  186. mic_wire_hole_radius = 2.5;
  187. mic_wire_hole_offset = 5;
  188. // measured diameter = 13.5, inside diameter of sleeve = 13.79 (
  189. mic_mount_radius = 13.50 / 2;
  190. // add this to inside diameter
  191. mic_mount_fit = 0.1;
  192. mic_mount_slot_height = 11.5;
  193. mic_mount_slot_width = 4.25;
  194. mic_mount_slot_radius = 6.25 / 2;
  195. mic_mount_wall = 1.5;
  196. mic_mount_height = 35.0 + mic_wire_hole_offset + mic_wire_hole_radius + 2 * mic_mount_wall;
  197. module mount (wall, stand_wall, separation) {
  198. translate([0, 0, -separation]) {
  199. difference() {
  200. union() {
  201. // stalk
  202. translate([0, 0, mic_mount_height + mount_height * 2/3]) {
  203. difference() {
  204. cylinder(r = mount_radius + wall, h = mount_height / 3, $fn = facets);
  205. // make the hole for the mount
  206. cylinder(r = mount_radius, h = mount_height / 3, $fn = facets);
  207. }
  208. }
  209. // transition to stand mount
  210. *translate([0, 0, mic_mount_height]) {
  211. difference() {
  212. cylinder(r2 = mount_radius + wall, r1 = mic_mount_radius + mic_mount_fit + stand_wall,
  213. h = mount_height * 2 / 3, $fn = facets);
  214. // make the hole for the mount
  215. cylinder(r2 = mount_radius, r1 = mic_mount_radius + mic_mount_fit,
  216. h = mount_height * 2 / 3, $fn = facets);
  217. }
  218. }
  219. // stand mount
  220. *translate([0, 0, 0]) {
  221. difference() {
  222. union() {
  223. // main mount cylinder
  224. translate([0, 0, 0]) {
  225. difference() {
  226. cylinder(r = mic_mount_radius + mic_mount_fit + stand_wall, h = mic_mount_height, $fn = facets);
  227. // make the hole for the mount (* 1.5 to cut the ridge as well)
  228. cylinder(r = mic_mount_radius + mic_mount_fit, h = mic_mount_height, $fn = facets);
  229. }
  230. }
  231. }
  232. // slot for fitting into microphone stand
  233. translate([mic_mount_radius - stand_wall / 2, - mic_mount_slot_width / 2, 0]) {
  234. cube([2 * stand_wall, mic_mount_slot_width, mic_mount_slot_height]);
  235. }
  236. // eyelet for microphone stand
  237. translate([mic_mount_radius - stand_wall / 2, 0, mic_mount_slot_height]) {
  238. rotate([0, 90, 0]) {
  239. cylinder(r = mic_mount_slot_radius, h = 2 * stand_wall, $fn = facets);
  240. }
  241. }
  242. }
  243. }
  244. }
  245. // cut slot for detente at the top of the mount
  246. translate([- sleeve_height / 2, - sleeve_height / 2, mic_mount_height + mount_height - sleeve_height / 2]) {
  247. cube([2 * mount_radius + wall, 2 * mount_radius + wall, sleeve_height / 2]);
  248. }
  249. }
  250. }
  251. }
  252. tab_width = 3.0;
  253. tab_length = 3.0;
  254. module mount_cap (wall, separation) {
  255. translate([0, 0, -(separation)]) {
  256. difference() {
  257. union() {
  258. // cap
  259. cylinder(r = mount_radius + wall, h = 3 * wall, $fn = facets);
  260. translate([0, 0, - 2 * wall]) {
  261. cylinder(r = mount_radius + mic_mount_fit, h = 3 * wall, $fn = facets);
  262. }
  263. }
  264. // hole in the center
  265. *translate([0, 0, - 2 * wall]) {
  266. cylinder(r = sleeve_height / 2, h = 6 * wall, $fn = facets);
  267. }
  268. // slot for detente
  269. translate([- sleeve_height / 2, - sleeve_height / 2, 2 * wall]) {
  270. cube([2 * mount_radius + wall, 2 * mount_radius + wall, wall]);
  271. }
  272. }
  273. }
  274. }
  275. // stalk: measured in print: 2.86 - 2.87
  276. // hole: measured: 2.63 - 2.68
  277. // so need a fit of 2.87 - 2.68 / 2 = 0.095 ~ 0.1 (hole should be bigger by this amount)
  278. square_fit = 0.1;
  279. // mount tube: measured 7.1 (average)
  280. // skirt inner diameter: 6.88
  281. // fit: 7.1 - 6.88 / 2 = 0.11 ~ 0.1 too tight, 0.25 too lose
  282. mount_fit = 0.2;
  283. module mount_adapter(wall, separation) {
  284. difference() {
  285. union() {
  286. translate([0, 0, -separation]) {
  287. difference() {
  288. cylinder(r = mount_radius + 2 * wall + mount_fit, h = 3 * wall, $fn = facets);
  289. // hole for square peg
  290. hole_side = sleeve_height + square_fit * 2;
  291. translate([-hole_side / 2, -hole_side / 2]) {
  292. cube([hole_side, hole_side, hole_side]);
  293. }
  294. }
  295. }
  296. // skirt that grabs the mount and allows the holder to rotate
  297. translate([0, 0, - 5 * wall]) {
  298. difference() {
  299. cylinder(r = mount_radius + 2 * wall + mount_fit, h = 5 * wall, $fn = facets);
  300. cylinder(r = mount_radius + wall + mount_fit, h = 5 * wall, $fn = facets);
  301. }
  302. }
  303. // tab to stop rotation at 0 and 90 degrees
  304. translate([sleeve_height * 3 / 2, - sleeve_height / 2, - sleeve_height / 2]) {
  305. rotate([0, -90, 0]) {
  306. cube([sleeve_height, sleeve_height, sleeve_height]);
  307. }
  308. }
  309. }
  310. // clip the outside...
  311. translate([0, 0, -2 * wall]) {
  312. difference() {
  313. cylinder(r = mount_radius + 4 * wall + mount_fit, h = 4 * wall, $fn = facets);
  314. cylinder(r = mount_radius + 2 * wall + mount_fit, h = 4 * wall, $fn = facets);
  315. }
  316. }
  317. }
  318. }
  319. ////
  320. printset = 1;
  321. if (printset == 1) {
  322. // adapter
  323. rotate([0, 180, 0]) {
  324. translate([0, 0, - sleeve_height + sleeve_height / 4]) {
  325. mount_adapter(mount_wall, 0);
  326. }
  327. }
  328. // sleeve
  329. *translate([- sleeve_height / 2, 15, 0]) {
  330. rotate([0, 0, 90]) {
  331. sleeve();
  332. }
  333. }
  334. // backplate
  335. *translate([15, 0, 0]) {
  336. backplate();
  337. }
  338. // mount (test)
  339. *translate([12, 0, -(mic_mount_height + mount_height - mount_height / 3)]) {
  340. mount(mount_wall, mic_mount_wall);
  341. }
  342. } else {
  343. translate([0, 0, -(mic_mount_height + mount_height + capsule_radius + 2 * wall + 2.2 * stalk_height)]) {
  344. mount(mount_wall, mic_mount_wall);
  345. }
  346. rotate([0, 0, 90]) {
  347. translate([0, 0, -2.2 * stalk_height]) {
  348. mount_adapter(mount_wall, 0);
  349. }
  350. }
  351. *translate([0, 0, - 2.7 * stalk_height]) {
  352. mount_cap(mount_wall, 0);
  353. }
  354. translate([- sleeve_height / 2, 0, 0]) {
  355. rotate([90, 0, 90]) {
  356. sleeve();
  357. }
  358. }
  359. *backplate();
  360. translate([capsule_radius * 3.0, capsule_radius * 3, 0]) {
  361. rotate([90, 0, 0]) {
  362. capsule_holder();
  363. }
  364. }
  365. }