Shop OBEX P1 Docs P2 Docs Learn Events
Whiskers with Infrared Headlights? — Parallax Forums

Whiskers with Infrared Headlights?

bahnzaijrbahnzaijr Posts: 2
edited 2014-04-08 10:04 in BASIC Stamp
For a class project, i am trying to make my boe-bot replicate driving on a road and reaching its destination to where it would "park". Using a white road and black borders for the headlights to navigate with, would it be possible to also have the whiskers attached? I would program them to simulate reaching the dead end of a road by hitting a wall and they both would complete the circuit with the resulting action of packing up into a parking spot.

Comments

  • ercoerco Posts: 20,256
    edited 2014-04-06 23:47
    Welcome, bahnzaijr. Ideally, you should use the line follower add-on to detect white/black surface markings. You could detect a flat surface/wall for parking using either the whiskers or the IR "headlight" detectors.
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2014-04-07 18:14
    Hi bahnzaijr,

    Yes, you can. The suggestions for using the PING))) Ultrasonic Distance Sensor and Line Follower AppKit would simplify your project. However, those are add-ons not included in the standard Boe-Bot Robot kit, and so I understand you wanting to use the parts that were supplied for your class.

    Combining IR emitter/receivers with the whiskers can be a little bit tricky - the breadboard gets very full! I would suggest testing the whisker and IR circuits with the Debug Terminal first, before working on your application code. If you choose to use red LEDs to indicate sensor state as well, it is probably best to use them with the IR receivers.

    You will need to be careful to make sure the whisker wires do not touch the leads of the IR emitter/receiver parts. I have covered the whiskers with tape, all except the point that makes contact with the 3-pin headers, to prevent accidental short-circuits between components. Then, I am careful to make sure the IR emitters are sticking out below the whisker wires, and the receivers kind of lean over the wires from the top. You could add a little tape over the exposed leads sticking above the breadboard for those parts as well.

    We often show demo robots that follow a wide black path made out of removable sheet vinyl on a white shower-board surface, both of which are slightly shiny. For us, it helps to make the IR detectors a little more near-sighted by increasing the resistors connected to the IR LEDs from 1 k-ohms to 2 k-ohms. You might want to experiment with different resistor values depending on the materials you use for your black and white surfaces.

    Good luck with your project!
  • bahnzaijrbahnzaijr Posts: 2
    edited 2014-04-08 00:18
    Thank you everyone for the replies. I am limited to the supplies that came with the original boe-bot kit so i cannot use the ping sensor, even though that does seem much more simple. I really appreciate the tips Steph Lindsay, they seem very useful. I will be working on this in the next few day and will update all.

    Another question, i plan on having the boe-bot back up and turn into a tight spot as if it is parallel parking once the whiskers sense the dead end of the road. This is capable of simple navigation code, correct?

    Thank you
  • ercoerco Posts: 20,256
    edited 2014-04-08 02:21
    Sure, and tt wouldn't be the first time...
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2014-04-08 10:04
    Nice, thanks Erco!

    We look forward to your update, bahnzajir!
Sign In or Register to comment.