Welcome! Log In Create A New Profile

Advanced

Rostock Mini Homing Fail

Posted by labmat 
Rostock Mini Homing Fail
April 30, 2013 08:55PM
I am trying to commission my Rostock Mini but am having trouble with homing, the axes all slam into the endstops but fail to stop. I am running Marlin V1 for Kossel on a RAMPS 1.1 board and have the Signal and Ground or each axes MAX limit wired to the NC termanals of each microswitch. I have verified that endstoppullups are enabled in firmware and a quick continuity test shows that the switches are working. The only thing I do not know how to do is verify that the RAMPS board is reading the switches. Is there a way to monitor the switches in firmware?

Here is a video of my Rostock

Re: Rostock Mini Homing Fail
April 30, 2013 09:03PM
Send gcode M119 to get the current endstop status.

The MAX endstops are undefined for RAMPS 1.1, so you'll need to edit pins.h before you can read them
Re: Rostock Mini Homing Fail
April 30, 2013 09:28PM
Is this correct? I have never edited a pins.h file before

/****************************************************************************************
* Arduino Mega pin assignment
*
****************************************************************************************/
#if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
#define KNOWN_BOARD 1

//////////////////FIX THIS//////////////
#ifndef __AVR_ATmega1280__
 #ifndef __AVR_ATmega2560__
 #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
 #endif
#endif

// uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
// #define RAMPS_V_1_3
// #define RAMPS_V_1_0

#if MOTHERBOARD == 33 || MOTHERBOARD == 34

#define X_STEP_PIN         54
#define X_DIR_PIN          55
#define X_ENABLE_PIN       38
#define X_STOP_PIN          2

#define Y_STEP_PIN         60
#define Y_DIR_PIN          61
#define Y_ENABLE_PIN       56
#define Y_STOP_PIN         15

#define Z_STEP_PIN         46
#define Z_DIR_PIN          48
#define Z_ENABLE_PIN       62
#define Z_STOP_PIN         19

#define Z2_STEP_PIN        36
#define Z2_DIR_PIN         34
#define Z2_ENABLE_PIN      30

#define E0_STEP_PIN        26
#define E0_DIR_PIN         28
#define E0_ENABLE_PIN      24

#define E1_STEP_PIN        36
#define E1_DIR_PIN         34
#define E1_ENABLE_PIN      30

#define SDPOWER            -1
#define SDSS               53
#define LED_PIN            13

#if MOTHERBOARD == 33
#define FAN_PIN            9 // (Sprinter config)
#else
#define FAN_PIN            4 // IO pin. Buffer needed
#endif
#define PS_ON_PIN          12

#ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
#define KILL_PIN           41
#else
#define KILL_PIN           -1
#endif

#define HEATER_0_PIN       10   // EXTRUDER 1
#if MOTHERBOARD == 33
#define HEATER_1_PIN       -1
#else
#define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
#endif
#define HEATER_2_PIN       -1   
#define TEMP_0_PIN         13   // ANALOG NUMBERING
#define TEMP_1_PIN         15   // ANALOG NUMBERING
#define TEMP_2_PIN         -1   // ANALOG NUMBERING
#define HEATER_BED_PIN     8    // BED
#define TEMP_BED_PIN       14   // ANALOG NUMBERING

#ifdef ULTRA_LCD

  #ifdef NEWPANEL
     //encoder rotation values
    #define encrot0 0
    #define encrot1 2
    #define encrot2 3
    #define encrot3 1

    #define BLEN_A 0
    #define BLEN_B 1
    #define BLEN_C 2

    #define LCD_PINS_RS 16 
    #define LCD_PINS_ENABLE 17
    #define LCD_PINS_D4 23
    #define LCD_PINS_D5 25 
    #define LCD_PINS_D6 27
    #define LCD_PINS_D7 29
    
    #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
      #define BEEPER 37

      #define BTN_EN1 31
      #define BTN_EN2 33
      #define BTN_ENC 35

      #define SDCARDDETECT 49
    #else
      //arduino pin which triggers an piezzo beeper
      #define BEEPER 33	 // Beeper on AUX-4

      //buttons are directly attached using AUX-2
      #define BTN_EN1 37
      #define BTN_EN2 35
      #define BTN_ENC 31  //the click

      #define SDCARDDETECT -1  // Ramps does not use this port
    #endif

  #else //old style panel with shift register
    //arduino pin witch triggers an piezzo beeper
    #define BEEPER 33		No Beeper added

    //buttons are attached to a shift register
	// Not wired this yet
    //#define SHIFT_CLK 38
    //#define SHIFT_LD 42
    //#define SHIFT_OUT 40
    //#define SHIFT_EN 17
    
    #define LCD_PINS_RS 16 
    #define LCD_PINS_ENABLE 17
    #define LCD_PINS_D4 23
    #define LCD_PINS_D5 25 
    #define LCD_PINS_D6 27
    #define LCD_PINS_D7 29
    
    //encoder rotation values
    #define encrot0 0
    #define encrot1 2
    #define encrot2 3
    #define encrot3 1

    
    //bits in the shift register that carry the buttons for:
    // left up center down right red
    #define BL_LE 7
    #define BL_UP 6
    #define BL_MI 5
    #define BL_DW 4
    #define BL_RI 3
    #define BL_ST 2

    #define BLEN_B 1
    #define BLEN_A 0
  #endif 
