Offline
Newbie
Karma: 0
Posts: 35
|
 |
« on: June 20, 2012, 11:28:07 am » |
This might be a super noob question, but I can't seem to figure it out and I'm up against a deadline. I'm working on a project for school where I'm making like a shooting gallery type project. The "bullet" will be the IR beam and the "target" will be the IR receiver. I've looked at IR LEDs and the receivers. The receivers receive specific frequencies, but the IR LEDs only show the wavelengths. How can I be certain that I match the correct LED with the receivers? Is the frequency controlled by the board the LED is attached to? Please help me........ 
|
|
|
|
|
Logged
|
|
|
|
|
Dubai, UAE
Offline
Edison Member
Karma: 20
Posts: 1626
|
 |
« Reply #1 on: June 20, 2012, 01:00:31 pm » |
look up 38khz 555 timer or 38khz Arduino
Duane B
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 35
|
 |
« Reply #2 on: June 20, 2012, 01:14:14 pm » |
Thanks! I'm looking it up now. I'm fairly new to the world of electronics so figuring out what to use and with what is fairly difficult for me to understand right now. I don't have any books I'm learning from either so the internet is my only guide. Hopefully I'll learn it the right way. I just ordered a Teensy board ( http://www.pjrc.com/store/teensy.html) which uses the ATMEGA32U4 processor. I will be researching this more, but are you familiar with this board or know if I can use it to set the frequency of the IR? I don't need a long extended answer at this point, but if you know it can or can't be done then it could save me some research time. Thanks so much for your help!
|
|
|
|
|
Logged
|
|
|
|
|
Western New York, USA
Offline
Faraday Member
Karma: 17
Posts: 3460
|
 |
« Reply #3 on: June 20, 2012, 01:23:04 pm » |
The receivers receive specific frequencies, but the IR LEDs only show the wavelengths. The wavelength that you are referring to above is that of the light being emitted by the LED.
The frequency that you are referring to above is the rate at which the LED is being turned on and off.
So you wind up with an LED that is being turned on and off at a high frequency. During the time that it is on it emits light at a certain wavelength.Don
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #4 on: June 20, 2012, 01:48:34 pm » |
...and don't try to relate the modulation frequency measured in kHz, with the actual frequency of the light measured in THz.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2305
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #5 on: June 20, 2012, 02:12:24 pm » |
Yeah cuz thats a lot of numbers... What I think is that the OP needs to pulse the LED and detect it on another device... Kinda simple If you leave out the IR Remote control device... Just IMO needs a transmitter and a receiver, could have a lot of transmitters and one receiver... just detect the different "tones {pulses} or Id's from each transmitter... "Point and Shoot..." Forget the IR receiver from Radio Shack and it's equivalents... Not good for what he describes... what I read in his description is a simple IR detector (Photo-transistor) looking for IR input (IR led controlled by something (Uno or Equivalent))
Doc
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 35
|
 |
« Reply #6 on: June 20, 2012, 03:28:52 pm » |
What I think is that the OP needs to pulse the LED and detect it on another device...
Doc, that is exactly what I need. I just need to "shoot" a brief pulse to be detected at the other end. I'm not sending actual 'directions' like different buttons on a remote or such. This is just a very simple application. Forget the IR receiver from Radio Shack and it's equivalents... Not good for what he describes... what I read in his description is a simple IR detector (Photo-transistor) looking for IR input (IR led controlled by something (Uno or Equivalent))
I was wondering if a photo-transistor would be better for my application. I don't know all of the uses for these items so I'm not real sure. I just figured that an IR receiver would be best for detecting the IR beam.
|
|
|
|
|
Logged
|
|
|
|
|
Finland
Offline
Sr. Member
Karma: 0
Posts: 270
Arduino rocks
|
 |
« Reply #7 on: June 20, 2012, 03:51:08 pm » |
I was wondering if a photo-transistor would be better for my application. It won't be. You really need a "real" IR detector which detects 38kHz modulated IR signal. If you just try to detect an IR beam with a photo-transistor it would be very difficult to distinguish the ambient IR (for example, sunlight) from the actual beam you want to detect.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 35
|
 |
« Reply #8 on: June 20, 2012, 04:00:25 pm » |
That does make sense to me and I wondered about that.
Thanks a bunch!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 0
Posts: 451
I am a amateur.
|
 |
« Reply #9 on: June 20, 2012, 04:02:37 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 271
Posts: 25422
Solder is electric glue
|
 |
