Inductive Proximity Switch as limit switch for CNC - connection and selection of pull down resistor

  Рет қаралды 56,517

Martin Barfoed

Martin Barfoed

8 жыл бұрын

Inductive NPN Proximity Switches are easy to use as limit switch for hobby CNC machines. In this video I explain how I use them and how to select a pull down resistor that fit a digital input switching between zero and ca. 5V.
If you have a limited number of inputs you may want to use two switches in parallel e.g. for front and back on the same axis. In this case you must use a resistor of approx half.
In the video I try to find resistors resulting in an output of ca 5V. The following was found: Single Sw 12V 10k; 24V 3.3k; 36V 2.2k. Two Sw in parallel: 12V 4.7k; 24V 1.5k and 36V 1k
Most Makers need to be able to Solder Wires to Wires or Wires to Connectors when Building Machines like CNC or 3D Printers. In this Video I show how I'm doing this and the Tolls I use. Some practice is needed to get a good result.
Parts for building CNC check out makersupplies.dk

Пікірлер: 53
@mattjoy
@mattjoy 7 жыл бұрын
Thank you for explaining this, saved my day. My machine is all wired up with the same brand of Sensors.
@cncmachine3751
@cncmachine3751 3 жыл бұрын
Thanks Martin, this is very usefull for my cnc project. 👍🏼
@georgejaxxin4957
@georgejaxxin4957 4 жыл бұрын
Thanks for this, I'm not up to speed with this, however, after messing around for 3 days then I watched this and bingo , even worked out who BoB is
@ricstarred7993
@ricstarred7993 4 жыл бұрын
Many Thanks-this is great info
@skorkmaz
@skorkmaz 5 жыл бұрын
Great video. Thanks.
@warlockd
@warlockd 5 жыл бұрын
I thought of this and its a great idea for a cnc. My only problem is that alot of these sensors eat like 300ma. Having 3 brings it up to 900ma of power. Compare that to an optical sensor and eh. I don't know though. I really like the idea of using them instead of other sensors.
@CLGPerformance
@CLGPerformance Жыл бұрын
I would put a voltage divider differently so the switching transistor wouldnt load up with current and heat up or damage the control board. One resistor off the end of the black wire and at the end of that resistor add another resistor and connect that to the ground. Saves the switching transistor from loading up in current and keeps the sensor from getting damaged as well as the control board |GND| | ---|sensor out (BLK)|---------|R|--------------|R|---------|Home Switch Control board|
@johnward5890
@johnward5890 4 жыл бұрын
Could you hook up two proximity switches in series so each was getting 6 volts from the 12 volt power supply and then use the 6 volts for the breakout board?
@steveu235
@steveu235 4 жыл бұрын
If my breakout board is rated 12-24v on the end of the board where i am connecting the black signal wire then should i put a resistor or just leave it?
@charleshaerle8498
@charleshaerle8498 6 жыл бұрын
Nice Video. Can you do a video on connecting pnp nc switches in SERIES. My plc has limited inputs and it would be awesome to just use 1 input pin. Everybody shows just one sensor or they wire them in parallel. I have 4 wire pnp no/nc sensors. I want to send 5 volts through until one of the sensors sense metal and then open the circuit to ground.
@rok1475
@rok1475 4 жыл бұрын
Rockwell Automation published a diagram of how to connect NPN and PNP sensors in series and in parallel. In parallel connection a diode is installed between each sensor and the load. Breakout boards that have built-in pull up resistors will only work with current sinking (NPN) sensors.
@martinbarfoed5040
@martinbarfoed5040 4 жыл бұрын
Thanks for your comment.
@kephranet
@kephranet 7 жыл бұрын
If you connect a 5 volt zener diode from your output to ground, you will not need a different resistor for each supply voltage. Put your resistor in series between your sensor output and the zener. This clamps the out voltage at the resistor/zener junction to 5 volts.
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
Thanks for the comment. I may add this option to a future video.,. I'm also preparing one where I use opto couplers to separate the voltages.
@jwerry58
@jwerry58 3 жыл бұрын
With a NPN sensor wouldn't you connect the resister between the Black wire and +Volts? Your diagram shows it connected to -Volts and that would be correct for a PNP sensor.
@tracksntreadslou
@tracksntreadslou 7 жыл бұрын
Great Video Martin..I am in the process of changing my chinese CNC router over to using Mach 3 and a ESS smoothstepper with a C25 BOB .I Need to change the NPN NO proximity voltage from 24 volt to 5 volt ..When using different 24v supplys with a different amperage is it possible that the value of the resistor needed will change as well? ..How many amperes are you testing with your unit?
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
I would not expect that a different amperage of the PSU will influence the resistor you need to use. But for safety - do a test using a voltmeter before connecting to you BOB.
@franktrapani4804
@franktrapani4804 4 жыл бұрын
very good explanation but can you tell me how to wire it to run a digital tachometer to check rpm of machine spindle thank you
@martinbarfoed5040
@martinbarfoed5040 4 жыл бұрын
I havent tried that. Some controllers have a separate input for encoders to control. One I know is Acorn from Centroids
@kampsmwila4258
@kampsmwila4258 7 жыл бұрын
am trying to find a sensor that gives different analog signal outputs when it detects different types of metals at the same distance..need it for a coin counting system.that should be able to count different denominations of coins depending on the type of metal.your quick response will highly be appreciated.
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
I do not know any sw that will do that. I hope you can find help somewhere. Good luck
@gasparigi
@gasparigi 5 жыл бұрын
Hello Martin, nice educative video. Thanks. The output is digital or analog? Digital, for example 12V or 0V? Or it can be analog any value between 0-12V detecting distance too? I am trying to detect if target is moved from some fixed position.
@martinbarfoed5040
@martinbarfoed5040 5 жыл бұрын
This type of switches are digital. Either on or off. Not sure what sort of sensor that will do what your are looking for. Ultrasonic maybe?
@ikecobey6268
@ikecobey6268 7 жыл бұрын
Nice video if ever I used 12 volts and I need to pull down in 5 volt what value of resistor I need to get 5 volts
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
Ike Cobey It must be around 10k. See video at ca 4:40
@airgunningyup
@airgunningyup 3 жыл бұрын
i think ill go with 1k ohm , need to step from 9v ( 9.2 ) to about 6v, and 10k might drop me well below 5..thank you soo much.
@tstvideo1
@tstvideo1 7 жыл бұрын
Nicely explained. I have a single axis machine ( X axis) I want to connect inductive proximity switches NPN type( LJ12A3-4-Z/BX) at the ends as limit switches. i am using Arduino Uno & a stepper motor. Where & how do I hook up the switches? Your help will be appreciated.
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
You will need to connect the sw to some power - typically > 6V. The signal connects to one of the digital inputs on Arduino via a pull down resistor. I think you can use same procedure as Im doing the this video to find one that fit as you will also need ca 5V on the input
@nielsenminibio
@nielsenminibio 7 жыл бұрын
Hej Martin. Tusind tak for gennemgangen. Er der en måde at regne sig frem til et resultat, da en af mine venners CNC kører på 20V?
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
It's unfortunately difficult to calculate as we do not have data on the internal components in the switch. So that why I use the experimental method. If you would like to see how to calculate you may look here: www.ti.com/lit/an/slva485/slva485.pdf A guess for you 20V PSU would be to around 4k
@anneliedstrom2890
@anneliedstrom2890 7 жыл бұрын
do you connect the ground from the PSU to the breakoutboard to?
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
Yes, I did
@thechriskelly12
@thechriskelly12 7 жыл бұрын
are they normally closed ones and switch to open when the metal object within the sensing distance was thinking of getting some normally open ones and using them to switch a transistor or mosfet for my grbl shield.
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
Normally Closes (NC) switches will be active when no metal is near - this means that the LED is lit and you get signal out (GND for NPN and Vcc for PNP)Same story for Normally Open (NO). They will become active when metal is coming close enoygh to trigger resulting in signal out (GND for NPN and Vcc for PNP). I'm working on a video comparing all four types of switches.
@jwerry58
@jwerry58 3 жыл бұрын
@@martinbarfoed5040 Here you say 'Normally Closes (NC) switches will be active when no metal is near - this means that the LED is lit and you get signal out' but in your other video (NPN & PNP NO NC Proximity Switches - experiments with function and Pull Down Resistors) you show the NPN NC as INACTIVE LED ON and ACTIVE LED OFF. So Which is it?
@floydgilbertjr3545
@floydgilbertjr3545 4 жыл бұрын
Hi Merry Christmas question I'm using 6 NPN NO proximity sensors and a 12 volt power supply 1 for X axis, 1 for Z axis, and 4 for Y axis 1 ea for Y- and Y+ and 2 Y Slaved When installing to my Break Out Board I have only 5 Inputs on the Board due I put 4 together for theY Axis on 1 input?
@martinbarfoed5040
@martinbarfoed5040 4 жыл бұрын
Sorry for the late reply! I hope you found a solution. You can put the sensors in parallel - no problem. I have e.g. the Y+ and Y- in parallel sharing only one input. Same for X
@cnc_workbench
@cnc_workbench 2 жыл бұрын
Hi Martin, does this work to use 24v proximity sensors with Pokeys57CNC board for limits and homing? a 3Kohm for 1 sensor and 1.5Kohm for 2?
@martinbarfoed5040
@martinbarfoed5040 2 жыл бұрын
Hi Neil, PoKeys input are for 5v only - so you need pull down resistor or Zeener diode to use w 24v signal. Check the output with voltmeter before connecting to the controller
@balajithirumalai1007
@balajithirumalai1007 7 жыл бұрын
which proximity sensor are you using? .i need it please respond me ASAP.can u suggest me a binary output providing proximity sensor
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
Im using NPN NO. Maybe you can use this video kzbin.info/www/bejne/hWLOgJuVpNWNsKM
@PURGE-3000
@PURGE-3000 3 жыл бұрын
You don’t need resistor if you switch a relay or 24V contactor to power a motor.
@urgamecshk
@urgamecshk 7 жыл бұрын
How bad is it to only supply them 5-6V from the start?
@martinbarfoed5040
@martinbarfoed5040 7 жыл бұрын
Julius Jahn They are typically rated for 6-36V. But it seems that there is some loss of accuracy if you are in the lower end.
@Jono6671
@Jono6671 6 жыл бұрын
most sensors I've come across are rated for 10-30v DC, so you would have to drop the voltage or interface them some other way
@derbemoges2119
@derbemoges2119 3 жыл бұрын
Continuous glow of light problem what is the problem please tell me
@martinbarfoed5040
@martinbarfoed5040 3 жыл бұрын
If you connect only plus and GND and you have the LED light up the switch is most likely broken
@AdaptingCamera
@AdaptingCamera 3 жыл бұрын
Why are you doing this with a resistor? You should use a Zener diode and a small resistor. That could give you 5.1V or 4.7 volt out if that's what you want.
@MyName1979
@MyName1979 2 жыл бұрын
Where is the CNC?
@martinbarfoed5040
@martinbarfoed5040 2 жыл бұрын
In another video :-)
@dronesvisionsaeriennes
@dronesvisionsaeriennes 4 жыл бұрын
Good evening Martin, excellent video, I understand how to play on the output voltage .... but I do not understand why when I place my sensor with the orange nose down, the earth, it lights up so detect, I also have the impression that it detects my hand that I approach on the aluminum body ..... but nothing happens when I approach the iron or other material ... on the orange nose ...? ?? it is connected to a control card according to the following diagram ... Black for signal, Blue for GnD, Brown for + 12V ... Here is the link of my sensor ... fr.aliexpress.com/item/32748267115.html?spm=a2g0s.9042311.0.0.27426c37ggjUer Thanks for your help... Philippe
@martinbarfoed5040
@martinbarfoed5040 4 жыл бұрын
Are you sure what type of sensor it is? To me it sounds like it could be a capacitive sensor. The one I'm working with in thes video is Inductive.
@dronesvisionsaeriennes
@dronesvisionsaeriennes 4 жыл бұрын
@@martinbarfoed5040 yes, it's this following.... fr.aliexpress.com/item/32748267115.html?spm=a2g0s.9042311.0.0.27426c37wRntRd but i don't understand where the issue is...do i need to wire it with another way...? thank's a lot
How To Use Inductive Proximity Sensors
9:43
GBWM
Рет қаралды 4,9 М.
Proximity Switch - Introduction, Wiring and Testing
9:36
BuildYourCNC
Рет қаралды 30 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 11 МЛН
Limit Switch Sensor
10:39
JBWorxStudio
Рет қаралды 16 М.
Learn How to repair Ball Screw in Machining Center by RECO
14:54
RECO Pakistan CNC
Рет қаралды 15 М.
CNC Mach3 | Homing and Limits Part2 | Wiring It Up + Setting Up Soft Limits
5:31
Limit Switches and E-Stops, The Ultimate Guide
31:16
BuildYourCNC
Рет қаралды 24 М.
How to Troubleshoot PNP and NPN Sensors
4:17
Turck USA
Рет қаралды 3,3 М.
Go Home! - Installing Limit Switches on a Diode Laser
11:12
LightBurn Software
Рет қаралды 70 М.
#10 NPN Proximity Limit Sensors #10 / CNC Control Box
8:16
Educating Savvas
Рет қаралды 23 М.
Хинкали 🥟
0:35
Сан Тан
Рет қаралды 755 М.
Умеют рыбки половить 🤣
0:27
🎣 БОЛОТОВСКОЕ ОТРОДЬЕ
Рет қаралды 3,3 МЛН
小丑刚回来,上面到底是谁? #小丑#shorts  #天使
0:24
好人小丑
Рет қаралды 3,3 МЛН
VOCÊ ME AJUDARIA ?
0:46
JHONIC
Рет қаралды 37 МЛН
😨 24 часа ЕМ ВСЁ на СЕВЕРЕ - шок еда в Мурманске
0:45
Настя, это где?
Рет қаралды 1,6 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
0:37
SMOL German
Рет қаралды 29 МЛН