1
0

TestRig.scad 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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_height = 4.5;
  28. // wall thickness of capsule holder
  29. wall = 1;
  30. // contact pads
  31. pad_offset = 3.56;
  32. // slot for contact
  33. contact_width = 0.85;
  34. // length of contact
  35. contact_length = 2.9;
  36. // depth of contact channel (includes contact)
  37. contact_depth = 0.79;
  38. // support depth
  39. disk_depth = 1.17;
  40. disk_edge = 0.49;
  41. // adjustment for the inner radius of the capsule holder
  42. // measured inside diameter of a trial print was around 7.5 to 8.2
  43. // instead of 10, capsule diameter was 9.99)
  44. fudge = 0.15;
  45. // number of facets for rendering cylinders
  46. facets = 64;
  47. // main capsule holder
  48. *translate([capsule_radius * 3.0, 0, 0]) {
  49. difference() {
  50. cylinder(r = capsule_radius + wall, h = capsule_height, $fn = facets);
  51. cylinder(r = capsule_radius + fudge, h = capsule_height, $fn = facets);
  52. }
  53. }
  54. // plate for contact springs
  55. difference() {
  56. union() {
  57. difference() {
  58. union() {
  59. cylinder(r = capsule_radius + wall, h = disk_edge, $fn = facets);
  60. cylinder(r = capsule_radius, h = disk_depth, $fn = facets);
  61. }
  62. difference() {
  63. cylinder(r = capsule_radius, h = disk_depth, $fn = facets);
  64. cylinder(r = capsule_radius - 2, h = disk_depth, $fn = facets);
  65. }
  66. }
  67. translate([-capsule_radius / 2 + 4 * fudge, 0, 0]) {
  68. cube([capsule_radius, capsule_radius, disk_depth]);
  69. }
  70. rotate([0, 0, 90]) {
  71. translate([-capsule_radius / 4, 0, 0]) {
  72. cube([contact_width + fudge, capsule_radius, 1.0]);
  73. }
  74. }
  75. }
  76. union() {
  77. // vertical slots for contacts
  78. for(slot = [2/3, -2/3]) {
  79. translate([slot * capsule_radius / 3, capsule_radius - pad_offset + contact_length, 0]) {
  80. cube([contact_width + fudge, capsule_radius, 1.0]);
  81. }
  82. translate([slot * capsule_radius / 3, capsule_radius - pad_offset, contact_depth]) {
  83. cube([contact_width + fudge, capsule_radius, 1.0]);
  84. }
  85. }
  86. // horizontal slot for GND contact
  87. rotate([0, 0, 90]) {
  88. translate([-capsule_radius / 3, capsule_radius - pad_offset + contact_length, 0]) {
  89. cube([contact_width + fudge, capsule_radius, 1.0]);
  90. }
  91. translate([-capsule_radius / 3, capsule_radius - pad_offset, contact_depth]) {
  92. cube([contact_width + fudge, capsule_radius, 1.0]);
  93. }
  94. }
  95. }
  96. }