TMC2130, Ramps 1.4, Marlin, pronterface

Electronics, Components etc
Post Reply
steverichab
Posts: 2
Joined: Sat Feb 24, 2018 12:48 am

TMC2130, Ramps 1.4, Marlin, pronterface

Post by steverichab » Sat Feb 24, 2018 1:22 am

Hello from a newbie to 3D printing,

I have recently converted an old original Wanhao DI3 to Ramps 1.4 w/ LCD and it has been working fine with DRV8825 stepper drivers.

After watching Toms "Dolly Upgrade" video on TMC2130 stepper drivers I got 3 for my X/Y/Z axis's
I got the cheep Fysetc drivers but they appear to work fine after I soldered the proper jumpers.

I have gotten all axis working through Pronterface and even the LCD is fine via SPI.

X Axis limit and Y axis limit are wired to the diag pin on the TMC2130s but the Z limit is wired to a mechanical switch.
note: M119 reports back open always on X&Y and triggered on Z when it is home.

All seems well but 2 things do not work 1) when I hit XHome on Pronterface the motor only shutters. 2) M122 returns nothing. I also do not know if sensor less homing is working but first things first.

Here is a summary of my configuration.h and I have modified the configuration.adv.h and pins.ramps files

Please Help !!!

//**************************************************************************************************************************************

#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#define CONFIGURATION_H_VERSION 010100
#define SERIAL_PORT 0
#define BAUDRATE 250000

#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif
#define CUSTOM_MACHINE_NAME "TMC2130 X Home Broken"
//===========================================================================
//======================== Extruder =======================
//===========================================================================
#define EXTRUDERS 1
#define POWER_SUPPLY 0
#define PREVENT_COLD_EXTRUSION
#define EXTRUDE_MINTEMP 170
// This option prevents a single extrusion longer than EXTRUDE_MAXLENGTH.
// Note that for Bowden Extruders a too-small value here may prevent loading.
#define PREVENT_LENGTHY_EXTRUDE
#define EXTRUDE_MAXLENGTH 200
#define INVERT_E0_DIR false
//===========================================================================
//======================== Thermal Runaway Protection =======================
//===========================================================================

#define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
#define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed

//===========================================================================
//============================== Endstop Settings ===========================
//===========================================================================
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the probe.
#define INVERT_X_DIR true
#define INVERT_Y_DIR false
#define INVERT_Z_DIR false
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1

//=============================================================================
//============================== Movement Settings ============================
//=============================================================================
//************************************************************************************************************
//#define DEFAULT_AXIS_STEPS_PER_UNIT { 159.86, 159.8, 799.09, 190 }
// These settings are for DRV8825 stepper drivers at 1/32 steps/mm cut in half if A4988 drivers @ 1/16 steps/mm
#define DEFAULT_AXIS_STEPS_PER_UNIT { 79.95, 79.9, 399.55, 190 }
// These settings are for TMC2130 stepper drivers at 1/16, E0 DRV8825 drivers @ 1/32 steps/mm
//*************************************************************************************************************
//*************************************************************************************************************
/
// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS 170
#define Y_MAX_POS 170
#define Z_MAX_POS 170
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders

steverichab
Posts: 2
Joined: Sat Feb 24, 2018 12:48 am

Re: TMC2130, Ramps 1.4, Marlin, pronterface

Post by steverichab » Sat Feb 24, 2018 1:30 am

One more thing if I use the correct DEFAULT_AXIS_STEPS_PER_UNIT { 79.95, 79.9, 399.55, 190 } the Y Home behaves the same way as the X Home
If I use the original DEFAULT_AXIS_STEPS_PER_UNIT { 159.86, 159.8, 799.09, 190 } only the x home behaves that way

FYI G28 X0 in pronterface does not go home either.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests