Dynamixel XL330 cogs

From IxD Studio
Jump to navigation Jump to search

Download this OpenSCAD Library: https://github.com/chrisspen/gears

- How to install Libraries in OpenSCAD: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries

XL 330 manual: https://emanual.robotis.com/docs/en/dxl/x/xl330-m288/

Example cog for XL330:

use <gears/gears.scad>;
// or include --> include <gears/gears.scad>;

$fn=32;

w = 5.3; // cog thickness -- good size for the large screws included in the XL330
teeth = 24; // adjust number of teeth based on design
inner = 6; // fixed number
outer = 10; // adjust this number to the edge of the teeth so that it 'hides' the holes
screw = 1;

module mounts(screw, inner, outer){
    // module for screw mounts
    union(){
        union(){
            union(){
                translate([inner,0,-2]) cylinder(outer, screw, screw);
                translate([-inner,0,-2]) cylinder(outer, screw, screw);
            }
            translate([0,inner,-2]) cylinder(outer, screw, screw);
        }
        translate([0,-inner,-2]) cylinder(outer, screw, screw);
    }
}


module disc(inner, outer){
    // disc to 'cover' the gear library holes in your design
    difference(){
        cylinder(w, outer, outer);
        cylinder(w, inner/2, inner/2);
    }
}

difference(){
    union(){
        spur_gear(modul=1, tooth_number=teeth, width=w, bore=inner);
        disc(inner, outer);
    }
    mounts(screw, inner, outer);
}


Other XL330 servo accessories

https://studio.cse.chalmers.se/mediawiki/index.php?title=Servo_accessories