Analog Input
eoinsy
Posts: 8
How can i read an analog voltage coming in on one of the pins on my BS2p. Everytime i look at the pin its either 1 or 0 but i want the actual voltage (·from 0 - 5 v ).·Is this possible does anybody know?
thanks for any help
Post Edited By Moderator (Jon Williams) : 11/10/2004 4:18:13 PM GMT
thanks for any help
Post Edited By Moderator (Jon Williams) : 11/10/2004 4:18:13 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 11/10/2004 4:39:38 PM GMT
Another way to work with analog signals is an RC circuit. It measures trough an Stamp's pin the time wich takes a completely charged capacitor to lower it's charge. This time is proportional to the voltage applied to it. A better description of an RC time circuit and it's applications is in the Stampworks manual, fre available on Parallax site.