Connect with us

Connect 24V 2wire sensor to 5v Logic

Discussion in 'Sensors and Actuators' started by Dimitrios Mitsas, Oct 21, 2015.

Scroll to continue with content
  1. Dimitrios Mitsas

    Dimitrios Mitsas

    3
    0
    Oct 21, 2015
    Hello all and thank you for reading me. As the tittle suggests I have a pressure sensor from SMC that works on 24V and it's a 2 wire one (brown blue) I did read the manual and I was able to use a 3 wire sensor at 24V using a voltage divider. But I can't really figure out how to connect this sensor on one of the pins of my micro-controller (5V logic I mentioned). I did search mister Google a lot but the only thing I found are pictures having the sensor connected in parallel with the power supply and a "magic" load in series. Any help is appreciated.
     
  2. BobK

    BobK

    7,682
    1,686
    Jan 5, 2010
    Link to the datasheet?

    Bob
     
  3. BobK

    BobK

    7,682
    1,686
    Jan 5, 2010
    Sorry, I don't have any experience with that kind of sensor. That said, I think you could put a voltage divider from the brown to the blue wires, using resistors >> the series resistor, which should be set to something like 1K. So maybe:

    brown -> 10K <--> 2.5K -> blue

    Then take the signal from the joint of the two resistors.

    This would provide approximately 4.8V when then switch is OFF and 0V when the switch is ON.

    Bob
     
  4. Bluejets

    Bluejets

    4,094
    859
    Oct 5, 2014
    You could connect through an optoisolator as shown in the data sheet for PLC connection.
    Adapt to suit your application.
     
  5. Minder

    Minder

    2,968
    626
    Apr 24, 2015
    That appears to be a 2 wire sensor and requires the voltage from the load of the sensor to also power itself.
    As opposed to the 3 wire type that use +/- & out.
    It also appears to be a level switch as opposed to a linear output which Would require the 3 terminal type.
    They are intended for relatively high impedance inputs.
    I assume you want to interface with a MicroProcessor?
    You could use an Opto as shown in the data sheet.
    M.
     
  6. Dimitrios Mitsas

    Dimitrios Mitsas

    3
    0
    Oct 21, 2015
    Thank you all very much for the replies. I will first try with a voltage divider like bob suggested and then with an optoisolator. Thanks again.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-