Shop OBEX P1 Docs P2 Docs Learn Events
Pulsin circuit ? Can't find it.. — Parallax Forums

Pulsin circuit ? Can't find it..

SteelSteel Posts: 313
edited 2010-04-29 18:32 in BASIC Stamp
So somewhere, Parallax has a circuit for reading a variable resistor using pulsin.· I can't seem to find it anywhere...

I know that it is a variable resistor with a capacitor connected to a BS2/SX pin.· The pin is set up as an output, held high, set as an input, and then a counter counts how long the pin stays high (or time for the capacitor to discharge.

I just cant remember how to connect the wiper of the resistor, so I am trying to find that circuit schematic.

Can anybody help me?

Comments

  • ZootZoot Posts: 2,227
    edited 2010-04-29 18:30
    You generally use RCTIME for this sort of reading. You can use PULSIN but it gets set up (code-wise) a little differently.

    There are circuit and resistor/capacitor combination suggestions if you look up the RCTIME command in the Pbasic Manual.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • SteelSteel Posts: 313
    edited 2010-04-29 18:32
    That's the one.

    Thank you.· I found it real quick.
Sign In or Register to comment.