Shop OBEX P1 Docs P2 Docs Learn Events
Boe-Bot IR Sensor - Third Sensor causing problems — Parallax Forums

Boe-Bot IR Sensor - Third Sensor causing problems

AdamEAdamE Posts: 11
edited 2006-05-06 19:26 in Learn with BlocklyProp
I've just recently added the other two IR sensors provided in my Boe-Bot Kit onto the Boe-Bot itself, so it has 1 on each side and 1 on the front. So far, using 1 on the front I can get the distances fine, and using one on the front and one on the left works fine too. However once I connect the third IR Sensor it affects the data being recieved by the other two IR sensors, even when Im not using any code to deal with the 3rd IR Sensor. For some reason it changes the distance returns to 255 constantly, and I cant seem to figure out why.

Here's a really crappy pic of the setup;

BoeBot.jpg

That red arrow is pointing to the 3rd IR Sensor's connection for the Sensor on the right side of the Boe-Bot.

I've been able to establish (by switching the IR sensors around, connecting them to different combo's of pins) that the problem is not with the IR sensors themselves, as they all return acurate distances when no IR sensor is plugged into that 3rd one to the left. So the problem must be with the pin itself, but what the problem is I dont have a clue of (Im not the smartest at circuitry, but Im hoping this is something that doesnt require me replacing the main board or the pin )

Any ideas/help is appretiated,
- Adam

Comments

  • AdamEAdamE Posts: 11
    edited 2006-05-06 19:23
    Alright made some progress... I tried recieving data from the pin causing problems and its working fine, so there musnt be a problem with the pin then. This is kind of odd, Im beginning to think it might just be a power-issue, but still, having a connection that isnt being used in the program shouldnt affect anything... atleast I dont think it should.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-05-06 19:24
    Adam -

    Some basic idea, or better yet a simple schematic drawing, as to how you have the this new I/R sensor wired, would be most helpful in trying to establish what's wrong with your set-up. Additionally, we will need to see a copy of your PBASIC program as well. Please
    use the Upload Manager to attach a copy of your program to your next message.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • AdamEAdamE Posts: 11
    edited 2006-05-06 19:26
    Ah it seems Ive solved my own problem, I was using the wrong Data pin for the IR sensor I was calling, which explains why it was reacting strangly when the 1st IR sensor was plugged in because I was calling from it. Mixed signals, all sorted out now though ;P

    Sorry if I bumped more pressing matters down on the forum.
    - Adam.
Sign In or Register to comment.