Pages: [1]   Go Down
Author Topic: Infrared LED transmitter and receiver  (Read 7056 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 117
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So I have a foosball table and want the score keeping to be electronic. I've figured out the screen and for the sensing of each goal Im using an Infrared LED transmitter and receiver set I got for Radio Shack. I have them set up so 6v goes through a 1k resistor to each infrared led (ones a transmitter one a receiver). I then have a led to ground in series with the receiver. But for some reason it doesn't work, the led should go off when I place my hand between the 2 but it doesn't. It always stays on. If you are a visual person my schematic is like the one on this website; http://atifsheikh.wordpress.com/2011/07/31/infraredir-transmittertx-and-receiverrx/ .

Please help,
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33311
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There is no way you can get that circuit to work. You can not get enough current through the sensor to control the LED. You need to use a transistor to switch the current.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This works:

http://www.me.umn.edu/courses/me2011/arduino/technotes/irbeam/irbeam.html
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 44
Posts: 2460
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hoff's example shows an IR phototransistor; the Atif Sheik blog post shows a regular IR receiver led in his schematic and that would not work.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 117
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, then what if I have 5v to the infrared led with a 330 resistor in series and the receiver with a 330 ohm resistor to the base of an PNP transistor.Would that work? 
Atif Sheik blog post shows a regular IR receiver led in his schematic
And yes I do have a regular receiver do I need a phototransistor?
Logged

Offline Offline
Edison Member
*
Karma: 64
Posts: 2452
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The me.umn.edu ought to work.
hadjisra shows a pic of his components in blog link.

I believe they are http://www.radioshack.com/product/index.jsp?productId=2049723

It's a pair, a simple IRED and an IR phototransistor.
It's not a full-blown 38kHz IR RC module (that would not work so simply.)

*** That device is also susceptible/responsive to ambient/visible light. ***
« Last Edit: July 22, 2012, 10:18:22 am by Runaway Pancake » Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Offline Offline
Full Member
***
Karma: 0
Posts: 117
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes runaway pancake thats what they are and I only need  them to detect when a ball passes between them set at inches apart. Is there a way to calibrate them with arduino like over a analog pin?
Logged

Offline Offline
Edison Member
*
Karma: 64
Posts: 2452
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First get the on/off operation right.
As I posted, that receiver will conduct in visible light, too.
So, when you experiment, put it in a box with the sender.

Maybe the pockets of your foosball table will be dark enough (IDK).

Anyway, I think you should use digitalRead to determine whether the receiver is on/off and digitalWrite to turn the sender on/off.
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33311
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
digitalWrite to turn the sender on/off.
There is no need to turn the emitter on and off, just connect it to the supply.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Like Mike said, the emitter just stays on. It's just an led that puts out a little IR instead of visible light. The detector is just a switch that is off/on and is triggered by the IR from the emitter. Once you get that part nailed down you can use this off/on to tell your Arduino when the beam is broken and use that to run your score board.

If you go through the tutorial in the link I posted it should make more sense. It's a pretty neat little project in itself!  I had to make a little shroud for the detector to keep it from getting wonky from room lighting but it should work if you align the emitter and collector straight across from each other.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33311
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This project has what you want in terms of hardware:-
http://www.thebox.myzen.co.uk/Hardware/Sneak_Thief.html
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
Youtube _Domino SixO
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello there, im realy intresting about that project, i want to do the same thing but it is posible that the resiver and transmiter work in daylight too ?
Logged

Pages: [1]   Go Up
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines