Hi I am using the Arduino Uno, and I want to detect a metal object at a very short distance (1/16" or even less).
My first questions are, Is it better to use a NPN or PNP sensor? (I have seen both mentioned) Second, would I be reading the input from the sensor as digital or analog?
FYI, the sensor that I am planning on using is LJ12A3-4-Z/BX Inductive Proximity Sensor Switch NPN DC6-36V
I know that the voltage is 6-36VDC, but from what I have read, it should give a workable "detection" voltage even at 5VDC? Also, I do have 12VDC available (if this would give me a more reliable reading)? Not 100% sure how to wire that and keep my Arduino safe? I think with a zener diode? Also I think I need to have a resistor at the base of the sensor?
Sorry for all the questions, still very new :D