Phototransistor proteus library

broken image
broken image
broken image

If you need to be further away make your marks wider. You may have too many marks or they may be too small, in which case you have to be right against the paper. Also if you need to you can use a 74LS14 to clean up the output or use a 2n2222 to make a darlington pair on the output and increase sensitivity but you should not have to. You can play with the resistor values to change the sensitivity. I have output with emmitter to ground, collector to the arduino pin, and 4.7k from the arduino pin to 5V. I have a 220ohm resistor on the LED for 5V, (you could go as low as 100) and a 4.7k pullup resistor on the output. I have it about 1/8 inch away with the sensor oriented so that the mark crosses the emmiter and detector at the same time.

broken image

This works very well for an encoder wheel with laser printed 1/8 marks.

broken image