So I am using a Turck Inductive npn proximity sensor for a school project.
and followed this video: Proximity Sensor Interfacing to an Arduino (sinking sensor) - YouTube.
I am using:
Board Arduino Mega
External Vin=10 V- to power both sensor and arduino ( as he does in the video with the 9v bat)
OK so it works, but my probelm is when i hook up the Input to the sensor, the INDICATOR light is slightly dim, and that's not right. It should be completely off but it isn't.
I'm stumped, and don't understand....when i physically remove the input from the sensor to the arduino it works as it should, the green power light is on and the indicator light is off. When the sensor has been activated the indicator light comes on as it should.
I think I am overlooking something... hmm.