IR LED/detector circuit
Rsadeika
Posts: 3,837
I am looking for some explanation on the IR LED/detector circuit I put together on my breadboard. The IR receiver module is a Radioshack part rated at 38khz center carrier frequency, and infrared passband 940nm +- 50nm with an elliptical lens. The IR emitter is also a Radioshck part, rated at 950 nm at peak emission. I have a 220 ohm resistor between the pin and the IR emitter.
The only time this circuit works correctly or at all·is when I give it a freqout x, 1, 36000. I was ecpecting it to work properly at freqout x, 1, 38000, since that is what the detector is rated at.
I guess the question that I have is, does anyone have a quick conversion for nm -> khz. The other question is, what does it really mean when it is stated "... at peak emission". Now, for the emitter it also states continuous forward current 150mA. Does this mean that to get to 940 nm +- 50 I need to have the BS2 pin output 150mA.
For what I thought would be a simple and straight forward circuit, this is getting to be quite complicated.
Thanks in advance for any input
ps I googled for this info, but I need this presented in lay terms.
The only time this circuit works correctly or at all·is when I give it a freqout x, 1, 36000. I was ecpecting it to work properly at freqout x, 1, 38000, since that is what the detector is rated at.
I guess the question that I have is, does anyone have a quick conversion for nm -> khz. The other question is, what does it really mean when it is stated "... at peak emission". Now, for the emitter it also states continuous forward current 150mA. Does this mean that to get to 940 nm +- 50 I need to have the BS2 pin output 150mA.
For what I thought would be a simple and straight forward circuit, this is getting to be quite complicated.
Thanks in advance for any input
ps I googled for this info, but I need this presented in lay terms.
Comments
As for getting 150mA, you'll want to use a transistor, probably a 2n2222a or a 2n3904 (my personal favorite).· Connect the IR LED to +5 and the collector, connect the emitter to ground, and the base to a pin on your stamp via a resistor - probably something in the·1.5k ohm range will suffice.· I believe 3904's have a gain of about 50, so with a·1.5k ohm resistor you'll get ~3mA coming from the stamp pin, times 50 will yield a max current through the 3904 of 150mA.· That's only the roughest calculation... I kinda fudged the diode drop from base to emitter and other fun stuff you don't really need to worry about for this application.
YANROY,
I THINK IF YOU GO BACK TO BASICS YOU WILL FIND THAT WAVELENGTH IS THE RECIPRICAL OF FREQUENCY.
IE IN RADIO A HALFWAVE(IN FEET) = 468/FERQ MHZ. OR 936/3.9 MHZ=240 FEET WAVELENGTH. THIS IS USED TO DERIVE THE CALULATION OF A HALFWAVE DIAPOLE ANTENNA.
WHERE 1/2 WAVE(IN FEET) = 468/F MHZ... 468/3.9 MHZ - 120' FEET FOR A 1/2 WAVE DIAPOLE
SO WAVELENGTH DOES HAVE A DIRECT RECIPRICAL RELATION TO FREQUENCY.
73
SPENCE
K4KEP
THE 38 KHZ AND 36 KHZ IS THE MODULATION OF CHOPPER FREQUENCY BREAKING UP THE IR EMMISION AT A RATE WHICH MAKES IT POSIBLE TO DETERMINE WHICH IS THE IR RADIATION YOU WANT AND WHICH IS THE UNDESIRED SOURCE WHICH YOU WANT TO IGNORE.
Post Edited (SPENCE) : 8/15/2005 10:38:52 PM GMT