Skip to content
Permalink
Browse files

Merge branch 'master' of https://github.com/Metamaquina/Metamaquina2

  • Loading branch information
felipesanches committed Apr 25, 2013
2 parents 42c5e51 + 7d653a1 commit aef8371073954b8406dd039032e4703e7f0d56ae
File renamed without changes.
@@ -0,0 +1,2 @@
gear_thickness = 10;

@@ -10,12 +10,13 @@
* derived from http://www.thingiverse.com/thing:3104
* (thanks GilesBathgate) which is under GPL CC license.
*
* Copyright (C) 2011 Guy 'DeuxVis' P.
* Copyright (C) 2013 Rafael H. de L. Moretti
* Copyright (C) 2011 Guy 'DeuxVis' P. <device@ymail.com>
* Copyright (C) 2013 Felipe C. da S. Sanches <fsanches@metamaquina.com.br>
* Copyright (C) 2013 Rafael H. de L. Moretti <rafael.moretti@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@ -30,7 +31,6 @@
* DeuxVis - device@ymail.com */

use <MCAD/involute_gears.scad>
gear_thickness = 10;

/* Herringbone gear module, adapted from MCAD/involute_gears */
module herringbone_gear( teeth=12, shaft=5, gear_thickness=10 ) {
@@ -83,90 +83,3 @@ module sector_hole(){
}
}

module extruder_gear(teeth=37, circles=12, shaft=8.6){
body_thickness = 4;
hub_thickness = 8;

difference(){
union() {
//hub
translate([0,0,-0.01])
cylinder( r1=15, r2=9, h=hub_thickness );

difference(){
//gear
translate([0,0,gear_thickness/2])
herringbone_gear( gear_thickness=gear_thickness, teeth=teeth, shaft=shaft, $fn=40 );

//central cut to make the gear thin
translate([0,0,body_thickness])
cylinder(r1=26, r2=29, h=gear_thickness - body_thickness + 0.01);
}

}

for (i=[0:circles-1])
rotate(i*360/circles)
translate([0,0,-0.1])
if (i%2==0){
sector_hole();
}
else{
rotate(2)
translate([12,0,-0.01])
scale(0.6)
linear_extrude(height=20) import("MM_hole.dxf", layer="eme");
}

//M8 hobbed bolt head fit washer
translate( [0, 0, 2.5 -0.01] )
cylinder( r=12.9/sqrt(3), h=10, $fn=6 );

translate( [0, 0, -0.1] )
cylinder( r=shaft/2, h=10, $fn=20 );
}
}

module motor_gear(teeth=11, shaft_diameter=5){
render()
translate([0,0,5])
rotate([180,0])
difference() {
union() {
//gear
herringbone_gear( teeth=teeth, $fn=50 );

translate( [0, 0, 13] )
mirror( [0, 0, 1] )
difference() {
//base
rotate_extrude($fn=120) {
square( [9, 8] );
square( [10, 7] );
translate( [9, 7] ) circle( 1, $fn=50 );
}

//captive nut and grub holes
translate( [0, 20, 4] ) rotate( [90, 0, 0] ) union() {
//enterance
translate( [0, -3, 14.5] ) cube( [5.4, 6, 2.4], center=true );
//nut
translate( [0, 0, 13.3] ) rotate( [0, 0, 30] ) cylinder( r=3.12, h=2.4, $fn=6 );
//grub hole
translate( [0, 0, 9] ) cylinder( r=1.5, h=10, $fn=20 );
}
}
}

//shaft hole
translate( [0, 0, -6] )
cylinder( r=shaft_diameter/2, h=20, $fn=20 );
}
}

extruder_gear();

