OpenSCAD_ServoArms icon indicating copy to clipboard operation
OpenSCAD_ServoArms copied to clipboard

Fixed screw hole

Open ollie-d opened this issue 1 year ago • 1 comments

Previous code had the screw hole height hard-coded to 10mm. This fix utilizes the head_height variable to create a hole for any shaft height.

ollie-d avatar Aug 21 '23 23:08 ollie-d

Nice, but you can simplify the fix like that:

    difference() {
        translate([0, 0, 0.1]) {
            cylinder(r = head_diameter / 2 + head_thickness, h = head_height + 1);
        }

        cylinder(r = head_screw_diameter / 2, h = head_height * 2);

        servo_head(params);
    }

hugokernel avatar Aug 24 '23 08:08 hugokernel