Shop OBEX P1 Docs P2 Docs Learn Events
IR detectors how they work? — Parallax Forums

IR detectors how they work?

BoeKid from PRBoeKid from PR Posts: 8
edited 2007-03-25 17:27 in BASIC Stamp
····· Bought the Parallax Boe Bot (USB) and finished all the projects except for the IR related ones. I could not figure out why didint they work.· I also tried the troubleshoting in the Robotics with the Boe Bot. Any sugestions? Any help would be apreciated.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-23 23:56
    What specifically did you try? What happened when you tried it? Without more information from you, it's difficult to make suggestions other than: make follow the instructions carefully and make sure parts are hooked up properly as far as polarity is concerned.
  • BoeKid from PRBoeKid from PR Posts: 8
    edited 2007-03-24 22:59
    ····· Thanks for replying and helping.
    ·· I tried the first project from lesson 7. The program was suppose to DEBUG a "0" if no object was detected with in a certain range, or a "1" if an object was present. It always displayed a "0" no mater what I did. Then·I·followed the trouble shooting in the book and nothing, I·even tried placing it in front of the mirror and still nothing. I also ruled out that the IR did work because with a camera I saw that the LED turn on and·also I tried the IR Reciver because I could control the Boe Bot using a· IR remote control.

    Thanks, anything else you need please let me know.

    Boe Kid from PR...
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-25 03:19
    I really don't have any new suggestions for you. You've already eliminated any problem with the IR LED itself and the IR Detector. Maybe you typed something wrong in entering the test program. If the frequency is entered incorrectly you'd still see IR with your camera, but the detector wouldn't respond to it.

    Something else to consider ... The detector responds to IR at the right frequency by producing a low output. This might also be produced if there's no connection to the detector (an "open" circuit).

    Post Edited (Mike Green) : 3/25/2007 3:24:32 AM GMT
  • PARPAR Posts: 285
    edited 2007-03-25 04:29
    BoeKid from PR said...
    ····· Thanks for replying and helping.
    ·· I tried the first project from lesson 7. The program was suppose to DEBUG a "0" if no object was detected with in a certain range, or a "1" if an object was present. It always displayed a "0" no mater what I did. Then·I·followed the trouble shooting in the book and nothing, I·even tried placing it in front of the mirror and still nothing. I also ruled out that the IR did work because with a camera I saw that the LED turn on and·also I tried the IR Reciver because I could control the Boe Bot using a· IR remote control.

    Thanks, anything else you need please let me know.

    Boe Kid from PR...

    You stated:
    "The program was suppose to DEBUG a "0" if no object was detected with in a certain range, or a "1" if an object was present."

    Actually, according to the "Activity #1" in Chapter 7, the opposite is true. But, even so, it appears that you were getting no change in signal regardless of how you manipulated the IR reflector in front of the IR pair.

    Check the code. Check the circuit. ...again, as Mike suggested.

    PAR
  • BoeKid from PRBoeKid from PR Posts: 8
    edited 2007-03-25 16:36
    Thanks

    ···· I'll try your suggestions. I'll check the circuit and check the program if still it dosen't work I'll attach the code and a image of the circuit.



    Thanks again.
  • BoeKid from PRBoeKid from PR Posts: 8
    edited 2007-03-25 17:27
    It work!!!

    I cheked everything you guys said, the wiring, the code, and the FREQOUT command and it work! Thanks for all your help. If any need help just let me know. Thanks again.

    Boe Kid from PR...
Sign In or Register to comment.