Connect with us

connect simple button through rs-232

Discussion in 'Electronic Basics' started by jimmi, Feb 9, 2007.

Scroll to continue with content
  1. jimmi

    jimmi Guest

    I want to send a signal through serial connection by pressing simple
    button. (I use vvvv software which operates rs-232). I am newbie in
    physical computing things, so I rather show you pictures, which will
    explain my problem.

    fig 1. (serial connection)

    fig 2. (button)

    how do i connect this button to serial connections, so it will work
    for me?
    Whould I use resistor or something? Or maybe I have to use some
    additional chip?
    Sorry if questions is lame, but haven't done that before.

    Any advice would be very helpful for me.

  2. Lord Garth

    Lord Garth Guest

    Since you have only one button, I'd connect it across an output like DTR on
    4 and input like DSR on pin 6. It won't swing +v to -v but as it should but
    many devices, especially laptops, don't adhere to the standard.

    The status register will be what you read for the button push.

    Connector pin assignments

    Specific instructions from a similar box + software to ease the task

    com1 is at 3F8, its status register is + 4 ports from there or 3FC...Windows
    generally make direct port manipulations difficult.

    Another good place to visit is Jan Axelson's page, I'd recommend you buy
    her book.
  3. Si Ballenger

    Si Ballenger Guest

    I've done something similar making a simple rotation counter. I
    connected the RTS to a 10k resistor, then to the switch, and then
    to then Rx pin. When ever the switch made contact, jibberish was
    put in the serial port input buffer. My program checked the input
    buffer on a periodic basis to see if anything was in the buffer.
    If there was anything in the buffer, the switch had made conact.
    If the buffer was empty, then no switch action.
  4. Guest

Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day