Shop OBEX P1 Docs P2 Docs Learn Events
Driving pin high — Parallax Forums

Driving pin high

ArchiverArchiver Posts: 46,084
edited 2001-02-18 23:08 in General Discussion
I have a Basic Stamp Rev D (one of the first models). I am having a
problem with the I/O pins (0 - 7). They work well as outputs, to
drive stepper motors and so-forth. When set as inputs, I cannot get
pins 4 or 5 to "go high".

I try to apply +5 VDC (and also +12 VDC) to either pin, and watch the
state on a debug window. It always stays low (0).

I have checked and the power supply for the Stamp has a common ground
to the +5 VDC line I am trying to use to pull the pin high.

I need to be able to read the inputs on pins 4 & 5 to watch when they
go high, to run a simple program. When either pin goes high it makes
the program jump to a subroutine.

Thanks,

Mike

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-02-18 23:08
    >drive stepper motors and so-forth. When set as inputs, I cannot get
    >pins 4 or 5 to "go high".
    >
    >I try to apply +5 VDC (and also +12 VDC) to either pin, and watch the
    >state on a debug window. It always stays low (0).

    An input pin must be "pulled" high. do this by connecting it to +5 with
    a 10k resistor.

    Carl
Sign In or Register to comment.