Well, okay, what are you interfacing the output to? (You mentioned 5 volts or more as a goal.) What kind of response time do you need? Are you interested in reading an analog value, or is this just an on/off requirement?
BTW, I now see you've asked the same question in the BASIC Stamp forum, too. Duplicate posts are against forum rules. While you still can, please delete your other post using the "X" button in its upper righthand corner.
You may not need an op-amp if your phototransistor is sensitive enough for your application. You connect the emitter of the phototransistor to ground (Vss) and the collector to a Stamp I/O pin. Connect a 10K resistor between the same Stamp I/O pin and +5V (Vdd). When the phototransistor is exposed to enough light, it will conduct enough to bring the I/O pin to under about 1.2V which the Stamp will see as LOW (or 0). When the phototransistor is in the dark, it won't conduct and the 10K resistor will "pull up" the I/O pin to roughly +5V which the Stamp will see as HIGH (or 1).
Why does that matter?· You can just as easily test for zero as you can for one in your program.· You can write "!INx" as well as you can write "INx" to get the opposite of the value of the I/O pin state.
Comments
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!
Thanks,
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!
- it is an on off requirement
-i need a sum what fast response time ( under a second at least)
when it is light i need it high
when it is not light i need it low