584,808 active members*
5,451 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > Npn nc proximity sensor in series diagram
Results 1 to 17 of 17
  1. #1
    Join Date
    Feb 2016
    Posts
    29

    Npn nc proximity sensor in series diagram

    Hello. I'm in the process of wiring up the two NPN NC proximity sensors to the c10 BOB. I've read since they are NC that they should be wired in series. Is that correct? I've also read that I require a resistor to drop the voltage from the +12v to around +6v for the c10. I've read I should use a 10k ohm resistor but I guess that would change after its wired in series? A diagram would be most helpful.

    All help is appreciated. Thanks.

    Sent from my SM-N900W8 using Tapatalk

  2. #2
    Join Date
    Mar 2007
    Posts
    2083

    Re: Npn nc proximity sensor in series diagram

    it would be easier with N/C switches with a PNP open collector output

    what is the part number of the proximity sensors you have ? and do you have a link to the data sheet ??

    can they work when powered by the C10 BOB's 5V supply supply ??

    if they have to be powered by a 12 V supply you need to limit the voltage that's applied to the C10 input to 0 to +5V

    (the absolute limit for input of the 74ACT245 IC used for the C10 is -0.6V to +5.6V)

    John

  3. #3
    Join Date
    Feb 2016
    Posts
    29

    Re: Npn nc proximity sensor in series diagram

    I don't have the data sheet but this is the part number LJ12A3-4-Z/Ax your basic Chinese npn switch. I'll be using a 12v power supply to power the switches, not the c10 BOB. Forgive me but I'm a bit of a newbie.

    Thanks

    Sent from my SM-N900W8 using Tapatalk

  4. #4
    Join Date
    Mar 2007
    Posts
    2083

    Re: Npn nc proximity sensor in series diagram

    my first thought is to connect the proximity sensors via a diode "OR" gate like this -

    Click image for larger version. 

Name:	2x nc npn proximity switch connected to C10 in put.jpg 
Views:	27 
Size:	58.2 KB 
ID:	388362

    the 4.7V zenner protects the C10 input

    John

  5. #5
    Join Date
    Feb 2016
    Posts
    29

    Re: Npn nc proximity sensor in series diagram

    Can I wire it in parallel? Or run each one individually to c10 inputs?

    Sent from my SM-N900W8 using Tapatalk

  6. #6
    Join Date
    Mar 2007
    Posts
    2083

    Re: Npn nc proximity sensor in series diagram

    assuming you have use one input for an E-stop

    you could have 3 proximity switches and a touch probe Individually connected to the remaining 4 inputs

    Click image for larger version. 

Name:	nc npn proximity switch connected to C10 in put.jpg 
Views:	11 
Size:	41.0 KB 
ID:	388414



    you can only wire normally open switches in parallel
    using normally closed switches the control would only see a change of state when all switches open

    John

    PS
    the circuit in post 4 is a way of connecting 2 proximity switches per axis
    and possibly all proximity switches to 1 input

  7. #7
    Join Date
    Apr 2008
    Posts
    203

    Re: Npn nc proximity sensor in series diagram

    What I did for my switches was buy an adjustable charger adapter. You just need to hook ground back to board ground. Then you can adjust the voltage for your sensor to work properly. I think mine took 9 something after voltage drop. This way no resistors.

  8. #8
    Join Date
    Feb 2016
    Posts
    29

    Re: Npn nc proximity sensor in series diagram

    The #4 diagram will do two npn nc switches in series per axis correct? That is what I would like to do. I have six switches in total. Two per axis.

    Sent from my SM-N900W8 using Tapatalk

  9. #9
    Join Date
    Feb 2007
    Posts
    4553

    Re: Npn nc proximity sensor in series diagram

    John,

    Very awesome solution, this will help anyone that has NPN N/C proximity switches.

    Greatly appreciated!

    Jeff...


    Quote Originally Posted by john-100 View Post
    my first thought is to connect the proximity sensors via a diode "OR" gate like this -

    Click image for larger version. 

Name:	2x nc npn proximity switch connected to C10 in put.jpg 
Views:	27 
Size:	58.2 KB 
ID:	388362

    the 4.7V zenner protects the C10 input

    John
    Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.

  10. #10
    Join Date
    Mar 2007
    Posts
    2083

    Re: Npn nc proximity sensor in series diagram

    in post 4 the proximity switches are not in series

    the 1N4148 diodes effectively put all the proximity switches in parallel when they are open but
    isolates any closed switch and prevents it grounding the C10's input

    for example with 4 proximity switches
    Click image for larger version. 

Name:	4x   nc npn proximity switch connected to C10 in put.jpg 
Views:	20 
Size:	96.7 KB 
ID:	388434

    John

  11. #11
    Join Date
    Feb 2016
    Posts
    29

    Re: Npn nc proximity sensor in series diagram

    Quote Originally Posted by john-100 View Post
    my first thought is to connect the proximity sensors via a diode "OR" gate like this -

    Click image for larger version. 

