I have a 5v Laser Emitter & Sensor PNP (Signal High) module which all works fine on my Arduino, and with LED indicators.
I now need to adapt this to work with a device which requires NPN (Signal Ground) and operates at 12v.
I need the parts to remain as small as possible (while using through hole components) as the whole module needs to fit in a small space.
A relay is not an option as the switch rate is approx 85hz max and I need the thing to be reliable for long term use.
Please can someone explain to me what I have to do in order to get the 12v down to 5v for the emitter and sensor, and then acheive the switching of the final output to ground when the sensor triggers (+5v).
Many thanks.
I now need to adapt this to work with a device which requires NPN (Signal Ground) and operates at 12v.
I need the parts to remain as small as possible (while using through hole components) as the whole module needs to fit in a small space.
A relay is not an option as the switch rate is approx 85hz max and I need the thing to be reliable for long term use.
Please can someone explain to me what I have to do in order to get the 12v down to 5v for the emitter and sensor, and then acheive the switching of the final output to ground when the sensor triggers (+5v).
Many thanks.