Shop OBEX P1 Docs P2 Docs Learn Events
Radio shack IR — Parallax Forums

Radio shack IR

ArchiverArchiver Posts: 46,084
edited 2002-09-09 02:56 in General Discussion
I have a RadioShack (cat # 275-142) IR emitter and detector... And
i've got no idea how to use them with my basic stamp.

Im quite sure that it's a analog detector (like a normal photocell..)
could someone please explain how to detect IR using this
emitter/detector? Is it possible to modulate it so I don't get false
readings from other IR sources nearby?

Any help would be appricated, I'm not to great with basic electronics.

Thanks
Greg

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-09-05 23:28
    In a message dated 09/05/2002 18:26:15 Eastern Daylight Time,
    gregt@t... writes:


    > I have a RadioShack (cat # 275-142) IR emitter and detector... And
    > i've got no idea how to use them with my basic stamp.
    >
    >

    Go to www.parallaxinc.com , click on downloads, and download their
    documention on using IR. Complete with code.

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-09-08 19:22
    I have the same emitter/detector. What you need is to connect the emitter using
    this schematic (All pin# are according to BASIC Stamp 2):


    I/O Pin>----(IR)
    |-|- Ground

    Connect a detector like this:

    I/O Pin>----(DET)
    |-|- Ground

    You need an ambiant light filter to filter out ambient rays of IR. You can get
    one from Radio Shack (included in RS# 270-215, a project case/membrane keypad
    set, it includes a red piece of plastic, that is the filter.). Place the
    detector in the case and put the filter over it. Use the following PBASIC code
    (for BS2) to detect IR:

    input #
    if in# = 0 then yes

    replace # with the pin number and yes with the label you wish to go to if there
    is ir on the detector.

    To send IR you would use:

    HIGH #

    Replace # with I/O pin number. A little more code would allow you to
    send/recieve data using Binary and Infrared!

    Hope this helps you!

    --Jake





    Original Message
    From: "GregT2" <gregt@t...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, September 05, 2002 6:24 PM
    Subject: [noparse][[/noparse]basicstamps] Radio shack IR


    > I have a RadioShack (cat # 275-142) IR emitter and detector... And
    > i've got no idea how to use them with my basic stamp.
    >
    > Im quite sure that it's a analog detector (like a normal photocell..)
    > could someone please explain how to detect IR using this
    > emitter/detector? Is it possible to modulate it so I don't get false
    > readings from other IR sources nearby?
    >
    > Any help would be appricated, I'm not to great with basic electronics.
    >
    > Thanks
    > Greg
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-09-08 21:44
    I actually got it working with rctime... like a photocell, but I do
    need a filter because (your right) in any sort of light, the IR isn't
    even noticably visable.

    Greg

    --- In basicstamps@y..., "Jacob Rossi" <coolnetdude@c...> wrote:
    > I have the same emitter/detector. What you need is to connect the
    emitter using this schematic (All pin# are according to BASIC Stamp
    2):
    >
    >
    > I/O Pin>----(IR)
    |-|- Ground
    >
    > Connect a detector like this:
    >
    > I/O Pin>----(DET)
    |-|- Ground
    >
    > You need an ambiant light filter to filter out ambient rays of IR.
    You can get one from Radio Shack (included in RS# 270-215, a project
    case/membrane keypad set, it includes a red piece of plastic, that is
    the filter.). Place the detector in the case and put the filter over
    it. Use the following PBASIC code (for BS2) to detect IR:
    >
    > input #
    > if in# = 0 then yes
    >
    > replace # with the pin number and yes with the label you wish to go
    to if there is ir on the detector.
    >
    > To send IR you would use:
    >
    > HIGH #
    >
    > Replace # with I/O pin number. A little more code would allow you
    to send/recieve data using Binary and Infrared!
    >
    > Hope this helps you!
    >
    > --Jake
    >
    >
    >
    >
    >
    >
    Original Message
    > From: "GregT2" <gregt@t...>
    > To: <basicstamps@y...>
    > Sent: Thursday, September 05, 2002 6:24 PM
    > Subject: [noparse][[/noparse]basicstamps] Radio shack IR
    >
    >
    > > I have a RadioShack (cat # 275-142) IR emitter and detector...
    And
    > > i've got no idea how to use them with my basic stamp.
    > >
    > > Im quite sure that it's a analog detector (like a normal
    photocell..)
    > > could someone please explain how to detect IR using this
    > > emitter/detector? Is it possible to modulate it so I don't get
    false
    > > readings from other IR sources nearby?
    > >
    > > Any help would be appricated, I'm not to great with basic
    electronics.
    > >
    > > Thanks
    > > Greg
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@y...
    > > from the same email address that you subscribed. Text in the
    Subject and Body of the message will be ignored.
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
    > >
    > >
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-09-09 02:56
    Also you may wish to try a transistor amplifier circuit in order to
    strengthen the signal:


    Sample IR recieving circuit that turns a LED on when IR is revieved:
    ________________
    -3V+ | /
    |
    |-|-|--|-(DET)
    (NPN)
    | \
    |___________(LED)___~650~______|

    The DET is the detector NPN is a NPN transistor. It is oriented as follows:
    /---Emitter
    BASE
    (NPN)
    \----Drain


    Try this out
    Original Message
    From: "GregT2" <gregt@t...>
    To: <basicstamps@yahoogroups.com>
    Sent: Sunday, September 08, 2002 4:44 PM
    Subject: [noparse][[/noparse]basicstamps] Re: Radio shack IR


    > I actually got it working with rctime... like a photocell, but I do
    > need a filter because (your right) in any sort of light, the IR isn't
    > even noticably visable.
    >
    > Greg
    >
    > --- In basicstamps@y..., "Jacob Rossi" <coolnetdude@c...> wrote:
    > > I have the same emitter/detector. What you need is to connect the
    > emitter using this schematic (All pin# are according to BASIC Stamp
    > 2):
    > >
    > >
    > > I/O Pin>----(IR)
    |-|- Ground
    > >
    > > Connect a detector like this:
    > >
    > > I/O Pin>----(DET)
    |-|- Ground
    > >
    > > You need an ambiant light filter to filter out ambient rays of IR.
    > You can get one from Radio Shack (included in RS# 270-215, a project
    > case/membrane keypad set, it includes a red piece of plastic, that is
    > the filter.). Place the detector in the case and put the filter over
    > it. Use the following PBASIC code (for BS2) to detect IR:
    > >
    > > input #
    > > if in# = 0 then yes
    > >
    > > replace # with the pin number and yes with the label you wish to go
    > to if there is ir on the detector.
    > >
    > > To send IR you would use:
    > >
    > > HIGH #
    > >
    > > Replace # with I/O pin number. A little more code would allow you
    > to send/recieve data using Binary and Infrared!
    > >
    > > Hope this helps you!
    > >
    > > --Jake
    > >
    > >
    > >
    > >
    > >
    > >
    Original Message
    > > From: "GregT2" <gregt@t...>
    > > To: <basicstamps@y...>
    > > Sent: Thursday, September 05, 2002 6:24 PM
    > > Subject: [noparse][[/noparse]basicstamps] Radio shack IR
    > >
    > >
    > > > I have a RadioShack (cat # 275-142) IR emitter and detector...
    > And
    > > > i've got no idea how to use them with my basic stamp.
    > > >
    > > > Im quite sure that it's a analog detector (like a normal
    > photocell..)
    > > > could someone please explain how to detect IR using this
    > > > emitter/detector? Is it possible to modulate it so I don't get
    > false
    > > > readings from other IR sources nearby?
    > > >
    > > > Any help would be appricated, I'm not to great with basic
    > electronics.
    > > >
    > > > Thanks
    > > > Greg
    > > >
    > > >
    > > > To UNSUBSCRIBE, just send mail to:
    > > > basicstamps-unsubscribe@y...
    > > > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    > > >
    > > >
    > > > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    > > >
    > > >
    > >
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
Sign In or Register to comment.