Shop OBEX P1 Docs P2 Docs Learn Events
rc time — Parallax Forums

rc time

mizemize Posts: 15
edited 2006-01-23 21:42 in BASIC Stamp
·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?

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-01-22 04:53
    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
  • metron9metron9 Posts: 1,100
    edited 2006-01-23 21:42
    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!
Sign In or Register to comment.