Connect with us

Reed switches to serial port??

Discussion in 'Electronic Basics' started by holdit, Dec 18, 2005.

Scroll to continue with content
  1. holdit

    holdit Guest

    Iam automating my son's model railway iam using a pc parrel controlle
    8 relay to control points

    Now i want to plot the location of the trains on the track eg: ree
    switches to rs232 then to a Vb program (i ll make
    But iam looking for any ideas how? i saw a post someone using
    keyboard and a soilnoid and logging key strokes (if i put a ree
    switch on the contacts of a key would that make a key stroke if ree
    switch was closed?

    Cheers if you have any idea
  2. Chris

    Chris Guest

    Hi, Holdit. You might not know that there are 5 input pins on the
    Standard Parallel Port (SPP), too. Look at some of the links on Jan
    Axelson's Lakeview Research Parallel Port Central page:

    If there aren't enough inputs to do the job, I'd suggest sticking with
    the parallel port and using a shift register ICs.

    You will need an external +5V power supply (I would guess you've
    already got one to drive the relays), and the reed switches can switch
    to GND. If you can spare one of the outputs, you can make that high,
    then use that voltage for the pullup resistors.

    Good luck
  3. Si Ballenger

    Si Ballenger Guest

    On Sat, 17 Dec 2005 18:00:22 -0600,
    If you are already working with the parallel port, then my page
    below might be of interest. You could monitor any number of reed
    switches using a setup like this using the parallel port input
  4. holdit

    holdit Guest


    Thanks for reply
    Si Ballenger cool site very good idea
    i think i might need to get another port setup

    Iam still thinking about hacking a keyboard and use reed switch o
    photocells and use a key logger in vb6 to log keys then do somethin
    like flash when switch activated etc.
    it looks like iam going to need about 30 switches at moment I though
    about using photocells out of old mice dont know it that will work
    need to test some out Cheaper if they are good to use and then won
    need to use magnets :)

    anyway thanks again
    any more ideas?? :?
  5. Sjouke Burry

    Sjouke Burry Guest

    For input as response keys in an experiment I just put some
    miniature reed relais iside the keyboeard. That way there is no
    galvanic connection to the keyboard,and it does not matter
    how the keybord matrix is scanned.
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