Are my encoders working?


#1

You’ve enabled the encoders in the Hardware widget on the Device page and are experiencing movement issues. For movement issues with encoders disabled, see Why is my FarmBot not moving?. Make sure movement works well with encoders disabled before proceeding.

Symptoms of encoders not working:

  • Motors keep moving and don’t stop when hitting the end of an axis.
  • Encoders always display 0 in Controls page Move widget, even when motors do not.
    (image credit: @Ascend)
  • If you send a command to move an axis in one direction from about the middle of the axis, then push it back manually in the opposite direction while it’s moving, it continues trying to move and doesn’t stop.
  • If you move the motors slowly by hand, the encoders always display 0 in Controls page Move widget as shown in the screenshot above.

Potential Solutions for encoders not working:

  • Make sure encoders are plugged in to the correct axes.
  • Check the encoder connections (v1.3+). (Pay special attention to the black and dark gray wires if using v1.2.)
  • Make sure the firmware version selected matches the kit hardware version you have. (Arduino: v1.2, Farmduino with black power connector: v1.3, Farmduino with red power connector: v1.4)
  • Unplug and plug back in the power supply to reset the firmware.
  • Reflash the firmware by factory resetting and configuring FarmBot OS again. (Alternatively, select a different FIRMWARE in the Device widget and then select the desired firmware again. You should see logs indicating that the firmware has been flashed.)

Symptoms of encoders working, but incorrect settings:

  • Moving an axis, or pressing Home axis or Calibrate axis results in an immediate stop.

Potential Solutions for encoders working poorly:

  • Try inverting the encoders in the Hardware settings widget.
  • Reduce the maximum motor speed to 400 in Hardware settings.
  • Increase the number of steps used for acceleration to 500. (Alternatively, try a zero or near zero value.)
  • Decrease the minimum speed to 50. (Alternatively, increase the minimum speed to 200.)

Setting up encoders and calibrating axis
X-Axis Encoder not Working
Movement errors
Collection of common Error message
Home Command takes 2 tries to find Home