Name:	2x nc npn proximity switch connected to C10 in put.jpg 
Views:	27 
Size:	58.2 KB 
ID:	388362

    the 4.7V zenner protects the C10 input

    John
    I think I'll do this diagram. Couple questions about it. There are many different 1n4148 diode values, does it matter which one I get? I need 1k ohm resistors? Ive read to use 10k ohm resistor to drop voltage down required for c10. Thanks for the help.

    Sent from my SM-N900W8 using Tapatalk

  12. #12
    Join Date
    Mar 2007
    Posts
    2083

    Re: Npn nc proximity sensor in series diagram

    the 1N4148 is just a small wire ended silicon diode and is a popular diode in this type of logic circuit
    http://uk.farnell.com/multicomp/1n41...-35/dp/9565124

    (just check any suffix the component supplier adds to indicate the 1N4148 is supplied in a bulk pack so you don't order 40000 instead or 4 !!! or its a surface mount version with out any wires 1N4148-W )

    but you could use a 1N4001 1A rectifier if that is whats you happen have to hand

    if you had just one proximity switch connected to the C10 input you could calculate what resistance you need to have between the switch positive supply and output

    but once you have 2 switches or more the voltage will depend on how many switches are open - the 4.7V zenner diode simplifies the solution

    the maximum resistance between the proximity switch +12V and its output works out as 6400 ohms in order to have 5V dropped across the C10's 4K7 pull down resistor



    John

    PS
    if using a UK (or european) supplier the BZX85C4V7 is an alternative to 1N4732 zener diode

  13. #13
    Join Date
    Feb 2016
    Posts
    29

    Re: Npn nc proximity sensor in series diagram

    Thanks for all the great info. I'll buy some 1k ohm resistors.

    Sent from my SM-N900W8 using Tapatalk

  14. #14
    Join Date
    Feb 2016
    Posts
    29

    Re: Npn nc proximity sensor in series diagram

    Sorry bit I'm still a bit confused. Is 6400 ohm resistor used for one switch and 1000 ohm resistor for using two switches like in the diagram? Appreciate all the help John.

    Sent from my SM-N900W8 using Tapatalk

  15. #15
    Join Date
    Mar 2007
    Posts
    2083

    Re: Npn nc proximity sensor in series diagram

    If I remember correctly
    depending on the tolerance of the 74ACT245 IC a logic high can be up to +3.8V

    with a 10K resistor across the switches 12V & output terminals
    the volt drop across the C10's 4K7 pull down resistor will be 3.837V which may not always be enough
    depending on the tolerance of the components

    so your looking to replace the 10K resistor with a 8.2 k resistor at the most

    the 1K resistor I chose is probably the lowest value you want to add to 10 switches (for 5 axis)
    with 1N4148 diodes in series with each switch output and the 1W 4,7V zener across the C10 BOB's input

    as long as the C10's input is protected by a 1W 4.7V zener
    you can us any resistor value from 1K to 8.2K

    John

    PS
    it was just out of curiosity after re reading post 1
    I calculated that for a single switch that
    a 6400 ohm resistor across the proximity switch +12V & output terminals
    would result in 5V being dropped across the 4700 pull down resistor when the switch opens
    note-
    for multiple switches you need to connect the 1W 4.7V zener diode across the C10 BOB's input

  16. #16
    Join Date
    Feb 2016
    Posts
    29

    Re: Npn nc proximity sensor in series diagram

    Quote Originally Posted by john-100 View Post
    If I remember correctly
    depending on the tolerance of the 74ACT245 IC a logic high can be up to +3.8V

    with a 10K resistor across the switches 12V & output terminals
    the volt drop across the C10's 4K7 pull down resistor will be 3.837V which may not always be enough
    depending on the tolerance of the components

    so your looking to replace the 10K resistor with a 8.2 k resistor at the most

    the 1K resistor I chose is probably the lowest value you want to add to 10 switches (for 5 axis)
    with 1N4148 diodes in series with each switch output and the 1W 4,7V zener across the C10 BOB's input

    as long as the C10's input is protected by a 1W 4.7V zener
    you can us any resistor value from 1K to 8.2K

    John

    PS
    it was just out of curiosity after re reading post 1
    I calculated that for a single switch that
    a 6400 ohm resistor across the proximity switch +12V & output terminals
    would result in 5V being dropped across the 4700 pull down resistor when the switch opens
    note-
    for multiple switches you need to connect the 1W 4.7V zener diode across the C10 BOB's input
    Would it matter if I use 1/4 watt or 1 watt resistors?

    Sent from my SM-N900W8 using Tapatalk

  17. #17
    Join Date
    Mar 2007
    Posts
    2083

    Re: Npn nc proximity sensor in series diagram

    You can use either

    a 1K resistor across a 12V supply would only dissipate 0.144 W

    John

Similar Threads

  1. Proximity sensor wiring
    By Lindzr in forum Automation Technology Products
    Replies: 2
    Last Post: 08-16-2017, 01:29 AM
  2. CRP's Proximity Sensor Kit
    By rwskinner in forum Avid CNC
    Replies: 5
    Last Post: 02-12-2014, 04:07 AM
  3. BB does not read +5 from proximity sensor
    By crane550 in forum DIY CNC Router Table Machines
    Replies: 3
    Last Post: 03-25-2012, 02:01 PM
  4. proximity sensor issue
    By strohkirchw in forum Benchtop Machines
    Replies: 18
    Last Post: 05-27-2011, 10:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •