From 78b2cac39fdf66766d515cd2bba4cb63a042015f Mon Sep 17 00:00:00 2001 From: Arne Durr Date: Sun, 7 Dec 2014 14:59:31 +0100 Subject: [PATCH] Gears fix and improvement --- Hardware/CYCLONE_2/Source_files/libs/gears.scad | 3 +-- Hardware/CYCLONE_2/Source_files/libs/standard_parts.scad | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Hardware/CYCLONE_2/Source_files/libs/gears.scad b/Hardware/CYCLONE_2/Source_files/libs/gears.scad index 6f71831..2cd1684 100644 --- a/Hardware/CYCLONE_2/Source_files/libs/gears.scad +++ b/Hardware/CYCLONE_2/Source_files/libs/gears.scad @@ -37,9 +37,8 @@ $fa = 5; // Minimum angle for fragments [degrees] $fs = 0.5; // Minimum fragment size [mm] /* Herringbone gear module, adapted from MCAD/involute_gears */ -module herringbone_gear( teeth=12, circles=0, shaft=5 ) { +module herringbone_gear( teeth=12, height=10, circles=0, shaft=5 ) { twist=0;//100; - height=10; pressure_angle=30; diam = teeth*2; diff --git a/Hardware/CYCLONE_2/Source_files/libs/standard_parts.scad b/Hardware/CYCLONE_2/Source_files/libs/standard_parts.scad index 847e92c..eb4cfd2 100644 --- a/Hardware/CYCLONE_2/Source_files/libs/standard_parts.scad +++ b/Hardware/CYCLONE_2/Source_files/libs/standard_parts.scad @@ -187,17 +187,16 @@ module stepperMotor(screwHeight=10, renderPart=false, echoPart=false) { module cyclone_motor_gear(Gear_N_Teeth = 21, gearHeight=10, saveMaterial=false, tolerance=0) { motor_rod_diam = 5/2+tolerance; -// TODO add support for gearHeight in the gears.scad // Motor gear union() difference() { union() { //gear - herringbone_gear( teeth=Gear_N_Teeth ); + herringbone_gear(teeth=Gear_N_Teeth,height=gearHeight); translate( [0, 0, 12] ) mirror( [0, 0, 1] ) difference() { //shaft - cylinder( r=9, h=15); + cylinder( r=9, h=8); //captive nut and grub holes translate( [0, 19.5, 3.5] ) rotate( [90, 0, 0] ) union() { //enterance @@ -231,7 +230,7 @@ nut_radius = METRIC_NUT_AC_WIDTHS[nutSize]/2+tolerance; difference() { union() { //gear - rotate([180,0,0]) herringbone_gear( teeth=Gear_N_Teeth, circles=0, shaft=rod_diam); + rotate([180,0,0]) herringbone_gear(teeth=Gear_N_Teeth, height=gearHeight, circles=0, shaft=rod_diam); } if(saveMaterial)