Phototransistor applications?


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263

    Question Phototransistor applications?

    Does anyone have experience driving either an analog or digital PIC input with a phototransistor?

    I'm wondering whether I'll need to add an amplifier stage, either a transistor or an op amp.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I have used them for digital with out an amp.

    Anode at 5VDC
    Cathode to PIC pin with a 10 meg pull up resistor.

    Have not used one for analog though.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Lately I have used the TSL250R for analog reading. It works pretty well.

    http://www.taosinc.com/productdetail.aspx?product=63

    Al.
    All progress began with an idea

  4. #4
    Join Date
    Aug 2005
    Location
    Houston, TX
    Posts
    43


    Did you find this post helpful? Yes | No

    Default It depends

    Last time I investigated photo transistors, I found that they (at least the ones I acquired) had a very sharp change in status (off - on.) Not good for controling on at dark lights, as adjustment for desired light level next to impossible using the usual adjustment to the other comparator input. I did not try adjusting the bias, which might have worked?

    They would have worked great to pull a PIC pin low.

  5. #5
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by AMay View Post
    Last time I investigated photo transistors, I found that they (at least the ones I acquired) had a very sharp change in status (off - on.) Not good for controling on at dark lights, as adjustment for desired light level next to impossible using the usual adjustment to the other comparator input. I did not try adjusting the bias, which might have worked?

    They would have worked great to pull a PIC pin low.
    Well, the typical phototransistor has two modes, kind of like most garden-variety transistors: Switch mode and active mode. Switch mode is easy to work with, but active mode means you are dealing with current that ranges over four or five orders of magnitude, from a few microamps to milliamps or even tens of milliamps.

    Driving a digital input in switch mode is no problem; it's just like saturating a transistor. Active mode, especially in low light levels, requires some massaging--playing with the emitter resistor (in a common collector configuration), then amplifying.

    What I was trying to do was end up with a light sensor that gave me two things at the same time, an analog signal (intensity/signal strength) and a digital signal (is light present, yes or no, regardless of intensity).
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  6. #6
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323


    Did you find this post helpful? Yes | No

    Default

    Use it in active mode with an emitter resister and feed a ADC. ?
    What PIC are you using? does it have an ADC?

  7. #7
    Join Date
    Feb 2009
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Looking in to this myself also

    I am glad someone asked, I was just starting to look in to how to do this same task.

    I just picked up a few of these. I was wondering the same thing. I found a few circuits on the net. Here is a few:

    http://www.uoguelph.ca/~antoon/circ/sensor2.htm
    http://www.acroname.com/howto/photor...oresistor.html

    Please post back if you come up with anything.
    Last edited by nemesis; - 13th March 2009 at 01:11. Reason: can't spell :)

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by nemesis View Post
    I just picked up a few of these. I was wondering the same thing. I found a few circuits on the net. Here is a few:

    http://www.uoguelph.ca/~antoon/circ/sensor2.htm
    http://www.acroname.com/howto/photor...oresistor.html

    Please post back if you come up with anything.
    Resistor?
    Transistor?
    Whats the difference?
    Dave
    Always wear safety glasses while programming.

  9. #9
    Join Date
    Feb 2009
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    Yeah those links were for resistors, his question is about transistors. My mistake. Maybe the resistor photocell might be easier than active mode on the photo transistor. Maybe that can produce the same results with intensity... Seems a little easier.

    -Nemesis

  10. #10
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Byte_Butcher View Post
    Use it in active mode with an emitter resister and feed a ADC. ?
    What PIC are you using? does it have an ADC?
    For that group of trials I was using the 12F683 which, yes, does have ADCs.

    The problem, as I wrote before, is the range of the phototransistor response. Assuming an emitter resistor of 1 megohm and a current of 1 microamp, this puts 1 volt on the resistor. (The dark current is in the nanoamp range.) Given a 5 volt supply, 5 microamps (not very much light!) is about as far as you can go.

    The smallest "slice", assuming 8-bit conversion, is 19.6 millivolts. Since the phototransistors I was working with can provide current ranging from a microamp to 5 or more milliamps (essentially 5 orders of magnitude), obviously something has to give--either the low end or the high end.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  11. #11
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink Context ... never forget to explain context ...

    Hi, Russ

    Could you tell us what you want to do ???

    Phototransistors sensitivy range can be greatly stretched ... but the circuit used ( yes ...OPAs needed ) will depend upon the light variation frequency to be detected.

    sooooo ... without knowing what to achieve ... tons of solutions !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts