I tested it. Works like a charm.
Here’s what I did in order to use the TMC2130 of the spare AUX drive to drive the Y-axis motor:
- downloaded the farmduino firmware
- defined the correct board in src/Board.h:
// Farmbot Genesis 1.6
#define FARMDUINO_V32
#define K16
- swapped the pin assignments in src/pins.h in section “#if defined(FARMDUINO_V32)”:
//#define Y_STEP_PIN 32
#define Y_STEP_PIN 40
//#define Y_DIR_PIN 33
#define Y_DIR_PIN 41
//#define Y_ENABLE_PIN 31
#define Y_ENABLE_PIN 37
//#define Y_CHIP_SELECT 28 // Y_CHIP_SELECT
#define Y_CHIP_SELECT 43 // Y_CHIP_SELECT
and
//#define AUX_STEP_PIN 40
#define AUX_STEP_PIN 32
//#define AUX_DIR_PIN 41
#define AUX_DIR_PIN 33
//#define AUX_ENABLE_PIN 37
#define AUX_ENABLE_PIN 31
// #define AUX_CHIP_SELECT 43 // CHIP_SELECT is not used for the spare AUX motor
- compiled the sketch in the Arduino IDE using ‘Sketch–>Export Compiled Binary’
- copied the file \src\build\arduino.avr.mega\src.ino.hex to the FAT32-Boot-Partition of the Raspberry SD card and renamed it to custom.hex
- connected the Y-motor cable to the AUX connector
- booted the system
Whether this works for versions other than FARMDUINO_V32 I can’t say
Regards
Franz