Switch on and off a photoelectric sensor?

Status
Not open for further replies.

Jimmylee

Banned
Joined
Mar 17, 2021
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
302
Good day, all
Recently, I am doing a project that use arduino uno to switch on and off a photoelectric sensor (according to Infrared Photoelectric Switch). How do i test the current of the output signal black wire as i worry that the arduino can only take in 5V and 40mA. I have connected the brown to 18V power supply, blue to collector of transistor and 5V supply to the base transistor.

Parts Used:
NPN photoelectric sensor
supply voltage 10-30V
output current <100mA
power consumption <20mA
NPN Transistor 2n3904
 

What does it mean "use arduino uno to switch on and off a photoelectric sensor"? I can only imagine using Arduino to process the sensor output signal.
 

Photoelecric sensors are switched by light. If the sensor output is "NPN open collector", can I use INPUT_PULLUP on the Arduino input pin?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…