This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Measure sunlight

Other Parts Discussed in Thread: OPA340, OPT3001, LM331, OPT3002, OPT101

I know nothing about TI OP AMPS . I need to measure sunlight intensity. I have a photodiode (PDB-C 139) that has a typical output at 1000 lux of 67 ua, and at 120000 lux 8 ma; I will probably set the top range to 10 ma.  I want the output range to be 0->5 volts, single supply. I will be measuring from 0 to 150000 LUX.  I need to know 1) what type of op amp to use (Transconductance, transimpedance, etc) and 2) how to go about setting it up. Any expertise in this subject would be greatly appreciated. The frequency range for this device would be less than 10 Hz.
  • Alvin,

    From a brief look at the photodiode data sheet it's not clear that this device is capable of linear output up to 10mA. It may be possible but the device area seems a bit small for this--not sure.

    Anyway, the circuit below using the OPA340 will operate from a single 5V power supply. I think this is what you want. The output will go up to within 0.2V of the 5V power supply, or so. Output in this high range limited by the positive output swing of the op amp while sourcing the 10mA photodiode current. The power supply could be increased to 5.3V or so, if it's essential to achieve a full 5V output.

    Dark output voltage will come within 10mV of ground, or so.

    Photodiodes will vary somewhat in sensitivity. The 500 ohm resistor could be varied to adjust circuit gain.

    This blog-- Illuminating Photodiodes ;-)  is a quick read on photodiode basics.

    Regards, Bruce.

  • Here is a different question and thank you Bruce for you quick and informative answer. If I used a CdS photoresistor I would get a linear output for light input. The only problem is the devices can be as much as 3.66 times  different. One device can be 3k ohm at 10 lux and another of the same part number can be 11k ohm at 10 lux. Any Idea how I could add a sliding series resistor to make them all say 11k at 10 lux? the resistor would have to add 8k resistance  to the 3k at 10 lux to reach the 11k value set for all devices and to the same device at 110000 lux would have to add 125.33 ohms to the base 47 ohms at this lux value to make all devices equal to 172.33 ohms that an 11k device would translate to at 110000 lux of intensity. Again your help is most appreciated.

  • Alvin,

    I don't know nearly as much about CdS photoresistors. I believe they are highly nonlinear and not well calibrated. They have a dark resistance that must be carefully calibrated for any consistency at low light levels. I believe they are seldom used for precision measurements.

    Regards, Bruce.

  • CdS photoresistors are linear in light to resistance measurements and don't have big temperature problems. Their big problem is the the large manufacturing resistance range at say 10 lux. The reason I suggested CdS is because the photodiode will have nonlinear response to light and temperature due to the fact that it is a diode. I will have a heater in my device to melt snow from the box's clear top which may help stabilize the diode's response to temperature but the top of the box will be clear which will cause it to act as a greenhouse accumulating heat. There could potentially be a temperature swing of 22 degrees F to 159 degrees F. Any ideas? Thanks. Alvin...

  • Alvin,

    It appears that you are describing the nonlinearity and temperature effects of a photodiode when used in photovoltaic mode. The circuit I provided operates in photoconductive mode and response is quite linear and not greatly affected by temperature.

    See the link I provided earlier for a more detailed explanation.

    Regards, Bruce.

  • Thanks Bruce you have been a great help to me in educating me in this area. I think that last post solved my problem. Alvin.....

  • Alvin,

    I came across your question and I had a few follow-up questions regarding your project:

    Have you considered using an Ambient Light Sensor (ALS) with a photopic response and simple i2c interface?

    Is there a benefit to the discrete solution over an ALS?

    Would an ALS that could measure up to 130kLux be satisfactory?

    Thank you!

    Jason Bridgmon

  • I have looked at ambient light sensors with I2C interfaces but did not find one that would go as high as 130k lux.  One problem is the domed top. I need a cosine diffuser but could probably install one on top of the domed top. I was considering using a light filter to reduce the 130k lux done to the 10k lux of the intersil ALS but if you have an ALS that would go to 130k lux that would be very interesting. This device would be out in the weather with rain and sunlight (measuring sunlight) but I guess I could create a housing for it. Note that I have to work from 30 F to 130 F (100 degree F temperature swing) and I don't know how the device would react electrically to that. Please get back to me with your thoughts. Thank you for your input it is greatly appreciated.

  • Jason - You never got back to me. What is the device you are suggesting?

  • Alvin,

    My apologies!  We are working on a new device here at TI - the OPT3001.  It is an ALS and the preliminary data sheet is available if you would like it.  I can email it to you if you send me an email at bridgmon_jason@ti.com and we can discuss your application further if you would like.  I look forward to hearing from you!

    - Jason Bridgmon

  • The TI OPT3001 is now sampling on the web.  Visit http://www.ti.com/product/OPT3001 for more information.

    Jason Bridgmon

  • my measurement of sunlight was 146900 lux so I do not think your device will go high enough to measure full brightness. Also I probably need infrared as the device needs to register on cloudy days. The plant's pores open up on cloudy days and dry out fast as much energy is still delivered on cloudy days. Will your device integrate over time? can I lengthen the distance the I2C will operate (10 or 20 feet) by lowering clock rate to 1000 or 100 hz? Thank you for remembering me. I am using a photo diode with an OPA340 op amp and you LM331(?) voltage to frequency chip to provide a count that will essentially integrate over time.

  • Alvin,

    The OPT3001 does only register up to 83klux, so it will not be enough of a full scale range to accommodate 147klux.  Also, the IR rejection of our device is 99% or better, which is absolutely excellent for matching the human eye but apparently not so good for plants!  The OPT3001 has two selectable sampling periods (both under a second) which increase stability and accuracy of the measurement.

    Regarding the I2C interface, I've never tried running an I2C cable that far away and slowing it down to compensate for the line resistance and drop and other transmission effects.  My answer is "it will probably work" but there are some things to watch out for.  The first thing that comes to mind is that there is often a timeout for serial transmission protocols, and going too slow may cause the operation to be reset and interrupted when partially complete.  The other thing to keep in mind are the VIL/VIH/VOL/VOH levels needed.  Since long transmissions are lossy, it may be difficult to drive the line high or low enough to signal the other device.

    USB2.0 communication can extend 5M without buffering, and that's running at 480Mbps, so anything is possible; whether I2C is robust enough to handle the low bandwidth at length remains to be seen.

    Are the photodiode and OPA340 and LM331 working out well for you  or are you still looking for a different solution?


    Regards,

    Jason Bridgmon

  • Some time ago I was looking for a photo sensor to use in light studies for agriculture purposes. You suggested the OPT3001. It fits the bill as far as light frequency that I want to measure. Unfortunately I need two of them so it would have to be able to modify its I2C address. If this is not possible do you have a similar version that just contains the visual spectrum sensor and a transimpedance amplifier? Also, It would have to measure up to 1120 watts per square meter of sunlight which turns out to be 0.112 watts per square centimeter. To do this the sunlight would have to be filtered through a light reducing filter but I do not know how much to reduce it to get it in line with the maximum reading of the device. Any help you could give me here would be greatly appreciated. 

  • Alvin,

    The OPT3001 does support multiple I2C addresses, defined by external pin hookups.

    Neutral Density filters are likely what you need to attenuate the signal.  Vendors like ThorLabs sell all kinds of filters and optics equipment and may be able to narrow down what you're looking for and what's available.

    To convert Lux to Watts/cm^2, try this online calculator.  The OPT3001 has an upper limit of 83klux, so filtering down to below that threshold should help you pick an attenuating filter glass.

  • We are interested in doing a similar thing, measuring sunlight, but thinking the OPT3002 might be a better choice because if its wider spectral response.

    Any other thoughts on this?

    S. Dunbar, AFA Colorado

  • Just found out about OPT3002. Seems to go from 1.2 nw/sqcm to 10.064mw/sqcm - that would be only 106.4 w/sqm a lot less than the 1200 w/sqm that full sunlight produces. Still may be useful as a pyranometer. Does sunlight or UV cloud the unit's lens? How would it be set up to measure watts per square meter?
  • I'm assuming we will need a neutral density filter to knock the optical power down. We're more interested in the 100W-1200W/m^2 range as a baseline for characterizing solar panel production - don't really care about dynamic range below that, so your application may differ in that regard.
  • I s the OPT3002 temperature sensitive? I have to operate from -4 to 66 degrees C - Will the output change over that temperature range for a light level that remains the same?
  • Yes, Figure 6 of the data sheet documents the temperature variation at a few wavelengths. Looks like it is compensated for 550 nm.

    Perhaps a separate IR sensor might be good for cloudy day measurements for an agricultural instrument.
  • Will the opt101 clear plastic yellow due to sunlight?