Measure energy of light pulse?
CuriousOne
Posts: 931
I want to measure energy of light pulse (photo-flash) using BS2.
I currently have the following set-up: OPT101 sensor from TI placed in apropriate enclosure with IR pass filter, so it only reacts to my photo flash burst. I've connected it to digital scope and I can see the shape of the pulse. Since I can vary the length of the pulse, I want to determine what lengths I'll need to produce light energy in 1/2, 1/4, 1/8 amounts.
The flash pulse is 1500 microseconds. So logically, shortening it twice should also give twice less energy, but that does not work, since the peak intensity of flash is for about 100 microseconds and then drops exponentially.
So my idea is as follows: The OPT101 output trough the diode is connected to 0.01uf capacitor, which is connected to BS2 via 220 ohm resistor. And the sample code, TestPhototransistor.bs2 will be used from the "what's a microcontroller" book.
Should this work properly?
As I noted, I don't need absolute or exact measurement of light energy, I just need relative measurements, so I can via trial and error, find the light pulse duration that will provide 1/2, 1/4, 1/8 of light energy.
I currently have the following set-up: OPT101 sensor from TI placed in apropriate enclosure with IR pass filter, so it only reacts to my photo flash burst. I've connected it to digital scope and I can see the shape of the pulse. Since I can vary the length of the pulse, I want to determine what lengths I'll need to produce light energy in 1/2, 1/4, 1/8 amounts.
The flash pulse is 1500 microseconds. So logically, shortening it twice should also give twice less energy, but that does not work, since the peak intensity of flash is for about 100 microseconds and then drops exponentially.
So my idea is as follows: The OPT101 output trough the diode is connected to 0.01uf capacitor, which is connected to BS2 via 220 ohm resistor. And the sample code, TestPhototransistor.bs2 will be used from the "what's a microcontroller" book.
Should this work properly?
As I noted, I don't need absolute or exact measurement of light energy, I just need relative measurements, so I can via trial and error, find the light pulse duration that will provide 1/2, 1/4, 1/8 of light energy.
Comments
You'll want a diode (and a resistor) between the OPT101 and the capacitor so the OPT101 doesn't discharge the capacitor when there's no light. The charge on the capacitor is the equivalent to the energy in the light pulse.
The measurement via RCTIME is going to be a bit indirect and tricky. It would be easier if you have an ADC that you can add to the Stamp. Then you can measure the voltage with no fuss.
If what you want is really the area under the light intensity curve, the OPT101 might be configured as an integrator instead of a straight amplifier. The OPT101 gives you access to the feedback path, so disconnect pin 4 from pin 5 or any other resistor you have from pin 5 to pin 2, and connect a capacitor from pin 5 to pin 2 instead. Pin 5 output to the ADC input. There will have to be a reset mechanism, which could be a resistor from OPT101 pin 2 to to a Stamp pin, which is held high until just before the flash, and then turned to an input so that the flash integration can occur.
Regarding the resistor and capacitor, with which values to start with?