492Views2Replies

Author Options:

how do I connect limit switches to a sliding door system controlled by Visual Basic software? Answered

The limit switch system must detect if the door is open and if it is, the whole system must be disabled.

2 Replies

user
steveastrouk (author)2009-11-18

Use a USB to parallel port adapter, but OPTO-ISOLATE the inputs.

Personally, I wouldn't use a PC to drive a door.

Steve

Select as Best AnswerUndo Best Answer

user
frollard (author)2009-11-18

If you have a parallel port there are ways to literally read the pins *you can have several io pins directly on your motherboard*, but beware, this can fry your computer.  It's better to use something simple like an arduino or other microcontroller to translate the switch signals into a serial (via usb in the case of arduino) that the computer can read via a com port.

almost 'all' programming languages have access to the com ports - and serial data is easy to work with.

Select as Best AnswerUndo Best Answer