Shop OBEX P1 Docs P2 Docs Learn Events
Any ideas on measuring angular displacement using a potentiometer and the Basic — Parallax Forums

Any ideas on measuring angular displacement using a potentiometer and the Basic

dodgerdodger Posts: 37
edited 2008-07-23 04:54 in BASIC Stamp
I am working on a project and need to input real time angular displacement data into a computer program.· My question is what would be the best way to convert the analog angular discplacement voltages into a digital signal that can interface with my computer? I have a Basic stamp microcontroller and some other basic components on hand so I would like to use them for this project.·

Any help would be appreciated.·
BTW This is my first time using the Basic Stamp cool.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-07-23 04:54
    Check out the RCTIME statement in the Basic Stamp Reference Manual. You can measure the resistance of the potentiometer and convert it to angular displacement. There's more information here as well: www.emesystems.com. At the bottom of the page, there's a link to "app-notes". On that page, there's a whole section on RCTIME.

    Also read the manual sections on SERIN and SEROUT for communicating with your PC via a serial port (could be the same one used for programming the Stamp).
Sign In or Register to comment.