translate( [60, 0, 0] )
translate([0,0,10])
rotate([180,0])
motor_gear();
@@ -56,7 +56,7 @@
(aux_axis_origin 36 21)
(visible_elements 7FFFFFFF)
(pcbplotparams
(layerselection 2097152)
(layerselection 284196865)
(usegerberextensions false)
(excludeedgelayer false)
(linewidth 152400)
@@ -72,11 +72,11 @@
(psa4output false)
(plotreference true)
(plotvalue false)
(plotothertext true)
(plotothertext false)
(plotinvisibletext false)
(padsonsilk true)
(padsonsilk false)
(subtractmaskfromsilk false)
(outputformat 2)
(outputformat 1)
(mirror false)
(drillshape 0)
(scaleselection 1)
@@ -0,0 +1,56 @@
// Copyright
// (c) 2011 Guy 'DeuxVis' P. <device@ymail.com>
// (c) 2013 Felipe C. da S. Sanches <fsanches@metamaquina.com.br>
// (c) 2013 Rafael H. de L. Moretti <rafael.moretti@gmail.com>
//
// Licensed under the terms of the GNU General Public License
// version 3 (or later).

use <gears.scad>
include <gears-params.scad>

module extruder_gear(teeth=37, circles=12, shaft=8.6){
body_thickness = 4;
hub_thickness = 8;

difference(){
union() {
//hub
translate([0,0,-0.01])
cylinder( r1=15, r2=9, h=hub_thickness );

difference(){
//gear
translate([0,0,gear_thickness/2])
herringbone_gear( gear_thickness=gear_thickness, teeth=teeth, shaft=shaft, $fn=40 );

//central cut to make the gear thin
translate([0,0,body_thickness])
cylinder(r1=26, r2=29, h=gear_thickness - body_thickness + 0.01);
}

}

for (i=[0:circles-1])
rotate(i*360/circles)
translate([0,0,-0.1])
if (i%2==0){
sector_hole();
}
else{
rotate(2)
translate([12,0,-0.01])
scale(0.6)
linear_extrude(height=20) import("MM_hole.dxf", layer="eme");
}

//M8 hobbed bolt head fit washer
translate( [0, 0, 2.5 -0.01] )
cylinder( r=12.9/sqrt(3), h=10, $fn=6 );

translate( [0, 0, -0.1] )
cylinder( r=shaft/2, h=10, $fn=20 );
}
}

extruder_gear();
@@ -7,7 +7,11 @@
use <NEMA.scad>;
use <608zz_bearing.scad>;
use <rounded_square.scad>;
use <thingiverse/12789/TZ_Huxley_extruder_gears.scad>;

// Gears
use <small_extruder_gear.scad>
use <large_extruder_gear.scad>

use <tslot.scad>;
include <Metamaquina-config.scad>;
use <Metamaquina2.scad>;
@@ -0,0 +1,48 @@
// Copyright
// (c) 2011 Guy 'DeuxVis' P. <device@ymail.com>
// (c) 2013 Felipe C. da S. Sanches <fsanches@metamaquina.com.br>
// (c) 2013 Rafael H. de L. Moretti <rafael.moretti@gmail.com>
//
// Licensed under the terms of the GNU General Public License
// version 3 (or later).

use <gears.scad>

module motor_gear(teeth=11, shaft_diameter=5){
render()
translate([0,0,5])
rotate([180,0])
difference() {
union() {
//gear
herringbone_gear( teeth=teeth, $fn=50 );

translate( [0, 0, 13] )
mirror( [0, 0, 1] )
difference() {
//base
rotate_extrude($fn=120) {
square( [9, 8] );
square( [10, 7] );
translate( [9, 7] ) circle( 1, $fn=50 );
}

//captive nut and grub holes
translate( [0, 20, 4] ) rotate( [90, 0, 0] ) union() {
//enterance
translate( [0, -3, 14.5] ) cube( [5.4, 6, 2.4], center=true );
//nut
translate( [0, 0, 13.3] ) rotate( [0, 0, 30] ) cylinder( r=3.12, h=2.4, $fn=6 );
//grub hole
translate( [0, 0, 9] ) cylinder( r=1.5, h=10, $fn=20 );
}
}
}

//shaft hole
translate( [0, 0, -6] )
cylinder( r=shaft_diameter/2, h=20, $fn=20 );
}
}

motor_gear();

0 comments on commit aef8371

Please sign in to comment.
You can’t perform that action at this time.