Farmduino_monitor - new github code - development console

Couldn’t one simply swap the pin assignments in farmbot-arduino-firmware-main\src\pins.h like this:

    // X2-AXIS
  #define E_STEP_PIN 15     // X2_STEP_PIN
  #define E_DIR_PIN 30      // X2_DIR_PIN
  #define E_ENABLE_PIN 14   // X2_ENABLE_PIN
  #define E_CHIP_SELECT 29  // X2_CHIP_SELECT

changes to:

    // X2-AXIS
  #define E_STEP_PIN 40     // X2_STEP_PIN
  #define E_DIR_PIN 41      // X2_DIR_PIN
  #define E_ENABLE_PIN 37   // X2_ENABLE_PIN
  #define E_CHIP_SELECT 43  // X2_CHIP_SELECT

and

    // Auxiliary motors
  #define AUX_STEP_PIN 40
  #define AUX_DIR_PIN 41
  #define AUX_ENABLE_PIN 37
  // #define AUX_CHIP_SELECT 43

changes to:

    // Auxiliary motors
  #define AUX_STEP_PIN 15
  #define AUX_DIR_PIN 30
  #define AUX_ENABLE_PIN 14
  // #define AUX_CHIP_SELECT 29

and connect the X2-motor to the AUX-output (leaving encoder circuitry connected as is)?
If I understand correctly this would just replace the broken TMC2130 of the X2-module with the (hopefully intact) TMC chip of the AUX module

-Franz

1 Like