Hi, thank you for your time. I am a newbie.
I am building a operant conditioning box. In this set up I have nose poke port that detect an IR beam interruption. This I have build myself with a set of Kinbright LED and photo-transistor. This switches a 5V power supply on and off. This signal I want to read with the lpt port pins. As far as I understood this cannot be done directly as the pins are always pulled up high by the computer. Therefore I bought some optocouplers (Sharp PC817X2NSZ0F (2420048 at farnell)). These I wanted to use to switch the input pins to ground to make them 0V.
First I wanted to test if it worked. In the first test I used an arduino digital out pin to mimic the signal. Nothing happened. I think it is because the arduino does not supply enough power. In the second test I applied the power directly from the power supply that I want to ultimately use anyway. Again, no effect or change at all on the output side of the optocoupler.
Can any of you please advise me on how to solve this and or read the datasheet of the optocoupler so I can understand what input it needs and what input is too much?
thank you
Nils
I am building a operant conditioning box. In this set up I have nose poke port that detect an IR beam interruption. This I have build myself with a set of Kinbright LED and photo-transistor. This switches a 5V power supply on and off. This signal I want to read with the lpt port pins. As far as I understood this cannot be done directly as the pins are always pulled up high by the computer. Therefore I bought some optocouplers (Sharp PC817X2NSZ0F (2420048 at farnell)). These I wanted to use to switch the input pins to ground to make them 0V.
First I wanted to test if it worked. In the first test I used an arduino digital out pin to mimic the signal. Nothing happened. I think it is because the arduino does not supply enough power. In the second test I applied the power directly from the power supply that I want to ultimately use anyway. Again, no effect or change at all on the output side of the optocoupler.
Can any of you please advise me on how to solve this and or read the datasheet of the optocoupler so I can understand what input it needs and what input is too much?
thank you
Nils
Attachments
-
511.2 KB Views: 1