Probably your best bet is to use an ADC0831 -- very simple, and we have loads of BASIC Stamp code for it.· I've got at least three different ADC0831 programs in the latest edition of StampWorks.
A better idea of the resolution you need is required to fully answer the question. If you need to differentiate say one volt resolution 0,1,2,3,4,5 or 1 mV resolution.
Also the amount of time you need between readings, once per second or a hundred times per second. A simple circuit to test HIGH or LOW pin status will ive you a resolution of two with the crossover point of LOW to HIGH being the stamps pin threshold. (1.6 volts I think)
Comments
http://www.parallax.com/dl/docs/books/sw/Web-sw-v2.0.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Also the amount of time you need between readings, once per second or a hundred times per second. A simple circuit to test HIGH or LOW pin status will ive you a resolution of two with the crossover point of LOW to HIGH being the stamps pin threshold. (1.6 volts I think)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think outside the BOX!