Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd peek at those diy electronic magazines. They always create this stuff. Simple analog to digital devices.
Otherwise you have to use some stock automation device. Some home automation or an industrial device. Almost every automated machine has safety interlocks that interact to the computer (and to a hardware line too).
Security web sites may also have a cheap solution.
Just depends on how complex you want. The switch is easy. It is usually some magnetic or prox switch or such. Then it connects to some board that then either uses like a rs485 or ip or dedicated singnal to some computer. Then some program needs to run to detect it and log it.
Most often this sort of thing consists of a few simple parts like a magnet and relay on the door and frame and a simply set of wires to a serial or parallel port and some custom software to monitor it.
Developing a whole PCI card, with all the attendant card requirements, is often overkill to monitor a switch.
The X10 home automation stuff might be a pre-built solution. Do they have door monitors/alarms in the X10 world? The computer interface could get a little expensive.
How about a webcam pointed at the door with motion-sensing software on the computer? All of the required stuff ought to be low-cost, with the webcam the most expensive part. I believe motion-detecting software that starts recording the webcam is already out there for free.
If you choose that route, some arduinos support "shields", pre-built add-on modules that plug on to the top of the arduino board. Here's a security sensor shield that allows you to monitor infrared sensors, switches, and reed switches: http://shieldlist.org/freetronics/secsense
Last edited by jamesf; 12-05-2011 at 11:56 PM.
Reason: corrected url markup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.