ADC for BS2
Crux
Posts: 74
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
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
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