I'm quite new at this. I built this transimpedance amplifier circuit corresponding to the image with a 10 kOhm resistor and a 100 nF capacitor.
It works pretty fine, with a 1V-5V corresponding to no light and full light.
The thing is that I would like to measure really small variation of lights, it appears that the variation I'd like to measure is between 2V +/- 0.05 V. Have you got an idea to amplify the value of this small range so It could at least give me an amplitude of +/- 1V instead of +/- 0.05 V?
If you have an A/D of sufficient resolution, just measuring the range around 2V may be enough.
I guess you have already tried this and are not satisfied.
I suspect that unless your diode is in a temperature conrolled environment the output variation due to temperature will be non-trivial. Just an educated guess.
You may want to consider a pair of detecting diodes. One kept dark for reference and look at the difference in their outputs.
The difference output could then be compared to a 2V reference.
This increases your circuitry significantly, sorry. But none of it is complicated, ha ha famous last words.
If I change the resistor, it will go from 2V +/-0.05 to ~5V +/- 0.125?
But I would like to have more precision that +/-0.125V, at least 0.5V.
Do you have an idea to increase the variation?
You can offset the range by squirting some current into thhe + terminal of the opamp. The current will have to be equal and opposite to the lowest current from your photodiode.
If your schematic is correctly drawn, your OPAMP + and - inputs are switched. The photodiode, resistor and capacitor all should go to -, that is inverting, input of opamp. 100uF and 10k resistor make your circuit very slow. With your schematic the output voltage goes down when you put more light into the diode. Besides, it seems to try go negative. Put some positive voltage on the + input of your opamp.
You should take an DVM and measure how your circuit works. It looks like it wont work. When you have fixed it, your code will likely give better results.
In fact the circuit shown by the Fritzing diagram is correct (have to consult the LTC1050 data sheet to be sure), but the schematic in reply #8 introduced several fatal errors.