Shop OBEX P1 Docs P2 Docs Learn Events
STAMP2 potentiometer P3 IN3 ??? — Parallax Forums

STAMP2 potentiometer P3 IN3 ???

wperkowperko Posts: 66
edited 2008-04-05 12:29 in BASIC Stamp
Hi,

I want to use a potentiometer tied between VDD and Gnd with the middle tap going to a BASIC STAMP2 P3 ...

What is the BASIC input code to read the P3 value (0-1024???) or whatever it would be?

IN3, ?

Comments

  • ForrestForrest Posts: 1,341
    edited 2008-04-05 11:16
    Check the Basic Stamp Reference Manual for the RCTIME command. You'll need to add a resistor and capacitor to the potentiometer - the schematic is shown in the RCTIME command www.parallax.com/Portals/0/Downloads/docs/prod/stamps/web-BSM-v2.2.pdf
    Note this will give you 8-bit resolution. If you need more, you'll need an A to D converter IC.
  • wperkowperko Posts: 66
    edited 2008-04-05 12:29
    Thanks ... Us old farts can't remember anything afterwhile ...

    I knew there was something in the BASIC manual, but couldn't remember to save my lfe ...
Sign In or Register to comment.