09-03-2006 10:06 PM
09-04-2006 07:18 AM
09-04-2006 03:54 PM
09-05-2006 02:56 AM
09-05-2006 04:32 AM
09-05-2006 05:04 AM
09-05-2006 12:14 PM
09-05-2006 02:34 PM - edited 09-05-2006 02:34 PM
You could simulate a lock-in amplifier if all of your 6 leds have known unique frequencies... and no overlapping harmonics.
Take your analog signal measured and convolute it with a sinusoid with frequency equal to the one led that you want to measure. This convolution should seperate out the component generated from one of the colored leds from the rest.
For instance, run your six leds at: (just an example) 480 Hz, 495, 510, 525, 545, and 560 Hz
Then take the analog signal from the photodiode (take a large portion of it, long time frame), and convolute it by a sinusoidal signal with known magnitude at 480Hz and this should give you the component from LED 1. Do the same for the rest of the LEDs... THOUGH, you need to know that you will have a lot of noise involved. You may want to impose some bandpass filtering before the convolution so that you don't amplify that noise! Take the rms value if you want a 'number' answer...
Oh and you might want a highpass filter to remove any DC components you might have... This is the way that devices such as Stanford Research Systems' SR850 Lock-In amplifier work. I thought a while back that you'd be able to simulate such a device in labview with an analog input but never took the time to try it.
I'm sure you can do it, seperate all 6 signals from one photodiode. One caveat; if the leds are really intense, you may want to pull back the power a bit so the photodiode has generous opportunity to generate carriers from all colors. Also, keep the frequencies from the 6 LEDs as far away from 60 Hz and 120 Hz as possible to limit the contribution of line noise (assuming you're in the united states)... or institute a notch filter.
Lastly, you could just forego all of this and purchase a lock-in amp. You can probably get an older SR830 for pretty cheap nowadays.
Message Edited by IEC on 09-05-2006 02:35 PM
09-05-2006 03:44 PM
09-06-2006 08:18 AM