Electrical – Understanding basic photoresistor circuit

photodiodephotoresistor

I'm new to electronics, so I just can't wrap my head around how this photoresistor circuit works.

I understand the following:

  1. the photodiode can be understood as a variable resistor (i.e. works in principle the same as a photoresistor)
  2. I want to measure the difference in voltage, that is caused by that variable resistor

Intuitively, I'd like to take a voltage measurement before (source: 5V) and after the diode. Can someone explain, maybe using an intuitive analogy (e.g. water current?), why this only works with an additional resistor (like below, copied from here)?

I built a working sensor using the arduino starter kit photoresistor (datasheet) using a 10kOhm resistor and a 5V source but want to understand it better.

Edit: afer helpful comments, this question is basically:

a) what is the difference between a photodiode and -resistor

b) why does a voltage divider need 2 resistors

enter image description here

Best Answer

The HW5P-1 is in fact a phototransistor.

This is the diagram of the example circuit from the datasheet:

enter image description here

The circuit symbol is clearly a phototransistor, regardless of what the poorly translated text says.

A phototransistor and a photoresistor (like a cadmium sulfide cell) both react to light, but they are fundamentally different in how they operate.

A photoresistor is a resistor whose resistance changes in response to light.

A phototransistor actually generates current from light in its base to emitter junction, which allows current to flow through the collector to the emitter. It is in effect a tiny solar cell connected to a single transistor amplifier.

You can use both to detect light, but you should familiarize yourself with how they work.

A short list of differences:

  1. Photoresistors are slow. You can't really receive a modulated light signal with them. Phototransistors are much faster, and can pickup light signals modulated with signals that can reach megahertz frequencies.

  2. Photoresistors keep changing resistance even after the light is gone. Datasheets specify the "dark resistance" for a time period in absolute darkness for this reason.

  3. Photoresistors are usually most sensitive to visible light. Phototransistors are usually most sensitive to infrared. Results can be very different from what you expect if you just replace a photoresistor with a phototransistor without considering that difference.

  4. They have different response curves. If you use the same circuit with both, they will react differently to the same light intensity. This might change your threshholds if you are using a simple level detector.

So, really, they aren't the same so don't use the terms interchangeably.

They can carry out similar tasks, but you have to use each as intended. Using one just like the other will lead to bad results.