/************************************************************************************* * * $RCSfile: HorizontalMotorMount.scad,v $ * $Date: 2013/04/07 23:52:59 $ * $Revision: 1.2 $ * * Horizontal Motor Mount * ************************************************************************************* * * THE FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT * HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * IT IS NOT PERMITTED TO MODIFY THIS COMMENT BLOCK. * * (c)2013, Claude "Tryphon" Theroux, Montreal, Quebec, Canada * ************************************************************************************/ // Diameter of the motor in mm. motor_diameter = 47; // Length of the motor body in mm motor_length = 60; // Width of the motor holder in mm. Must be larger than the motor_diameter. base_width = 60; // Desired height of the motor shaft in mm. shaft_height = 51.5; // Width of the tie wrap that will hold the motor to the holder in mm. tie_wrap_width = 4; // Tickness of the tie wrap that will hold the motor to the holder in mm. tie_wrap_tickness = 1.5; //////////////////////////////////////////////////////////////////////////////// // // Derived values // base_height = shaft_height - 10; //////////////////////////////////////////////////////////////////////////////// // // Code // difference() { cube([motor_length, base_width, base_height], center=true); rotate([0, 90, 0]) translate([-shaft_height + base_height / 2, 0, -motor_length / 2]) cylinder(r = motor_diameter / 2, h = motor_length + 1); translate([-(motor_length - 20) / 2, 0, -5]) cube([tie_wrap_width + 1, base_width, tie_wrap_tickness + 1.5], center=true); translate([(motor_length - 20) / 2, 0, -5]) cube([tie_wrap_width + 1, base_width, tie_wrap_tickness + 1.5], center=true); }