Shop OBEX P1 Docs P2 Docs Learn Events
Infrared Trip Wire — Parallax Forums

Infrared Trip Wire

Dan TaylorDan Taylor Posts: 207
edited 2009-02-06 23:07 in BASIC Stamp
I just wanted to build a very simple project or so I thought unfortunatly it has turned out to be harder than I expected...

OK, so I just want to build a infrared Trip Wire. So that when someone passes in between the transmitter and receiver it sounds a simple alarm...

All you would have to do is use a simple freqout command for the IR LED like so...

DO
··· FREQOUT·IR, 10, 38500
LOOP

And for the receiver a program like so...

DO
·· DO: LOOP UNTIL (Receiver = 0) then
·· FREQOUT Speaker, 2000, 3000
LOOP

Right....For some reason its not working... So much for my simple project... It may be the receiver and IR LED that I am using...

Can I use the Infrared detector and receiver that come with the Boe-Bot? Cause that is what I'm using...

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-02-06 20:06
    Try taking out the 'then' after the DO:LOOP.
  • Dan TaylorDan Taylor Posts: 207
    edited 2009-02-06 23:07
    So it was a simple project... haha.

    Thanks SRLM! That is what the problem was. lol

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
Sign In or Register to comment.