Shop OBEX P1 Docs P2 Docs Learn Events
Counter based adc w/ voltage other than 3.3? — Parallax Forums

Counter based adc w/ voltage other than 3.3?

TJHJTJHJ Posts: 243
edited 2008-07-29 09:32 in Propeller 1
So I saw somewhere once talking about using a different voltage for the counter based ADC Circuit. I would like to avoid using an opamp to scale it down to a 3.3 to 0V range from the issues of opamps themselves.(OPamps hate me).
(Sorry I had to put it into a code box to make it look right)
                                  3.3V < Can this be connected to 12v for example to give a 0 - 12V range?
                                   |
                                  1nF    
                     APIN &#9472;&#9472;&#9472;&#9472;&#9472;&#9523;&#9472;&#9472;&#9547;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;150k&#9472;&#9472;&#9472;&#9472;&#9472; Analog In             
                               |  1nF
                    BPIN &#9472;&#9472;100k&#9496;   |
                                  Vss   





I am thinking all this will do is blow up the prop chip unless I am thinking about the RC network incorrectly.

Thanks
TJ

Comments

  • Kit MortonKit Morton Posts: 39
    edited 2008-07-27 20:25
    To read voltages that are larger then 3.3 volts you can use a voltage divider.

    Like this:
         
                                            Analog In
                             3.3V             |                       
                              |              26K
                             1nF              |
                 APIN &#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9547;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;150k&#9472;&#9472;&#9472;&#9472;&#9472;&#9508;              
                           | 1nF              |
                BPIN &#9472;&#9472;100k&#9496;  |              10K
                             Vss              |
                                             VSS
    
    


    This will divide the 12 volt signal down so it is between 0 and 3.3 volts.
    -Kit

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PHRED, FIRST Team 847, Member
    Go -> PHRED
  • TJHJTJHJ Posts: 243
    edited 2008-07-27 23:05
    Doah
    I dont know why i didnt think of that

    Thanks a bunch
  • RaymanRayman Posts: 14,234
    edited 2008-07-28 21:29
    You can just pick different values to change the input voltage range.· Try this applet:

    http://www.pulsedpower.net/Applets/Electronics/SigmaDeltaADC/SigmaDelta.html
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-07-29 00:58
    Rayman,

    You need to include a cushion in your calcs, due to the fact that the threshold for inputs is not exactly Vdd/2 and can vary from part to part. The 150K/100K combo is what's recommended for a 0-3.3V range. I made the msitake of trying 100K/100K for a 3.3V range and got clipping at the high end.

    TJ,

    Keep in mind that if you use a voltage divider, you can load the analog device driving it, possibly skewing your results. You're better off sticking with the two-resistor design and tailoring those values to meet your needs.

    -Phil

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Still some PropSTICK Kit bare PCBs left!

    Post Edited (Phil Pilgrim (PhiPi)) : 7/29/2008 3:47:51 PM GMT
  • RaymanRayman Posts: 14,234
    edited 2008-07-29 09:32
    Phil,

    The applet is meant to be general purpose, but I'll make a note regarding this with the Propeller. Thanks.
Sign In or Register to comment.