E3JK-R4M1 Reflective Photoelectric Sensor Switch

Hi, thinking about buying this switch for a hobby project. Before I do, just checking if it is possible to connect it to Arduino Uno/Nano and how. Thanks.

It is a 12V 5 wire and it has a built-in relay output min 5V 10mA.

It has 5 connections:

  1. Brown ... + power supply
  2. Blue ... - power supply
  3. White ... COM Relay
  4. Black ... Relay Normally open
  5. Grey ... Relay Normally closed

My idea:

  1. Brown ... + external 12V battery
  2. Blue ... - external 12V battery (and Arduino GND???)
  3. White ... Arduino 5V
  4. Black ... Arduino pin + 10kOhm to Arduino GND

Possible? Thanks

Deleted: jim-p posted and that makes what I said unnecessary

https://www.wish.com/product/651404b7cc6d7326ab2efa65

No it was necessary

Datasheet: "Relay output SPDT 5VDC, 10mA min"

On the link, they've connected the white to positive power supply. That's why I was thinking to connect it to Arduino 5V

Website says 3A no minimum.
Can you post the datasheet.

https://www.farnell.com/datasheets/1634350.pdf

This is for Original Omron E3JK, not sure if it is the same.

"Relay output: 250VAC 3 A (cosϕ=1) max., 5 VDC 10 mA min."

You are right. That relay is designed for 240VAC output and is not suitable for low voltage DC.
Find a new photoelectric sensor.

I thought it depended on supply voltage. OK, thanks

What about this one:

https://www.wish.com/product/5bc999b41eb6f02164a15836

Basically the same but:

"
Power supply voltage:12 to 24V DC±10% 50/60 Hz
Current consumption: 2 W max.
Control output: Relay output SPDT, (cosφ= 1) 5 V DC, 10 mA min
Response time (ON OFF): 30ms max
"

The R4M1 and the R4M2 are basically the same. One closes the relay when it gets light the other does the oppsite.

Depending on the range you need, you should select one of these:

E3JK-R2S3
E3JK-R4S3
E3JK-DS30S3

Thanks, how do I connect the E3JK-R4S3 to Arduino?

Actually it is not clear from the data sheet if they will work with 5V

If you can't find something that will work, it will be possible to add a transistor circuit so that you can use it with an Arduino.

OK, I will try that. Thanks

So what have you decided?

I have ordered few different sensors and see what they give me as output and then I will play with it and let you know

What kind of transistor circuit? Thanks