Created
July 7, 2016 17:11
-
-
Save croepha/bf94e88ba3b65110b291518a97f2551e to your computer and use it in GitHub Desktop.
amp bracket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// units are in mm | |
// dims of amp | |
amp_outside_width = 150; // about 6 inches | |
amp_outside_height = 40; | |
amp_fin_depth = 10; // less than half an inch | |
amp_fin_thickness = 2; | |
amp_fin_inside_distance = 5; | |
amp_fin_offset_from_bottom = 1; | |
// desired dims of bracket | |
bracket_thickness = 5; // width and height | |
bracket_depth = 20; | |
bracket_screw_inside_diameter = 5; | |
bracket_screw_distance_from_sides = 40; | |
$fn=100 ;// Set resolution | |
// top | |
translate([0, 0, amp_outside_height]) | |
difference() { | |
cube([bracket_depth, amp_outside_width + 2 * bracket_thickness, bracket_thickness]); | |
// Screw 1 | |
translate ([bracket_depth/2, bracket_screw_distance_from_sides + bracket_screw_inside_diameter/2, -1]) | |
cylinder(bracket_thickness + 2, bracket_screw_inside_diameter / 2, bracket_screw_inside_diameter / 2); | |
// Screw 2 | |
translate ([bracket_depth/2, amp_outside_width - (bracket_screw_distance_from_sides + bracket_screw_inside_diameter/2), -1]) | |
cylinder(bracket_thickness + 2, bracket_screw_inside_diameter / 2, bracket_screw_inside_diameter / 2); | |
} | |
// side 1 | |
cube([bracket_depth, bracket_thickness, amp_outside_height]); | |
// side 2 | |
translate([0, amp_outside_width + bracket_thickness, 0]) | |
cube([bracket_depth, bracket_thickness, amp_outside_height]); | |
// fins on side 1 | |
translate([0, bracket_thickness, 0]) | |
for (i = [0 : amp_fin_inside_distance + amp_fin_thickness : amp_outside_height - amp_fin_depth - (amp_fin_inside_distance + amp_fin_thickness)]) | |
translate ([0, 0, i + amp_fin_offset_from_bottom]) | |
cube ([bracket_depth, amp_fin_depth, amp_fin_inside_distance]); | |
// fins on side 2 | |
translate([0, bracket_thickness + amp_outside_width - amp_fin_depth, 0]) | |
for (i = [0 : amp_fin_inside_distance + amp_fin_thickness : amp_outside_height - amp_fin_depth - (amp_fin_inside_distance + amp_fin_thickness)]) | |
translate ([0, 0, i + amp_fin_offset_from_bottom]) | |
cube ([bracket_depth, amp_fin_depth, amp_fin_inside_distance]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment