Shop OBEX P1 Docs P2 Docs Learn Events
Which ADC to use — Parallax Forums

Which ADC to use

NWCCTVNWCCTV Posts: 3,629
edited 2014-09-19 17:49 in Accessories
Which ADC chip is recommended to use with the Sharp IR Sensor?

Comments

  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2014-09-19 09:51
    Remind me what board you're using. The latest Propeller boards have the ADC built in.
  • PublisonPublison Posts: 12,366
    edited 2014-09-19 10:07
    Any ADC that Parallax sells. You've go 2 channel, 4 channel, 8 channel:

    http://www.parallax.com/catalog/components/integrated-circuits

    A
    nd if it's for your Wild Thumper., The Activity Board and the PropBOE both have ADC's on board as Gordon is referring to.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2014-09-19 10:55
    These are my two favorite.

    MCP3002 (10-bit 2 channel)

    and

    MCP3208 (12-bit 8 channel)

    The MCP3002 seems to work better with high resistance inputs. Either should work fine with Sharp sensor. I added a SOIC MCP3208 to my Project Board's surface mount area.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-19 11:13
    Gordon, I have a BOE Board for experimenting but this would ultimately end up on a Prop project board.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-19 11:30
    added a SOIC MCP3208 to my Project Board's surface mount area.
    How did that work out? I was wondering about how to actually utilize that and be able to access it.
  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2014-09-19 11:40
    NWCCTV wrote: »
    Gordon, I have a BOE Board for experimenting but this would ultimately end up on a Prop project board.

    In that case, and if you don't want to rewrite code, perhaps one consideration is to use the same ADC that they put on the Prop BOE.

    If you've never used one of these Sharp sensors before, take heed that their output is not linear. There are ways to compensate if you need accuracy.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-19 16:44
    their output is not linear.
    So would you not use them for roaming? I bought the Sharp IR sensor and the Ping/Sharp sensor mount. Was that a mistake?
  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2014-09-19 17:49
    IR sensors are fine for proximity and especially great if you work in specific ranges -- like between 2 and 2.5", or from 3 to 4", and so on. You can determine these empirically using a ruler and the Serial Terminal. The Sharp sensors were designed with the idea that ranges would be preset, such as with an analog comparator and potentiometer. They were never really intended to be used as distance measuring devices, per se. The PSD sensor inside them is not linear, so any linearity you may require must be done in software. The most common method is a simple look-up table.

    The idea behind using both is surfaces that exhibit poor reflection of one type of sensor is (hopefully) more visible to the other. A good example is a dark sock. That's hard to see on an IR sensor, because the cloth absorbs infrared. But your Ping should pick it up. That'll help keep your robot from running into your ankles!

    If you're doing this in a Wild Thumper, when you're done consider posting your project to the Let's Make Robots forum. User "OddBot" (real name Russell Cameron) designed this base for the company he works for in China (he's Australian). Russell is a terrific guy. I wish he had time to hang out here.
Sign In or Register to comment.