Shop OBEX P1 Docs P2 Docs Learn Events
IR Sensors with Basic Stamp — Parallax Forums

IR Sensors with Basic Stamp

jkdalexjkdalex Posts: 8
edited 2006-05-29 06:28 in BASIC Stamp
Hi, I'm quite new to using the basic stamp and I want to make a robot that has collision detection.· I am looking for a low cost sensor to interface with either the BS2pe stamp.·

I've come across a sensor called the Sharp GP2D12 IR Sensor.· However I was wondering if it could be used since it seems to be a analog output.

The examples I've seen so far is that ppl tend to use the GP2D05 sensor which is·$19.· Since I need three, that is almost $60!· The·GP2D12 sensor on the other hand is just $11.50 each.· Much cheaper.·

http://www.acroname.com/robotics/info/examples/examples.html

If the BS2pe indeed can only take digital input, does anyone have an suggestions on what I should do to lower my costs?

Thank you for your expertise!

·

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-29 04:00
    The GP2D12 can be easily used with the BASIC Stamp if you have the ADC0831.· Here are a couple of sample codes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • jkdalexjkdalex Posts: 8
    edited 2006-05-29 04:59
    I am assuming the ADC0831 is an analog to digital converter. But is the GP2D12 the cheapest way to have ranged collision detector with a basic stamp or is there another alternative? (GP2D12 is $11.50 per sensor)

    Also, if I were to purchase that part, how do I know which one out of the following on digikey site it is?
    1) ADC0831CCN-ND (IC ADC 8BIT SER 1/0 MULTI OPTION)
    2) ADC0831CCWM-ND (IC ADC 8BIT SERIAL I/O 14-SOIC)
    3) ADC0831CCWMX-ND (IC CONVERTER A/D 8BIT 20-SOIC)

    I wish to use the input from three IR sensors to control three futaba servos that can be bought off of the parallax store. In that case, do I need an ADC0831 "per sensor"?

    Thanks once again! [noparse]:)[/noparse]

    Post Edited (jkdalex) : 5/29/2006 5:08:20 AM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-29 05:24
    Perhaps the picture at this link will help you.

    http://www.parallax.com/detail.asp?product_id=ADC0831

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • jkdalexjkdalex Posts: 8
    edited 2006-05-29 06:28
    ah. haha thank you [noparse]:)[/noparse]
Sign In or Register to comment.