Shop OBEX P1 Docs P2 Docs Learn Events
RoamingWithPING(Advanced) — Parallax Forums

RoamingWithPING(Advanced)

thomas_pittinthomas_pittin Posts: 29
edited 2014-05-05 13:09 in General Discussion
Hello All,

I have a little problem with the program "RoamingWithPING".
in this code I have 3 sensors: 1 is the PING and the other 2 are the IR sensor

my problem is that when i launch the program, i see the value(0 or 1) on the DEBUG window of the IR sensor, the values are not stable


for example, they switch 0 to 1 (and 1 to 0) continuously even if there is not object in front of them.

could you please help me?

Comments

  • GenetixGenetix Posts: 1,754
    edited 2014-05-05 10:44
    Something is triggering them or they are very sensitive. Run InterferenceSniffer,bs2 (Robotics with the Boe-Bot) to see if anything is throwing out IR,
    You can also increase the values of the resistors for your IR LEDs and that will lower the sensitivity.
  • ercoerco Posts: 20,256
    edited 2014-05-05 11:12
    And you are using the black, 3-pin 39 khz IR receiver modules, not a simple phototransistor, right? Those receiver modules are active low, so they should normally return a 1 output unless they are detecting a signal.

    Is there something in your environment that might be giving off harsh, weird pulsing light that interferes with your IR sensors? IR beacons (Roomba virtual walls) would be a showstopper, maybe even some types of flourescent/halogen/incandescent lights, or sunlight.

    Try the bot in a different (preferably darkened) room and see if the results change at all.

    Also, try removing the onboard IR LEDs that are transmitting a signal. Then point a TV IR remote at the sensors and check their output.

    In bocca al lupo, il mio amico!
  • thomas_pittinthomas_pittin Posts: 29
    edited 2014-05-05 13:04
    Thanks everybody...wednesday I'll try your suggestions
  • ValeTValeT Posts: 308
    edited 2014-05-05 13:09
    Also, make sure the IR sensors aren't looking directly at a dark colored object. This could throw them off because the light coming out of the IR could reflect sometimes but not others, causing random 1s and 0s. When I was at USASEF 2014, the IR ActivityBots would sometimes not recognize objects that are dark colored.
Sign In or Register to comment.