Photodiode, photoresistor, or phototransistor

Discussion in 'General Electronics Chat' started by coinmaster, Feb 13, 2016.

  1. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    Hello, I'm trying to figure out what would be better for a digital voltage control.
    Photoresistors are resistors so that's an obvious choice but optocoupled LDRs are expensive and/or difficult to find.
    Phototransistors adjust current which in turn adjusts voltage but they don't work with negative voltage right?
    Photodiodes I haven't figured out yet.
     
  2. tracecom

    AAC Fanatic!

    Apr 16, 2010
    3,869
    1,393
    Are you trying to switch a voltage on and off based on light levels, or are you trying to adjust a voltage level based on light levels?
     
  3. dl324

    Distinguished Member

    Mar 30, 2015
    3,211
    619
    It would help if you gave some design context to bound solution space.

    Phototransistors respond to photons; so as long as the transistor is properly biased, negative voltages can be used.
     
    Last edited: Feb 13, 2016
  4. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    I want a digitally controlled potentiometer so I can adjust power supply voltages for voltages around +/- 300v.

    I realized that photoresistors are not good for high voltages so that leaves phototransistors and photodiodes. I'm not quite sure how a photodiode works. Is it like a variable zener?
     
  5. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    I'm looking at phototransistor opto-isolators and the only ones that I found that can handle 300v have a emitter to collector breakdown voltage of .6v http://www.cel.com/pdf/datasheets/ps2533.pdf
    Does that mean this example on the right will not work?
    photo variable resistor-1.png
     
  6. tracecom

    AAC Fanatic!

    Apr 16, 2010
    3,869
    1,393
    An optoisolator is just an on/off device that provides a means to switch one circuit with another while providing galvanic isolation. From the limited information provided, I think you need a circuit that responds to changing light levels with a linear output. That linear output would then control yet another circuit that is able to handle the voltage levels at whatever current you require.

    There are lots of people that post here with ideas that they want to keep secret. Sometimes they succeed in getting what they need, but often they don't provide enough information for eliciting the help they want. Oftentimes, better help is available if the overall goals are stated instead of asking about specific components.
     
  7. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    Are you saying the above examples will not work? They do fine as variable voltage control in the simulations.

    That is what I intend, but the fact is I still need a digitally controlled resistor for a divider to adjust the power supply voltages.

    I'm still wondering about this.
     
  8. dl324

    Distinguished Member

    Mar 30, 2015
    3,211
    619
    Optical devices are probably a poor choice if you intend to use them as analog controls.
    A photodiode is operated reverse biased and converts photons to current.
     
  9. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    Why? They have like 99.9% linearity.
    Isn't that basically a variable zener?
     
  10. dl324

    Distinguished Member

    Mar 30, 2015
    3,211
    619
    LEDs aren't linear and the CTR of phototransistors (et. al) isn't constant.
    Photodiodes are operated reverse biased, but they're not used for voltage regulation.
     
  11. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    What other options are there? Mosfets and BJTs can't be used as high voltage linear resistors across a huge range of resistances.
    There's an entire section of ultralinear photodiode optocouplers http://www.mouser.com/Optoelectroni...gh-Linearity-Optocouplers/_/N-6x5jj?P=1z0iwb4 but I still don't understand how photodiodes are used.
    Why?

    You said the reason optos aren't good is because the CTR is not constant, I looked it up and this is only the case as they age and with changing temperature, It wouldn't be too difficult to compensate. Also the LED linearity is internally compensated with feedback in many designs so that is not an issue.
     
    Last edited: Feb 13, 2016
  12. crutschow

    Expert

    Mar 14, 2008
    12,977
    3,220
    Photo diodes and phototransistors act in a similar fashion, converting the photons to a current, with the phototransistor having more gain. A phototransistor is similar to to photodiode whose output is driving the base of a transistor.
    So a phototransistor optocoupler acts similar to a transistor by itself. The output current increases in proportion to the input current with the gain given by the opto transfer function listed on the data sheet.
    [The device you listed has a gain of 40 (4000%) and a Vce breakdown of 350V so it should work in your application. The reverse Vce of 0.6V is a problem only if you reverse bias the transistor].
    It's nothing like a variable zener.

    So you use a phototransistor just like a regular transistor with a resistor in the collector or emitter to convert the current to voltage.
    The resistor in the emitter will give in increase in output voltage with input current, and the resistor in the collector will give an inverted signal.
    Make sure you keep the transistor output resistor at a high enough value to limit the power dissipation in the opto output.
    You should probably limit it to about 150mW, which means the output resistor should be no smaller than 150kΩ for a 300V supply.

    If you show exactly how you expect the output will control the supply voltage, we can suggest how to best do the circuit since making an optocoupler act like a potentiometer is not simple.
     
  13. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    Well one of the designs will be a series regulator in which I was thinking of using something like this
    [​IMG]
    to determine the voltage output of the regulator, I haven't determined the details of the regulator itself yet, probably a power transistor with the "zener" at its base.
    The other circuit is
    [​IMG]
    with the variable resistor being R3.

    I'll also have a variable resistor controlling a CCS but I haven't decided the exact CCS design yet.

    That means my earlier example of 300v on the emitter will not work then right?
     
    Last edited: Feb 13, 2016
  14. crutschow

    Expert

    Mar 14, 2008
    12,977
    3,220
    So when you decide which circuit(s) you are actually going to use, post that.
    It looks like you are wanting some sort of constant-current source, not constant voltage(?). :confused:

    Your example shows -300V on the emitter, which is the same as +300V on the collector, so you are okay.
     
  15. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    Not sure where you are getting that idea, one is a variable zener circuit and the other is effectively a CVS at DC.
    Both require a variable resistor for the dividers in order to be adjustable.
     
  16. crutschow

    Expert

    Mar 14, 2008
    12,977
    3,220
    I guess because the second circuit describes it as a constant current source.
    So how would you adjust the second circuit?
    Is this to be some sort of variable load for the plate of a tube?
     
  17. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    R3 sets the voltage.
    No, it's just a gyrator load. There's plenty of gyrators to choose from, I just picked that one because I felt like it. The important thing is that it acts as a CVS, I'm converting it to be adjustable, I have a specialized use for it.
     
  18. tracecom

    AAC Fanatic!

    Apr 16, 2010
    3,869
    1,393
  19. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    Hah, I forgot about that thread, I feel like you are showing a picture of me in high school with 80s hair. Yeah I am that coinmaster, I made that thread while I still knew crap about electronics (in the grand scheme of things I still do but I know x10,000 more than I did then). Some of the people from another thread kept wanting me to make it so I did.
    I've spent the last 3 1/2 months studying up.
    The plans, ideas, and thruths from that thread have shifted almost completely. My current project is vastly different I should probably ask a mod to delete it.
     
    Last edited: Feb 13, 2016
  20. coinmaster

    Thread Starter Member

    Dec 24, 2015
    350
    6
    Crutschow, did you have any ideas for my variable resistor?
     
Loading...