Welcome! Log In Create A New Profile

Advanced

how to wiring inductive proximity sensor to ramps 1.4 board?

Posted by wendychai80 
how to wiring inductive proximity sensor to ramps 1.4 board?
March 01, 2015 08:47AM
Hi all,
i want to ask about wiring inductive sensor to ramps1.4 board.
I already got the sensor and waiting for the risistor to arrive.i dont know where to plug it into the ramps board.

the sensor wire is brown(+) black and blue(-)

to where should i connect the brown(+) and blue(-) wire from the sensor? to + - on the power supply or the 5A 11A on the terminal block on the ramps board?

and the black wire from the sensor should go to where? (+ - S) on the z-endstop pin on ramps board?

maybe someone got link for pictures of the sensor wiring on their ramps 1.4
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 02, 2015 09:08AM
If you're lucky it will work at 5V. +5V to brown, - to blue, and black to S. All pins are on the endstop headers. You'll need to configure your firmware so that it's looking for the pin to go high (PNP sensor) or going low (NPN sensor). If 5V isn't enough to power the sensor, you can use a 12V supply (header pins by D2 next to the fuses, or the main power connectors) but you'll need to add a voltage divider to lower the voltage down to 5V otherwise you'll fry your microcontroller.
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 02, 2015 11:02PM
Thank you for your kind answer cdru

if i following this guide https://www.youtube.com/watch?v=EcGFLwj0pnA and using resistor, i dont need voltage divider again right? and after that part i start confusing , to where i should plug in the sensor wire after i soldering it with the risistor confused smiley

Is there any change i will fry my microcontroller if i plug it like you mention on you first answer +5V to brown -to blue and black to S
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 03, 2015 10:04AM
A voltage divider is only necessary if you're powering it with > 5 V. The sensor itself may not work at 5V. Most that you find online are rated at 6V or higher but some people have said they got it to work with just 5V here in the forums. If you are running it just with 5V, no resistors are necessary. As long as your colors were correct for what their function was, you shouldn't fry your controller.
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 03, 2015 10:58AM
Thank you for replying

mine is DC6-36V NPN Sensor normally open. i will try plug it to the end stop header and report back here later after finishing my printing

have a nice day friend
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 03, 2015 11:57AM
Normally closed is preferred, as you can detect if the sensor is not hooked up. If a wire breaks, a NO sensor will appear the same if it's tripped or not. Just be aware...
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 03, 2015 02:51PM
ok i already hook all thing up, and the sensor got light when i put it near my aluminium bed, i think it works.

After i upload the firmware and send m119 command it keep "open" even if the sensor just 1-2mm from the bed. where i doing wrong here
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 04, 2015 08:47AM
What are your endstop settings in your configuration.h file?
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
March 04, 2015 09:02AM
below is my configuration.h for the servo autobed lvling ones

//===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================

// Uncomment the following line to enable CoreXY kinematics
// #define COREXY

// coarse Endstop Settings
#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 pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Z_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
const bool Z_MAX_ENDSTOP_INVERTING = true; // 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 true // 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

// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1

#define min_software_endstops false // If true, axis won't move to coordinates less than HOME_POS.
#define max_software_endstops true // If true, axis won't move to coordinates greater than the defined lengths below.

// Travel limits after homing
#define X_MAX_POS 215
#define X_MIN_POS 0
#define Y_MAX_POS 215
#define Y_MIN_POS 0
#define Z_MAX_POS 190
#define Z_MIN_POS 0

#define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
#define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
#define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
December 18, 2015 10:35AM
So how can i test mine at just 5v? I dont have the resistors.
I just got my LJ12A3-4-Z/BX delivered.

Edited 1 time(s). Last edit at 12/18/2015 10:39AM by Govahnator.
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
October 15, 2016 11:25AM
OK, thanks, but where do I find my configuration H files?

Ed.
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
October 15, 2016 11:31AM
I'm an old dummy & can't type to good. just one finger at a time.
where the hell are configuration files found?
Re: how to wiring inductive proximity sensor to ramps 1.4 board?
October 15, 2016 11:03PM
Quote
eddygale
I'm an old dummy & can't type to good. just one finger at a time.
where the hell are configuration files found?
You'll find configuration H file inside marlin folder, you need to download the marlin firmware first if you didnt have it
Sorry, only registered users may post in this forum.

Click here to login