Electronic – arduino – opt101 (photodiode) adjust voltage output

arduinophotodiode

I'm using the popular OPT101 photodiode with 5V. How can I scale the output between 0 and 5V (or as close to that range as possible)? Now the output is ca 0-400mV (maximum is room light here).

I'm a noob, and if I had more experience, I would be able to figure out with >the datasheet< what Pin would lead to the desired 'amplification', but I have no clue where to start. I did follow the instructions outlined in the datasheet (pinned below), i.e. all recommended Pins are connected (Vs has 5V in that diagram, V- is connected to ground).

As far as I know, the circuit contains an opamp, that is probably usable to scale the output to the desired range, but I find no instructions about how to adjust it – I have a strong suspicion exactly one resistor or pin connection is needed to achieve this…

I should add, I was hoping I can achieve this without applying any negative voltage, since that seems a bit more complicated, and I avoided it wherever possible here

enter image description here

Circuit schematic from datasheet:

enter image description here

Best Answer

You need to add external resistance, for example between 4 and 5 pins, with some shunt capacitance. There is a table in the datasheet.

enter image description here

About 10M in parallel with 5pF, which will give you a gain of 11x what you have now, so about 4.4V rather than 0.4V.

It's not advisable to use a breadboard because of stray capacitance, but if you try it, you might want to increase the shunt capacitance to about 10pF or a bit more to ensure stability. The response will be more sluggish as a result.