@reFlexlab said in DUET 3 6HC - Using Inductive proximity sensor as endstop:
@fcwilt
Hello Thank you for your help,
How do I test that the logic levels are correct and how should I correct if they are not ?
Thank you,
Tom
I have an oscilloscope that I use but any device capable of measuring DC voltages in the 0 to 24 volt range would work.
Here is an example of the small low cost oscilloscopes available today. This one is half the cost of the older unit I have and five times as fast.
Oscilloscope
The OptoCoupler used is a 4N25 which is quite common.
The 1K resistor should be good for most inductive sensors IF they source current which is usually the case for PNP types of sensors.
NPN types of sensors usually sink current in which case the cathode end of L1 would connect to the sensor output and the J1 end of the resistor would connect to power source, labeled V1+ in the diagram above.
Yet I have found PNP and NPN types that both source and sink current.
I wish manufactures would stick to pure open-emitter (PNP) or open-collector (NPN) designs. Sigh... 😉
You can start with just R1 and L1 connected to sensor output and ground OR sensor power and output. If L1 goes on and off with the sensor then you have found the correct setup and can finish the wiring adding the 4N25, etc.
Frederick