Thanks a lot! I ignored the 1st reading as you suggest. The readings in the covered sensor still drop but much less than before.
I'm having problems in low light situations. That is, I register no light in low light scenarios. Is there any way to make a setup with phototransistors which is more sensible to light? Can I somehow "move" the sensitive area? Maybe another sensor is better for low light scenarios?
The readings in the covered sensor still drop but much less than before.
Then put a delay between the first and second readings. The interaction occurs because the input capacitor on the A/D has not got time to charge up to the correct value due to the high impedance of those resistors.
which is more sensible to light?
Assuming you mean sensitive, there are several solutions to this. The simplest concept is just to amplify the signal with and external operational amplifier. You can run into dynamic range issues with this.
A more involved method is to replace those 470K resistors with a capacitor, say 0.1uF. Then switch the pin to be a digital output and write a logic zero to it. Then when you want to make a measurement, make the pin an input, delay and then take an analogue reading. What happens is that the current trickling through the photo transistor charges the capacitor. The longer the delay the more time this current is gathered (or integrated) in the capacitor and so it is more sensitive. Push this too far though and you just end up with noise.
Looking through my salvaged circuit boards, I can see that I have some TI RC4558P op-amps. Would they be a good/reasonable choice? It looks to me as if I can use just one of these for my two phototransistors as it has two sets of ins and outs? Is that so?
well the data sheet says the minimum supply voltage is +/- 5V so you would need a source of -5v as well as the arduino's voltage.
There are amplifiers that can operate on only 5V nowadays.
My supplier has a bunch of different ones. Would anyone do
No sorry.
You need a 5v one. And you need to connect the -ve input of the amp (show as going to 0v) to a potential divider with two 1K resistors going between 0V and 5V. Also if possible one that will output the full voltage rail range, sometimes called a rail to rail amplifier.