Need Help! Dual proximity sensors


Results 1 to 2 of 2

Thread: Dual proximity sensors

  1. #1
    Registered
    Join Date
    Nov 2014
    Posts
    0
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:
    Attached Thumbnails Attached Thumbnails Dual proximity sensors-sensor-jpg   Dual proximity sensors-screen-shot-2017-08-22-6-30-a  


  2. #2
    Member
    Join Date
    May 2015
    Location
    Australia
    Posts
    686
    Downloads
    0
    Uploads
    0

    Default 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.vmn.com.au


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Dual proximity sensors

Dual proximity sensors