#endif //ULTRA_LCD

#else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (MOTHERBOARD == 3)

#define X_STEP_PIN         26
#define X_DIR_PIN          28
#define X_ENABLE_PIN       24
#define X_MIN_PIN           3
#define X_MAX_PIN           2

#define Y_STEP_PIN         38
#define Y_DIR_PIN          40
#define Y_ENABLE_PIN       36
#define Y_MIN_PIN          16
#define Y_MAX_PIN          17

#define Z_STEP_PIN         44
#define Z_DIR_PIN          46
#define Z_ENABLE_PIN       42
#define Z_MIN_PIN          18
#define Z_MAX_PIN          19

#define E0_STEP_PIN         32
#define E0_DIR_PIN          34
#define E0_ENABLE_PIN       30

#define SDPOWER            48
#define SDSS               53
#define LED_PIN            13
#define PS_ON_PIN          -1
#define KILL_PIN           -1

#ifdef RAMPS_V_1_0 // RAMPS_V_1_0
  #define HEATER_0_PIN     12    // RAMPS 1.0
  #define HEATER_BED_PIN   -1    // RAMPS 1.0
  #define FAN_PIN          11    // RAMPS 1.0
#else // RAMPS_V_1_1 or RAMPS_V_1_2
  #define HEATER_0_PIN     10    // RAMPS 1.1
  #define HEATER_BED_PIN    8    // RAMPS 1.1
  #define FAN_PIN           9    // RAMPS 1.1
#endif
#define HEATER_1_PIN        -1
#define HEATER_2_PIN        -1
#define TEMP_0_PIN          2    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#define TEMP_1_PIN          -1   
#define TEMP_2_PIN          -1   
#define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
#endif// MOTHERBOARD == 33 || MOTHERBOARD == 34

// SPI for Max6675 Thermocouple 

#ifndef SDSUPPORT
// these pins are defined in the SD library if building with SD support  
  #define MAX_SCK_PIN          52
  #define MAX_MISO_PIN         50
  #define MAX_MOSI_PIN         51
  #define MAX6675_SS       53
#else
  #define MAX6675_SS       49
#endif

#endif//MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34

With all switches triggered this is what Repitier reported

> 8:12:55 PM: N157 G119 *3
Re: Rostock Mini Homing Fail
April 30, 2013 09:45PM
Ignore my Repetier results above I get different values everytime I run G119 no matter what I do so clearly I am doing something wrong.
Re: Rostock Mini Homing Fail
April 30, 2013 10:23PM
Thats M119, not G119.
Re: Rostock Mini Homing Fail
April 30, 2013 10:46PM
I'm such an idiot, I had the X & Y Endstops mixed up. She is homing like a champ now!

Also such a rookie mistake on the M119.

End Stops not triggered

< 9:36:02 PM: Reporting endstop status
< 9:36:02 PM: x_min: TRIGGERED
< 9:36:02 PM: x_max: open
< 9:36:02 PM: y_min: TRIGGERED
< 9:36:02 PM: y_max: open
< 9:36:02 PM: z_min: TRIGGERED
< 9:36:02 PM: z_max: open

End Stops triggered

< 9:36:25 PM: Reporting endstop status
< 9:36:25 PM: x_min: TRIGGERED
< 9:36:25 PM: x_max: TRIGGERED
< 9:36:25 PM: y_min: TRIGGERED
< 9:36:25 PM: y_max: TRIGGERED
< 9:36:25 PM: z_min: TRIGGERED
< 9:36:25 PM: z_max: TRIGGERED

I feel kinda dumb winking smiley
Re: Rostock Mini Homing Fail
May 02, 2013 11:05PM
I thought I'd post this video of my first dry run after calibrating Z height and bed level.

Re: Rostock Mini Homing Fail
June 17, 2013 11:00PM
Is that by chance raw output from the firmware to the host in response to the M119?
Re: Rostock Mini Homing Fail
June 24, 2013 09:46AM
Joe 'Volg' Greene Wrote:
-------------------------------------------------------
> Is that by chance raw output from the firmware to
> the host in response to the M119?

I believe so, this is what shows up in the log window of Repetier-Host.
Sorry, only registered users may post in this forum.

Click here to login