I am working on photocurrent amplifier circuit. When I supply power to OPAMP from Arudino using digital pins directly to OPAMP, the A0 is stable. (when dark A0 is 0V, when bright A0 is > 0V)
However, if I supply power from programmable DC power source, the A0 signal swings from high to low, low to high.
I though the baud rate etc is an issue, but changing the baud rate () did not solve the issue.
Most likely, either the op amp is oscillating (increase Cf), or you forgot to make a common ground connection between the programmable power source, the op and and the Arduino, so the input is floating.