PDA

View Full Version : rc time



mize
01-22-2006, 08:46 AM
i have a sensor outputing an analog voltage between 0vdc-5vdc. is there a simple circuit using rctime to read this output on a bs2?

Jon Williams
01-22-2006, 11:53 AM
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.

http://www.parallax.com/dl/docs/books/sw/Web-sw-v2.0.pdf

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax

metron9
01-24-2006, 04:42 AM
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)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think outside the BOX!