Shop OBEX P1 Docs P2 Docs Learn Events
Floating inputs? — Parallax Forums

Floating inputs?

ArchiverArchiver Posts: 46,084
edited 2001-03-30 06:41 in General Discussion
As someone previously stated, the 5V inputs to my Alarm System might be "floating" due to not being grounded. I was hoping you all could look at my wiring schematic and tell me what it is you think i could do to fix this.

I am using a momentary "OFF" switch that allows 5V to flow through it when the button is not pushed. The 5V is entering the sensor and flowing out into the PIC to read as a "1". I am getting weird results, like when sensor # 8 goes off, the it tells me that it was #6. weird. Thanks in advance.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-03-29 21:10
    All of the examples in the stamp documentation use voltage dividers of
    some kind to tie both ground and +5 (with different resistances) to the
    input pin. You might want to try this.

    On Thu, 29 Mar 2001, wtterrell wrote:


    [noparse][[/noparse]NON-Text Body part not included]


    Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    email: lamont@a... WWW: http://www.serv.net
    "...There's no moral, it's just a lot of stuff that happens". - H. Simpson
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-29 23:22
    When you push the button, the Stamp pin is floating. Just connect a 1k to
    10K resistor from the Stamp pin to gnd.

    Ray McArthur

    ****************
    As someone previously stated, the 5V inputs to my Alarm System might be
    "floating" due to not being grounded. I was hoping you all could look at my
    wiring schematic and tell me what it is you think i could do to fix this.

    I am using a momentary "OFF" switch that allows 5V to flow through it when
    the button is not pushed. The 5V is entering the sensor and flowing out into
    the PIC to read as a "1". I am getting weird results, like when sensor # 8
    goes off, the it tells me that it was #6. weird. Thanks in advance.
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 06:41
    PLEASE AVOID SENDING LARGE FILES!!! I had lot of problems downloading
    my email...

    Thursday, March 29, 2001, 9:58:29 AM, you wrote:

    w> As someone previously stated, the 5V inputs to my Alarm System might be
    "floating" due to not being grounded. I was hoping you all could look at my
    wiring schematic and tell me what it is you
    w> think i could do to fix this.

    w> I am using a momentary "OFF" switch that allows 5V to flow through it when
    the button is not pushed. The 5V is entering the sensor and flowing out into the
    PIC to read as a "1". I am getting weird
    w> results, like when sensor # 8 goes off, the it tells me that it was #6.
    weird. Thanks in advance.

    Best regards,
    Kalun mailto:klnlau@v...
Sign In or Register to comment.