P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

IR LED motion trap

Tue Jan 31, 2017 9:55 pm

Hi, I wanted to make an IR LED motion trap, using IR LED and IR phototransistor, to know, if someone entered or exited a room. But the problem is, that the range is only about 10-15cm. Is there any way to make the range at least 1m?

Currently the LED is powered by 5v source with current limiting resistor of 150 ohm.

Thank you for any answers.

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: IR LED motion trap

Tue Jan 31, 2017 10:46 pm

More LEDs?

P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

Re: IR LED motion trap

Wed Feb 01, 2017 6:51 am

I've just looked at the specification of the IR LED and found out, that it is one of the weakest. I will try to buy some more powerfull ones.
It should not be a problem to get a range of 1m right?

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: IR LED motion trap

Wed Feb 01, 2017 7:08 am

Its just a matter of power really - you could need a bigger sending diode or multiple ones

P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

Re: IR LED motion trap

Wed Feb 01, 2017 9:17 am

yeah I had some 3mm at home. And then I've found out that the power is only 3.2 - 20mW/sr and the better ones are over 100 mW/sr. That might be it.
I will buy some 5mm and more powerfull LEDs

User avatar
W0LFIE
Posts: 46
Joined: Fri Jan 06, 2017 9:10 pm
Location: Somewhere in N Yorkshire

Re: IR LED motion trap

Wed Feb 01, 2017 10:21 am

The ones used in remote controls usually have a good output, actual power unknown, usually from a 3V Power supply from AA or AAA cells.

But if you have a scrap Remote kicking about... Robert could be yer mother's brother.
:
Time flies like an Arrow, Fruit Flies like a Banana.

P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

Re: IR LED motion trap

Wed Feb 01, 2017 11:35 am

You're right. I had one remote from old DVD around. And with a bit of tunnig of the resistor values on the phototransistor side, I got around 1m of range with no problems.

The key is to have the diode and transistor aligned perfectly, so I will buy another LEDs and use at least 2 to make it easier.
Thanks for your help.

User avatar
W0LFIE
Posts: 46
Joined: Fri Jan 06, 2017 9:10 pm
Location: Somewhere in N Yorkshire

Re: IR LED motion trap

Thu Feb 02, 2017 7:40 am

I expect that you know you can "see" IR LED(s) using the camera on your phone?

Always a useful tool for testing such things..

Wolfie tip #112
:lol:
:
Time flies like an Arrow, Fruit Flies like a Banana.

P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

Re: IR LED motion trap

Thu Feb 02, 2017 8:00 am

Yes. That is useful when working with IR.
I've got it working, but I will need to make a better solution to limit the current to the LEDs, because the limiting resistor gets very hot. For now I used 1W resistor but it is very hot to touch.

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: IR LED motion trap

Thu Feb 02, 2017 2:36 pm

Alternatively you could use ultrasonic range finder, eg HC-SR04

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

Re: IR LED motion trap

Thu Feb 02, 2017 3:16 pm

Yes I've got 2 at home but I thought that IR would be better in this application.

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: IR LED motion trap

Thu Feb 02, 2017 3:23 pm

P4d0uch wrote:Yes I've got 2 at home but I thought that IR would be better in this application.
As long as you can get it working, yes.
The advantage with the HC-SR04 is that it doesn't need anything on the other 'side' of the door frame, ie it is a transceiver.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

P4d0uch
Posts: 47
Joined: Sun Sep 16, 2012 5:01 pm

Re: IR LED motion trap

Thu Feb 02, 2017 3:54 pm

That is true. Maybe I will give them a try.

Return to “Automation, sensing and robotics”