Pinouts.ru talks

English => Interfaces, Pinouts, Cables => Topic started by: bigben on Nov 08, 2005, 19:58

Title: Putting a DoorBell Switch (momentry) onto a PC Serial Port
Post by: bigben on Nov 08, 2005, 19:58
G'Day guys,
I want to put a doorbell type (momentry) switch onto a rs232 serial port. From here when the button is pressed it will do something arather in my program (eg: when the button is pressed it will say turn the computer off)
The programming side of things I have a grip on (sort of), but actually putting a switch onto a serial port I have no idea. I would think it would need resisters, possibly a microcontroller? I googled and so far have found nothing..
Anyone got any ideas?
Title: serial switch
Post by: notwhoyouthink on Nov 10, 2005, 23:58
simple - connect between DTR and DSR with a resistor btwn 0v and DSR. Then if DTR and DSR are the same, the switch is pressed. Let me know if it works!
Title: Putting a DoorBell Switch (momentry) onto a PC Serial Port
Post by: Anonymous on Nov 11, 2005, 00:03
You want to control your PC using rs232C?
Try with the LPT port, is better and simple.
The program to use just have to check a bit in the port, the bit change when you press the button.
The rs232 use serial data and you cant control this type of data directly with a switch.
Title: Putting a DoorBell Switch (momentry) onto a PC Serial Port
Post by: bigben on Nov 15, 2005, 16:27
Hmm, I will look into what you say notwhoyouthink, but first I think Ill look into the LPT port.