Shop OBEX P1 Docs P2 Docs Learn Events
ADC for BS2 — Parallax Forums

ADC for BS2

CruxCrux Posts: 74
edited 2007-07-03 17:24 in BASIC Stamp
good day to everyone

I would like to know if the BS2 is capable of converting analog signals to digital?n how can u give me an example of the code n better if you have circuits

Comments

  • pwillardpwillard Posts: 321
    edited 2007-07-03 17:12
    Crux,

    There are quite a few threads already about A-D conversion. Anything you do with what is readily available at the pins will be rather low tech and low resolution. There is a Parallax Application Kit that uses the LTC1298 (ADC) and how you can interface it to the Stamp to achieve a nice, good resolution conversion. I point you at the Application Kit because it has nice sample code provided and the chip itself is relatively cheap.

    If you really want to do this without an external converter, then you should read the Stamp manual. You will find commands like POT (sadly BS1 only) and RCTIME. It will show you how to use the rudimentary analog mode of these commands. I personally don't consider what is built in to the STAMP as a good alternative to a good external ADC.

    Pete

    Post Edited (pwillard) : 7/3/2007 5:20:13 PM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2007-07-03 17:24
    Also check this website www.emesystems.com for information on using RCTIME to measure battery voltage.
Sign In or Register to comment.