« Reply #10 on: June 20, 2012, 04:04:04 pm » |
I was wondering if a photo-transistor would be better for my application. Also a proper detector has a built in amplifier and can easily achieve the range of 6 to 10ft. Where as you need a lot of extra circuit to do that with a photo transistor. You need the TSOP4038, all the others have limits on the number of pulses it can receive.
|
|
|
|
« Last Edit: June 20, 2012, 04:15:03 pm by Grumpy_Mike »
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2305
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #11 on: June 20, 2012, 04:11:41 pm » |
I tried to suggest a simple method. Please take a look at it again. The data could very well be RS232 Data... to another Arduino??? What I think is that the OP needs to pulse the LED and detect it on another device... Kinda simple If you leave out the IR Remote control device... Just IMO needs a transmitter and a receiver, could have a lot of transmitters and one receiver... just detect the different "tones {pulses} or Id's from each transmitter... "Point and Shoot..." Forget the IR receiver from Radio Shack and it's equivalents... Not good for what he describes... what I read in his description is a simple IR detector (Photo-transistor) looking for IR input (IR led controlled by something (Uno or Equivalent)) This is a quote from an earlier post of mine. The OP made no mention of a "Modulated IR Beam" This is the relevant part... Only I'm working on a project for school where I'm making like a shooting gallery type project. The "bullet" will be the IR beam and the "target" will be the IR receiver. What I think is that the OP needs to pulse the LED and detect it on another device... Kinda simple If you leave out the IR Remote control device... Just IMO needs a transmitter and a receiver, could have a lot of transmitters and one receiver... just detect the different "tones {pulses} or Id's from each transmitter... "Point and Shoot... The object of Any project First Must be to apply the KISS method and try to find the simplest solution to the problem "Shooting Gallery could very well be using a port on an Arduino to directly pulse (PWM) an IR LED and use a photo detector to "receive" the (PWM)Pulsed Beam...If there were more than one "Shooter"... use another PWM duty cycle... Simple, or did you intend to emulate an IR remote control transmitter and receiver on two Arduino's... You Could. Adafruit sells a device that transmits only the "OFF" code for every tv code known. You could use that and a photo... what a waste... IMO Doc
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 271
Posts: 25422
Solder is electric glue
|
 |
« Reply #12 on: June 20, 2012, 04:19:34 pm » |
Did a shooting gallery game back in November 92, http://www.doc.mmu.ac.uk/STAFF/A.Wiseman/Acorn/BodyBuild/BB92.htmlHowever that was "shooting" at a CRT computer display, a sort of long range light pen. The OP made no mention of a "Modulated IR Beam" Not directly but he was talking of:- The receivers receive specific frequencies And that means a modulated beam.
|
|
|
|
|
Logged
|
|
|
|
|
Finland
Offline
Sr. Member
Karma: 0
Posts: 270
Arduino rocks
|
 |
« Reply #13 on: June 20, 2012, 04:21:59 pm » |
You will need the Arduino to detect hits in the targets and to keep the score, but you probably don't want/need to use the Arduino in the guns. As DuaneB suggested, use 555 timer to generate 38kHz frequency. If you need to distinguish several guns from each other, use second 555 the generate payload signal which is different for each gun (say 1000Hz for one gun and 800Hz for an other).
|
|
|
|
« Last Edit: June 20, 2012, 04:24:00 pm by pekkaa »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 35
|
 |
« Reply #14 on: June 20, 2012, 04:31:08 pm » |
The object of Any project First Must be to apply the KISS method and try to find the simplest solution to the problem "Shooting Gallery could very well be using a port on an Arduino to directly pulse (PWM) an IR LED and use a photo detector to "receive" the (PWM)Pulsed Beam...If there were more than one "Shooter"... use another PWM duty cycle... Simple, or did you intend to emulate an IR remote control transmitter and receiver on two Arduino's... You Could. Adafruit sells a device that transmits only the "OFF" code for every tv code known. You could use that and a photo... what a waste... IMO
Doc
Doc, I value your opinion, but you are talking over my knowledge level (not your problem, it's mine). I will need the range of the IR to be somewhere in the neighborhood of 30-50+ feet. I agree that I want to apply the KISS method. I was intending on just wiring up an IR LED to the switch and sending the signal (after focusing the IR beam etc but I didn't want to explain all that), but then got concerned about the frequency of the IR receiver. I only have 1 Arduino board at the moment. I have access to another, but I don't want to have to mess with fitting the board into the gun if I don't have to. I might need to use the 555 timer to generate the frequency. Luckily, at this point, I will only be using 1 gun so I won't need to worry about detecting different frequencies.
|
|
|
|
|
Logged
|
|
|
|
|
|