Shop OBEX P1 Docs P2 Docs Learn Events
Ok I connected the IR detector to the stamp and It still doesnt work. — Parallax Forums

Ok I connected the IR detector to the stamp and It still doesnt work.

ArchiverArchiver Posts: 46,084
edited 2001-11-20 01:58 in General Discussion
I have the output of the detector going into the stamp and an led
connected to another pin as an output. When the stamp reads a low
signal from the detector, it should set the led high and vice versa.
The led flickers very fast; when I shine a remote control into the
detector, it stil flickers but it definately knows theres a signal
there.

here is my code.

loop:
if in0=1 then no_sig
high 3
goto loop
no_sig:
low 3
goto loop

What am I doing wrong? Should there be more electrical components in
the circuit? Should I get a better detector?

thanks

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-11-20 01:58
    Same problem you had before, probably. Remote control IR is 40hkz (I
    believe), so a series of bitstreams are going to be fairly fast ; the
    effect on the LED is probably not going to be noticeable. LED's are
    regularly pulsed on and off in commercial applications.


    On Tue, 20 Nov 2001 rblundel@t... wrote:

    > I have the output of the detector going into the stamp and an led
    > connected to another pin as an output. When the stamp reads a low
    > signal from the detector, it should set the led high and vice versa.
    > The led flickers very fast; when I shine a remote control into the
    > detector, it stil flickers but it definately knows theres a signal
    > there.
    >
    > here is my code.
    >
    > loop:
    > if in0=1 then no_sig
    > high 3
    > goto loop
    > no_sig:
    > low 3
    > goto loop
    >
    > What am I doing wrong? Should there be more electrical components in
    > the circuit? Should I get a better detector?
    >
    > thanks
    >
    >
    > 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/
    >
    >
    >

    Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    email: lamont@a... WWW: http://www.serv.net
    "...There's no moral, it's just a lot of stuff that happens". - H. Simpson
Sign In or Register to comment.