PNP vs NPN slotted sensor

Thread Starter

titans7

Joined Dec 18, 2024
38
I think im getting confused on these.
I currently have a slotted sensor
EE-SX676 S48D

Feeding it 12vdc: +, -, L, out
With no obstrucion
L - 0vdc
Out - 1vdc

With obstruction
L - 0vdc
Out - 0vdc

What is would like is to feed 12vdc and to have the output when obstructed 12vdc and 0vdc when not obstructed. So basically a nominal closed sensor.

From what I have read through many hours of surfing is I need a PNP dark on sensor to give me the 12vdc out I need when obstructed.

Am I thinking about this correct or just rambling? Haha.
 

panic mode

Joined Oct 10, 2011
4,866
according to datasheet, this is what it looks like inside:
1768345390340.png

and output is obviously an open collector, NPN type. this means that load must be connected between output and positive rail.
if you would rather have PNP output, add something such as

1768345901554.png

i don't see mention of light on / dark on in the datasheet so if you don't get expected state, just invert it one more time.

btw. what you measured so far is not good. you may want to measure sensor output again - with some load.
for that just connect 2.k2 to 10k resistor between Vcc and output (must have a pullup resistor) and then you should see proper output when sensor is blocked / not blocked.
 
Last edited:

WBahn

Joined Mar 31, 2012
32,704
1768346821797.png

It appears that whether it is Dark-ON or Light-ON is selectable. But note the notes that are indicated:

1768346884924.png
It says "Do not connect the L terminal to 0 V when using dark-ON operation."

If you want dark-ON operation, leave the L terminal floating.

I don't know what the "S48D" refers to in the part number you provided.

What are you planning to do with the output? It is only rated to sink 100 mA, but it may have as much as 0.8 V across it under those conditions.
 

Thread Starter

titans7

Joined Dec 18, 2024
38
And this could be the wrong sensor for what im wanting to do. Basically need a 12v slotted sensor that when the beam is broken it will send 12vdc to activate a relay. So I would think a NO condition would be 0vdc until the beam is broken this changing state to NC sending 12vdc output to trigger a relay. Thats what I want, but I dont think I have to correct sensor.
 

Thread Starter

titans7

Joined Dec 18, 2024
38
I got it. It worked. I didn't even see it. My relay has a low and high trigger. I swapped to low and the 1vdc engaged the relay.
 
Top