Shop OBEX P1 Docs P2 Docs Learn Events
I'm new to the boe bot — Parallax Forums

I'm new to the boe bot

C.J. PowersC.J. Powers Posts: 5
edited 2009-02-13 17:11 in Robotics
I've been trying to run through the book, and I just can't seem to get the sensors to work right. I've hooked up the IR sensors, and the Whiskers both came straight out of the book, I've rewired both multiple times and still nothing.

on the Whisker test program both whiskers stay = 0 new change at all, and with the IR sensors the program tests the left IR and it always says set to 1 meaning something is in front of the IR.


anyone have any ideas? you think it could be a hardware issue?

the BS2 seems to be working ok and I have the piezpseaker working fine on the breadboard.

any help would be appreciated [noparse]:)[/noparse]

Comments

  • FranklinFranklin Posts: 4,747
    edited 2009-02-13 03:07
    There isn't much hardware involved. I would take all the extra parts off and hook up one whisker or just use a wire to test the program. If it still does not work try it on a different pin, changing your code of course.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • EzsynnEzsynn Posts: 119
    edited 2009-02-13 06:25
    It won't work unless the Whiskers touch the 3 pin connectors. I am wondering if you used it as a bumper or not.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    BWIN ON DA POWAH WIFIN U!!!
  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2009-02-13 17:11
    Hi C.J.,
    ·
    Whenever a program isn't working as it should, there are a few things I always check to help diagnose the problem:
    ·
    1. Resistor Color Codes – Make sure you have the right resistors connected to the right devices.· It's a simple error to make, and always good to double check.
    2. Pin Connections – Check that each wire or resistor is connected to the right pin.· Sometimes it can be hard to tell, so I always count to make sure I’ve plugged the wire into Pin A and not Pin A +/- 1
    3. Lead Connection – When working with IR and color LEDs, the simplest mistake to make is plugging the LED in backwards.· When working on Chapter 7: Navigating with Infrared Headlights in Robotics with the Boe-Bot, make sure the longer leads are connected to the resistors and not the middle pin of the infrared detectors.
    4. Swap LEDs – Since one of you IR LEDs always reports a 1, and the other works as expected, swap IR LEDs to see if that makes a difference. ·If the right one still works and the left is still always reporting a 1, there is probably a problem with your connection to the left IR Object Detection circuit.
    5. IR Interference – This can also cause an IR Object Detection circuit to always report a 1.· To see if this is the problem, skip ahead to page 246 in Robotics with the Boe-Bot and run IrInterferenceSniffer.bs2.· If the Boe-Bot constantly beeps, that means something is interfering with your circuit.
    ·
    I hope this helps!· Happy Developing!
    ·
    Jessica

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jessica Uelmen
    Education Department
    Parallax, Inc.
Sign In or Register to comment.