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

Поделиться
HTML-код
  • Опубликовано: 4 июл 2016
  • 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

  • @georgejaxxin4957
    @georgejaxxin4957 4 года назад +2

    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

  • @mattjoy
    @mattjoy 7 лет назад +3

    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. 👍🏼

  • @ricstarred7993
    @ricstarred7993 5 лет назад

    Many Thanks-this is great info

  • @skorkmaz
    @skorkmaz 5 лет назад

    Great video. Thanks.

  • @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?

  • @warlockd
    @warlockd 5 лет назад +1

    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.

  • @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.

  • @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|

  • @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 лет назад +1

      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.

  • @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.

  • @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?

  • @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

  • @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?

  • @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.

  • @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

  • @kephranet
    @kephranet 7 лет назад +1

    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.

  • @airgunningyup
    @airgunningyup 4 года назад +1

    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.

  • @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

  • @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

  • @anneliedstrom2890
    @anneliedstrom2890 7 лет назад

    do you connect the ground from the PSU to the breakoutboard to?

  • @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

  • @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

  • @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 ruclips.net/video/O1kOh_opZzA/видео.html

  • @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

  • @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.

  • @PURGE-3000
    @PURGE-3000 3 года назад

    You don’t need resistor if you switch a relay or 24V contactor to power a motor.

  • @MyName1979
    @MyName1979 2 года назад

    Where is the CNC?

  • @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