Hello everyone. I'm new to this site and circuit design. I am looking for a little help with my project. To start out I'm just trying to attach a Photo lnterrupter to a parallel port and read the value via basic. The PC/basic stuff is not a problem.. but I seem to have a flaw in my design. I made the drawing below from memory so I might have the parallel pins wrong.. In the image below you will see i'm connected to pin 10 (one of the data input pins) and pin 25 (gnd). By default Pin 10 will hang high at 5 volts @ 2.0 mA max. My power source is 5V from the PC power supply (not the port itself) The output at R2 (lower right) from the photo interrupter(CNZ1112) will be at 5 volts when nothing is blocking the LED. 0V when blocked.
I have two problems:
1) the value of R2 seems to effect the response time of the photo interrupter, but it also lowers its output voltage. What would you think is the best value for this that would still keep the PC port happy?
2) I also need to pull pin 10 low so that the parallel port pin will only be high when the LED is not blocked.. After much trail and error I was unable to find a resistor that would not pull low all the time or never at all... Am I going about this wrong?
Datasheet for CNZ1112: http://www.semicon.panasonic.co.jp/ds4/SHG00031BED_discon.pdf
Thanks
I have two problems:
1) the value of R2 seems to effect the response time of the photo interrupter, but it also lowers its output voltage. What would you think is the best value for this that would still keep the PC port happy?
2) I also need to pull pin 10 low so that the parallel port pin will only be high when the LED is not blocked.. After much trail and error I was unable to find a resistor that would not pull low all the time or never at all... Am I going about this wrong?
Datasheet for CNZ1112: http://www.semicon.panasonic.co.jp/ds4/SHG00031BED_discon.pdf
Thanks
Attachments
-
3.3 KB Views: 33