585,931 active members*
3,812 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2014
    Posts
    0

    Dual proximity sensors

    I am testing out some proximity sensors for my (in development) CNC machine, they will alert on the machine reaching the limit of each of its axis. I am using NPN sensors similar to this one:



    The sensor is a 3 wire (+ve, -ve and signal) and I am sending 24v to the +ve. When the sensor is not triggered it gives 24v on the signal wire, when it's triggered it gives somewhere around 0v. I added a pull down resistor to ground so I actually see 5v and now I can connect that to a digital input on my Arduino and that works fine. What I want to do, though, is to have one of those sensors on either end of a given axis (X and Y) and for either one of them to trigger the limits. Each limit only has one input on the Arduino (using GRBL). My question, then:

    How do I take two 5v signal wires and trigger the single input on the Arduino? I am thinking I can use a quad AND gate IC, which seems to give me the correct logic, which is 1 when both sensors are providing voltage and 0 otherwise (like when one of the sensors is triggered), ala:



    Is the the correct way? Seems very cheap way to do it.

    -Steve

  2. #2
    Join Date
    May 2015
    Posts
    686

    Re: Dual proximity sensors

    Usually, if you have to share inputs for limit switches you would connect normally closed switches/sensors (which you seem to have) in series (24 volts) and configure your controller to error on the loss of signal. I would have a 5 volt signal from the Arduino wired to your input pin that is switched on and off by the 24 volt circuit. Maybe use an optoisolator that can accept a 24v signal that switches 5v might do the trick.
    Rod Webster
    www.vehiclemods.net.au

Similar Threads

  1. how many proximity sensors?
    By RobSm in forum CNC Machine Related Electronics
    Replies: 2
    Last Post: 01-18-2017, 09:02 AM
  2. Turck Proximity Sensors
    By vertcnc in forum Stepper Motors / Drives
    Replies: 6
    Last Post: 01-06-2014, 06:48 PM
  3. proximity sensors
    By FordGalaxy in forum Benchtop Machines
    Replies: 16
    Last Post: 06-02-2012, 09:36 AM
  4. Inductive Proximity Sensors
    By nickfox in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 09-07-2006, 03:15 AM
  5. proximity sensors
    By wired in forum CNC Machine Related Electronics
    Replies: 7
    Last Post: 09-30-2005, 05:29 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
  •