Finally,
just one question, the current between the photodiode and the inverting input of the opamp, would it be in the direction of the photdiode or the opamp.
and this current would be alternating right? otherwise the capacitor would not let it pass through.
thanks for all the help.