Files
hexapod-robot/2026-current/hardware/openscad/servo.scad
T

28 lines
1.2 KiB
OpenSCAD
Raw Normal View History

// Hitec HS-485HB, from the servo's Fusion model (servo-hitec-hs-485hb).
// Local frame: shaft on the Z axis, case extending +X, Z = 0 at the ear
// underside. Include (not use) this file to get the constants.
SERVO_CASE = [[-10, -10, -28], [30, 10, 9.75]];
SERVO_EARS = [[-16, -10, 0], [36, 10, 3]];
SERVO_EAR_HOLES = [[-13.9, 5], [-13.9, -5], [34.35, 5], [34.35, -5]];
SERVO_EAR_SCREW_D = 2.5; // pilot hole for the ear screws in printed parts
POCKET_CLEAR = 0.5;
module servo_pocket_2d() {
translate([SERVO_CASE[0][0] - POCKET_CLEAR, SERVO_CASE[0][1] - POCKET_CLEAR])
square([SERVO_CASE[1][0] - SERVO_CASE[0][0] + 2*POCKET_CLEAR,
SERVO_CASE[1][1] - SERVO_CASE[0][1] + 2*POCKET_CLEAR]);
for (h = SERVO_EAR_HOLES) translate(h) circle(d = SERVO_EAR_SCREW_D);
}
module hs485hb() {
color("#303030") {
translate(SERVO_CASE[0]) cube(SERVO_CASE[1] - SERVO_CASE[0]);
difference() {
translate(SERVO_EARS[0]) cube(SERVO_EARS[1] - SERVO_EARS[0]);
for (h = SERVO_EAR_HOLES) translate([h[0], h[1], -1]) cylinder(d = 4.42, h = 5);
}
translate([0, 0, 9.75]) cylinder(d = 14, h = 2.25);
}
color("#e0e0e0") translate([0, 0, 12]) cylinder(d = 5, h = 3.25);
}