New endstop sensor

Post Reply
Tattered
Posts: 10
Joined: Fri Jun 24, 2016 5:46 pm

New endstop sensor

Post by Tattered » Wed Aug 10, 2016 9:22 am

Hi,

I am working on a prusa i3 pro B. Z axis endstop. It has a GT2560 rev A board and I am using marlin pro B with arduino 1.0.1.

I am hoping someone could help me with my sensor. I would like to use a metal detector instead of a mechanical switch. The sensor has an LED that lights up when activated, 3 wires (Black, Brown, Blue) and say's '10...30 VDC'

https://s9.postimg.org/syq71ctsf/CAM00560.jpg

Image

I have connected the Black to the power for the fan (PWM). The Brown to the earth on the endstop and the Blue to the sensor on the endstop.

https://s9.postimg.org/3o456ttov/CAM00564.jpg

Image

I have changed the marlin as follows. Disabling the pullup resistor as the sensor has its own power.

//#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
#endif

The sensor seems to work with the light turning on near metal. The printer seems to see it, moving toward the endstop (it wouldn't if there were no sensor connected). But activating and deactivating the sensor will not stop the movement.

Post Reply