Electronic – use a photodiode as a switch for a shift register

registershift

Let's say I have a photodiode, a shift register (74HC595) and a 5V source, and I connect these as:

5V source — photodiode — shift register data input.
(And other voltages to feed the register clock etc)

Do I need a resistor with the photodiode, or will it suffice to put the photodiode before the shift register?

What I am trying to do here is essentially use the photodiode as a switch which allows the register input to be set to 1 only when light falls on the PD.

Best Answer

Maybe on paper, but probably not in the real world. Photodiode current is very small, so it would take a very large resistor to produce enough voltage change to affect a CMOS gate input. You will get better performance and noise immunity with a phototransistor.