Shop OBEX P1 Docs P2 Docs Learn Events
ir obstacle detection — Parallax Forums

ir obstacle detection

ArchiverArchiver Posts: 46,084
edited 2002-12-29 20:58 in General Discussion
I'm having trouble getting my IR obstacle detector working. I'm using
the circuit and code from the BOEBOT manual. At 38500 khz, the IR
detector always reads low, it's picking up the IR signal. I've covered
up the IR LED with heat shrink plastic, but I can't get any where. Any
ideas?

chris in napa

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-12-29 16:17
    I have had some trouble in the past with this. It always turns out
    to be "human error"!

    1. Make sure that you have the IR Detector wired properly (you could
    have the first and third pins wired backwards).

    2. Are you using a resistor with the IR LED? Is it the correct
    value?

    3. Is the LED wired correctly? It matters which one connects to the
    Pin and which one connects to ground.

    3. Check your program to make sure that the IR LED pin is the one
    with the "freqout" command, and that the IR Detector is the one with
    the "InX" command.

    4. Are you using a left and right set up? If you can get one pair
    to work and not the other, you can switch components to make sure
    that they are not defective.

    Hope this helps (although you are probably thinking that you tried
    all these things, check them again, or have someone else check them.
    Sometimes it is difficult to see your own "stupid" mistakes!

    Steve

    --- In basicstamps@yahoogroups.com, chris burns <mwalimu@s...> wrote:
    > I'm having trouble getting my IR obstacle detector working. I'm
    using
    > the circuit and code from the BOEBOT manual. At 38500 khz, the IR
    > detector always reads low, it's picking up the IR signal. I've
    covered
    > up the IR LED with heat shrink plastic, but I can't get any where.
    Any
    > ideas?
    >
    > chris in napa
  • ArchiverArchiver Posts: 46,084
    edited 2002-12-29 20:58
    Problem solved! It comes down to resistor values. I found if I used a
    10k resistor the circuit works beautifully. I'm not sure why there is
    such a disparity between the Parallax resistor values and mine, it must
    be the IR LEDs I'm using. Maybe mine are super bright?

    chris in napa

    sjoblin001 wrote:

    >I have had some trouble in the past with this. It always turns out
    >to be "human error"!
    >
    >1. Make sure that you have the IR Detector wired properly (you could
    >have the first and third pins wired backwards).
    >
    >2. Are you using a resistor with the IR LED? Is it the correct
    >value?
    >
    >3. Is the LED wired correctly? It matters which one connects to the
    >Pin and which one connects to ground.
    >
    >3. Check your program to make sure that the IR LED pin is the one
    >with the "freqout" command, and that the IR Detector is the one with
    >the "InX" command.
    >
    >4. Are you using a left and right set up? If you can get one pair
    >to work and not the other, you can switch components to make sure
    >that they are not defective.
    >
    >Hope this helps (although you are probably thinking that you tried
    >all these things, check them again, or have someone else check them.
    >Sometimes it is difficult to see your own "stupid" mistakes!
    >
    >Steve
    >
    >--- In basicstamps@yahoogroups.com, chris burns <mwalimu@s...> wrote:
    >
    >
    >>I'm having trouble getting my IR obstacle detector working. I'm
    >>
    >>
    >using
    >
    >
    >>the circuit and code from the BOEBOT manual. At 38500 khz, the IR
    >>detector always reads low, it's picking up the IR signal. I've
    >>
    >>
    >covered
    >
    >
    >>up the IR LED with heat shrink plastic, but I can't get any where.
    >>
    >>
    >Any
    >
    >
    >>ideas?
    >>
    >>chris in napa
    >>
    >>
    >
    >
    >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]
Sign In or Register to comment.