Infrared and the Sun....
eagletalontim
Posts: 1,399
Hello all once again! I am sure this has been answered somewhere, but I can't seem to find anything that works for me. I have a project that reads IR pulses from my power meter but I can't seem to "ignore" the sun with this photo transistor. The photo transistor is one that I bought from RadioShack which I have used in several other projects. All I need to do is accurately detect each IR pulse without missing a pulse when the sun is out. I have the IR sensor mounted in a small plastic enclosure which is electrical taped on top of the power meter blocking out as much sun as possible. Some how, the IR sensor still picks up the sunlight.
I do not want to order more parts since this project is supposed to help me save money Currently, I have the sensor connected to a PNP 3906 transistor with a 100K pulling up the base and a 100K between the sensor and the base of the transistor. The PNP is connected to the 3.3v rail and then to a 10K resistor that goes to the input pin on the Prop. Everything works perfect when the sun is not shining on the meter. I cannot build an enclosure around the meter since that is illegal, nor can I "shade" the meter since it faces exactly where the sun comes up.
So, my question is..... how can I wire this photo transistor to "ignore" sunlight but accurately pick up the IR pulses from the meter without buying special chips? I have plenty of resistors and transistors on hand which should be able to do the trick.
I do not want to order more parts since this project is supposed to help me save money Currently, I have the sensor connected to a PNP 3906 transistor with a 100K pulling up the base and a 100K between the sensor and the base of the transistor. The PNP is connected to the 3.3v rail and then to a 10K resistor that goes to the input pin on the Prop. Everything works perfect when the sun is not shining on the meter. I cannot build an enclosure around the meter since that is illegal, nor can I "shade" the meter since it faces exactly where the sun comes up.
So, my question is..... how can I wire this photo transistor to "ignore" sunlight but accurately pick up the IR pulses from the meter without buying special chips? I have plenty of resistors and transistors on hand which should be able to do the trick.
Comments
What kind of pulses does the meter send out? It would help if it were modulating a carrier, since that's the way that most IR comms deal with ambient light. The problem is that sunlight is very rich in IR and is causing your phototransistor to saturate, so the signal is getting swamped out.
BTW, you didn't mention what the phototransistor is connected to: Prop, BASIC Stamp, or ... ?
-Phil
I have an old DVD player I am tearing apart that has a 3 pin IR sensor in it. Maybe if I can salvage the whole circuit, I could use it? I don't understand how IR controlled toys work in direct sunlight and I can't seem to figure out how to read a single pulse during the day. Even if the toys had a specific pulse it read from, if in direct sunlight, any incoming IR pulses would be drown out by the sunlight itself. This is where I am confused!
If this is for the electric meter from your earlier post you may have to find a way to block the sunlight. Perhaps you can put some kind of enclosure over the meter or focus the detector so it only picks up the IR from the meter.
But that might cost you a dollar to experiment.
Is there a way to detect the lowest voltage on a pin? Since the DVD circuit has a 3 pin IR sensor, the signal wire goes low when there is an IR signal picked up. If the sun is shining enough to make the sensor pick up the IR from the sun, it should be a semi gradual change in the output of the sensor which could be ignored by the Prop with coding I hope.
Not sure what you mean by "lowest voltage on a pin". Different remote keys have different coding patterns, their output may read slightly different on a voltmeter, since you're sorta kinda changing the duty cycle.
I remember meeting an old guy who dug wells by hand and he said that he would dig so deep he could see stars in mid day.
-Phil
Heck even paint the tube with flat black nail polish to improve its abilities.
Edited..
- Ah i think I see what Phil is talking about... The emitters signal is no good with all that sunlight so the detector is not the problem. Is this correct?
Perhaps placing a second detector near the original one and using a comparator or subtract the two levels leving the signal, but thats a shot in the dark
On the DVD player, it had a clear plastic piece that appeared to direct incoming IR light right to the sensor. I am wondering if this would help me any. I will test it tomorrow to see what it does. One thing I am still concerned about is the sun's IR light affecting the reading to the chip compared to the reading at night. Since the IR level will be higher during the day, I would need to design my circuit to trigger the pulses at a lower threshold since the IR sensor goes low when IR is detected. At night, the IR is not as intense so the IR sensor may not drop low enough to trigger a pulse.
I recently freed up some space on my breadboard so I can work with more options and possibly put a few more test points for daytime and night time testing. I will get this working eventually
When your think infrared, always think heat. If nothing reflects it, it will be absorbed. Absorption without cooling, means re-emission. Surround your box with reflective aluminium sheet or anything like it. Your sponge alone could be an accumulator that spreads heat inside the box. Remenber; Under sunlight, heat always scales up if not conveniently reflected or cooled, i.e., conducted to another direction, away from your sensor.
Prophead100 also gave a good tip. Look at http://www.robotroom.com/Polarizers.html.
Hope it helps.
In the mean time... Pray God and pass the ammunition.
You can get things hot enough to "glow IR hot" but only if it's almost hot enough to "glow red hot".
I've taken photos of a stove just barely too cool to glow red. With IR film in the camera I could capture an image of the heat with the film. So if something isn't almost red hot the heat wont affect the near IR light given off by it.
Far IR is a different story.