Electrical – phototransistor amplifier quirk

operational-amplifierphototransistor

As an amateur to breadboarding I'd been learning about transimpedance amps and photodiodes earlier this year for a project. Eventually I picked up a phototransistor (3DU5C) at a hobby shop, mistaking for a PD, so I learned a bit about them and found this circuit on physics portal after failing to get any readable voltage from a common-collector circuit:

schematic

simulate this circuit – Schematic created using CircuitLab

The first time I tried the circuit using Arduino as a voltmeter I'd forgotten to hook up the Vcc- pin on the op-amp to GND, but the transistor responded to light (4.18V at ambient light and ~4.75V with a phone flashlight. When I noticed it, I completed the power supply to the OA and it started reading 5.00V consistently. Hooking up one power pin to different ports produced other various ranges, the highest being the Vcc port to GND (1.35-4.07). The transistor also seems to work with no power supply to the OA at all. Additionally, all cases seem to be switch mode. Any idea why this is, and how could I change this circuit to active mode?

Best Answer

Your op-amp is not doing much at all. The RC4558 requires a negative supply voltage of at least -5V. Furthermore, its output voltage cannot swing close to the DC supply rails, requiring a volt or two "overhead". If you intend to use an op-amp, choose one that can work with low supply voltages, and one that has "rail-to-rail" output swing.

Your phototransistor is supplying photo-current through R1 (10K) to the microcontroller input pin. The op-amp is likely acting as a resistance to ground, so that voltage is less than the positive supply voltage.
You might be better off with this circuit:

schematic

simulate this circuit – Schematic created using CircuitLab Even with a negative supply voltage going to pin 4, your circuit would produce a negative-going output voltage when the photo transistor sees light: not compatible with a microcontroller expecting to see a voltage between 0V and its supply voltage.