I've been trying to do a very low light level project myself the past 2 days with photodiodes and phototransistors. This is for people like myself and the original poster who are pushing light detection without a photomultiplier to the limit (below 0.1 mW/cm^2).
I looked at the first receiver module and its minimum irradiance detection was 0.2 mW/m^2 which is about 10,000 times more (less capable) than what discrete photodiodes and phototransistors can do (maybe they meant cm^2 instead of m^2?). Neither are good for really low light levels according to "Art of Electronics" (1 uA per uW of light page 996), totally not capable of getting near what the human eye can do due to leakage current and noise. He describes using photomultipliers which may be required if your light levels are too low. However, in shining light through my fingers in a well-lit room, I am able to see what my eye can't detect on an oscilliscope (with either PhotoDiode or PhotoTransistor).
Assuming his 1 uA per uW is correct, here is an example: a 5 mm photodiodes and phototransistors have an area of 20 micro m^2. So 1 uW/m^2 (1/1000th of noon sunlight) would generate 20 uA (according to Art of Electr) . [[ 1/1000th of noon sunlight is 1 W/m^2 which is about twice as strong as a 20W incadescent light at 1 meter (6W light output into 12 m^2 surface area of a surrounding sphere). ]]
However, my 880nm phototransistor datasheet indicates 600 uA at 1W/m^2 (0.1 mW/cm^2), wich is 30 times more. This assumes all the light is within the active range of the diode's junction.
Sharp has a much better application note, but it seems to be lacking in explaining which design is best for which situations. Figure 13 is most applicable to what original poster and I need, and figure 10B is very interesting but I don't know what they mean by "improves response". http://physlab.lums.edu.pk/images/1/10/Photodiode_circuit.pdf
When used with an op amp, a phototransistor may not capabale of getting as good of a gain as a photodiode for very low light levels because it to uses a "cheap" method of getting its initial gain (transistor instead of op amp). I suspect a photodiode with a JFET op amp (very low input current) would ultimately provide a higher gain with less noise. In any event, the photodiode or phototransistor with the largest optical receiving area might have the best ability to detect low light levels, but that might also increase noise and leakage by a proportional amount and they are usually the underlying problem. So there is a limit to this type of light detection and ideally efficient phototransistors and photodiodes may ultimately be equally good when used with an op amp, but theoretically I suspect photodiode is a little better. It will be the op amp design that matters and I think figure 13 with a JFET op amp and a well-chosen shunt capacitor across the feedback will be best for phototransistor.
For the dual supply op amp, you can use a "lowish" valued resistor pair (two 1k for 10V Vcc to get 5 mA bias) to split the voltage to create a false ground for the +Vin.
I found R=1M for the feedback resistor much better than R=4.7M. Forrest Mimms in his simple opto book used a 10 M with a parallel 0.002uF and a solar cell instead of a phototransistor or photodiode for "extrememly" low light levels" (maybe a solar cell would be better for your application) It seems all PN junctions seem to operate as a solar cell to some extent, as I've read of using clear-cased small signal diodes to detect light. I'm using a regular 830 nm LED as my "photodiode".
The lens angle of whichever 5mm optical diode you use makes a big difference. +/-10 degrees is roughly 4 times more sensitive than +/-20 degrees....if the light source is coming in from less than +/-10 degrees. If the light source is a big area that is +/-20 degrees in front, then it doesn't matter.
I tested the two circuits below. I could detect 0.3V, 5 ms pulses on the phototransistor's Vo which means 0.3 uA which means 0.05 uW/cm^2 if my reading of the datasheet is correct and if it remained linear (big ifs) all the way down to 0.3uA. Maybe it was 5 uW/cm^2. If 0.05 uW/cm^2 is correct, then the off-the-shelf 830 LED was reading down to 0.5 uW/cm^2. I was shining 10 mW 830 nm light through 1 cm of tissue (my finger). I know that if the light levels I was working with were red, it would have been barely visible. The link below shows using 500 M ohm feedback with a photodiode, indicating much lower light levels. Notice the orientation of their photodiode, which is the same as my LED (backwards from most internet links). I got better results this way.
http://www.optics.arizona.edu/palmer/OPTI400/SuppDocs/pd_char.pdf
Voltages don't go "through", that's current. The photodarlington is a current source, and small currents will go through R3 until about 150 µA is reached. Then the voltage drop across R3 is 0.7 V and Q1's base-emitter voltage will fix R3's voltage to that level, and therefore R3 won't get more than the 150 µA. If the photodarlington sources more that will go into Q1's base.
So if Q3 gets enough light Q1 will conduct and pull the base of Q2 to ground. Q2 won't conduct anymore and the LED will extinguish. If there's less light than needed for the 150 µA then Q1 won't conduct, and Q2's base will get current through R1, and the LED will light up.
R3 is there to make sure that Q1 won't get current if it's dark. A photodarlington has a dark current of probably 1 µA or so, and that would be enough to get Q1 conducting. R3 takes care of the first 150 µA, and this way creates a threshold for Q1.
R4 will limit Q1's base current in case the photodarlington will want to source too much of it. With the current 330 Ω the base current will be limited to 25 mA, which will prevent damage to the transistor.
The resistor values will depend on the photodarlington's characteristics, and the light level you want the LED to go on/off.
Kudos to dextorb for this Falstad simulation.
Best Answer
Your op-amp is not doing much at all. The RC4558 requires a negative supply voltage of at least -5V. Furthermore, its output voltage cannot swing close to the DC supply rails, requiring a volt or two "overhead". If you intend to use an op-amp, choose one that can work with low supply voltages, and one that has "rail-to-rail" output swing.
Your phototransistor is supplying photo-current through R1 (10K) to the microcontroller input pin. The op-amp is likely acting as a resistance to ground, so that voltage is less than the positive supply voltage.
You might be better off with this circuit:
simulate this circuit – Schematic created using CircuitLab Even with a negative supply voltage going to pin 4, your circuit would produce a negative-going output voltage when the photo transistor sees light: not compatible with a microcontroller expecting to see a voltage between 0V and its supply voltage.