Servo Serial Creation

From Aeon HACS Wiki
    3D Model    About this item    Product info

Prepare the Basic Servo for New Electronics[edit | edit source]

  1. Remove the 4 screws and bottom cover from a basic servo.
  2. Separate the screws and covers; set aside.
  3. Remove the gearbox & bearing (top cover), gears, and shafts.
  4. Set aside, protect from dust.
    Three servo boxes on a table with their gears, bearings, shafts and screws removed and set beside the servo it came from.
    Screws and gearbox removed from Servos.
  5. Pull the PCB out of the servo body.
  6. Clip the motor leads at the PCB.
  7. Remove the screw securing the position potentiometer.
  8. Remove the potentiometer and servo PCB; discard to salvage.
  9. Use a hard surface to push potentiometer shaft into servo body to break glue and snap it loose.
  10. Remove any glue remaining in the servo body.
    • Useful tools: tweezers, #2 pencil eraser, compressed air.
  11. Extract the pin from the spline gear (see photos).
    Two examples of the gear-like servo spline gear and a open wrench used to remove them from their servo units.
    Close up perspective of servo spline gear.
    1. If the top bearing is stuck on the spline gear use the servo bearing wedge set (TL-SBSW) to remove it.
    2. Clamp the spline gear between the spline gear vise jaws (TL-SGVJF and TL-SGVJB) in a machinist vise, with the 3/16 inch spline gear vise jaw hinge (TL-SGVJH) inserted between the vise jaws at the bottom (see photo).
    3. The spline gear vise jaw set (TL-SGVJS) comprises TL-SGVJB, TL-SGVJF, and TL-SGVJH.
    4. Clamp the pin in the end of the "pin-puller" vise-grip jaws (TL-PPVG).
      • The clamping force must be sufficient to create opposing flats on the pin.
        The specially-ground flats jaws of the pin-puller are not parallel; they should form a wedge-shaped "head" on the pin.
        A vise grip with the pin clamped inside on a worktable with the gear still inside.
        Pin clamped inside of a "pin-puller" vise grip jaws.
    5. Rotate the pin back and forth about its axis by twisting the pin-puller. After the pin has been rotated a cycle or two, begin pulling while continuing to rotate the pin back and forth, and continue to rotate and pull until the pin comes out.
    6. Deburr the rim of the pin's hole in the spline gear. It must not protrude above the face of the spline gear.

