Shop OBEX P1 Docs P2 Docs Learn Events
Ordered the wrong ADC and need help... — Parallax Forums

Ordered the wrong ADC and need help...

MarkSMarkS Posts: 342
edited 2008-01-24 22:10 in Propeller 1
I was following the LM34 temperature sensor and ADC from the Industrial Supply text, but wanted a 12-bit ADC instead of the 8-bit ADC0831 that is shown in the text. I did a little research and found the ADC LTC1286, which matches the 0831. With that in mind, this is what the circuit would look like:

ICADC.jpg

Pretty much the same as shown in the IC text.

However, I accidentally ordered the LTC1298. The pins are quite a bit different. After reading the data sheet, to the best of my ability, I came up with this circuit:

ADCLTC1298.jpg

It seems like it should work, but I'd like some input before I blow something up. Also, the ADC requires 5v inputs to operate properly. How do I interface this to the Prop? I can just use a resistor for the DOUT pin, but how do I raise the 3.3v from the Prop to 5v required by the ADC? Would pull up resistors work? I'm not to clear on this after reading the sticky. Is this correct:

33to5.jpg

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,559
    edited 2008-01-24 07:09
    MarkS,
    ·
    There are a couple of things...
    ·
    As long as you don't need the differential input that the LTC1286 offers ...edit: I see that the LTC1298 has a differential mode·
    and as long as your VREF can be the same as VCC
    ·
    ...Then the LTC1298 should work just fine.· On the LTC1298, VREF "IS" VCC and you shouldn't adjust it.
    ·
    ·
    The input threshold of the LTC1298 is 2V, so CS(Pin 1), DIN(Pin 5),·and CLK(Pin 7) should be just fine with a direct connection from the Propeller.
    ·
    For the DOUT(Pin 6), an equal balanced·voltage divider would be fine.· The·input Threshold of the Propeller is about·1.65V so 2.5V output from the divider will be plenty.
    ·
                                   1K         1K   
    Dout (0V to 5V) >---/\/\---o---/\/\---< GND
                               |
                               o----------> To Prop (0V to 2.5)
    
    

    ·Reference:
    http://www.linear.com/pc/downloadDocument.do?navId=H0,C1,C1155,C1001,C1158,P1445,D2760
    ·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 1/24/2008 4:00:24 PM GMT
  • MarkSMarkS Posts: 342
    edited 2008-01-24 18:09
    So, what can I do to set the span, or will it even be necessary?
  • BeanBean Posts: 8,129
    edited 2008-01-24 18:21
    Mark,
    I find the digital temperature sensors are ALOT easier to use.
    Something like the MAX6626 has an I2C interface and a resolution of 1/16 of a degree.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
  • MarkSMarkS Posts: 342
    edited 2008-01-24 18:35
    Maybe, but I need to learn, and that precludes me from doing it the easy way. wink.gif I have never used an ADC before, so I really must get started learning.

    Post Edited (MarkS) : 1/24/2008 6:40:06 PM GMT
  • Beau SchwabeBeau Schwabe Posts: 6,559
    edited 2008-01-24 18:47
    MarkS,

    With the LTC1298, you don't set the span.· The VCC (Which is also the VREF) of the LTC1298 can only tolerate 4.5V to 5.5V and still maintain accuracy.

    The only way to adjust the span would be to scale the result in software.· Since you have 12-bits (1.2mV resolution) compared to 8-bits (19.5mV resolution), software scaling may not be an issue in this case.









    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • MarkSMarkS Posts: 342
    edited 2008-01-24 18:50
    Awesome! Thanks!
  • OzStampOzStamp Posts: 377
    edited 2008-01-24 22:10
    Have a look here.



    http://www.sensorguys.com/STSWDO.html
    The TO92 is there and also encased in a Stainless tube..(maybe overkill for your app)

    The Smartec sensors are very hard to beat..
    Way more accurate and cheaper··· just measure the duty cycle of the sensor
    apply some mathematics and your up and running..


    Cheers· Ron Mel OZ
    ·
Sign In or Register to comment.