Welcome! Log In Create A New Profile

Advanced

Optical Endstops & Autoleveling - GT2560 Prusa I3

Posted by NH_Brew 
Optical Endstops & Autoleveling - GT2560 Prusa I3
November 16, 2016 05:52AM
I am currently building my first own Prusa I3. I have chosen the GT2560 board because my boss had a 3D printer at work which I had to maintain from time to time so I am a little bit more familiar with this board.
After some issues with getting my stepper motors to move I now have come to the part where I would need to change the firmware to work with optical endstops for the X&Y axis [www.reprapsource.com] and a LJ12A3-4-Z PNP NO 4 mm proximity sensor for the Z axis to auto level. Also: has anybody else noticed that you have to turn knob of the LCD2004(+SD) in the wrong way (clockwise) to go down in the menu?
The opto endstops seem to work as the led reacts when the sensor is triggered but it seems that the auto level sensor doesn't response to any metallic surface beneath it with its led; I would need to look into it.
What would I need to change in the configuration file to make the firmware able to work with opto endstops and a proximity sensor?
Re: Optical Endstops & Autoleveling - GT2560 Prusa I3
November 16, 2016 04:39PM
In Marlin's Configuration_adv.h file you can control the direction for the Encoder Wheel for both menu items and numbers while editing them. Just configure them to your preference.
Re: Optical Endstops & Autoleveling - GT2560 Prusa I3
November 16, 2016 08:04PM
Thanks for the reply! Unfortunately I can't find the line where it would be defined/configured, could you point me towards it?

Update: I got the Y-Axis endstop to work but the X-axis endstop won't work with the same settings; now it always is on.
#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors

#ifndef ENDSTOPPULLUPS
  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
  // #define ENDSTOPPULLUP_XMAX
  // #define ENDSTOPPULLUP_YMAX
  // #define ENDSTOPPULLUP_ZMAX
  // #define ENDSTOPPULLUP_XMIN
   #define ENDSTOPPULLUP_YMIN
  // #define ENDSTOPPULLUP_ZMIN
#endif

#ifdef ENDSTOPPULLUPS
  #define ENDSTOPPULLUP_XMAX
  #define ENDSTOPPULLUP_YMAX
  #define ENDSTOPPULLUP_ZMAX
  //#define ENDSTOPPULLUP_XMIN
  //#define ENDSTOPPULLUP_YMIN
  //#define ENDSTOPPULLUP_ZMIN  ST: For autoleveling
#endif

// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Y_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.  //works for Y Axis homing
const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.  ST: true to enable autobedleveling for npn style sensor
const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
#define DISABLE_MAX_ENDSTOPS
//#define DISABLE_MIN_ENDSTOPS

// Disable max endstops for compatibility with endstop checking routine
#if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
  #define DISABLE_MAX_ENDSTOPS
#endif

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders

// Disables axis when it's not being used.
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
#define DISABLE_E false // For all extruders
#define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled

#define INVERT_X_DIR false   // for Mendel set to false, for Orca set to true
#define INVERT_Y_DIR true    // for Mendel set to true, for Orca set to false
#define INVERT_Z_DIR false     // for Mendel set to false, for Orca set to true
#define INVERT_E0_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false

Re: Optical Endstops & Autoleveling - GT2560 Prusa I3
November 24, 2016 08:15PM
They are called:

//#define REVERSE_ENCODER_DIRECTION
#define REVERSE_MENU_DIRECTION


There are two settings. One for the Encoder in general. And one for menu options.

Edited 2 time(s). Last edit at 11/24/2016 08:21PM by Roxy.
Sorry, only registered users may post in this forum.

Click here to login