Assemble the Serial Servo[edit | edit source]

  1. Install the RENC CCA:
    1. On the RENC CCA, rotate the encoder's hollow shaft so the flat of the d-shaped opening is near and parallel to the PCB edge with the screw cutout corners.
    2. Insert the RENC CCA into the servo body:
      1. The encoder side of the PCB goes in first.
      2. The wires stick up after insertion.
      3. The PCB screw cutouts align with the screw shafts in the corners of the servo body.
        The top of the encoder sits flat on the raised boss inside the body that housed the potentiometer.
        RENC CCA inserted all the way into the servo body with required tool.
      4. The top of the encoder sits flat on the raised boss inside the body that housed the potentiometer.
      5. The RENC PCB edge with the screw cutouts touches the servo body.
        Option: (omit unless instructed otherwise)
        • Apply a small amount of PVA glue (Elmer's white glue) at the edges of the RENC PCB where it meets the sides of the servo body.
      6. Allow the glue to dry.
        a pair of tweezers holding a servo body where a small amount of PVA glue on the edges RENC PCB where it meets the sides of the servo body. A small amount of glue in a tin container with an applicator sit in the background out of focus.
        Small amount of PVA glue (Elmer's white glue) at the edges of the RENC PCB.
  2. Install the DSMC CCA:
    1. Solder the motor leads into the bottom of DSMC CCA.
      The wire from red motor terminal goes to M+ on the DSMC PCB; the other wire goes to M-.
      • Use servo motor wiring fixture (TL-SMWF) to hold the CCA for soldering.
        Solder the motor leads into the bottom of DSMC CCA. The wire from red motor terminal goes to M+ on the DSMC PCB; the other wire goes to M-.
        Assembly fixture for DSMC.
    2. Straighten the RENC wires with tweezers.
    3. Carefully position the DSMC CCA into the servo body, feeding the RENC wires straight through the A, C, & B pads, and tucking the motor wires between the motor and the RENC CCA, to fit the DSMC PCB into the recess in the bottom edges of the body.
    4. Gently tug the RENC wires straight with tweezers.
    5. Solder the RENC wires into the DSMC PCB and trim the leads to the solder joints.
  3. Insert the D-shaped end of rotary encoder shaft into the encoder through the servo body's spline gear hub.
    1. The flat of the D goes toward and parallel to the short end of the servo body nearest the hub.
    2. Ensure the D-shaped end of the shaft mates with the encoder's matching D-shaped hollow.
      When it does, the round part of the shaft drops entirely inside the body.
  4. Re-assemble the gear train:
    1. Install bottom gear on the brass bearing in the middle of the gearbox. Insert the long gear shaft through the bottom gear and into the bearing.
    2. If removed previously, Insert the short gear shaft into the shroud above the motor pinion.
    3. Install the "hat" gear on the short shaft.
    4. Rotate the encoder shaft so the flats align with long dimension of servo body.
    5. Install the spline gear onto its hub
      • It's pin hole toward the near end of the servo body and its coupling aligned to mate with encoder shaft.
      • Support the RENC CCA so the gear doesn't push it out of position, and ensure the encoder shaft properly engages the spline gear coupling.
      Squeeze the spline gear and PCB toward each other.
    6. Ensure the spline gear spins freely throughout the full 360 degrees of rotation.
    7. Install the top gear.
    8. Ensure the top gear teeth mesh properly with both spline and hat gears.
      May need to push shafts slightly apart to enable this.
    9. If the spline gear top bearing is NOT inside the gearbox (servo top cover), push the bearing onto the spline gear.
      If needed, use the servo bearing pusher (TL-SBP) to seat the bearing.
    10. Install the gearbox (servo top cover) onto the servo body, ensuring the spline gear bearing is seated onto the spline gear and the two gear shafts seat into their bearings in the gearbox.
      • Ensure the seam between the gearbox and body remains closed when pressure is removed.

Program the Firmware[edit | edit source]

  1. Open the servo project in the Zilog ZDS II debugger.
  2. Ensure the servo code is current and compiled.
  3. Gently secure the servo body upside down in a small vise so the DSMC CCA is accessible from the top, making sure the gearbox doesn't fall from the bottom.
  4. Ensure the debugger is stopped.
    A second pair of hands may be helpful for this section.
  5. Engage the programming cable pogo pins into the PCB DBG pads (black to GND).
  6. These pins must remain manually engaged from now until programming is complete.
  7. Connect the actuator controller cable to the servo, make sure the brown wire goes to GND.
    Note: This is only AFTER the programming cable is connected.
  8. Click the [Download code] icon in ZDS II.
    You may need to also click "OK" if hardware version B warning appears.
  9. When programming is complete, click the ZDS II debugger's [Stop] icon.
  10. Disconnect the programming cable.
  11. Disconnect the servo cable.
  12. Unclamp the servo and turn it gearbox-side up in the vise, making sure the exposed electronics don't touch the vise.
  13. Re-connect the servo cable, making sure the brown wire goes to GND.
    Note: Disconnecting and reconnecting this cable reboots the servo.
    • Make sure both Ucom and Dcom are connected.
  14. Open Serial Port Terminal and test the servo operation:
    1. Issue 'z' commands until the firmware version appears in response.
      Up to three tries may be required, because buffers are left in indeterminate states when cables are disconnected.
    2. Mark a dot on the face of the spline to make its rotational position obvious.
    3. Issue 'g96' and observe one full counter-clockwise rotation of the spline, as viewed from above the servo.
    4. Issue 'g-96' and observe one full turn clockwise.
    5. Issue 'g1' and 'g-1' several times and observe small incremental motions in the appropriate direction.
  15. Disconnect servo cable.
  16. Machine bottom cover.
    Check the DSMC bottom cover to make modify this part.
  17. Install the machined bottom cover.
  18. Install and tighten the original 4 screws that hold the servo together, just tight enough to completely close the seams.