|
|
@@ -78,69 +78,6 @@ ring_arm_gap = 16;
|
|
|
|
|
|
// the main body that holds the phantom power interfaces
|
|
|
|
|
|
-module one_pcb_slot_old (height, pcb_w, pcb_l, pcb_t, pcb_offset, slot_d, front, back, test = false) {
|
|
|
- d = pcb_t + front + back;
|
|
|
- render() translate([-(pcb_w/2 + wall/2), -back, 0]) {
|
|
|
- // make cage with slots for pcb
|
|
|
- difference() {
|
|
|
- translate([-2 * wall, 0, 0]) {
|
|
|
- cube([pcb_w + 4 * wall, d, height]);
|
|
|
- }
|
|
|
- translate([slot_d, 0, 0]) {
|
|
|
- cube([pcb_w - 2 * slot_d, pcb_t + front + back, height]);
|
|
|
- }
|
|
|
- translate([0, back, 0]) {
|
|
|
- cube([pcb_w, pcb_t, height]);
|
|
|
- }
|
|
|
- // make top and bottom entry channels
|
|
|
- translate([slot_d, back + pcb_t/2, 0]) {
|
|
|
- rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
|
|
|
- }
|
|
|
- translate([pcb_w - slot_d, back + pcb_t/2, 0]) {
|
|
|
- rotate([0, 0, 45]) cylinder(r1 = pcb_t * 1.1, r2 = 0, h = 8.0, $fn = 4);
|
|
|
- }
|
|
|
- translate([slot_d, back + pcb_t/2, height - 8.0]) {
|
|
|
- rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
|
|
|
- }
|
|
|
- translate([pcb_w - slot_d, back + pcb_t/2, height - 8.0]) {
|
|
|
- rotate([0, 0, 45]) cylinder(r2 = pcb_t * 1.1, r1 = 0, h = 8.0, $fn = 4);
|
|
|
- }
|
|
|
- }
|
|
|
- // add spar in the back
|
|
|
- translate([-2 * wall, -back + wall, 0]) {
|
|
|
- cube([pcb_w + 4 * wall, wall, height]);
|
|
|
- }
|
|
|
- // pcb for testing fit
|
|
|
- if (test) {
|
|
|
- translate([0, back, pcb_offset]) {
|
|
|
- cube([pcb_w, pcb_t, pcb_l]);
|
|
|
- }
|
|
|
- // small electrolytic capacitors (pcb_version == 2)
|
|
|
- // https://www.mouser.com/datasheet/2/293/e-umw-1219455.pdf
|
|
|
- cap_diam = 8.0;
|
|
|
- // should be 5, but transistors are a bit taller;
|
|
|
- cap_len = 6.0;
|
|
|
- translate([pcb_w/2, pcb_t + cap_diam + 0.15, 6]) {
|
|
|
- rotate([90, 0, 0]) cylinder(r = (cap_diam/2), h = cap_len, $fn = facets);
|
|
|
- }
|
|
|
- // film capacitors
|
|
|
- cap_h = 12;
|
|
|
- cap_w = 9;
|
|
|
- cap_t = 5.5;
|
|
|
- translate([pcb_w/2 - cap_w/2, pcb_t + 0.15, 10]) {
|
|
|
- cube([cap_w, cap_t, cap_h]);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- // add capacitor if in test mode
|
|
|
- *if (test) {
|
|
|
- cap_diam = 10.2;
|
|
|
- translate([0, cap_diam/2 + pcb_t, 0]) {
|
|
|
- cylinder(r = cap_diam/2, h = 20, $fn = facets);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
// one printed circuit board with space in the back and front
|
|
|
|
|
|
module one_pcb_slot (height, pcb_w, pcb_l, pcb_t, pcb_offset, slot_d, front, back, test = false) {
|
|
|
@@ -166,7 +103,7 @@ module one_pcb_slot (height, pcb_w, pcb_l, pcb_t, pcb_offset, slot_d, front, bac
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// the partition that connects inner and outer sections of body
|
|
|
+// the parts that are added to the printed circuit board
|
|
|
|
|
|
module one_pcb_parts (height, pcb_w, pcb_l, pcb_t, pcb_offset, slot_d, front, back) {
|
|
|
//render() translate([-(pcb_w/2 + wall), -(back + wall), 0]) {
|