Shop OBEX P1 Docs P2 Docs Learn Events
continous ( not pulse) Infrared detetion — Parallax Forums

continous ( not pulse) Infrared detetion

hsiaochunghsiaochung Posts: 17
edited 2005-06-17 01:14 in BASIC Stamp
· I have a infraredball RCJ-04 , Its infrared signal is continous(not pulse) ,wavelength 950nm
· how can i detect the infrared signal

· could anyone give me a program to detect the continos infrared signal


· thanks for your help

Post Edited (hsiaochung) : 6/17/2005 1:23:02 AM GMT

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2005-06-16 15:40
    The advantage of a pulsed irfrared is that you can identify your signal from a lot of 'noise' that is out there.

    If you use a non-pulsed sensor, your robot might chase a lit cigarette or another heat source just because it is the hottest IR spot around.

    Are you sure that is what you want?· You can use features in the BasicStamp to create a pulsed signal.· And, though I am not 100% sure how, you might be able to have the BasicStamp recognize a particular frequency from a sensor that doesn't filter to a particular frequency.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    G. Herzog in Taiwan
  • edited 2005-06-16 17:07
    Too bad their Robot Soccer balls aren't continuously pulsed; that would be a much better design.·

    The Boe-Bot CMUcam·has some examples at the bottom of the page, one is tracking a colored ball.· As far as the CMUcam would be concerned, an infrared ball would be the same as a bright white ball, so it might work.·

    You can also use the detection part of·Parallax' QTI module to detect ambient, DC infrared.· The circuit is simple enough, with a resistor, capacitor, and an IR phototransistor.· (The phototransistor will work better than a QTI because of its shape.)· IR phototransistors are pretty common, and can be obtained at most electronics outlets.· With this circuit and the RCTIME command, you can measure the ambient infrared intensity, and test to see how far away you can detect the soccer ball.· With an array of these things in·a soccer competition's·controlled lighting environment, it should be possible to discern·its·angle and relative distance.· The question that remains is how good is the range?

    attachment.php?attachmentid=38066

    Here is TestIrPhototransistor.bs2, a PBASIC Program·you can use with the circuit to measure ambient infrared.· I tested it with a·QTI module.· When I pointed it out the window, the Debug Terminal displayed values below 100 - high infrared.· When I pointed it at the far wall, it displayed higher values (400 to 500 -·lower infrared).· Under the shade of a table, it displayed·even higher values (2000 to 3000 - lower still).· With this kind of response and the low cost of the parts, it's worth testing for range on the soccer ball in controlled lighting conditions.·

    [color=green][color=green]' TestIrPhototransistor.bs2[/color][/color]
     
    [color=green]' {$STAMP BS2}
    ' {$PBASIC 2.5}[/color]
     
    [color=#000033]IoPin PIN 2[/color]
     
    [color=#000033]time VAR Word[/color]
     
    [color=blue]DO[/color]
     
      [color=blue]HIGH[/color][color=#000033] IoPin
      [/color][color=blue]PAUSE[/color][color=#000033] 1
      [/color][color=blue]RCTIME[/color][color=#000033] IoPin, 1, time
      [/color][color=blue]DEBUG[/color] [color=purple]HOME[/color][color=#000033], [/color][color=red]"Ambient IR = "[/color][color=#000033], [/color][color=navy]DEC5[/color][color=#000033] time
      [/color][color=blue]PAUSE[/color][color=#000033] 100[/color]
     
    [color=blue]LOOP[/color]
    
    

    Post Edited (Andy Lindsay (Parallax)) : 6/16/2005 6:01:00 PM GMT
  • allanlane5allanlane5 Posts: 3,815
    edited 2005-06-16 21:13
    Many BS2 IR Designs want to detect a TV Remote control, which modulates the light. Therefore they use an IR-Decoder (a three lead, IR-frequency sensitive device). You want a true IR-Photo-Transistor to detect un-modulated IR light. It's going to be sensitive to ambient IR though -- like the Sun puts out.

    But if that's what you want, that's what's been called out above.
  • edited 2005-06-16 22:12
    Here's a link to the spec sheet:

    http://www.elekit.co.jp/pdf/RCJ04specEng.pdf
  • hsiaochunghsiaochung Posts: 17
    edited 2005-06-17 01:14
    · thanks for everyone reply , especially, Andy

    · I will try the method that promoted by you




    ·
Sign In or Register to comment.